1gnutls_rsa_params_import_raw(3) gnutls gnutls_rsa_params_import_raw(3)
2
3
4
6 gnutls_rsa_params_import_raw - set the RSA parameters
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_rsa_params_import_raw(gnutls_rsa_params_t rsa_params, const
12 gnutls_datum_t * m, const gnutls_datum_t * e, const gnutls_datum_t * d,
13 const gnutls_datum_t * p, const gnutls_datum_t * q, const
14 gnutls_datum_t * u);
15
17 gnutls_rsa_params_t rsa_params
18 Is a structure will hold the parameters
19
20 const gnutls_datum_t * m
21 holds the modulus
22
23 const gnutls_datum_t * e
24 holds the public exponent
25
26 const gnutls_datum_t * d
27 holds the private exponent
28
29 const gnutls_datum_t * p
30 holds the first prime (p)
31
32 const gnutls_datum_t * q
33 holds the second prime (q)
34
35 const gnutls_datum_t * u
36 holds the coefficient
37
39 This function will replace the parameters in the given structure. The
40 new parameters should be stored in the appropriate gnutls_datum.
41
43 GNUTLS_E_SUCCESS on success, or an negative error code.
44
46 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
47 http://www.gnu.org/software/gnutls/ General help using GNU software:
48 http://www.gnu.org/gethelp/
49
51 Copyright © 2008 Free Software Foundation.
52 Copying and distribution of this file, with or without modification,
53 are permitted in any medium without royalty provided the copyright
54 notice and this notice are preserved.
55
57 The full documentation for gnutls is maintained as a Texinfo manual.
58 If the info and gnutls programs are properly installed at your site,
59 the command
60
61 info gnutls
62
63 should give you access to the complete manual.
64
65
66
67gnutls 2.8.6 gnutls_rsa_params_import_raw(3)