1gnutls_x509_privkey_import_rsa_raw2(3g)nutlgsnutls_x509_privkey_import_rsa_raw2(3)
2
3
4
6 gnutls_x509_privkey_import_rsa_raw2 - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_privkey_import_rsa_raw2(gnutls_x509_privkey_t key,
12 const gnutls_datum_t * m, const gnutls_datum_t * e, const
13 gnutls_datum_t * d, const gnutls_datum_t * p, const gnutls_datum_t * q,
14 const gnutls_datum_t * u, const gnutls_datum_t * e1, const
15 gnutls_datum_t * e2);
16
18 gnutls_x509_privkey_t key
19 The structure to store the parsed key
20
21 const gnutls_datum_t * m
22 holds the modulus
23
24 const gnutls_datum_t * e
25 holds the public exponent
26
27 const gnutls_datum_t * d
28 holds the private exponent
29
30 const gnutls_datum_t * p
31 holds the first prime (p)
32
33 const gnutls_datum_t * q
34 holds the second prime (q)
35
36 const gnutls_datum_t * u
37 holds the coefficient
38
39 const gnutls_datum_t * e1
40 holds e1 = d mod (p-1)
41
42 const gnutls_datum_t * e2
43 holds e2 = d mod (q-1)
44
46 This function will convert the given RSA raw parameters to the native
47 gnutls_x509_privkey_t format. The output will be stored in key.
48
50 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
51 value.
52
54 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
55 http://www.gnu.org/software/gnutls/ General help using GNU software:
56 http://www.gnu.org/gethelp/
57
59 Copyright © 2008 Free Software Foundation.
60 Copying and distribution of this file, with or without modification,
61 are permitted in any medium without royalty provided the copyright
62 notice and this notice are preserved.
63
65 The full documentation for gnutls is maintained as a Texinfo manual.
66 If the info and gnutls programs are properly installed at your site,
67 the command
68
69 info gnutls
70
71 should give you access to the complete manual.
72
73
74
75gnutls 2.12.6g.n1utls_x509_privkey_import_rsa_raw2(3)