kcapi_md_hmac_sha384 - HMAC SHA-384 keyed message digest on one buffer
Contents
Arguments
key
[in] buffer with HMAC key
keylen
[in] length of HMAC key buffer
in
[in] buffer with input data
inlen
[in] length of input buffer
out
[out] buffer for message digest
outlen
[in] length of out
Copyright
libkcapi Manual 1.5.0 April 2024 KCAPI_MD_HMAC_SHA384(3)
Description
With this one-shot convenience function, a keyed message digest of the given buffer is generated. The
output buffer must be allocated by the caller and have at least the length of the message digest size for
the chosen keyed message digest.
return size of message digest upon success; -EIO - data cannot be obtained; -ENOMEM - buffer is too small
for the complete message digest, the buffer is filled with the truncated message digest
Name
kcapi_md_hmac_sha384 - HMAC SHA-384 keyed message digest on one buffer
Synopsis
ssize_tkcapi_md_hmac_sha384(constuint8_t*key,uint32_tkeylen,constuint8_t*in,size_tinlen,uint8_t*out,size_toutlen);
