kcapi_md_setkey - set the key for the message digest handle
Contents
Arguments
handle
[in] cipher handle
key
[in] key buffer
keylen
[in] length of key buffer
Copyright
libkcapi Manual 1.5.0 April 2024 KCAPI_MD_SETKEY(3)
Description
With this function, the caller sets the key for subsequent hashing operations. This call is applicable
for keyed message digests.
After the caller provided the key, the caller may securely destroy the key as it is now maintained by the
kernel.
return 0 upon success; a negative errno-style error code if an error occurred
Name
kcapi_md_setkey - set the key for the message digest handle
Synopsis
intkcapi_md_setkey(structkcapi_handle*handle,constuint8_t*key,uint32_tkeylen);
