@deftypefun {int} {gnutls_x509_privkey_import_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}, const gnutls_datum_t * @var{x}, const gnutls_datum_t * @var{y}, const gnutls_datum_t * @var{k}) @var{key}: The data to store the parsed key @var{curve}: holds the curve @var{digest}: will hold the digest @var{paramset}: will hold the GOST parameter set ID @var{x}: holds the x-coordinate @var{y}: holds the y-coordinate @var{k}: holds the k (private key) This function will convert the given GOST private key's parameters to the native @code{gnutls_x509_privkey_t} format. The output will be stored in @code{key} . @code{digest} should be one of GNUTLS_DIG_GOSR_94, GNUTLS_DIG_STREEBOG_256 or GNUTLS_DIG_STREEBOG_512. If @code{paramset} is set to GNUTLS_GOST_PARAMSET_UNKNOWN default one will be selected depending on @code{digest} . @strong{Note:} parameters should be stored with least significant byte first. On version 3.6.3 big-endian format was used incorrectly. @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a negative error value. @strong{Since:} 3.6.3 @end deftypefun