cryptocipher-0.2.8: Symmetrical Block, Stream and PubKey Ciphers

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

Crypto.Cipher.Camellia

Description

this only cover Camellia 128 bits for now, API will change once 192 and 256 mode are implemented too

Synopsis

Documentation

data Key

Constructors

Key 

Instances

encrypt :: Key -> ByteString -> ByteString

encrypt with the key a bytestring and returns the encrypted bytestring

decrypt :: Key -> ByteString -> ByteString

decrypt with the key a bytestring and returns the encrypted bytestring