Fabcoin Core
0.16.2
P2P Digital Currency
|
Policy object for feeback based stream ciphers. More...
#include <strciphr.h>
Public Member Functions | |
virtual | ~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... | |
Policy object for feeback based stream ciphers.
Definition at line 350 of file strciphr.h.
|
inlinevirtual |
Definition at line 353 of file strciphr.h.
|
inlinevirtual |
Flag indicating iteration support.
Reimplemented in CFB_ModePolicy.
Definition at line 375 of file strciphr.h.
|
inlinevirtual |
Resynchronize the cipher.
iv | a byte array used to resynchronize the cipher |
length | the size of the IV array |
Reimplemented in CFB_ModePolicy.
Definition at line 396 of file strciphr.h.
|
pure virtual |
Key the cipher.
params | set of NameValuePairs use to initialize this object |
key | a byte array used to key the cipher |
length | the size of the key array |
Implemented in ModePolicyCommonTemplate< CFB_CipherAbstractPolicy >.
|
pure virtual |
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.
Implemented in ModePolicyCommonTemplate< CFB_CipherAbstractPolicy >.
|
pure virtual |
Provides number of bytes operated upon during an iteration.
Implemented in CFB_ModePolicy.
|
pure virtual |
Access the feedback register.
Implemented in CFB_ModePolicy.
|
inlinevirtual |
Iterate the cipher.
output | the output buffer |
input | the input buffer |
dir | the direction of the cipher |
iterationCount | the number of iterations to perform on the input |
Reimplemented in CFB_ModePolicy.
Definition at line 383 of file strciphr.h.
|
pure virtual |
TODO.
Implemented in CFB_ModePolicy.