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/compat.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 <bugs@gnutls.org>.
35 Home page: http://www.gnutls.org
36
37
39 Copyright © 2001-2014 Free Software Foundation, Inc..
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
47 visit
48
49 http://www.gnutls.org/manual/
50
51gnutls 3.3.29 gnutls_rsa_params_generate2(3)