cryptocipher-0.2.8: Symmetrical Block, Stream and PubKey Ciphers

PortabilityGood
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>

Crypto.Cipher.AES

Contents

Description

 

Synopsis

Documentation

data Key Source

Instances

Basic encryption and decryption

encrypt :: Key -> ByteString -> ByteStringSource

encrypt using simple EBC mode

decrypt :: Key -> ByteString -> ByteStringSource

decrypt using simple EBC mode

CBC encryption and decryption

encryptCBC :: Key -> IV -> ByteString -> ByteStringSource

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

decryptCBC :: Key -> IV -> ByteString -> ByteStringSource

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