[#CRYPTO_ctr128_encrypt_ctr32] = CRYPTO_ctr128_encrypt_ctr32 :mrdocs: Encrypt or decrypt in CTR mode using a 32‐bit counter stream function. == Synopsis Declared in `<openssl/modes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void CRYPTO_ctr128_encrypt_ctr32( unsigned char const* in, unsigned char* out, size_t len, void const* key, unsigned char ivec[], unsigned char ecount_buf[], unsigned int* num, xref:ctr128_f.adoc[ctr128_f] ctr); ---- == Parameters [cols="1,4"] |=== | Name| Description | *in* | Input bytes of length `len.` | *out* | Output buffer of length `len` (may equal `in).` | *len* | Number of bytes to process. | *key* | Cipher‐specific expanded key for `ctr.` | *ivec* | 16‐byte counter block updated as encryption proceeds. | *ecount_buf* | 16‐byte buffer holding residual encrypted counter output. | *num* | Offset into `ecount_buf` for residual keystream (updated; start at 0). | *ctr* | Multi‐block CTR stream function for the underlying cipher. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#