Lines Matching defs:dh
53 #include <openssl/dh.h>
267 DH *dh;
269 dh = DH_new_method(engine);
270 if (!dh) {
274 dh->p = BN_dup(¶ms->p);
275 dh->q = BN_dup(¶ms->q);
276 dh->g = BN_dup(¶ms->g);
277 if (!dh->p || !dh->q || !dh->g) {
278 DH_free(dh);
282 return dh;
297 void DH_check_standard_parameters(DH *dh) {
300 if (dh->p == NULL ||
301 dh->g == NULL ||
302 BN_num_bytes(dh->p) != (1024 / 8) ||
303 BN_cmp(dh->g, &bn_two) != 0) {
309 if (BN_cmp(dh->p, &dh1024_safe_prime[i]) == 0) {
312 dh->priv_length = 161;