1gnutls_privkey_import_gost_raw(3) gnutls gnutls_privkey_import_gost_raw(3)
2
3
4
6 gnutls_privkey_import_gost_raw - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_privkey_import_gost_raw(gnutls_privkey_t key,
12 gnutls_ecc_curve_t curve, gnutls_digest_algorithm_t digest,
13 gnutls_gost_paramset_t paramset, const gnutls_datum_t * x, const
14 gnutls_datum_t * y, const gnutls_datum_t * k);
15
17 gnutls_privkey_t key
18 The key
19
20 gnutls_ecc_curve_t curve
21 holds the curve
22
23 gnutls_digest_algorithm_t digest
24 holds the digest
25
26 gnutls_gost_paramset_t paramset
27 holds the GOST parameter set ID
28
29 const gnutls_datum_t * x
30 holds the x-coordinate
31
32 const gnutls_datum_t * y
33 holds the y-coordinate
34
35 const gnutls_datum_t * k
36 holds the k (private key)
37
39 This function will convert the given GOST private key's parameters to
40 the native gnutls_privkey_t format. The output will be stored in key
41 . digest should be one of GNUTLS_DIG_GOSR_94, GNUTLS_DIG_STREEBOG_256
42 or GNUTLS_DIG_STREEBOG_512. If paramset is set to GNUTLS_GOST_PARAM‐
43 SET_UNKNOWN default one will be selected depending on
44 digest .
45
47 parameters should be stored with least significant byte first. On ver‐
48 sion 3.6.3 big-endian format was used incorrectly.
49
51 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
52 error value.
53
55 3.6.3
56
58 Report bugs to <bugs@gnutls.org>.
59 Home page: https://www.gnutls.org
60
61
63 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
64 Copying and distribution of this file, with or without modification,
65 are permitted in any medium without royalty provided the copyright
66 notice and this notice are preserved.
67
69 The full documentation for gnutls is maintained as a Texinfo manual.
70 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
71 visit
72
73 https://www.gnutls.org/manual/
74
75gnutls 3.6.8 gnutls_privkey_import_gost_raw(3)