Lines Matching defs:dh
18 /* crypto/dh/dh_check.c */
79 #include <openssl/dh.h>
90 int DH_check(DH *dh, int *ret)
103 if (BN_is_word(dh->g,DH_GENERATOR_2))
105 l=BN_mod_word(dh->p,24);
109 else if (BN_is_word(dh->g,DH_GENERATOR_3))
111 l=BN_mod_word(dh->p,12);
115 else if (BN_is_word(dh->g,DH_GENERATOR_5))
117 l=BN_mod_word(dh->p,10);
124 if (!BN_is_prime(dh->p,BN_prime_checks,NULL,ctx,NULL))
128 if (!BN_rshift1(q,dh->p)) goto err;