1KCAPI_MD_SETKEY(3) Programming Interface KCAPI_MD_SETKEY(3)
2
3
4
6 kcapi_md_setkey - set the key for the message digest handle
7
9 int kcapi_md_setkey(struct kcapi_handle * handle, const uint8_t * key,
10 uint32_t keylen);
11
13 handle
14 [in] cipher handle
15
16 key
17 [in] key buffer
18
19 keylen
20 [in] length of key buffer
21
23 With this function, the caller sets the key for subsequent hashing
24 operations. This call is applicable for keyed message digests.
25
26 After the caller provided the key, the caller may securely destroy the
27 key as it is now maintained by the kernel.
28
29 return 0 upon success; a negative errno-style error code if an error
30 occurred
31
33 Stephan Mueller <smueller@chronox.de>
34 Author.
35
37libkcapi Manual 1.1.4 February 2019 KCAPI_MD_SETKEY(3)