1gnutls_rsa_params_export_pkcs1(3) gnutls gnutls_rsa_params_export_pkcs1(3)
2
3
4
6 gnutls_rsa_params_export_pkcs1 - This function will export RSA params
7 to a pkcs1 structure
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_rsa_params_export_pkcs1(gnutls_rsa_params_t params,
13 gnutls_x509_crt_fmt_t format, unsigned char * params_data, size_t *
14 params_data_size);
15
17 gnutls_rsa_params_t params
18 Holds the RSA parameters
19
20 gnutls_x509_crt_fmt_t format
21 the format of output params. One of PEM or DER.
22
23 unsigned char * params_data
24 will contain a PKCS1 RSAPublicKey structure PEM or DER
25 encoded
26
27 size_t * params_data_size
28 holds the size of params_data (and will be replaced by the
29 actual size of parameters)
30
32 This function will export the given RSA parameters to a PKCS1 RSAPub‐
33 licKey structure. If the buffer provided is not long enough to hold the
34 output, then GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
35
36 If the structure is PEM encoded, it will have a header of "BEGIN RSA
37 PRIVATE KEY".
38
39 In case of failure a negative value will be returned, and 0 on success.
40
42 Report bugs to <bug-gnutls@gnu.org>.
43
45 Copyright © 2006 Free Software Foundation.
46 Permission is granted to make and distribute verbatim copies of this
47 manual provided the copyright notice and this permission notice are
48 preserved on all copies.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the info and gnutls programs are properly installed at your site,
53 the command
54
55 info gnutls
56
57 should give you access to the complete manual.
58
59
60
61gnutls 1.6.3 gnutls_rsa_params_export_pkcs1(3)