blob: 329cf1cf33db26981265d6d3deb3fcab8d9f09cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
@deftypefun {int} {gnutls_hkdf_expand} (gnutls_mac_algorithm_t @var{mac}, const gnutls_datum_t * @var{key}, const gnutls_datum_t * @var{info}, void * @var{output}, size_t @var{length})
@var{mac}: the mac algorithm used internally
@var{key}: the pseudorandom key created with HKDF-Extract
@var{info}: the optional informational data
@var{output}: the output value of the expand operation
@var{length}: the desired length of the output key
This function will derive a variable length keying material from
the pseudorandom key using the HKDF-Expand function as defined in
RFC 5869.
@strong{Returns:} Zero or a negative error code on error.
@strong{Since:} 3.6.13
@end deftypefun
|