QuickCrypt Library C++ Interface

CCounterMode::Init

void Init( const unsigned char* pIV, const unsigned char* pKey, unsigned int nKeyLen = DEFAULTKEYSIZE );

void Init( const unsigned char* pIV );

Parameters

 pIV

    [in] Pointer to the initialization vector.

 pKey

    [in] Pointer to the secret key.

 nKeyLen

    [in] Length in bytes of the secret key.

Remarks

Both member functions initialize the CCounterMode object. A brief description of both of them follows.

Call this member function to initialize the CCounterMode object with the initialization vector pointed by pIV, and the secret key pointed by pKey.

Notes. 

Call this member function to initialize the CCounterMode object with the initialization vector pointed by pIV without changing the key set by previous initialization. Note that the first CCounterMode<T>::BLOCKSIZE bytes of the memory buffer pointed by pIV are used as the initialization vector.

CCounterMode Overview   |   Class Members   |   Useful Links

 

See Also    CCounterMode::Process, CCounterMode::Seek


 

 

Send Feedback to SlavaSoft Inc. Tell a friend about QuickCrypt Library