1gnutls_hkdf_expand(3) gnutls gnutls_hkdf_expand(3)
2
3
4
6 gnutls_hkdf_expand - API function
7
9 #include <gnutls/crypto.h>
10
11 int gnutls_hkdf_expand(gnutls_mac_algorithm_t mac, const gnutls_datum_t
12 * key, const gnutls_datum_t * info, void * output, size_t length);
13
15 gnutls_mac_algorithm_t mac
16 the mac algorithm used internally
17
18 const gnutls_datum_t * key
19 the pseudorandom key created with HKDF-Extract
20
21 const gnutls_datum_t * info
22 the optional informational data
23
24 void * output
25 the output value of the expand operation
26
27 size_t length
28 the desired length of the output key
29
31 This function will derive a variable length keying material from the
32 pseudorandom key using the HKDF-Expand function as defined in RFC 5869.
33
35 Zero or a negative error code on error.
36
38 3.6.13
39
41 Report bugs to <bugs@gnutls.org>.
42 Home page: https://www.gnutls.org
43
44
46 Copyright © 2001- Free Software Foundation, Inc., and others.
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright
49 notice and this notice are preserved.
50
52 The full documentation for gnutls is maintained as a Texinfo manual.
53 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
54 visit
55
56 https://www.gnutls.org/manual/
57
58gnutls 3.6.15 gnutls_hkdf_expand(3)