summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_decode_rs_value
diff options
context:
space:
mode:
Diffstat (limited to 'doc/functions/gnutls_decode_rs_value')
-rw-r--r--doc/functions/gnutls_decode_rs_value24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/functions/gnutls_decode_rs_value b/doc/functions/gnutls_decode_rs_value
new file mode 100644
index 0000000..055e17b
--- /dev/null
+++ b/doc/functions/gnutls_decode_rs_value
@@ -0,0 +1,24 @@
+
+
+
+
+@deftypefun {int} {gnutls_decode_rs_value} (const gnutls_datum_t * @var{sig_value}, gnutls_datum_t * @var{r}, gnutls_datum_t * @var{s})
+@var{sig_value}: holds a Dss-Sig-Value DER or BER encoded structure
+
+@var{r}: will contain the r value
+
+@var{s}: will contain the s value
+
+This function will decode the provided @code{sig_value} ,
+into @code{r} and @code{s} elements. The Dss-Sig-Value is used for DSA and ECDSA
+signatures.
+
+The output values may be padded with a zero byte to prevent them
+from being interpreted as negative values. The value
+should be deallocated using @code{gnutls_free()} .
+
+@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise
+an error code is returned.
+
+@strong{Since:} 3.6.0
+@end deftypefun