Lines Matching defs:dh
38 #include <openssl/dh.h>
42 #include <dh.h>
86 DH *dh;
140 if (!(dh = DH_new())) {
148 dh->p = pbn;
149 dh->g = gbn;
150 if (!DH_generate_key(dh) || (BN_num_bytes(dh->pub_key) > KEYSIZE)) {
155 i = DH_compute_key((unsigned char *)rbuf, bn, dh);
167 BN_bn2bin(dh->pub_key, (unsigned char *)rbuf);
196 DH_free(dh);
201 DH_free(dh);