| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_decode_gost_rs_value} (const gnutls_datum_t * @var{sig_value}, gnutls_datum_t * @var{r}, gnutls_datum_t * @var{s}) |
| 6 |
@var{sig_value}: will holds a GOST signature according to RFC 4491 section 2.2.2 |
| 7 |
|
| 8 |
@var{r}: will contain the r value |
| 9 |
|
| 10 |
@var{s}: will contain the s value |
| 11 |
|
| 12 |
This function will decode the provided @code{sig_value} , into @code{r} and @code{s} elements. |
| 13 |
See RFC 4491 section 2.2.2 for the format of signature value. |
| 14 |
|
| 15 |
The output values may be padded with a zero byte to prevent them |
| 16 |
from being interpreted as negative values. The value |
| 17 |
should be deallocated using @code{gnutls_free()} . |
| 18 |
|
| 19 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise |
| 20 |
an error code is returned. |
| 21 |
|
| 22 |
@strong{Since:} 3.6.0 |
| 23 |
@end deftypefun |