1gnutls_rsa_params_export_pkcs1(3) gnutls gnutls_rsa_params_export_pkcs1(3)
2
3
4
6 gnutls_rsa_params_export_pkcs1 - API function
7
9 #include <gnutls/compat.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
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 RSAPrivateKey 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
31 This function will export the given RSA parameters to a PKCS1 RSAPri‐
32 vateKey structure. If the buffer provided is not long enough to hold
33 the 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
39 GNUTLS_E_SUCCESS on success, or an negative error code.
40
42 Report bugs to <bugs@gnutls.org>.
43 Home page: http://www.gnutls.org
44
45
47 Copyright © 2001-2014 Free Software Foundation, Inc..
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
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
55 visit
56
57 http://www.gnutls.org/manual/
58
59gnutls 3.3.29 gnutls_rsa_params_export_pkcs1(3)