@deftypefun {int} {gnutls_privkey_import_ecc_raw} (gnutls_privkey_t @var{key}, gnutls_ecc_curve_t @var{curve}, const gnutls_datum_t * @var{x}, const gnutls_datum_t * @var{y}, const gnutls_datum_t * @var{k})
@var{key}: The key
@var{curve}: holds the curve
@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 elliptic curve parameters to the
native @code{gnutls_privkey_t} format. The output will be stored
in @code{key} .
In EdDSA curves the @code{y} parameter should be @code{NULL} and the @code{x} and @code{k} parameters
must be in the native format for the curve.
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
negative error value.
@strong{Since:} 3.0
@end deftypefun