Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Types | Public Member Functions | List of all members
CFB_CipherConcretePolicy< WT, W, BASE > Class Template Reference

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

#include <strciphr.h>

Inheritance diagram for CFB_CipherConcretePolicy< WT, W, BASE >:
[legend]
Collaboration diagram for CFB_CipherConcretePolicy< WT, W, BASE >:
[legend]

Classes

struct  RegisterOutput
 

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. More...
 

Detailed Description

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

Base class for feedback based stream ciphers.

Template Parameters
WTword type
Wcount of words
BASECFB_CipherAbstractPolicy derived base class

Definition at line 406 of file strciphr.h.

Member Typedef Documentation

template<typename WT , unsigned int W, class BASE = CFB_CipherAbstractPolicy>
typedef WT CFB_CipherConcretePolicy< WT, W, BASE >::WordType

Definition at line 408 of file strciphr.h.

Member Function Documentation

template<typename WT , unsigned int W, class BASE = CFB_CipherAbstractPolicy>
bool CFB_CipherConcretePolicy< WT, W, BASE >::CanIterate ( ) const
inline

Flag indicating iteration support.

Returns
true if the cipher supports iteration, false otherwise

Definition at line 423 of file strciphr.h.

template<typename WT , unsigned int W, class BASE = CFB_CipherAbstractPolicy>
unsigned int CFB_CipherConcretePolicy< WT, W, BASE >::GetAlignment ( ) const
inline

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.

Definition at line 414 of file strciphr.h.

template<typename WT , unsigned int W, class BASE = CFB_CipherAbstractPolicy>
unsigned int CFB_CipherConcretePolicy< WT, W, BASE >::GetBytesPerIteration ( ) const
inline

Provides number of bytes operated upon during an iteration.

Returns
bytes operated upon during an iteration, in bytes
See also
GetOptimalBlockSize()

Definition at line 419 of file strciphr.h.

template<typename WT , unsigned int W, class BASE = CFB_CipherAbstractPolicy>
void CFB_CipherConcretePolicy< WT, W, BASE >::TransformRegister ( )
inline

Perform one iteration in the forward direction.

Definition at line 426 of file strciphr.h.


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