Lines Matching refs:dh
10 #include <openssl/dh.h>
16 int DH_generate_key(DH *dh);
18 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
20 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);
33 DH_generate_key() expects B<dh> to contain the shared parameters
34 B<dh-E<gt>p> and B<dh-E<gt>g>. It generates a random private DH value
35 unless B<dh-E<gt>priv_key> is already set, and computes the
36 corresponding public value B<dh-E<gt>pub_key>, which can then be
40 in B<dh> and the other party's public value in B<pub_key> and stores
41 it in B<key>. B<key> must point to B<DH_size(dh)> bytes of memory.
58 DH_compute_key_padded() returns B<DH_size(dh)> on success, -1 on error.