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

MaintainerThomas.DuBuisson@gmail.com
Stabilitybeta
Portabilityportable
Safe HaskellNone
LanguageHaskell98

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 k

Perform doubling as defined by the CMAC and SIV papers

Authentication modes

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

Cipher block chaining message authentication

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

Cipher block chaining message authentication

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

Obtain the cmac for lazy bytestrings

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

Obtain the cmac for strict bytestrings

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

Obtain the CMAC* on strict bytestrings