Home
last modified time | relevance | path

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

/external/dropbear/
Dkex.h36 void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv);
37 void kexdh_comb_key(mp_int *dh_pub_us, mp_int *dh_priv, mp_int *dh_pub_them,
Dcommon-kex.c474 void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv) { in gen_kexdh_vals() argument
493 if (mp_sub_d(&dh_p, 1, dh_priv) != MP_OKAY) { in gen_kexdh_vals()
496 if (mp_div_2(dh_priv, &dh_q) != MP_OKAY) { in gen_kexdh_vals()
501 gen_random_mpint(&dh_q, dh_priv); in gen_kexdh_vals()
504 if (mp_exptmod(&dh_g, dh_priv, &dh_p, dh_pub) != MP_OKAY) { in gen_kexdh_vals()
514 void kexdh_comb_key(mp_int *dh_pub_us, mp_int *dh_priv, mp_int *dh_pub_them, in kexdh_comb_key() argument
534 if (mp_exptmod(dh_pub_them, dh_priv, &dh_p, ses.dh_K) != MP_OKAY) { in kexdh_comb_key()