Crypto++
5.6.3
Free C++ class library of cryptographic schemes
|
Provides class member functions to key a message authentication code. More...
Public Member Functions | |
MessageAuthenticationCodeFinal () | |
Construct a default MessageAuthenticationCodeFinal. More... | |
MessageAuthenticationCodeFinal (const byte *key) | |
Construct a BlockCipherFinal. More... | |
MessageAuthenticationCodeFinal (const byte *key, size_t length) | |
Construct a BlockCipherFinal. More... | |
Clonable * | Clone () const |
std::string | AlgorithmName () const |
size_t | MinKeyLength () const |
The minimum key length used by the cipher. | |
size_t | MaxKeyLength () const |
The maximum key length used by the cipher. | |
size_t | DefaultKeyLength () const |
The default key length used by the cipher. | |
size_t | GetValidKeyLength (size_t keylength) const |
Provides a valid key length for the cipher. More... | |
SimpleKeyingInterface::IV_Requirement | IVRequirement () const |
The default IV requirements for the cipher. More... | |
unsigned int | IVSize () const |
The default initialization vector length for the cipher. More... | |
Static Public Member Functions | |
static std::string | StaticAlgorithmName () |
Provides class member functions to key a message authentication code.
DIR | a CipherDir |
BASE | a BlockCipherImpl derived class |
|
inline |
Construct a default MessageAuthenticationCodeFinal.
The message authentication code is not keyed.
|
inline |
Construct a BlockCipherFinal.
key | a byte array used to key the cipher |
key must be at least DEFAULT_KEYLENGTH in length. Internally, the function calls SimpleKeyingInterface::SetKey.
|
inline |
Construct a BlockCipherFinal.
key | a byte array used to key the cipher |
length | the length of the byte array |
key must be at least DEFAULT_KEYLENGTH in length. Internally, the function calls SimpleKeyingInterface::SetKey.
|
inlineinherited |
Provides a valid key length for the cipher.
keylength | the size of the key, in bytes |
keylength is provided in bytes, not bits. If keylength is less than MIN_KEYLENGTH, then the function returns MIN_KEYLENGTH. If keylength is greater than MAX_KEYLENGTH, then the function returns MAX_KEYLENGTH. if If keylength is a multiple of KEYLENGTH_MULTIPLE, then keylength is returned. Otherwise, the function returns a lower multiple of KEYLENGTH_MULTIPLE.
|
inlineinherited |
The default IV requirements for the cipher.
The default value is NOT_RESYNCHRONIZABLE. See IV_Requirement in cryptlib.h for allowed values.
|
inlineinherited |