1gnutls_pbkdf2(3)                    gnutls                    gnutls_pbkdf2(3)
2
3
4

NAME

6       gnutls_pbkdf2 - API function
7

SYNOPSIS

9       #include <gnutls/crypto.h>
10
11       int  gnutls_pbkdf2(gnutls_mac_algorithm_t  mac,  const gnutls_datum_t *
12       key, const gnutls_datum_t * salt, unsigned iter_count, void  *  output,
13       size_t length);
14

ARGUMENTS

16       gnutls_mac_algorithm_t mac
17                   the mac algorithm used internally
18
19       const gnutls_datum_t * key
20                   the initial keying material
21
22       const gnutls_datum_t * salt
23                   the salt
24
25       unsigned iter_count
26                   the iteration count
27
28       void * output
29                   the output value
30
31       size_t length
32                   the desired length of the output key
33

DESCRIPTION

35       This  function  will  derive  a  variable length keying material from a
36       password according to PKCS 5 PBKDF2.
37

RETURNS

39       Zero or a negative error code on error.
40

SINCE

42       3.6.13
43

REPORTING BUGS

45       Report bugs to <bugs@gnutls.org>.
46       Home page: https://www.gnutls.org
47
48
50       Copyright © 2001-2023 Free Software Foundation, Inc., and others.
51       Copying and distribution of this file, with  or  without  modification,
52       are  permitted in any medium without royalty provided the copyright no‐
53       tice and this notice are preserved.
54

SEE ALSO

56       The full documentation for gnutls is maintained as  a  Texinfo  manual.
57       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
58       visit
59
60       https://www.gnutls.org/manual/
61
62gnutls                               3.8.2                    gnutls_pbkdf2(3)
Impressum