CRYPTO_ccm128_init

Initialise a CCM128_CONTEXT with tag length, length-field size, and block cipher.

Synopsis

Declared in <openssl/modes.h>

void
CRYPTO_ccm128_init(
    CCM128_CONTEXT* ctx,
    unsigned int M,
    unsigned int L,
    void* key,
    block128_f block);

Parameters

NameDescription
ctxContext storage to initialise.
MAuthentication tag length in bytes (for example 8 or 16).
LSize of the message-length field in bytes (nonce length is 15 - L).
keyCipher-specific expanded key for block.
blockBlock-encrypt function for the underlying cipher.