ctr128_f

Callback that encrypts or decrypts whole 16-byte blocks in CTR mode.

Synopsis

Declared in <openssl/modes.h>

typedef void(* ctr128_f)(unsigned char const*, unsigned char*, size_t, void const*, unsigned char const[]);

Parameters

NameDescription
inInput ciphertext or plaintext blocks.
outOutput buffer for the transformed blocks.
blocksNumber of 16-byte blocks to process.
keyCipher-specific expanded key schedule.
ivec16-byte counter block for the stream.