Crypto-4.1.0: DES, Blowfish, AES, TEA, SHA1, MD5, RSA, BubbleBabble, Hexdump, Support for Word128, Word192 and Word256 and Beyond, PKCS5 Padding, Various Encryption Modes e.g. Cipher Block Chaining all in one package.

Portabilityportable
Stabilityexperimental
Maintainerdominic.steinitz@blueyonder.co.uk

Codec.Encryption.DES

Contents

Description

Takes the DES module supplied by Ian Lynagh and wraps it so it can used with the standard modes.

See http://web.comlab.ox.ac.uk/oucl/work/ian.lynagh/.

Synopsis

Function Types

encrypt :: Word64 -> Word64 -> Word64Source

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

decrypt :: Word64 -> Word64 -> Word64Source

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