|
QuickCrypt Library |
C++ Interface |
|
COFBMode::Init
void Init( const unsigned char* pIV,
const unsigned char* pKey, unsigned int nKeyLen =
DEFAULTKEYSIZE, unsigned int fs = 0 );
void Init( const unsigned char* pIV,
unsigned int fs = 0 );
Parameters
pIV
[in] Pointer to the
initialization vector.
pKey
[in] Pointer to the secret
key.
nKeyLen
[in] Length in bytes of the
secret key.
fs
[in] Feedback size in
bytes. By default fs is 0 which means to use the maximum feedback size.
This size is the mostly used feedback size.
Remarks
Both member functions initialize the COFBMode object.
A brief description of both of them follows.
-
void Init( const unsigned char* pIV,
const unsigned char* pKey, unsigned int nKeyLen =
DEFAULTKEYSIZE, unsigned int fs = 0 );
Call this member function to
initialize the COFBMode object with the initialization vector pointed by pIV, and
the secret key pointed by
pKey.
Notes.
-
The first
COFBMode<T>::BLOCKSIZE
bytes of the memory
buffer pointed by pIV are
used as the initialization vector.
-
nKeyLen can be
COFBMode<T>::DEFAULTKEYSIZE
bytes. For Rijndael (AES) algorithm it can also be 24 or 32 bytes. For Blowfish algorithm it can be in the range 1 through
72 bytes.
Call this member function to
initialize the COFBMode object with the initialization vector pointed by pIV
without changing the key set by previous initialization.
Note that the first
COFBMode<T>::BLOCKSIZE
bytes of the memory
buffer pointed by pIV are
used as the initialization vector.
COFBMode Overview
| Class Members
|
Useful Links
See Also COFBMode::Process
|