KCAPI_MD_SETKEY(3) | Programming Interface | KCAPI_MD_SETKEY(3) |
kcapi_md_setkey - set the key for the message digest handle
int kcapi_md_setkey(struct kcapi_handle * handle, const uint8_t * key, uint32_t keylen);
handle
key
keylen
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
Stephan Mueller <smueller@chronox.de>
February 2022 | libkcapi Manual 1.4.0 |