[#CMAC_Final] = CMAC_Final :mrdocs: Finish a CMAC and write the authentication tag (deprecated). == Synopsis Declared in `<openssl/cmac.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int CMAC_Final( xref:CMAC_CTX.adoc[CMAC_CTX]* ctx, unsigned char* out, size_t* poutlen); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | CMAC context updated with CMAC_Update(). | *out* | Buffer for the MAC (cipher block size), or NULL to query length only. | *poutlen* | On entry, capacity of `out;` on success, bytes written (or required). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#