raaz-0.0.2: The raaz cryptographic library.

Safe HaskellNone
LanguageHaskell98

Raaz.Cipher.AES

Contents

Synopsis

Documentation

data AES n mode Source

The type associated with AES ciphers. Raaz provides AES variants with key lengths 128, 192 and 256. The key types for the above ciphers in cbc mode are given by the types (KEY128, IV), (KEY192, IV) (KEY256, IV) respectively.

Instances

Symmetric (AES 128 CBC) Source

Key is (KEY128,IV) pair.

Symmetric (AES 192 CBC) Source

Key is (KEY192,IV) pair.

Symmetric (AES 256 CBC) Source

Key is (KEY256,IV) pair.

Primitive (AES 128 CBC) Source

The 128-bit aes cipher in cbc mode.

Primitive (AES 192 CBC) Source

The 192-bit aes cipher in cbc mode.

Primitive (AES 256 CBC) Source

The 256-bit aes cipher in cbc mode.

Cipher (AES 128 CBC) Source 
Cipher (AES 192 CBC) Source 
Cipher (AES 256 CBC) Source 
type Key (AES 128 CBC) = (KEY128, IV) Source 
type Key (AES 192 CBC) = (KEY192, IV) Source 
type Key (AES 256 CBC) = (KEY256, IV) Source 
type Implementation (AES 128 CBC) = SomeCipherI (AES 128 CBC) Source 
type Implementation (AES 192 CBC) = SomeCipherI (AES 192 CBC) Source 
type Implementation (AES 256 CBC) = SomeCipherI (AES 256 CBC) Source 

data KEY128 Source

Key used for AES-128

data KEY192 Source

Key used for AES-128

data KEY256 Source

Key used for AES-128

data IV Source

The IV used by the CBC mode.

Instances

Show IV Source

Shown as a its base16 encoding.

IsString IV Source

Expects in base16.

Storable IV Source 
EndianStore IV Source 
Encodable IV Source 
Random IV Source 

Some AES cipher modes.

aes128cbc :: AES 128 CBC Source

128-bit aes cipher in CBC mode.

aes192cbc :: AES 192 CBC Source

128-bit aes cipher in CBC mode.

aes256cbc :: AES 256 CBC Source

128-bit aes cipher in CBC mode.

aes128ctr :: AES 128 CTR Source

Smart constructors for AES 128 ctr.