1gnutls_rsa_params_generate2(3) gnutls gnutls_rsa_params_generate2(3)
2
3
4
6 gnutls_rsa_params_generate2 - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_rsa_params_generate2(gnutls_rsa_params_t params, unsigned
12 int bits);
13
15 gnutls_rsa_params_t params
16 The structure where the parameters will be stored
17
18 unsigned int bits
19 is the prime's number of bits
20
22 This function will generate new temporary RSA parameters for use in
23 RSA-EXPORT ciphersuites. This function is normally slow.
24
25 Note that if the parameters are to be used in export cipher suites the
26 bits value should be 512 or less. Also note that the generation of new
27 RSA parameters is only useful to servers. Clients use the parameters
28 sent by the server, thus it's no use calling this in client side.
29
31 GNUTLS_E_SUCCESS on success, or an negative error code.
32
34 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
35 http://www.gnu.org/software/gnutls/ General help using GNU software:
36 http://www.gnu.org/gethelp/
37
39 Copyright © 2008 Free Software Foundation.
40 Copying and distribution of this file, with or without modification,
41 are permitted in any medium without royalty provided the copyright
42 notice and this notice are preserved.
43
45 The full documentation for gnutls is maintained as a Texinfo manual.
46 If the info and gnutls programs are properly installed at your site,
47 the command
48
49 info gnutls
50
51 should give you access to the complete manual.
52
53
54
55gnutls 2.12.6.1 gnutls_rsa_params_generate2(3)