QuickCrypt Library API

SL_CBC_Process

unsigned int SL_CRYPTCALL SL_CBC_Process( void* pContext, void* pDest, const void* pSrc, unsigned int nSize );

Return Value

The size in bytes of the memory buffer pointed by pDest that receives the result of encryption/decryption.

Parameters

 pContext

    [in] Pointer to the context.

pDest

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

 pSrc

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

 nSize

    [in] Size in bytes of the memory buffer pointed by pSrc.

Remarks

Call this function to encrypt/decrypt the memory buffer pointed by pSrc. The result is retrieved in the memory buffer pointed by pDest.

To perform an in-place encryption/decryption, make pDest equal to pSrc.

Example

DES encryption/decryption of a memory buffer in CBC mode

 

 

CBC Mode API Overview   |   CBC Mode Functions   |   Useful Links

 

See Also    SL_CBC_Init


 

 

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