Blame doc/functions/gnutls_decode_rs_value
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_decode_rs_value} (const gnutls_datum_t * @var{sig_value}, gnutls_datum_t * @var{r}, gnutls_datum_t * @var{s})
|
|
Packit Service |
4684c1 |
@var{sig_value}: holds a Dss-Sig-Value DER or BER encoded structure
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{r}: will contain the r value
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{s}: will contain the s value
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will decode the provided @code{sig_value} ,
|
|
Packit Service |
4684c1 |
into @code{r} and @code{s} elements. The Dss-Sig-Value is used for DSA and ECDSA
|
|
Packit Service |
4684c1 |
signatures.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The output values may be padded with a zero byte to prevent them
|
|
Packit Service |
4684c1 |
from being interpreted as negative values. The value
|
|
Packit Service |
4684c1 |
should be deallocated using @code{gnutls_free()} .
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise
|
|
Packit Service |
4684c1 |
an error code is returned.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 3.6.0
|
|
Packit Service |
4684c1 |
@end deftypefun
|