BlockCipherFinal< DIR, BASE > Class Template Reference

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

Inheritance diagram for BlockCipherFinal< DIR, BASE >:
ClonableImpl< BlockCipherFinal< DIR, BASE >, BASE > BASE

List of all members.

Public Member Functions

 BlockCipherFinal ()
 Construct a default BlockCipherFinal.
 BlockCipherFinal (const byte *key)
 Construct a BlockCipherFinal.
 BlockCipherFinal (const byte *key, size_t length)
 Construct a BlockCipherFinal.
 BlockCipherFinal (const byte *key, size_t length, unsigned int rounds)
 Construct a BlockCipherFinal.
bool IsForwardTransformation () const
 Provides the direction of the cipher.
ClonableClone () const

Detailed Description

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

Provides class member functions to key a block cipher.

Template Parameters:
DIR a CipherDir
BASE a BlockCipherImpl derived class

Definition at line 305 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 310 of file seckey.h.

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

Construct a BlockCipherFinal.

Parameters:
key a 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 316 of file seckey.h.

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

Construct a BlockCipherFinal.

Parameters:
key a byte array used to key the cipher
length the length of the byte array

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

Definition at line 324 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:
key a byte array used to key the cipher
length the length of the byte array
rounds the number of rounds

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

Definition at line 333 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:
IsForwardTransformation(), IsPermutation(), GetCipherDirection()

Definition at line 339 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