| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_privkey_export_ecc_raw} (gnutls_privkey_t @var{key}, gnutls_ecc_curve_t * @var{curve}, gnutls_datum_t * @var{x}, gnutls_datum_t * @var{y}, gnutls_datum_t * @var{k}) |
| 6 |
@var{key}: Holds the public key |
| 7 |
|
| 8 |
@var{curve}: will hold the curve |
| 9 |
|
| 10 |
@var{x}: will hold the x-coordinate |
| 11 |
|
| 12 |
@var{y}: will hold the y-coordinate |
| 13 |
|
| 14 |
@var{k}: will hold the private key |
| 15 |
|
| 16 |
This function will export the ECC private key's parameters found |
| 17 |
in the given structure. The new parameters will be allocated using |
| 18 |
@code{gnutls_malloc()} and will be stored in the appropriate datum. |
| 19 |
|
| 20 |
In EdDSA curves the @code{y} parameter will be @code{NULL} and the other parameters |
| 21 |
will be in the native format for the curve. |
| 22 |
|
| 23 |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, otherwise a negative error code. |
| 24 |
|
| 25 |
@strong{Since:} 3.3.0 |
| 26 |
@end deftypefun |