1gnutls_pubkey_import_gost_raw(3) gnutls gnutls_pubkey_import_gost_raw(3)
2
3
4
6 gnutls_pubkey_import_gost_raw - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_pubkey_import_gost_raw(gnutls_pubkey_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);
15
17 gnutls_pubkey_t key
18 The structure to store the parsed 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 parameters 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
36 This function will convert the given GOST public key's parameters to a
37 gnutls_pubkey_t. The output will be stored in key . digest should
38 be one of GNUTLS_DIG_GOSR_94, GNUTLS_DIG_STREEBOG_256 or
39 GNUTLS_DIG_STREEBOG_512. If paramset is set to GNUTLS_GOST_PARAM‐
40 SET_UNKNOWN default one will be selected depending on digest .
41
43 parameters should be stored with least significant byte first. On ver‐
44 sion 3.6.3 big-endian format was used incorrectly.
45
47 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
48 error value.
49
51 3.6.3
52
54 Report bugs to <bugs@gnutls.org>.
55 Home page: http://www.gnutls.org
56
57
59 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
60 Copying and distribution of this file, with or without modification,
61 are permitted in any medium without royalty provided the copyright
62 notice and this notice are preserved.
63
65 The full documentation for gnutls is maintained as a Texinfo manual.
66 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
67 visit
68
69 http://www.gnutls.org/manual/
70
71gnutls 3.6.5 gnutls_pubkey_import_gost_raw(3)