Tizen 2.0 Release
[external/libgnutls26.git] / doc / manpages / gnutls_x509_privkey_import_rsa_raw2.3
1 .\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
2 .TH "gnutls_x509_privkey_import_rsa_raw2" 3 "2.12.6.1" "gnutls" "gnutls"
3 .SH NAME
4 gnutls_x509_privkey_import_rsa_raw2 \- API function
5 .SH SYNOPSIS
6 .B #include <gnutls/x509.h>
7 .sp
8 .BI "int gnutls_x509_privkey_import_rsa_raw2(gnutls_x509_privkey_t " key ", const gnutls_datum_t * " m ", const gnutls_datum_t * " e ", const gnutls_datum_t * " d ", const gnutls_datum_t * " p ", const gnutls_datum_t * " q ", const gnutls_datum_t * " u ", const gnutls_datum_t * " e1 ", const gnutls_datum_t * " e2 ");"
9 .SH ARGUMENTS
10 .IP "gnutls_x509_privkey_t key" 12
11 The structure to store the parsed key
12 .IP "const gnutls_datum_t * m" 12
13 holds the modulus
14 .IP "const gnutls_datum_t * e" 12
15 holds the public exponent
16 .IP "const gnutls_datum_t * d" 12
17 holds the private exponent
18 .IP "const gnutls_datum_t * p" 12
19 holds the first prime (p)
20 .IP "const gnutls_datum_t * q" 12
21 holds the second prime (q)
22 .IP "const gnutls_datum_t * u" 12
23 holds the coefficient
24 .IP "const gnutls_datum_t * e1" 12
25 holds e1 = d mod (p\-1)
26 .IP "const gnutls_datum_t * e2" 12
27 holds e2 = d mod (q\-1)
28 .SH "DESCRIPTION"
29 This function will convert the given RSA raw parameters to the
30 native \fBgnutls_x509_privkey_t\fP format.  The output will be stored in
31 \fIkey\fP.
32 .SH "RETURNS"
33 On success, \fBGNUTLS_E_SUCCESS\fP is returned, otherwise a
34 negative error value.
35 .SH "REPORTING BUGS"
36 Report bugs to <bug-gnutls@gnu.org>.
37 GnuTLS home page: http://www.gnu.org/software/gnutls/
38 General help using GNU software: http://www.gnu.org/gethelp/
39 .SH COPYRIGHT
40 Copyright \(co 2008 Free Software Foundation.
41 .br
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright
44 notice and this notice are preserved.
45 .SH "SEE ALSO"
46 The full documentation for
47 .B gnutls
48 is maintained as a Texinfo manual.  If the
49 .B info
50 and
51 .B gnutls
52 programs are properly installed at your site, the command
53 .IP
54 .B info gnutls
55 .PP
56 should give you access to the complete manual.