[#CRYPTO_ccm128_setiv] = CRYPTO_ccm128_setiv :mrdocs: Set the CCM nonce and message length for a subsequent encrypt or decrypt. == Synopsis Declared in `<openssl/modes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CRYPTO_ccm128_setiv( xref:CCM128_CONTEXT-0c.adoc[CCM128_CONTEXT]* ctx, unsigned char const* nonce, size_t nlen, size_t mlen); ---- == Return Value 0 on success, or ‐1 if `nlen` is too short for the configured L. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | CCM context from CRYPTO_ccm128_init(). | *nonce* | Nonce octets; length must be at least 15 ‐ L for the configured L. | *nlen* | Length of `nonce` in bytes. | *mlen* | Length of the message that will be encrypted or decrypted. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#