1gnutls_privkey_import_rsa_raw(3)    gnutls    gnutls_privkey_import_rsa_raw(3)
2
3
4

NAME

6       gnutls_privkey_import_rsa_raw - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int     gnutls_privkey_import_rsa_raw(gnutls_privkey_t    key,    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, const gnutls_datum_t * e1, const  gnutls_datum_t  *
15       e2);
16

ARGUMENTS

18       gnutls_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 (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_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
52       error value.
53

REPORTING BUGS

55       Report bugs to <bugs@gnutls.org>.
56       Home page: https://www.gnutls.org
57
58
60       Copyright © 2001-2019 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
63       notice 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.6.11    gnutls_privkey_import_rsa_raw(3)
Impressum