raaz-0.0.2: The raaz cryptographic library.

Safe HaskellNone

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)

Key is (KEY128,IV) pair.

Symmetric (AES 192 CBC)

Key is (KEY192,IV) pair.

Symmetric (AES 256 CBC)

Key is (KEY256,IV) pair.

Recommendation (AES 128 CBC) 
Recommendation (AES 192 CBC) 
Recommendation (AES 256 CBC) 
Primitive (AES 128 CBC)

The 128-bit aes cipher in cbc mode.

Primitive (AES 192 CBC)

The 192-bit aes cipher in cbc mode.

Primitive (AES 256 CBC)

The 256-bit aes cipher in cbc mode.

Cipher (AES 128 CBC) 
Cipher (AES 192 CBC) 
Cipher (AES 256 CBC) 

data KEY128 Source

Key used for AES-128

Instances

data KEY192 Source

Key used for AES-128

Instances

data KEY256 Source

Key used for AES-128

Instances

data IV Source

The IV used by the CBC mode.

Instances

Show IV

Shown as a its base16 encoding.

IsString IV

Expects in base16.

Storable IV 
EndianStore IV 
Encodable IV 
Random IV 

Some AES cipher modes.

aes128cbc :: AES 128 CBCSource

128-bit aes cipher in CBC mode.

aes192cbc :: AES 192 CBCSource

128-bit aes cipher in CBC mode.

aes256cbc :: AES 256 CBCSource

128-bit aes cipher in CBC mode.

aes128ctr :: AES 128 CTRSource

Smart constructors for AES 128 ctr.