Searched refs:dh_pub (Results 1 - 1 of 1) sorted by relevance

/freebsd-10.0-release/crypto/openssh/
H A Ddh.c213 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) argument
216 int n = BN_num_bits(dh_pub);
220 if (dh_pub->neg) {
224 if (BN_cmp(dh_pub, BN_value_one()) != 1) { /* pub_exp <= 1 */
234 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */
242 if (BN_is_bit_set(dh_pub, i))
246 /* if g==2 and bits_set==1 then computing log_g(dh_pub) is trivial */

Completed in 118 milliseconds