| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pubkey_import_ecc_raw} (gnutls_pubkey_t @var{key}, gnutls_ecc_curve_t @var{curve}, const gnutls_datum_t * @var{x}, const gnutls_datum_t * @var{y}) |
| 6 |
@var{key}: The structure to store the parsed 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 |
This function will convert the given elliptic curve parameters to a |
| 15 |
@code{gnutls_pubkey_t} . The output will be stored in @code{key} . |
| 16 |
|
| 17 |
In EdDSA curves the @code{y} parameter should be @code{NULL} and the @code{x} parameter must |
| 18 |
be the value in the native format for the curve. |
| 19 |
|
| 20 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 21 |
negative error value. |
| 22 |
|
| 23 |
@strong{Since:} 3.0 |
| 24 |
@end deftypefun |