1gnutls_rsa_params_export_pkcs1(3)   gnutls   gnutls_rsa_params_export_pkcs1(3)
2
3
4

NAME

6       gnutls_rsa_params_export_pkcs1 - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int      gnutls_rsa_params_export_pkcs1(gnutls_rsa_params_t     params,
12       gnutls_x509_crt_fmt_t format, unsigned char  *  params_data,  size_t  *
13       params_data_size);
14

ARGUMENTS

16       gnutls_rsa_params_t params
17                   Holds the RSA parameters
18
19       gnutls_x509_crt_fmt_t format
20                   the format of output params. One of PEM or DER.
21
22       unsigned char * params_data
23                   will  contain  a  PKCS1  RSAPublicKey  structure PEM or DER
24                   encoded
25
26       size_t * params_data_size
27                   holds the size of params_data (and will be replaced by  the
28                   actual size of parameters)
29

DESCRIPTION

31       This  function  will export the given RSA parameters to a PKCS1 RSAPub‐
32       licKey structure. If the buffer provided is not long enough to hold the
33       output, then GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
34
35       If  the  structure  is PEM encoded, it will have a header of "BEGIN RSA
36       PRIVATE KEY".
37

RETURNS

39       GNUTLS_E_SUCCESS on success, or an negative error code.
40

REPORTING BUGS

42       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
43       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
44       http://www.gnu.org/gethelp/
45
47       Copyright © 2008 Free Software Foundation.
48       Copying and distribution of this file, with  or  without  modification,
49       are  permitted  in  any  medium  without royalty provided the copyright
50       notice and this notice are preserved.
51

SEE ALSO

53       The full documentation for gnutls is maintained as  a  Texinfo  manual.
54       If  the  info  and gnutls programs are properly installed at your site,
55       the command
56
57              info gnutls
58
59       should give you access to the complete manual.
60
61
62
63gnutls                             2.12.6.1  gnutls_rsa_params_export_pkcs1(3)
Impressum