1gnutls_x509_privkey_generate(3)     gnutls     gnutls_x509_privkey_generate(3)
2
3
4

NAME

6       gnutls_x509_privkey_generate  -  This  function will generate a private
7       key
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int       gnutls_x509_privkey_generate(gnutls_x509_privkey_t       key,
13       gnutls_pk_algorithm_t algo, unsigned int bits, unsigned int flags);
14

ARGUMENTS

16       gnutls_x509_privkey_t key
17                   should contain a gnutls_x509_privkey_t structure
18
19       gnutls_pk_algorithm_t algo
20                   is one of RSA or DSA.
21
22       unsigned int bits
23                   the size of the modulus
24
25       unsigned int flags
26                   unused for now. Must be 0.
27

DESCRIPTION

29       This  function will generate a random private key. Note that this func‐
30       tion must be called on an empty private key.
31
32       Returns 0 on success or a negative value on error.
33

REPORTING BUGS

35       Report bugs to <bug-gnutls@gnu.org>.
36
38       Copyright © 2006 Free Software Foundation.
39       Permission is granted to make and distribute verbatim  copies  of  this
40       manual  provided  the  copyright  notice and this permission notice are
41       preserved on all copies.
42

SEE ALSO

44       The full documentation for gnutls is maintained as  a  Texinfo  manual.
45       If  the  info  and gnutls programs are properly installed at your site,
46       the command
47
48              info gnutls
49
50       should give you access to the complete manual.
51
52
53
54gnutls                               1.6.3     gnutls_x509_privkey_generate(3)
Impressum