Debian Codegraph @

doc/functions/gnutls_privkey_import_ecc_raw

raw
1
2
3
4
5 @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})
6 @var{key}: The key
7
8 @var{curve}: holds the curve
9
10 @var{x}: holds the x-coordinate
11
12 @var{y}: holds the y-coordinate
13
14 @var{k}: holds the k (private key)
15
16 This function will convert the given elliptic curve parameters to the
17 native @code{gnutls_privkey_t} format. The output will be stored
18 in @code{key} .
19
20 In EdDSA curves the @code{y} parameter should be @code{NULL} and the @code{x} and @code{k} parameters
21 must be in the native format for the curve.
22
23 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
24 negative error value.
25
26 @strong{Since:} 3.0
27 @end deftypefun