Crypto++ 8.9
Free C++ class library of cryptographic schemes
Static Public Member Functions | Static Public Attributes | List of all members
VariableRounds< D, N, M > Class Template Reference

Inherited by algorithms with variable number of rounds. More...

#include <seckey.h>

Static Public Member Functions

static unsigned int StaticGetDefaultRounds (size_t keylength)
 The default number of rounds for the algorithm based on key length provided by a static function.
 

Static Public Attributes

static const int DEFAULT_ROUNDS = D
 The default number of rounds for the algorithm provided as a constant.
 
static const int MIN_ROUNDS = N
 The minimum number of rounds for the algorithm provided as a constant.
 
static const int MAX_ROUNDS = M
 The maximum number of rounds for the algorithm provided as a constant.
 

Detailed Description

template<unsigned int D, unsigned int N = 1, unsigned int M = INT_MAX>
class VariableRounds< D, N, M >

Inherited by algorithms with variable number of rounds.

Template Parameters
DDefault number of rounds
NMinimum number of rounds
MMaximum number of rounds

Definition at line 64 of file seckey.h.

Member Function Documentation

◆ StaticGetDefaultRounds()

template<unsigned int D, unsigned int N = 1, unsigned int M = INT_MAX>
static unsigned int VariableRounds< D, N, M >::StaticGetDefaultRounds ( size_t keylength)
inlinestatic

The default number of rounds for the algorithm based on key length provided by a static function.

Parameters
keylengththe size of the key, in bytes

keylength is unused in the default implementation.

Definition at line 77 of file seckey.h.

Member Data Documentation

◆ DEFAULT_ROUNDS

template<unsigned int D, unsigned int N = 1, unsigned int M = INT_MAX>
const int VariableRounds< D, N, M >::DEFAULT_ROUNDS = D
static

The default number of rounds for the algorithm provided as a constant.

Definition at line 68 of file seckey.h.

◆ MIN_ROUNDS

template<unsigned int D, unsigned int N = 1, unsigned int M = INT_MAX>
const int VariableRounds< D, N, M >::MIN_ROUNDS = N
static

The minimum number of rounds for the algorithm provided as a constant.

Definition at line 70 of file seckey.h.

◆ MAX_ROUNDS

template<unsigned int D, unsigned int N = 1, unsigned int M = INT_MAX>
const int VariableRounds< D, N, M >::MAX_ROUNDS = M
static

The maximum number of rounds for the algorithm provided as a constant.

Definition at line 72 of file seckey.h.


The documentation for this class was generated from the following file: