Provides a base implementation of SimpleKeyingInterface.
More...
#include <seckey.h>
template<class BASE, class INFO = BASE>
class SimpleKeyingInterfaceImpl< BASE, INFO >
Provides a base implementation of SimpleKeyingInterface.
- Template Parameters
-
SimpleKeyingInterfaceImpl() provides a default implementation for ciphers providing a keying interface. Functions are virtual and not eligible for C++11 constexpr
-ness.
- See also
- Algorithm(), SimpleKeyingInterface()
Definition at line 257 of file seckey.h.
◆ DefaultKeyLength()
template<class BASE , class INFO = BASE>
The default key length used by the algorithm.
- Returns
- default key length used by the algorithm, in bytes
Definition at line 272 of file seckey.h.
◆ GetValidKeyLength()
template<class BASE , class INFO = BASE>
Provides a valid key length for the algorithm.
- Parameters
-
keylength | the size of the key, in bytes |
- Returns
- the valid key length, 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.
Definition at line 283 of file seckey.h.
◆ IVRequirement()
template<class BASE , class INFO = BASE>
The default IV requirements for the algorithm.
The default value is NOT_RESYNCHRONIZABLE. See IV_Requirement in cryptlib.h for allowed values.
Definition at line 288 of file seckey.h.
◆ IVSize()
template<class BASE , class INFO = BASE>
The initialization vector length for the algorithm.
IVSize is provided in bytes, not bits. The default implementation uses IV_LENGTH, which is 0.
Definition at line 294 of file seckey.h.
◆ MaxKeyLength()
template<class BASE , class INFO = BASE>
The maximum key length used by the algorithm.
- Returns
- maximum key length used by the algorithm, in bytes
Definition at line 267 of file seckey.h.
◆ MinKeyLength()
template<class BASE , class INFO = BASE>
The minimum key length used by the algorithm.
- Returns
- minimum key length used by the algorithm, in bytes
Definition at line 262 of file seckey.h.
The documentation for this class was generated from the following file:
- G:/work/subversion/scol-technologies/trunk/scol/plugins/security/cryptopp/seckey.h