Lines Matching full:dh
32 +# include <openssl/dh.h>
35 +DH *get_dh2048()
68 + DH *dh = DH_new();
71 + if (dh == NULL)
76 + || !DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
77 + DH_free(dh);
82 + return dh;
94 +static inline int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
99 + if ((dh->p == NULL && p == NULL)
100 + || (dh->g == NULL && g == NULL))
104 + BN_free(dh->p);
105 + dh->p = p;
108 + BN_free(dh->q);
109 + dh->q = q;
112 + BN_free(dh->g);
113 + dh->g = g;
117 + dh->length = BN_num_bits(q);