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

Name

Description

ctx

HMAC context to finalize.

md

Output buffer for the MAC.

len

Receives the MAC length in bytes; may be NULL.

Created with MrDocs