Blame doc/functions/gnutls_privkey_import_ecc_raw

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@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})
Packit Service 4684c1
@var{key}: The key
Packit Service 4684c1
Packit Service 4684c1
@var{curve}: holds the curve
Packit Service 4684c1
Packit Service 4684c1
@var{x}: holds the x-coordinate
Packit Service 4684c1
Packit Service 4684c1
@var{y}: holds the y-coordinate
Packit Service 4684c1
Packit Service 4684c1
@var{k}: holds the k (private key)
Packit Service 4684c1
Packit Service 4684c1
This function will convert the given elliptic curve parameters to the
Packit Service 4684c1
native @code{gnutls_privkey_t}  format.  The output will be stored
Packit Service 4684c1
in  @code{key} .
Packit Service 4684c1
Packit Service 4684c1
In EdDSA curves the  @code{y} parameter should be @code{NULL}  and the  @code{x} and  @code{k} parameters
Packit Service 4684c1
must be in the native format for the curve.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit Service 4684c1
negative error value.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 3.0
Packit Service 4684c1
@end deftypefun