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

Maintainer | Thomas.DuBuisson@gmail.com
Stability | beta
Portability | portable
Safe Haskell | None
Language | Haskell98

Crypto.Modes

Contents

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

Description

Synopsis

- dblIV :: BlockCipher k => IV k -> IV k
- cbcMac' :: BlockCipher k => k -> ByteString -> ByteString
- cbcMac :: BlockCipher k => k -> ByteString -> ByteString
- cMac :: BlockCipher k => k -> ByteString -> ByteString
- cMac' :: BlockCipher k => k -> ByteString -> ByteString
- cMacStar :: BlockCipher k => k -> [ByteString] -> ByteString
- cMacStar' :: BlockCipher k => k -> [ByteString] -> ByteString

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

dblIV :: BlockCipher k => IV k -> IV k Source #

Perform doubling as defined by the CMAC and SIV papers

# Authentication modes

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

Cipher block chaining message authentication

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

Cipher block chaining message authentication

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

Obtain the cmac for lazy bytestrings

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

Obtain the cmac for strict bytestrings

cMacStar :: BlockCipher k => k -> [ByteString] -> ByteString Source #

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

Obtain the CMAC* on strict bytestrings