QuickCrypt Library C++ Interface

CCBCMode::ProcessBlock

void ProcessBlock( unsigned char* pDestBlock, const unsigned char* pSrcBlock );
 

Parameters

pDestBlock

    [out] Pointer to the memory block that will receive the result of encryption/decryption. 

 pSrcBlock

    [in] Pointer to the memory block that has to be encrypted/decrypted.

Remarks

Call this member function to encrypt/decrypt the first CCBCMode<T>::BLOCKSIZE bytes of the memory block pointed by pSrcBlock. The result is retrieved in the first CCBCMode<T>::BLOCKSIZE bytes of the memory block pointed by pDestBlock.

To perform an in-place encryption/decryption, make pDestBlock equal to pSrcBlock.

 

Note. To perform encryption/decryption in CBC mode it is easier to use Process member function instead of ProcessBlock and ProcessLastBlock.

 

CCBCMode Overview   |   Class Members   |   Useful Links

 

See Also    CCBCMode::Init, CCBCMode::ProcessLastBlock, CCBCMode::Process


 

 

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