CMAC_Final

Finish a CMAC and write the authentication tag (deprecated).

Synopsis

Declared in <openssl/cmac.h>

[[deprecated]]
int
CMAC_Final(
    CMAC_CTX* ctx,
    unsigned char* out,
    size_t* poutlen);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxCMAC context updated with CMAC_Update().
outBuffer for the MAC (cipher block size), or NULL to query length only.
poutlenOn entry, capacity of out; on success, bytes written (or required).