Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

VariableKeyLength Class Template Reference

support query of variable key length, template parameters are default, min, max, multiple (default multiple 1). More...

#include <misc.h>

Inheritance diagram for VariableKeyLength:

ARC4 Blowfish CAST128 CAST256 Diamond2Base Diamond2LiteBase HMAC LRBase MARS PanamaMAC RC2Base RC5Base RC6Base Rijndael SapphireBase Serpent SHARKBase Twofish List of all members.

Public Types

enum  { MIN_KEYLENGTH = N, MAX_KEYLENGTH = M, DEFAULT_KEYLENGTH = D, KEYLENGTH_MULTIPLE = Q }

Static Public Methods

unsigned int KeyLength (unsigned int n)
 returns the smallest valid key length in bytes that is >= min(n, MAX_KEYLENGTH). More...


Detailed Description

template<unsigned int D, unsigned int N, unsigned int M, unsigned int Q = 1> class VariableKeyLength

support query of variable key length, template parameters are default, min, max, multiple (default multiple 1).

Definition at line 482 of file misc.h.


Member Enumeration Documentation

template<unsigned int D, unsigned int N, unsigned int M, unsigned int Q = 1>
anonymous enum
 

Definition at line 485 of file misc.h.


Member Function Documentation

template<unsigned int D, unsigned int N, unsigned int M, unsigned int Q = 1>
unsigned int VariableKeyLength<D, N, M, Q>::KeyLength ( unsigned int n ) [inline, static]
 

returns the smallest valid key length in bytes that is >= min(n, MAX_KEYLENGTH).

Definition at line 487 of file misc.h.

Referenced by Rijndael::Rijndael().


The documentation for this class was generated from the following file:
Generated at Mon Jan 15 01:17:20 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000