hsgnutls-0.2.3.2: Library wrapping the GnuTLS API.

Codec.Encryption

Documentation

class (Show ciph, Show mode, CipherType ciph, CipherMode mode, CipherDatum key, CipherDatum iv) => Cipher ciph mode key iv | ciph mode -> key iv whereSource

Methods

encrypt :: ciph -> mode -> key -> iv -> ByteString -> ByteStringSource

decrypt :: ciph -> mode -> key -> iv -> ByteString -> Maybe ByteStringSource