1gnutls_dh_params_generate2(3) gnutls gnutls_dh_params_generate2(3)
2
3
4
6 gnutls_dh_params_generate2 - This function will generate new DH parame‐
7 ters
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_dh_params_generate2(gnutls_dh_params_t params, unsigned int
13 bits);
14
16 gnutls_dh_params_t params
17 Is the structure that the DH parameters will be stored
18
19 unsigned int bits
20 is the prime's number of bits
21
23 This function will generate a new pair of prime and generator for use
24 in the Diffie-Hellman key exchange. The new parameters will be allo‐
25 cated using gnutls_malloc() and will be stored in the appropriate
26 datum. This function is normally slow.
27
28 Note that the bits value should be one of 768, 1024, 2048, 3072 or
29 4096. Also note that the DH parameters are only useful to servers.
30 Since clients use the parameters sent by the server, it's of no use to
31 call this in client side.
32
34 Report bugs to <bug-gnutls@gnu.org>.
35
37 Copyright © 2006 Free Software Foundation.
38 Permission is granted to make and distribute verbatim copies of this
39 manual provided the copyright notice and this permission notice are
40 preserved on all copies.
41
43 The full documentation for gnutls is maintained as a Texinfo manual.
44 If the info and gnutls programs are properly installed at your site,
45 the command
46
47 info gnutls
48
49 should give you access to the complete manual.
50
51
52
53gnutls 1.6.3 gnutls_dh_params_generate2(3)