Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | List of all members
CFB_CipherAbstractPolicy Class Referenceabstract

Policy object for feeback based stream ciphers. More...

#include <strciphr.h>

Inheritance diagram for CFB_CipherAbstractPolicy:
[legend]

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 byteGetRegisterBegin ()=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 &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...
 

Detailed Description

Policy object for feeback based stream ciphers.

Definition at line 350 of file strciphr.h.

Constructor & Destructor Documentation

virtual CFB_CipherAbstractPolicy::~CFB_CipherAbstractPolicy ( )
inlinevirtual

Definition at line 353 of file strciphr.h.

Member Function Documentation

virtual bool CFB_CipherAbstractPolicy::CanIterate ( ) const
inlinevirtual

Flag indicating iteration support.

Returns
true if the cipher supports iteration, false otherwise

Reimplemented in CFB_ModePolicy.

Definition at line 375 of file strciphr.h.

virtual void CFB_CipherAbstractPolicy::CipherResynchronize ( const byte iv,
size_t  length 
)
inlinevirtual

Resynchronize the cipher.

Parameters
iva byte array used to resynchronize the cipher
lengththe size of the IV array

Reimplemented in CFB_ModePolicy.

Definition at line 396 of file strciphr.h.

virtual void CFB_CipherAbstractPolicy::CipherSetKey ( const NameValuePairs params,
const byte key,
size_t  length 
)
pure virtual

Key the cipher.

Parameters
paramsset of NameValuePairs use to initialize this object
keya byte array used to key the cipher
lengththe size of the key array

Implemented in ModePolicyCommonTemplate< CFB_CipherAbstractPolicy >.

virtual unsigned int CFB_CipherAbstractPolicy::GetAlignment ( ) const
pure 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.

Implemented in ModePolicyCommonTemplate< CFB_CipherAbstractPolicy >.

virtual unsigned int CFB_CipherAbstractPolicy::GetBytesPerIteration ( ) const
pure virtual

Provides number of bytes operated upon during an iteration.

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

Implemented in CFB_ModePolicy.

virtual byte* CFB_CipherAbstractPolicy::GetRegisterBegin ( )
pure virtual

Access the feedback register.

Returns
pointer to the first byte of the feedback register

Implemented in CFB_ModePolicy.

virtual void CFB_CipherAbstractPolicy::Iterate ( byte output,
const byte input,
CipherDir  dir,
size_t  iterationCount 
)
inlinevirtual

Iterate the cipher.

Parameters
outputthe output buffer
inputthe input buffer
dirthe direction of the cipher
iterationCountthe number of iterations to perform on the input
See also
IsSelfInverting() and IsForwardTransformation()

Reimplemented in CFB_ModePolicy.

Definition at line 383 of file strciphr.h.

virtual void CFB_CipherAbstractPolicy::TransformRegister ( )
pure virtual

TODO.

Implemented in CFB_ModePolicy.


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