| QuickCrypt Library | C++ Interface |
|
CCFBMode::Init
void Init( SL_CIPHER_DIR dir, const unsigned char* pIV, const unsigned char* pKey, unsigned int nKeyLen = DEFAULTKEYSIZE, unsigned int fs = 0 );
void Init( SL_CIPHER_DIR dir, const unsigned char* pIV, unsigned int fs = 0 );
Parameters
dir
[in] Cipher direction. It can be SLC_ENCRYPT or SLC_DECRYPT.
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 CCFBMode object. A brief description of both of them follows.
void Init( SL_CIPHER_DIR dir, const unsigned char* pIV, const unsigned char* pKey, unsigned int nKeyLen = DEFAULTKEYSIZE, unsigned int fs = 0 );
Call this member function to initialize the CCFBMode object with the initialization vector pointed by pIV, and the secret key pointed by pKey.
Notes.
void Init( SL_CIPHER_DIR dir, const unsigned char* pIV, unsigned int fs = 0 );
Call this member function to initialize the CCFBMode object with the initialization vector pointed by pIV without changing the key set by previous initialization. Note that the first CCFBMode<T>::BLOCKSIZE bytes of the memory buffer pointed by pIV are used as the initialization vector.
The CCFBMode object is initialized for encryption if dir is SLC_ENCRYPT, or it is initialized for decryption if dir is SLC_DECRYPT.
Example
|
CCFBMode Overview | Class Members | Useful Links
See Also CCFBMode::Process
| Send Feedback to SlavaSoft Inc. | Tell a friend about QuickCrypt Library |