1gnutls_decode_gost_rs_value(3) gnutls gnutls_decode_gost_rs_value(3)
2
3
4
6 gnutls_decode_gost_rs_value - API function
7
9 #include <gnutls/crypto.h>
10
11 int gnutls_decode_gost_rs_value(const gnutls_datum_t * sig_value,
12 gnutls_datum_t * r, gnutls_datum_t * s);
13
15 const gnutls_datum_t * sig_value
16 will holds a GOST signature according to RFC 4491 section
17 2.2.2
18
19 gnutls_datum_t * r
20 will contain the r value
21
22 gnutls_datum_t * s
23 will contain the s value
24
26 This function will decode the provided sig_value , into r and s ele‐
27 ments. See RFC 4491 section 2.2.2 for the format of signature value.
28
29 The output values may be padded with a zero byte to prevent them from
30 being interpreted as negative values. The value should be deallocated
31 using gnutls_free().
32
34 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an error code
35 is returned.
36
38 3.6.0
39
41 Report bugs to <bugs@gnutls.org>.
42 Home page: https://www.gnutls.org
43
44
46 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright
49 notice and this notice are preserved.
50
52 The full documentation for gnutls is maintained as a Texinfo manual.
53 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
54 visit
55
56 https://www.gnutls.org/manual/
57
58gnutls 3.6.8 gnutls_decode_gost_rs_value(3)