Encrypt or decrypt data with Camellia in 128-bit CTR mode (deprecated).
Declared in <openssl/camellia.h>
[[deprecated]]
void
Camellia_ctr128_encrypt(
unsigned char const* in,
unsigned char* out,
size_t length,
CAMELLIA_KEY const* key,
unsigned char ivec[],
unsigned char ecount_buf[],
unsigned int* num);
Deprecated. Use of this entity is allowed but discouraged.
| Name | Description |
|---|---|
| in | Input buffer of length bytes. |
| out | Output buffer of at least length bytes (may equal in). |
| length | Number of bytes to process. |
| key | Expanded Camellia key from Camellia_set_key(). |
| ivec | 16-byte counter block; low bytes are incremented on return. |
| ecount_buf | Encrypted counter block cache updated by the routine. |
| num | Byte offset into ecount_buf for the next keystream byte; updated on return. |