Security Scol plugin
|
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. | |
unsigned int | GetBytesPerIteration () const |
Provides number of bytes operated upon during an iteration. | |
bool | CanIterate () const |
Flag indicating iteration support. | |
void | TransformRegister () |
Perform one iteration in the forward direction. | |
Public Member Functions inherited from CFB_CipherAbstractPolicy | |
virtual byte * | GetRegisterBegin ()=0 |
Access the feedback register. | |
virtual void | Iterate (byte *output, const byte *input, CipherDir dir, size_t iterationCount) |
Iterate the cipher. | |
virtual void | CipherSetKey (const NameValuePairs ¶ms, const byte *key, size_t length)=0 |
Key the cipher. | |
virtual void | CipherResynchronize (const byte *iv, size_t length) |
Resynchronize the cipher. | |
virtual std::string | AlgorithmProvider () const |
Retrieve the provider of this algorithm. | |
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 |
Flag indicating iteration support.
Reimplemented from CFB_CipherAbstractPolicy.
Definition at line 494 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 |
Perform one iteration in the forward direction.
Implements CFB_CipherAbstractPolicy.
Definition at line 497 of file strciphr.h.