Home
last modified time | relevance | path

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

/external/openssh/
Ddh.c216 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) in dh_pub_is_valid() argument
219 int n = BN_num_bits(dh_pub); in dh_pub_is_valid()
223 if (dh_pub->neg) { in dh_pub_is_valid()
227 if (BN_cmp(dh_pub, BN_value_one()) != 1) { /* pub_exp <= 1 */ in dh_pub_is_valid()
237 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */ in dh_pub_is_valid()
245 if (BN_is_bit_set(dh_pub, i)) in dh_pub_is_valid()
/external/ipsec-tools/src/racoon/
Dcrypto_openssl.c2515 BIGNUM *dh_pub = NULL; local
2522 if (eay_v2bn(&dh_pub, pub2) < 0)
2548 if ((l = DH_compute_key(v, dh_pub, dh)) == -1)
2555 if (dh_pub != NULL)
2556 BN_free(dh_pub);