hsgnutls-yj-0.2.3.3: Library wrapping the GnuTLS API.

Safe HaskellNone

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