Blame doc/functions/gnutls_x509_privkey_export_rsa_raw

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_privkey_export_rsa_raw} (gnutls_x509_privkey_t @var{key}, gnutls_datum_t * @var{m}, gnutls_datum_t * @var{e}, gnutls_datum_t * @var{d}, gnutls_datum_t * @var{p}, gnutls_datum_t * @var{q}, gnutls_datum_t * @var{u})
Packit aea12f
@var{key}: a key
Packit aea12f
Packit aea12f
@var{m}: will hold the modulus
Packit aea12f
Packit aea12f
@var{e}: will hold the public exponent
Packit aea12f
Packit aea12f
@var{d}: will hold the private exponent
Packit aea12f
Packit aea12f
@var{p}: will hold the first prime (p)
Packit aea12f
Packit aea12f
@var{q}: will hold the second prime (q)
Packit aea12f
Packit aea12f
@var{u}: will hold the coefficient
Packit aea12f
Packit aea12f
This function will export the RSA private key's parameters found
Packit aea12f
in the given structure. The new parameters will be allocated using
Packit aea12f
@code{gnutls_malloc()}  and will be stored in the appropriate datum.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error value.
Packit aea12f
@end deftypefun