1KCAPI_AEAD_SETKEY(3) Programming Interface KCAPI_AEAD_SETKEY(3)
2
3
4
6 kcapi_aead_setkey - set the key for the AEAD handle
7
9 int kcapi_aead_setkey(struct kcapi_handle * handle,
10 const uint8_t * key, 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 encryption
24 or decryption operations.
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.5 January 2020 KCAPI_AEAD_SETKEY(3)