Block chaining for block ciphers.
Algorithm descriptions: https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation
()
The state for ECB chaining
{ nonce : Crypto.Strings.Types.Block
, counter : Crypto.Strings.Types.Block
}
The state for Counter chaining
ecbChaining : Crypto.Strings.Types.Chaining key EcbState randomState
Electronic Codebook chaining
ctrChaining : Crypto.Strings.Types.Chaining key CtrState randomState
Counter Chaining
Uses the encryptor for both encryption and decryption.