Crypto++ 8.6 Free C++ class library of cryptographic schemes

Classes | Public Types | Public Member Functions | List of all members
CFB_CipherConcretePolicy< WT, W, BASE > Struct Template Reference

Base class for feedback based stream ciphers. More...

Inheritance diagram for CFB_CipherConcretePolicy< WT, W, BASE >:

## Classes
struct | RegisterOutput
| Provides alternate access to a feedback register. More...

## Public Types
typedef WT | WordType

## Public Member Functions
unsigned int | GetAlignment () const
| Provides data alignment requirements. More...
unsigned int | GetBytesPerIteration () const
| Provides number of bytes operated upon during an iteration. More...
bool | CanIterate () const
| Flag indicating iteration support. More...
void | TransformRegister ()
| Perform one iteration in the forward direction.
Public Member Functions inherited from CFB_CipherAbstractPolicy
virtual byte * | GetRegisterBegin ()=0
| Access the feedback register. More...
virtual void | Iterate (byte *output, const byte *input, CipherDir dir, size_t iterationCount)
| Iterate the cipher. More...
virtual void | CipherSetKey (const NameValuePairs &params, const byte *key, size_t length)=0
| Key the cipher. More...
virtual void | CipherResynchronize (const byte *iv, size_t length)
| Resynchronize the cipher. More...
virtual std::string | AlgorithmProvider () const
| Retrieve the provider of this algorithm. More...

## Detailed Description

### template<typename WT, unsigned int W, class BASE = CFB_CipherAbstractPolicy>
struct CFB_CipherConcretePolicy< WT, W, BASE >

Base class for feedback based stream ciphers.

Template Parameters

  WT | word type
  W | count of words
  BASE | CFB_CipherAbstractPolicy derived base class

Definition at line 470 of file strciphr.h.

## Member Function Documentation

## ◆ GetAlignment()

template<typename WT , unsigned int W, class BASE = CFB_CipherAbstractPolicy>

unsigned int CFB_CipherConcretePolicy< WT, W, BASE >::GetAlignment | ( |  | ) | const
| inline virtual

Provides data alignment requirements.

Returns
  data alignment requirements, in bytes

Internally, the default implementation returns 1. If the stream cipher is implemented using an SSE2 ASM or intrinsics, then the value returned is usually 16.

Implements CFB_CipherAbstractPolicy.

Definition at line 480 of file strciphr.h.

## ◆ GetBytesPerIteration()

template<typename WT , unsigned int W, class BASE = CFB_CipherAbstractPolicy>

unsigned int CFB_CipherConcretePolicy< WT, W, BASE >::GetBytesPerIteration | ( |  | ) | const
| inline virtual

Provides number of bytes operated upon during an iteration.

Returns
  bytes operated upon during an iteration, in bytes

See also
  GetOptimalBlockSize()

Implements CFB_CipherAbstractPolicy.

Definition at line 485 of file strciphr.h.

## ◆ CanIterate()

template<typename WT , unsigned int W, class BASE = CFB_CipherAbstractPolicy>

bool CFB_CipherConcretePolicy< WT, W, BASE >::CanIterate | ( |  | ) | const
| inline virtual

Flag indicating iteration support.

Returns
  true if the cipher supports iteration, false otherwise

Reimplemented from CFB_CipherAbstractPolicy.

Definition at line 489 of file strciphr.h.

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

- strciphr.h