1gnutls_x509_privkey_import_gost_raw(3g)nutlgsnutls_x509_privkey_import_gost_raw(3)
2
3
4

NAME

6       gnutls_x509_privkey_import_gost_raw - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int    gnutls_x509_privkey_import_gost_raw(gnutls_x509_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

ARGUMENTS

17       gnutls_x509_privkey_t key
18                   The data to store the parsed key
19
20       gnutls_ecc_curve_t curve
21                   holds 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       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

DESCRIPTION

39       This function will convert the given GOST private key's  parameters  to
40       the  native gnutls_x509_privkey_t format.  The output will be stored in
41       key .   digest should be one of  GNUTLS_DIG_GOSR_94,  GNUTLS_DIG_STREE‐
42       BOG_256   or   GNUTLS_DIG_STREEBOG_512.    If    paramset   is  set  to
43       GNUTLS_GOST_PARAMSET_UNKNOWN default one will be selected depending on
44        digest .
45

NOTE

47       parameters should be stored with least significant byte first. On  ver‐
48       sion 3.6.3 big-endian format was used incorrectly.
49

RETURNS

51       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
52       error value.
53

SINCE

55       3.6.3
56

REPORTING BUGS

58       Report bugs to <bugs@gnutls.org>.
59       Home page: http://www.gnutls.org
60
61
63       Copyright © 2001-2018 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

SEE ALSO

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       http://www.gnutls.org/manual/
74
75gnutls                               3.6.g5nutls_x509_privkey_import_gost_raw(3)
Impressum