Debian Codegraph @

doc/functions/gnutls_dh_params_import_raw3

raw
1
2
3
4
5 @deftypefun {int} {gnutls_dh_params_import_raw3} (gnutls_dh_params_t @var{dh_params}, const gnutls_datum_t * @var{prime}, const gnutls_datum_t * @var{q}, const gnutls_datum_t * @var{generator})
6 @var{dh_params}: The parameters
7
8 @var{prime}: holds the new prime
9
10 @var{q}: holds the subgroup if available, otherwise NULL
11
12 @var{generator}: holds the new generator
13
14 This function will replace the pair of prime and generator for use
15 in the Diffie-Hellman key exchange. The new parameters should be
16 stored in the appropriate gnutls_datum.
17
18 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned,
19 otherwise a negative error code is returned.
20 @end deftypefun