HMAC_Final

Finalize an HMAC computation and write the MAC.

Synopsis

Declared in <openssl/hmac.h>

[[deprecated]]
int
HMAC_Final(
    HMAC_CTX* ctx,
    unsigned char* md,
    unsigned int* len);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxHMAC context to finalize.
mdOutput buffer for the MAC.
lenReceives the MAC length in bytes; may be NULL.