Crypto++
5.6.4
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
19 CRYPTOPP_CONSTANT(DEFAULT_EFFECTIVE_KEYLENGTH = 1024)
20 CRYPTOPP_CONSTANT(MAX_EFFECTIVE_KEYLENGTH = 1024)
21 CRYPTOPP_CONSTEXPR
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));}
AlgorithmParameters MakeParameters(const char *name, const T &value, bool throwIfNotUsed=true)
Create an object that implements NameValuePairs.
Classes and functions for secure memory allocations.
Class specific methods used to operate the cipher in the reverse direction.
Class specific methods used to operate the cipher in the forward direction.
Inherited by algorithms with fixed block size.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
RC2 block cipher information.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher.
Classes and functions for implementing secret key algorithms.
Provides class member functions to key a block cipher.
Crypto++ library namespace.
static const int DEFAULT_KEYLENGTH
The default key length used by the algorithm provided as a constant.
Interface for retrieving values given their names.
Classes for working with NameValuePairs.
Inherited by keyed algorithms with variable key length.