QuickCrypt Library API

SL_CTR_Process

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

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.

Examples

DES encryption/decryption of a file in Counter mode

DES encryption/decryption of a part of memory buffer in Counter mode

 

 

CTR Mode API Overview   |   CTR Mode Functions   |   Useful Links

 

See Also    SL_CTR_Init, SL_CTR_Seek


 

 

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