Crypto++ 8.7
Free C++ class library of cryptographic schemes
|
Base class for feedback based stream ciphers. More...
#include <strciphr.h>
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. More... | |
Public Member Functions inherited from CFB_CipherAbstractPolicy | |
virtual unsigned int | GetAlignment () const =0 |
Provides data alignment requirements. More... | |
virtual unsigned int | GetBytesPerIteration () const =0 |
Provides number of bytes operated upon during an iteration. More... | |
virtual byte * | GetRegisterBegin ()=0 |
Access the feedback register. More... | |
virtual void | TransformRegister ()=0 |
TODO. More... | |
virtual bool | CanIterate () const |
Flag indicating iteration support. More... | |
virtual void | Iterate (byte *output, const byte *input, CipherDir dir, size_t iterationCount) |
Iterate the cipher. More... | |
virtual void | CipherSetKey (const NameValuePairs ¶ms, 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... | |
Base class for feedback based stream ciphers.
WT | word type |
W | count of words |
BASE | CFB_CipherAbstractPolicy derived base class |
Definition at line 475 of file strciphr.h.
typedef WT CFB_CipherConcretePolicy< WT, W, BASE >::WordType |
Definition at line 477 of file strciphr.h.
|
inlinevirtual |
Definition at line 479 of file strciphr.h.
|
inlinevirtual |
Provides data alignment requirements.
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 485 of file strciphr.h.
|
inlinevirtual |
Provides number of bytes operated upon during an iteration.
Implements CFB_CipherAbstractPolicy.
Definition at line 490 of file strciphr.h.
|
inlinevirtual |
Flag indicating iteration support.
Reimplemented from CFB_CipherAbstractPolicy.
Definition at line 494 of file strciphr.h.
|
inlinevirtual |
Perform one iteration in the forward direction.
Implements CFB_CipherAbstractPolicy.
Definition at line 497 of file strciphr.h.