| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_privkey_export_dh_raw} (gnutls_privkey_t @var{key}, gnutls_dh_params_t @var{params}, gnutls_datum_t * @var{y}, gnutls_datum_t * @var{x}, unsigned int @var{flags}) |
| 6 |
@var{key}: Holds the private key |
| 7 |
|
| 8 |
@var{params}: will hold the Diffie-Hellman parameters (optional), must be initialized |
| 9 |
|
| 10 |
@var{y}: will hold the y (optional) |
| 11 |
|
| 12 |
@var{x}: will hold the x |
| 13 |
|
| 14 |
@var{flags}: flags from @code{gnutls_abstract_export_flags_t} |
| 15 |
|
| 16 |
This function will export the Diffie-Hellman private key parameter |
| 17 |
found in the given @code{gnutls_privkey_t} structure. The new parameter |
| 18 |
will be allocated using @code{gnutls_malloc()} and will be stored in the |
| 19 |
appropriate datum. |
| 20 |
|
| 21 |
To retrieve other parameters common in both public key and private |
| 22 |
key, use @code{gnutls_dh_params_export_raw()} . |
| 23 |
|
| 24 |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, otherwise a negative error code. |
| 25 |
|
| 26 |
@strong{Since:} 3.8.2 |
| 27 |
@end deftypefun |