1gnutls_dh_params_generate2(3)       gnutls       gnutls_dh_params_generate2(3)
2
3
4

NAME

6       gnutls_dh_params_generate2 - generate new DH parameters
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_dh_params_generate2(gnutls_dh_params_t params, unsigned int
12       bits);
13

ARGUMENTS

15       gnutls_dh_params_t params
16                   Is the structure that the DH parameters will be stored
17
18       unsigned int bits
19                   is the prime's number of bits
20

DESCRIPTION

22       This function will generate a new pair of prime and generator  for  use
23       in  the  Diffie-Hellman  key exchange. The new parameters will be allo‐
24       cated using gnutls_malloc() and  will  be  stored  in  the  appropriate
25       datum.  This function is normally slow.
26
27       Note  that  the  bits  value  should be one of 768, 1024, 2048, 3072 or
28       4096.  Also note that the DH parameters are  only  useful  to  servers.
29       Since  clients use the parameters sent by the server, it's of no use to
30       call this in client side.
31

RETURNS

33       On success, GNUTLS_E_SUCCESS (zero) is  returned,  otherwise  an  error
34       code is returned.
35

REPORTING BUGS

37       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
38       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
39       http://www.gnu.org/gethelp/
40
42       Copyright © 2008 Free Software Foundation.
43       Copying  and  distribution  of this file, with or without modification,
44       are permitted in any medium  without  royalty  provided  the  copyright
45       notice and this notice are preserved.
46

SEE ALSO

48       The  full  documentation  for gnutls is maintained as a Texinfo manual.
49       If the info and gnutls programs are properly installed  at  your  site,
50       the command
51
52              info gnutls
53
54       should give you access to the complete manual.
55
56
57
58gnutls                               2.8.6       gnutls_dh_params_generate2(3)
Impressum