Crypto-4.2.5.2: Common Cryptographic Algorithms in Pure Haskell
Copyright(c) Dominic Steinitz 2004
LicenseBSD-style (see the file ReadMe.tex)
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Encryption.AES

Description

Takes the AES module supplied by Lukasz Anforowicz and wraps it so it can used with the standard modes.

Synopsis

Function Types

encrypt :: AESKey a => a -> Word128 -> Word128 Source #

Basic AES encryption which takes a key and a block of plaintext and returns the encrypted block of ciphertext according to the standard.

decrypt :: AESKey a => a -> Word128 -> Word128 Source #

Basic AES decryption which takes a key and a block of ciphertext and returns the decrypted block of plaintext according to the standard.

class AESKeyIndirection a => AESKey a Source #

Instances

Instances details
AESKey Word128 Source # 
Instance details

Defined in Codec.Encryption.AES

AESKey Word192 Source # 
Instance details

Defined in Codec.Encryption.AES

AESKey Word256 Source # 
Instance details

Defined in Codec.Encryption.AES