Initialise a CCM128_CONTEXT with tag length, length-field size, and block cipher.
Declared in <openssl/modes.h>
void
CRYPTO_ccm128_init(
CCM128_CONTEXT* ctx,
unsigned int M,
unsigned int L,
void* key,
block128_f block);
| Name | Description |
|---|---|
| ctx | Context storage to initialise. |
| M | Authentication tag length in bytes (for example 8 or 16). |
| L | Size of the message-length field in bytes (nonce length is 15 - L). |
| key | Cipher-specific expanded key for block. |
| block | Block-encrypt function for the underlying cipher. |