plusaes
|
Functions | |
Error | plusaes::crypt_ctr (unsigned char *data, const std::size_t data_size, const unsigned char *key, const std::size_t key_size, const unsigned char(*nonce)[16]) |
CTR mode function
|
inline |
Encrypts or decrypt data in-place with CTR mode.
[in,out] | data | Input data and output buffer. This buffer is replaced with encrypted / decrypted data. |
[in] | data_size | Data size. |
[in] | key | Cipher key |
[in] | key_size | Cipher key size. This value must be 16 (128-bit), 24 (192-bit), or 32 (256-bit). |
[in] | nonce | Nonce of the counter initialization. |