35 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
48 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
57 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
70 {SetKey(key, keyLen);}
72 {SetKey(key, keyLen,
MakeParameters(
"EffectiveKeyLength", effectiveKeyLen));}
83 {SetKey(key, keyLen);}
85 {SetKey(key, keyLen,
MakeParameters(
"EffectiveKeyLength", effectiveKeyLen));}
Decryption(const byte *key, size_t keyLen, int effectiveKeyLen)
Classes for working with NameValuePairs.
#define CRYPTOPP_STATIC_CONSTEXPR
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
RC2::Decryption RC2Decryption
Encryption(const byte *key, size_t keyLen, int effectiveKeyLen)
#define NAMESPACE_BEGIN(x)
Class specific methods used to operate the cipher in the forward direction.
Encryption(const byte *key, size_t keyLen=DEFAULT_KEYLENGTH)
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
FixedSizeSecBlock< word16, 64 > K
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.
Provides class member functions to key a block cipher.
CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API StaticAlgorithmName()
RC2 block cipher information.
#define CRYPTOPP_CONSTANT(x)
Inherited by keyed algorithms with variable key length.
#define CRYPTOPP_NO_VTABLE
Decryption(const byte *key, size_t keyLen=DEFAULT_KEYLENGTH)
RC2::Encryption RC2Encryption
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Class specific methods used to operate the cipher in the reverse direction.
Class specific methods used to operate the cipher in the reverse direction.
Class specific methods used to operate the cipher in the forward direction.
unsigned int OptimalDataAlignment() const
Provides input and output data alignment for optimal performance.
Class specific methods used to operate the cipher.
Interface for retrieving values given their names.