Skip to content

crypto_evp_hmac()#

Syntax
crypto_evp_hmac( digestname, key, buffer var, digest var )

Returns#

Returns 1 on success or 0 if an invalid or unsupported “digestname” is specified.

Parameters#

Parameter Description
digestname an OpenSSL digest identifier, such as “sha256” or “md5”.
key The key to use for the HMAC calculation.
buffer The data that will be processed.
digest [output] The result of the HMAC function.