Crypto.Cipher.ChaChaPoly1305.Conduit

crypton-conduit-0.2.3: crypton conduit

Safe Haskell | None
Language | Haskell2010

Crypto.Cipher.ChaChaPoly1305.Conduit

# Documentation

encrypt #

Arguments

:: forall (m :: Type -> Type). MonadThrow m |
=> ByteString | nonce (12 random bytes)
-> ByteString | symmetric key (32 bytes)
-> ConduitM ByteString ByteString m () |

decrypt #

Arguments

:: forall (m :: Type -> Type). MonadThrow m |
=> ByteString | symmetric key (32 bytes)
-> ConduitM ByteString ByteString m () |

data ChaChaException #

Constructors

EncryptNonceException !CryptoError |
EncryptKeyException !CryptoError |
DecryptNonceException !CryptoError |
DecryptKeyException !CryptoError |
MismatchedAuth |

#### Instances

Instances details

Exception ChaChaException # |
Instance details Defined in Crypto.Cipher.ChaChaPoly1305.Conduit Methods toException :: ChaChaException -> SomeException # fromException :: SomeException -> Maybe ChaChaException # displayException :: ChaChaException -> String # backtraceDesired :: ChaChaException -> Bool #
Show ChaChaException # |
Instance details Defined in Crypto.Cipher.ChaChaPoly1305.Conduit Methods showsPrec :: Int -> ChaChaException -> ShowS # show :: ChaChaException -> String # showList :: [ChaChaException] -> ShowS #