Lines Matching refs:dh
254 DH *dh = DH_new(); in get_standard_parameters() local
255 if (!dh) { in get_standard_parameters()
259 dh->p = BN_dup(¶ms->p); in get_standard_parameters()
260 dh->q = BN_dup(¶ms->q); in get_standard_parameters()
261 dh->g = BN_dup(¶ms->g); in get_standard_parameters()
262 if (!dh->p || !dh->q || !dh->g) { in get_standard_parameters()
263 DH_free(dh); in get_standard_parameters()
267 return dh; in get_standard_parameters()
282 void DH_check_standard_parameters(DH *dh) { in DH_check_standard_parameters() argument
285 if (dh->p == NULL || in DH_check_standard_parameters()
286 dh->g == NULL || in DH_check_standard_parameters()
287 BN_num_bytes(dh->p) != (1024 / 8) || in DH_check_standard_parameters()
288 BN_cmp(dh->g, &bn_two) != 0) { in DH_check_standard_parameters()
294 if (BN_cmp(dh->p, &dh1024_safe_prime[i]) == 0) { in DH_check_standard_parameters()
297 dh->priv_length = 161; in DH_check_standard_parameters()