Finish a CMAC and write the authentication tag (deprecated).
Declared in <openssl/cmac.h>
[[deprecated]]
int
CMAC_Final(
CMAC_CTX* ctx,
unsigned char* out,
size_t* poutlen);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| 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). |