| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_privkey_export_ecc_raw2} (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}, unsigned int @var{flags}) |
| 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 |
@var{flags}: flags from @code{gnutls_abstract_export_flags_t} |
| 17 |
|
| 18 |
This function will export the ECC private key's parameters found |
| 19 |
in the given structure. The new parameters will be allocated using |
| 20 |
@code{gnutls_malloc()} and will be stored in the appropriate datum. |
| 21 |
|
| 22 |
In EdDSA curves the @code{y} parameter will be @code{NULL} and the other parameters |
| 23 |
will be in the native format for the curve. |
| 24 |
|
| 25 |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, otherwise a negative error code. |
| 26 |
|
| 27 |
@strong{Since:} 3.6.0 |
| 28 |
@end deftypefun |