Searched refs:dh_pub (Results 1 – 4 of 4) sorted by relevance
/freebsd/crypto/openssh/ |
H A D | kexdh.c | 73 kex_dh_compute_key(struct kex *kex, BIGNUM *dh_pub, struct sshbuf *out) in kex_dh_compute_key() argument 82 BN_print_fp(stderr, dh_pub); in kex_dh_compute_key() 84 debug("bits %d", BN_num_bits(dh_pub)); in kex_dh_compute_key() 89 if (!dh_pub_is_valid(kex->dh, dh_pub)) { in kex_dh_compute_key() 99 if ((kout = DH_compute_key(kbuf, dh_pub, kex->dh)) < 0 || in kex_dh_compute_key() 179 BIGNUM *dh_pub = NULL; in kex_dh_dec() local 189 (r = sshbuf_get_bignum2(buf, &dh_pub)) != 0) in kex_dh_dec() 192 if ((r = kex_dh_compute_key(kex, dh_pub, buf)) != 0) in kex_dh_dec() 197 BN_free(dh_pub); in kex_dh_dec()
|
H A D | kexecdh.c | 143 EC_POINT *dh_pub = NULL; in kex_ecdh_dec_key_group() local 156 if ((dh_pub = EC_POINT_new(group)) == NULL) { in kex_ecdh_dec_key_group() 160 if ((r = sshbuf_get_ec(buf, dh_pub, group)) != 0) { in kex_ecdh_dec_key_group() 167 sshkey_dump_ec_point(group, dh_pub); in kex_ecdh_dec_key_group() 169 if (sshkey_ec_validate_public(group, dh_pub) != 0) { in kex_ecdh_dec_key_group() 179 if (ECDH_compute_key(kbuf, klen, dh_pub, key, NULL) != (int)klen || in kex_ecdh_dec_key_group() 192 EC_POINT_clear_free(dh_pub); in kex_ecdh_dec_key_group()
|
H A D | dh.c | 236 dh_pub_is_valid(const DH *dh, const BIGNUM *dh_pub) in dh_pub_is_valid() argument 239 int n = BN_num_bits(dh_pub); in dh_pub_is_valid() 246 if (BN_is_negative(dh_pub)) { in dh_pub_is_valid() 250 if (BN_cmp(dh_pub, BN_value_one()) != 1) { /* pub_exp <= 1 */ in dh_pub_is_valid() 260 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */ in dh_pub_is_valid() 268 if (BN_is_bit_set(dh_pub, i)) in dh_pub_is_valid()
|
/freebsd/crypto/openssl/providers/fips/ |
H A D | self_test_data.inc | 904 static const unsigned char dh_pub[] = { 1017 ST_KAT_PARAM_BIGNUM(OSSL_PKEY_PARAM_PUB_KEY, dh_pub),
|