Blame doc/functions/gnutls_x509_privkey_export_gost_raw

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_privkey_export_gost_raw} (gnutls_x509_privkey_t @var{key}, gnutls_ecc_curve_t * @var{curve}, gnutls_digest_algorithm_t * @var{digest}, gnutls_gost_paramset_t * @var{paramset}, gnutls_datum_t * @var{x}, gnutls_datum_t * @var{y}, gnutls_datum_t * @var{k})
Packit aea12f
@var{key}: a key
Packit aea12f
Packit aea12f
@var{curve}: will hold the curve
Packit aea12f
Packit aea12f
@var{digest}: will hold the digest
Packit aea12f
Packit aea12f
@var{paramset}: will hold the GOST parameter set ID
Packit aea12f
Packit aea12f
@var{x}: will hold the x-coordinate
Packit aea12f
Packit aea12f
@var{y}: will hold the y-coordinate
Packit aea12f
Packit aea12f
@var{k}: will hold the private key
Packit aea12f
Packit aea12f
This function will export the GOST private key's parameters found
Packit aea12f
in the given structure. The new parameters will be allocated using
Packit aea12f
@code{gnutls_malloc()}  and will be stored in the appropriate datum.
Packit aea12f
Packit aea12f
@strong{Note:} parameters will be stored with least significant byte first. On
Packit aea12f
version 3.6.3 this was incorrectly returned in big-endian format.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error value.
Packit aea12f
Packit aea12f
@strong{Since:} 3.6.3
Packit aea12f
@end deftypefun