1gnutls_hkdf_extract(3) gnutls gnutls_hkdf_extract(3)
2
3
4
6 gnutls_hkdf_extract - API function
7
9 #include <gnutls/crypto.h>
10
11 int gnutls_hkdf_extract(gnutls_mac_algorithm_t mac, const gnutls_da‐
12 tum_t * key, const gnutls_datum_t * salt, void * output);
13
15 gnutls_mac_algorithm_t mac
16 the mac algorithm used internally
17
18 const gnutls_datum_t * key
19 the initial keying material
20
21 const gnutls_datum_t * salt
22 the optional salt
23
24 void * output
25 the output value of the extract operation
26
28 This function will derive a fixed-size key using the HKDF-Extract func‐
29 tion as defined in RFC 5869.
30
32 Zero or a negative error code on error.
33
35 3.6.13
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: https://www.gnutls.org
40
41
43 Copyright © 2001- Free Software Foundation, Inc., and others.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright no‐
46 tice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 https://www.gnutls.org/manual/
54
55gnutls 3.7.8 gnutls_hkdf_extract(3)