| Maintainer | John Galt <jgalt@centromere.net> |
|---|---|
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Noise.Internal.CipherState
Description
- data CipherState c = CipherState (SymmetricKey c) (Nonce c)
- csk :: forall c. Lens' (CipherState c) (SymmetricKey c)
- csn :: forall c. Lens' (CipherState c) (Nonce c)
- encryptAndIncrement :: Cipher c => AssocData -> Plaintext -> CipherState c -> (Ciphertext c, CipherState c)
- decryptAndIncrement :: Cipher c => AssocData -> Ciphertext c -> CipherState c -> (Plaintext, CipherState c)
Types
data CipherState c Source
Represents a symmetric key and associated nonce.
Constructors
| CipherState (SymmetricKey c) (Nonce c) |
Lenses
csk :: forall c. Lens' (CipherState c) (SymmetricKey c) Source
csn :: forall c. Lens' (CipherState c) (Nonce c) Source
Functions
encryptAndIncrement :: Cipher c => AssocData -> Plaintext -> CipherState c -> (Ciphertext c, CipherState c) Source
decryptAndIncrement :: Cipher c => AssocData -> Ciphertext c -> CipherState c -> (Plaintext, CipherState c) Source