cryptostore-0.3.1.0: Serialization of cryptographic data types
LicenseBSD-style
MaintainerOlivier Chéron <olivier.cheron@gmail.com>
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.Store.KeyWrap.AES

Description

AES Key Wrap (RFC 3394) and Extended Key Wrap (RFC 5649)

Should be used with a cipher from module Crypto.Cipher.AES.

Synopsis

Documentation

wrap :: (BlockCipher aes, ByteArray ba) => aes -> ba -> Either StoreError ba Source #

Wrap a key with the specified AES cipher.

unwrap :: (BlockCipher aes, ByteArray ba) => aes -> ba -> Either StoreError ba Source #

Unwrap an encrypted key with the specified AES cipher.

wrapPad :: (BlockCipher aes, ByteArray ba) => aes -> ba -> Either StoreError ba Source #

Pad and wrap a key with the specified AES cipher.

unwrapPad :: (BlockCipher aes, ByteArray ba) => aes -> ba -> Either StoreError ba Source #

Unwrap and unpad an encrypted key with the specified AES cipher.