crypto-api-0.13: A generic interface for cryptographic operations

Portabilityportable
Stabilitybeta
MaintainerThomas.DuBuisson@gmail.com
Safe HaskellNone

Crypto.Modes

Contents

Description

Authors: Thomas DuBuisson

Generic mode implementations useable by any correct BlockCipher instance Be aware there are no tests for CFB mode yet. See Crypto.

Synopsis

Initialization Vector Type, Modifiers (for all ciphers, all modes that use IVs)

dblIV :: BlockCipher k => IV k -> IV kSource

Perform doubling as defined by the CMAC and SIV papers

Authentication modes

cbcMac' :: BlockCipher k => k -> ByteString -> ByteStringSource

Cipher block chaining message authentication

cbcMac :: BlockCipher k => k -> ByteString -> ByteStringSource

Cipher block chaining message authentication

cMac :: BlockCipher k => k -> ByteString -> ByteStringSource

Obtain the cmac for lazy bytestrings

cMac' :: BlockCipher k => k -> ByteString -> ByteStringSource

Obtain the cmac for strict bytestrings

cMacStar' :: BlockCipher k => k -> [ByteString] -> ByteStringSource

Obtain the CMAC* on strict bytestrings