| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pubkey_export_gost_raw2} (gnutls_pubkey_t @var{key}, gnutls_ecc_curve_t * @var{curve}, gnutls_digest_algorithm_t * @var{digest}, gnutls_gost_paramset_t * @var{paramset}, gnutls_datum_t * @var{x}, gnutls_datum_t * @var{y}, unsigned int @var{flags}) |
| 6 |
@var{key}: Holds the public key |
| 7 |
|
| 8 |
@var{curve}: will hold the curve (may be @code{NULL} ) |
| 9 |
|
| 10 |
@var{digest}: will hold the curve (may be @code{NULL} ) |
| 11 |
|
| 12 |
@var{paramset}: will hold the parameters id (may be @code{NULL} ) |
| 13 |
|
| 14 |
@var{x}: will hold the x-coordinate (may be @code{NULL} ) |
| 15 |
|
| 16 |
@var{y}: will hold the y-coordinate (may be @code{NULL} ) |
| 17 |
|
| 18 |
@var{flags}: flags from @code{gnutls_abstract_export_flags_t} |
| 19 |
|
| 20 |
This function will export the GOST public key's parameters found in |
| 21 |
the given key. The new parameters will be allocated using |
| 22 |
@code{gnutls_malloc()} and will be stored in the appropriate datum. |
| 23 |
|
| 24 |
@strong{Note:} parameters will be stored with least significant byte first. On |
| 25 |
version 3.6.3 this was incorrectly returned in big-endian format. |
| 26 |
|
| 27 |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, otherwise a negative error code. |
| 28 |
|
| 29 |
@strong{Since:} 3.6.3 |
| 30 |
@end deftypefun |