Crypto++  5.6.3
Free C++ class library of cryptographic schemes
Static Public Member Functions | Static Public Attributes | List of all members
FixedKeyLength< N, IV_REQ, IV_L > Class Template Reference

Inherited by keyed algorithms with fixed key length. More...

Static Public Member Functions

static size_t StaticGetValidKeyLength (size_t keylength)
 The default key length for the cipher provided by a static function. More...
 

Static Public Attributes

static const int KEYLENGTH =N
 The default key length used by the cipher provided as a constant. More...
 
static const int MIN_KEYLENGTH =N
 The minimum key length used by the cipher provided as a constant. More...
 
static const int MAX_KEYLENGTH =N
 The maximum key length used by the cipher provided as a constant. More...
 
static const int DEFAULT_KEYLENGTH =N
 The default key length used by the cipher provided as a constant. More...
 
static const int IV_REQUIREMENT = IV_REQ
 The default IV requirements for the cipher provided as a constant. More...
 
static const int IV_LENGTH = IV_L
 The default IV length used by the cipher provided as a constant. More...
 

Detailed Description

template<unsigned int N, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0>
class FixedKeyLength< N, IV_REQ, IV_L >

Inherited by keyed algorithms with fixed key length.

Template Parameters
NDefault key length, in bytes
IV_REQThe IV requirements. See IV_Requirement in cryptlib.h for allowed values
IV_LDefault IV length, in bytes

Definition at line 113 of file seckey.h.

Member Function Documentation

template<unsigned int N, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0>
static size_t FixedKeyLength< N, IV_REQ, IV_L >::StaticGetValidKeyLength ( size_t  keylength)
inlinestatic

The default key length for the cipher provided by a static function.

Parameters
keylengththe size of the key, in bytes

The default implementation returns KEYLENGTH. keylength is unused in the default implementation.

Definition at line 139 of file seckey.h.

Member Data Documentation

template<unsigned int N, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0>
const int FixedKeyLength< N, IV_REQ, IV_L >::KEYLENGTH =N
static

The default key length used by the cipher provided as a constant.

KEYLENGTH is provided in bytes, not bits

Definition at line 118 of file seckey.h.

template<unsigned int N, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0>
const int FixedKeyLength< N, IV_REQ, IV_L >::MIN_KEYLENGTH =N
static

The minimum key length used by the cipher provided as a constant.

MIN_KEYLENGTH is provided in bytes, not bits

Definition at line 121 of file seckey.h.

template<unsigned int N, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0>
const int FixedKeyLength< N, IV_REQ, IV_L >::MAX_KEYLENGTH =N
static

The maximum key length used by the cipher provided as a constant.

MAX_KEYLENGTH is provided in bytes, not bits

Definition at line 124 of file seckey.h.

template<unsigned int N, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0>
const int FixedKeyLength< N, IV_REQ, IV_L >::DEFAULT_KEYLENGTH =N
static

The default key length used by the cipher provided as a constant.

DEFAULT_KEYLENGTH is provided in bytes, not bits

Definition at line 127 of file seckey.h.

template<unsigned int N, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0>
const int FixedKeyLength< N, IV_REQ, IV_L >::IV_REQUIREMENT = IV_REQ
static

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.

Definition at line 131 of file seckey.h.

template<unsigned int N, unsigned int IV_REQ = SimpleKeyingInterface::NOT_RESYNCHRONIZABLE, unsigned int IV_L = 0>
const int FixedKeyLength< N, IV_REQ, IV_L >::IV_LENGTH = IV_L
static

The default IV length used by the cipher provided as a constant.

IV_LENGTH is provided in bytes, not bits. The default implementation uses 0.

Definition at line 134 of file seckey.h.


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