| QuickCrypt Library | API |
|
CTR Mode API Overview
CTR Mode API assists you in performing encryption/decryption in Counter mode of operation.
To encrypt/decrypt a continuous memory buffer, perform the following:
Allocate at least CONTEXTSIZE bytes for the context. For example, to perform DES encryption/decryption allocate at least SLC_DES_CONTEXTSIZE bytes for the context.
Call the Init function of the encryption algorithm you need to use, passing to it the secret key and the cipher direction (SLC_ENCRYPT only). For example, to perform DES encryption/decryption call SL_DES_Init function.
Call the SL_CTR_Init function to initialize the context with the initialization vector.
Call the SL_CTR_Process function to encrypt/decrypt the memory buffer.
Call the SL_CTR_Seek function to encrypt/decrypt the memory buffer.
|
#include <QuickCrypt.h> |
CTR Mode API Functions | Useful Links
| Send Feedback to SlavaSoft Inc. | Tell a friend about QuickCrypt Library |