Lines Matching refs:dh_p
476 DEF_MP_INT(dh_p); in gen_kexdh_vals()
482 m_mp_init_multi(&dh_g, &dh_p, &dh_q, NULL); in gen_kexdh_vals()
485 bytes_to_mp(&dh_p, (unsigned char*)dh_p_val, DH_P_LEN); in gen_kexdh_vals()
493 if (mp_sub_d(&dh_p, 1, dh_priv) != MP_OKAY) { in gen_kexdh_vals()
504 if (mp_exptmod(&dh_g, dh_priv, &dh_p, dh_pub) != MP_OKAY) { in gen_kexdh_vals()
507 mp_clear_multi(&dh_g, &dh_p, &dh_q, NULL); in gen_kexdh_vals()
517 mp_int dh_p; in kexdh_comb_key() local
522 m_mp_init(&dh_p); in kexdh_comb_key()
523 bytes_to_mp(&dh_p, dh_p_val, DH_P_LEN); in kexdh_comb_key()
526 if (mp_cmp(dh_pub_them, &dh_p) != MP_LT in kexdh_comb_key()
534 if (mp_exptmod(dh_pub_them, dh_priv, &dh_p, ses.dh_K) != MP_OKAY) { in kexdh_comb_key()
539 mp_clear_multi(&dh_p, NULL); in kexdh_comb_key()