1gnutls_x509_privkey_export_gost_raw(3g)nutlgsnutls_x509_privkey_export_gost_raw(3)
2
3
4
6 gnutls_x509_privkey_export_gost_raw - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_privkey_export_gost_raw(gnutls_x509_privkey_t key,
12 gnutls_ecc_curve_t * curve, gnutls_digest_algorithm_t * digest,
13 gnutls_gost_paramset_t * paramset, gnutls_datum_t * x, gnutls_datum_t *
14 y, gnutls_datum_t * k);
15
17 gnutls_x509_privkey_t key
18 a key
19
20 gnutls_ecc_curve_t * curve
21 will hold the curve
22
23 gnutls_digest_algorithm_t * digest
24 will hold the digest
25
26 gnutls_gost_paramset_t * paramset
27 will hold the GOST parameter set ID
28
29 gnutls_datum_t * x
30 will hold the x-coordinate
31
32 gnutls_datum_t * y
33 will hold the y-coordinate
34
35 gnutls_datum_t * k
36 will hold the private key
37
39 This function will export the GOST private key's parameters found in
40 the given structure. The new parameters will be allocated using
41 gnutls_malloc() and will be stored in the appropriate datum.
42
44 parameters will be stored with least significant byte first. On version
45 3.6.3 this was incorrectly returned in big-endian format.
46
48 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
49 ror value.
50
52 3.6.3
53
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
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.g2nutls_x509_privkey_export_gost_raw(3)