cryptostore-0.1.0.0: Serialization of cryptographic data types

LicenseBSD-style
MaintainerOlivier Chéron <olivier.cheron@gmail.com>
Stabilitystable
Portabilitygood
Safe HaskellNone
LanguageHaskell2010

Crypto.Store.Cipher.RC2

Description

Implementation of RC2 block cipher, a legacy algorithm providing weak security. Use only for compatibility with software requiring this cipher and data which is not sensitive.

Synopsis

Documentation

data RC2 Source #

RC2 block cipher. Key is between 8 and 1024 bits.

Instances
BlockCipher RC2 Source # 
Instance details

Defined in Crypto.Store.Cipher.RC2

Methods

blockSize :: RC2 -> Int #

ecbEncrypt :: ByteArray ba => RC2 -> ba -> ba #

ecbDecrypt :: ByteArray ba => RC2 -> ba -> ba #

cbcEncrypt :: ByteArray ba => RC2 -> IV RC2 -> ba -> ba #

cbcDecrypt :: ByteArray ba => RC2 -> IV RC2 -> ba -> ba #

cfbEncrypt :: ByteArray ba => RC2 -> IV RC2 -> ba -> ba #

cfbDecrypt :: ByteArray ba => RC2 -> IV RC2 -> ba -> ba #

ctrCombine :: ByteArray ba => RC2 -> IV RC2 -> ba -> ba #

aeadInit :: ByteArrayAccess iv => AEADMode -> RC2 -> iv -> CryptoFailable (AEAD RC2) #

Cipher RC2 Source # 
Instance details

Defined in Crypto.Store.Cipher.RC2

rc2WithEffectiveKeyLength :: ByteArrayAccess key => Int -> key -> CryptoFailable RC2 Source #

Build a RC2 cipher with the specified effective key length (in bits).