cryptocipher-0.3.1: Symmetrical Block, Stream and PubKey Ciphers

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
PortabilityGood
Safe HaskellNone
LanguageHaskell98

Crypto.Cipher.AES.Haskell

Contents

Description

 

Synopsis

Documentation

data Key Source

Instances

Basic encryption and decryption

encrypt :: Key -> ByteString -> ByteString Source

encrypt using simple EBC mode

decrypt :: Key -> ByteString -> ByteString Source

decrypt using simple EBC mode

CBC encryption and decryption

encryptCBC :: Key -> IV -> ByteString -> ByteString Source

encrypt using CBC mode - IV need to be 16 bytes and the data to encrypt a multiple of 16 bytes

decryptCBC :: Key -> IV -> ByteString -> ByteString Source

decrypt using CBC mode - IV need to be 16 bytes and the data to decrypt a multiple of 16 bytes

key building mechanism

Wrappers for "crypto-api" instances