Provides class member functions to access SimpleKeyingInterface constants. More...
Public Member Functions | |
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. | |
SimpleKeyingInterface::IV_Requirement | IVRequirement () const |
The default IV requirements for the cipher. | |
unsigned int | IVSize () const |
The default initialization vector length for the cipher. |
Provides class member functions to access SimpleKeyingInterface constants.
BASE | a SimpleKeyingInterface derived class | |
INFO | a SimpleKeyingInterface derived class |
Definition at line 251 of file seckey.h.
size_t SimpleKeyingInterfaceImpl< BASE, INFO >::GetValidKeyLength | ( | size_t | keylength | ) | const [inline] |
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.
SimpleKeyingInterface::IV_Requirement SimpleKeyingInterfaceImpl< BASE, INFO >::IVRequirement | ( | ) | const [inline] |
The default IV requirements for the cipher.
The default value is NOT_RESYNCHRONIZABLE. See IV_Requirement in cryptlib.h for allowed values.
unsigned int SimpleKeyingInterfaceImpl< BASE, INFO >::IVSize | ( | ) | const [inline] |