|
Codec.Encryption.Modes | Portability | portable | Stability | experimental | Maintainer | dominic.steinitz@blueyonder.co.uk |
|
|
|
|
|
Description |
Requires Bits and Word This module currently supports Cipher Block Chainig (CBC) mode
|
|
Synopsis |
|
cbc :: (Bits block) => (key -> block -> block) -> block -> key -> [block] -> [block] | | unCbc :: (Bits block) => (key -> block -> block) -> block -> key -> [block] -> [block] |
|
|
|
Function types |
|
cbc :: (Bits block) => (key -> block -> block) -> block -> key -> [block] -> [block] |
In CBC or Cipher Block Chaining mode each block is XORed with
the previous enciphered block before encryption. For the first
block we start with an initialization vector. |
|
unCbc :: (Bits block) => (key -> block -> block) -> block -> key -> [block] -> [block] |
To decipher in CBC or Cipher Block Chaining mode we decipher
each block, then XOR the result with the previous block of
plaintext result. Note that we treat the initialization vector as the zeroth block of plaintext. |
|
Produced by Haddock version 0.5 |