Crypto++  5.6.3
Free C++ class library of cryptographic schemes
Public Member Functions | List of all members
BlockCipherFinal< DIR, BASE > Class Template Reference

Provides class member functions to key a block cipher. More...

+ Inheritance diagram for BlockCipherFinal< DIR, BASE >:

Public Member Functions

 BlockCipherFinal ()
 Construct a default BlockCipherFinal. More...
 
 BlockCipherFinal (const byte *key)
 Construct a BlockCipherFinal. More...
 
 BlockCipherFinal (const byte *key, size_t length)
 Construct a BlockCipherFinal. More...
 
 BlockCipherFinal (const byte *key, size_t length, unsigned int rounds)
 Construct a BlockCipherFinal. More...
 
bool IsForwardTransformation () const
 Provides the direction of the cipher. More...
 
- Public Member Functions inherited from ClonableImpl< BlockCipherFinal< DIR, BASE >, BASE >
ClonableClone () const
 

Detailed Description

template<CipherDir DIR, class BASE>
class BlockCipherFinal< DIR, BASE >

Provides class member functions to key a block cipher.

Template Parameters
DIRa CipherDir
BASEa BlockCipherImpl derived class

Definition at line 316 of file seckey.h.

Constructor & Destructor Documentation

template<CipherDir DIR, class BASE>
BlockCipherFinal< DIR, BASE >::BlockCipherFinal ( )
inline

Construct a default BlockCipherFinal.

The cipher is not keyed.

Definition at line 321 of file seckey.h.

template<CipherDir DIR, class BASE>
BlockCipherFinal< DIR, BASE >::BlockCipherFinal ( const byte *  key)
inline

Construct a BlockCipherFinal.

Parameters
keya byte array used to key the cipher

key must be at least DEFAULT_KEYLENGTH in length. Internally, the function calls SimpleKeyingInterface::SetKey.

Definition at line 327 of file seckey.h.

template<CipherDir DIR, class BASE>
BlockCipherFinal< DIR, BASE >::BlockCipherFinal ( const byte *  key,
size_t  length 
)
inline

Construct a BlockCipherFinal.

Parameters
keya byte array used to key the cipher
lengththe length of the byte array

key must be at least DEFAULT_KEYLENGTH in length. Internally, the function calls SimpleKeyingInterface::SetKey.

Definition at line 335 of file seckey.h.

template<CipherDir DIR, class BASE>
BlockCipherFinal< DIR, BASE >::BlockCipherFinal ( const byte *  key,
size_t  length,
unsigned int  rounds 
)
inline

Construct a BlockCipherFinal.

Parameters
keya byte array used to key the cipher
lengththe length of the byte array
roundsthe number of rounds

key must be at least DEFAULT_KEYLENGTH in length. Internally, the function calls SimpleKeyingInterface::SetKeyWithRounds.

Definition at line 344 of file seckey.h.

Member Function Documentation

template<CipherDir DIR, class BASE>
bool BlockCipherFinal< DIR, BASE >::IsForwardTransformation ( ) const
inline

Provides the direction of the cipher.

Returns
true if DIR is ENCRYPTION, false otherwise
See also
GetCipherDirection(), IsPermutation()

Definition at line 350 of file seckey.h.


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