Public Types | |
typedef BlockCipherFinal < ENCRYPTION, SAFER_Impl< Enc, SAFER_SK_Info, true > > | Encryption |
implements the BlockCipher interface | |
typedef BlockCipherFinal < DECRYPTION, SAFER_Impl< Dec, SAFER_SK_Info, true > > | Decryption |
implements the BlockCipher interface | |
Static Public Member Functions | |
static const char * | StaticAlgorithmName () |
static size_t | StaticGetValidKeyLength (size_t keylength) |
Provides a valid key length for the cipher provided by a static function. | |
static unsigned int | StaticGetDefaultRounds (size_t keylength) |
The default number of rounds for the cipher based on key length provided by a static function. | |
Static Public Attributes | |
static const int | BLOCKSIZE |
The block size of the cipher provided as a constant. | |
static const int | MIN_KEYLENGTH |
The minimum key length used by the cipher provided as a constant. | |
static const int | MAX_KEYLENGTH |
The maximum key length used by the cipher provided as a constant. | |
static const int | DEFAULT_KEYLENGTH |
The default key length used by the cipher provided as a constant. | |
static const int | KEYLENGTH_MULTIPLE |
The key length multiple used by the cipher provided as a constant. | |
static const int | IV_REQUIREMENT |
The default IV requirements for the cipher provided as a constant. | |
static const int | IV_LENGTH |
The default initialization vector length for the cipher provided as a constant. | |
static const int | DEFAULT_ROUNDS |
The default number of rounds for the cipher provided as a constant. | |
static const int | MIN_ROUNDS |
The minimum number of rounds for the cipher provided as a constant. | |
static const int | MAX_ROUNDS |
The maximum number of rounds for the cipher provided as a constant. |
Definition at line 73 of file safer.h.
static size_t VariableKeyLength< D, N, M, Q, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::StaticGetValidKeyLength | ( | size_t | keylength | ) | [inline, static, inherited] |
Provides a valid key length for the cipher provided by a static function.
keylength | the size of the key, in bytes |
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 keylength is a multiple of KEYLENGTH_MULTIPLE, then keylength is returned. Otherwise, the function returns keylength rounded down to the next smaller multiple of KEYLENGTH_MULTIPLE.
keylength is provided in bytes, not bits.
static unsigned int VariableRounds< D, N, M >::StaticGetDefaultRounds | ( | size_t | keylength | ) | [inline, static, inherited] |
const int VariableKeyLength< D, N, M, Q, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::MIN_KEYLENGTH [static, inherited] |
const int VariableKeyLength< D, N, M, Q, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::MAX_KEYLENGTH [static, inherited] |
const int VariableKeyLength< D, N, M, Q, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::DEFAULT_KEYLENGTH [static, inherited] |
const int VariableKeyLength< D, N, M, Q, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::KEYLENGTH_MULTIPLE [static, inherited] |
const int VariableKeyLength< D, N, M, Q, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::IV_REQUIREMENT [static, inherited] |
The default IV requirements for the cipher provided as a constant.
The default value is NOT_RESYNCHRONIZABLE. See IV_Requirement in cryptlib.h for allowed values.
const int VariableKeyLength< D, N, M, Q, SimpleKeyingInterface::NOT_RESYNCHRONIZABLE , 0 >::IV_LENGTH [static, inherited] |