|
|
|
Description |
A pure interface to AES
|
|
Synopsis |
|
|
|
Documentation |
|
|
Modes ECB and CBC can only handle full 16-byte frames. This means
the length of every strict bytestring passed in must be a multiple
of 16; when using lazy bytestrings, its component strict
bytestrings must all satisfy this.
| Constructors | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:: Mode | | -> Key | The AES key - 16, 24 or 32 bytes
| -> IV | | -> Direction | | -> ByteString | Bytestring to encrypt/decrypt
| -> ByteString | | Encryption/decryption for lazy bytestrings
Properties:
x == y => crypt mode key iv dir x == crypt mode key iv dir y
take (length x) (crypt mode key iv Decrypt (crypt mode key iv Encrypt x)) == x
|
|
|
Produced by Haddock version 2.6.0 |