cryptostore-0.3.1.0: Serialization of cryptographic data types
LicenseBSD-style
MaintainerOlivier Chéron <olivier.cheron@gmail.com>
Stabilitystable
Portabilitygood
Safe HaskellSafe-Inferred
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

Instances details
Cipher RC2 Source # 
Instance details

Defined in Crypto.Store.Cipher.RC2

BlockCipher RC2 Source # 
Instance details

Defined in Crypto.Store.Cipher.RC2

Methods

blockSize :: RC2 -> Int Source #

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

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

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

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

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

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

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

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

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

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