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

/freebsd-11.0-release/crypto/openssh/
H A Ddh.c216 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) argument
219 int n = BN_num_bits(dh_pub);
223 if (dh_pub->neg) {
227 if (BN_cmp(dh_pub, BN_value_one()) != 1) { /* pub_exp <= 1 */
237 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */
245 if (BN_is_bit_set(dh_pub, i))
249 /* if g==2 and bits_set==1 then computing log_g(dh_pub) is trivial */

Completed in 162 milliseconds