19 CRYPTOPP_CONSTANT(DEFAULT_EFFECTIVE_KEYLENGTH = 1024)
20 CRYPTOPP_CONSTANT(MAX_EFFECTIVE_KEYLENGTH = 1024)
21 static const char *StaticAlgorithmName() {
return "RC2";}
35 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
36 unsigned int OptimalDataAlignment()
const {
return GetAlignmentOf<word16>();}
45 class CRYPTOPP_NO_VTABLE Enc :
public Base
48 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
54 class CRYPTOPP_NO_VTABLE Dec :
public Base
57 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
70 {SetKey(key, keyLen);}
71 Encryption(
const byte *key,
size_t keyLen,
int effectiveKeyLen)
72 {SetKey(key, keyLen,
MakeParameters(
"EffectiveKeyLength", effectiveKeyLen));}
83 {SetKey(key, keyLen);}
84 Decryption(
const byte *key,
size_t keyLen,
int effectiveKeyLen)
85 {SetKey(key, keyLen,
MakeParameters(
"EffectiveKeyLength", effectiveKeyLen));}
Classes for working with NameValuePairs.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
BlockCipher Decryption
implements the BlockCipher interface
Classes and functions for secure memory allocations.
Inherited by block ciphers with fixed block size.
BlockCipher Encryption
implements the BlockCipher interface
AlgorithmParameters MakeParameters(const char *name, const T &value, bool throwIfNotUsed=true)
Create an object that implements NameValuePairs.
Classes and functions for implementing secret key algorithms.
static const int DEFAULT_KEYLENGTH
The default key length used by the cipher provided as a constant.
Provides class member functions to key a block cipher.
The RC2 cipher's key, iv, block size and name information.
Inherited by keyed algorithms with variable key length.
Provides class member functions to access BlockCipher constants.
Crypto++ library namespace.
Class specific methods used to operate the cipher in the reverse direction.
Class specific methods used to operate the cipher in the forward direction.
Interface for retrieving values given their names.