License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | Good |
Safe Haskell | None |
Language | Haskell98 |
this only cover Camellia 128 bits for now, API will change once 192 and 256 mode are implemented too
- data Key = Key {}
- initKey128 :: ByteString -> Either String Key
- encrypt :: Key -> ByteString -> ByteString
- decrypt :: Key -> ByteString -> ByteString
Documentation
initKey128 :: ByteString -> Either String Key Source
encrypt :: Key -> ByteString -> ByteString Source
encrypt with the key a bytestring and returns the encrypted bytestring
decrypt :: Key -> ByteString -> ByteString Source
decrypt with the key a bytestring and returns the encrypted bytestring