QuickCrypt Library C++ Interface

CCBCMode::Process

unsigned int Process( unsigned char* pDest, const unsigned char* 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

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 member 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

 

CCBCMode Overview   |   Class Members   |   Useful Links

 

See Also    CCBCMode::Init


 

 

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