billstclair/elm-crypto-string/2.1.3

NOTE: this package is not compatible with Elm 0.19.1

Crypto.Strings.Chaining

Block chaining for block ciphers.

Algorithm descriptions: https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation

Classes

type alias EcbState =
()

The state for ECB chaining

type alias CtrState =
{ nonce : Block
, counter : Block
}

The state for Counter chaining

Functions

ecbChaining : Chaining key EcbState randomState

Electronic Codebook chaining

ctrChaining : Chaining key CtrState randomState

Counter Chaining

Uses the encryptor for both encryption and decryption.