License | BSD-style |
---|---|
Maintainer | Olivier Chéron <olivier.cheron@gmail.com> |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
AES Key Wrap (RFC 3394) and Extended Key Wrap (RFC 5649)
Should be used with a cipher from module Crypto.Cipher.AES.
Synopsis
- wrap :: (BlockCipher aes, ByteArray ba) => aes -> ba -> Either StoreError ba
- unwrap :: (BlockCipher aes, ByteArray ba) => aes -> ba -> Either StoreError ba
- wrapPad :: (BlockCipher aes, ByteArray ba) => aes -> ba -> Either StoreError ba
- unwrapPad :: (BlockCipher aes, ByteArray ba) => aes -> ba -> Either StoreError ba
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.