1gnutls_x509_privkey_import_rsa_raw2(3g)nutlgsnutls_x509_privkey_import_rsa_raw2(3)
2
3
4

NAME

6       gnutls_x509_privkey_import_rsa_raw2 - API function
7

SYNOPSIS

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  gnutls_da‐
13       tum_t  *  d,  const gnutls_datum_t * p, const gnutls_datum_t * q, const
14       gnutls_datum_t * u, const gnutls_datum_t * e1, const  gnutls_datum_t  *
15       e2);
16

ARGUMENTS

18       gnutls_x509_privkey_t key
19                   The data 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 (optional)
38
39       const gnutls_datum_t * e1
40                   holds e1 = d mod (p-1) (optional)
41
42       const gnutls_datum_t * e2
43                   holds e2 = d mod (q-1) (optional)
44

DESCRIPTION

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
48        key .
49

RETURNS

51       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative  er‐
52       ror value.
53

REPORTING BUGS

55       Report bugs to <bugs@gnutls.org>.
56       Home page: https://www.gnutls.org
57
58
60       Copyright © 2001- Free Software Foundation, Inc., and others.
61       Copying  and  distribution  of this file, with or without modification,
62       are permitted in any medium without royalty provided the copyright  no‐
63       tice and this notice are preserved.
64

SEE ALSO

66       The  full  documentation  for gnutls is maintained as a Texinfo manual.
67       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
68       visit
69
70       https://www.gnutls.org/manual/
71
72gnutls                               3.7.g8nutls_x509_privkey_import_rsa_raw2(3)
Impressum