Crypto++  5.6.5
Free C++ class library of cryptographic schemes
Static Public Member Functions | Static Public Attributes | List of all members
FixedBlockSize< N > Class Template Reference

Inherited by algorithms with fixed block size. More...

Static Public Member Functions

static size_t StaticGetValidBlockSize (size_t blocksize)
 The default block size for the algorithm provided by a static function. More...
 
static size_t StaticGetValidBlockSize (size_t keylength, size_t blocksize)
 The default block size under a key provided by a static function. More...
 

Static Public Attributes

static const int BLOCKSIZE = N
 The block size of the algorithm provided as a constant.
 
static const int DEFAULT_BLOCKSIZE = N
 The default blocksize for the algorithm provided as a constant.
 
static const int MIN_BLOCKSIZE = N
 The minimum blocksize for the algorithm provided as a constant.
 
static const int MAX_BLOCKSIZE = N
 The maximum blocksize for the algorithm provided as a constant.
 

Detailed Description

template<unsigned int N>
class FixedBlockSize< N >

Inherited by algorithms with fixed block size.

Template Parameters
Nthe blocksize of the algorithm

Definition at line 40 of file seckey.h.

Member Function Documentation

◆ StaticGetValidBlockSize() [1/2]

template<unsigned int N>
static size_t FixedBlockSize< N >::StaticGetValidBlockSize ( size_t  blocksize)
inlinestatic

The default block size for the algorithm provided by a static function.

Parameters
blocksizethe block size, in bytes

The default implementation returns BLOCKSIZE. blocksize is unused in the default implementation.

Definition at line 55 of file seckey.h.

◆ StaticGetValidBlockSize() [2/2]

template<unsigned int N>
static size_t FixedBlockSize< N >::StaticGetValidBlockSize ( size_t  keylength,
size_t  blocksize 
)
inlinestatic

The default block size under a key provided by a static function.

Parameters
keylengththe size of the key, in bytes
blocksizethe block size, in bytes

The default implementation returns BLOCKSIZE. blocksize is unused in the default implementation.

Definition at line 64 of file seckey.h.


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