VariableRounds< D, N, M > Class Template Reference

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

List of all members.

Static Public Member Functions

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 DEFAULT_ROUNDS = D
 The default number of rounds for the cipher provided as a constant.
static const int MIN_ROUNDS = N
 The minimum number of rounds for the cipher provided as a constant.
static const int MAX_ROUNDS = M
 The maximum number of rounds for the cipher 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 ciphers with variable number of rounds.

Template Parameters:
D Default number of rounds
N Minimum number of rounds
D Maximum number of rounds

Definition at line 60 of file seckey.h.


Member Function Documentation

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

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

Parameters:
keylength the size of the key, in bytes

keylength is unused in the default implementation.

Definition at line 73 of file seckey.h.


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

Generated on 24 Mar 2016 for Crypto++ by  doxygen 1.6.1