-- |-- Module : Crypto.Cipher.Camellia-- License : BSD-style-- Maintainer : Vincent Hanquez <vincent@snarc.org>-- Stability : experimental-- Portability : Good---- Camellia support. only 128 bit variant available for now.module Crypto.Cipher.Camellia ( Camellia128,) whereimport Crypto.Cipher.Camellia.Primitiveimport Crypto.Cipher.Types-- | Camellia block cipher with 128 bit keynewtype Camellia128 = Camellia128 Camelliainstance Cipher Camellia128 where cipherName _ = "Camellia128" cipherKeySize _ = KeySizeFixed 16 cipherInit k = Camellia128 `fmap` initCamellia kinstance BlockCipher Camellia128 where blockSize _ = 16 ecbEncrypt (Camellia128 key) = encrypt key ecbDecrypt (Camellia128 key) = decrypt key