1gnutls_encode_gost_rs_value(3)      gnutls      gnutls_encode_gost_rs_value(3)
2
3
4

NAME

6       gnutls_encode_gost_rs_value - API function
7

SYNOPSIS

9       #include <gnutls/crypto.h>
10
11       int   gnutls_encode_gost_rs_value(gnutls_datum_t   *  sig_value,  const
12       gnutls_datum_t * r, const gnutls_datum_t  * s);
13

ARGUMENTS

15       gnutls_datum_t * sig_value
16                   will hold a GOST signature according to  RFC  4491  section
17                   2.2.2
18
19       const gnutls_datum_t * r
20                   must contain the r value
21
22       const gnutls_datum_t  * s
23                   must contain the s value
24

DESCRIPTION

26       This function will encode the provided r and s values, into binary rep‐
27       resentation according to RFC  4491  section  2.2.2,  used  for  GOST  R
28       34.10-2001 (and thus also for GOST R 34.10-2012) signatures.
29
30       The output value should be deallocated using gnutls_free().
31

RETURNS

33       On  success,  GNUTLS_E_SUCCESS (0) is returned, otherwise an error code
34       is returned.
35

SINCE

37       3.6.0
38

REPORTING BUGS

40       Report bugs to <bugs@gnutls.org>.
41       Home page: http://www.gnutls.org
42
43
45       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
46       Copying and distribution of this file, with  or  without  modification,
47       are  permitted  in  any  medium  without royalty provided the copyright
48       notice and this notice are preserved.
49

SEE ALSO

51       The full documentation for gnutls is maintained as  a  Texinfo  manual.
52       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
53       visit
54
55       http://www.gnutls.org/manual/
56
57gnutls                               3.6.5      gnutls_encode_gost_rs_value(3)
Impressum