QuickCrypt Library API

SL_CBC_ProcessBlock

void SL_CRYPTCALL SL_CBC_ProcessBlock( void* pContext, void* pDestBlock, const void* pSrcBlock );
 

Parameters

 pContext

    [in] Pointer to the context.

 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 function to encrypt/decrypt the first BLOCKSIZE bytes of the memory block pointed by pSrcBlock. The result is retrieved in the first 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 SL_CBC_Process function instead of SL_CBC_ProcessBlock and SL_CBC_ProcessLastBlock.

 

CBC Mode API Overview   |   CBC Mode Functions   |   Useful Links

 

See Also    SL_CBC_Init, SL_CBC_ProcessLastBlock, SL_CBC_Process


 

 

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