1gnutls_decode_rs_value(3)           gnutls           gnutls_decode_rs_value(3)
2
3
4

NAME

6       gnutls_decode_rs_value - API function
7

SYNOPSIS

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

ARGUMENTS

15       const gnutls_datum_t * sig_value
16                   holds a Dss-Sig-Value DER or BER encoded structure
17
18       gnutls_datum_t * r
19                   will contain the r value
20
21       gnutls_datum_t * s
22                   will contain the s value
23

DESCRIPTION

25       This function will decode the provided  sig_value , into  r and  s ele‐
26       ments. The Dss-Sig-Value is used for DSA and ECDSA signatures.
27
28       The  output  values may be padded with a zero byte to prevent them from
29       being interpreted as negative values. The value should  be  deallocated
30       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_decode_rs_value(3)
Impressum