HomeSort by relevance Sort by last modified time
    Searched full:dh_priv (Results 1 - 4 of 4) sorted by null

  /external/dropbear/
kex.h 36 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,
common-kex.c 473 /* dh_pub and dh_priv MUST be already initialised */
474 void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv) {
492 /* dh_priv is just a temp var here */
493 if (mp_sub_d(&dh_p, 1, dh_priv) != MP_OKAY) {
496 if (mp_div_2(dh_priv, &dh_q) != MP_OKAY) {
500 /* Generate a private portion 0 < dh_priv < dh_q */
501 gen_random_mpint(&dh_q, dh_priv);
504 if (mp_exptmod(&dh_g, dh_priv, &dh_p, dh_pub) != MP_OKAY) {
513 * vice-versa. dh_priv is the x/y value corresponding to dh_pub_us */
514 void kexdh_comb_key(mp_int *dh_pub_us, mp_int *dh_priv, mp_int *dh_pub_them
    [all...]
  /external/wpa_supplicant_8/src/eap_peer/
eap_eke.c 26 u8 dh_priv[EAP_EKE_MAX_DH_LEN]; member in struct:eap_eke_data
172 os_memset(data->dh_priv, 0, sizeof(data->dh_priv));
374 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) {
381 if (eap_eke_shared_secret(&data->sess, key, data->dh_priv, dhcomp) < 0)
571 os_memset(data->dh_priv, 0, sizeof(data->dh_priv));
  /external/wpa_supplicant_8/src/eap_server/
eap_server_eke.c 27 u8 dh_priv[EAP_EKE_MAX_DH_LEN]; member in struct:eap_eke_data
277 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) {
548 if (eap_eke_shared_secret(&data->sess, data->key, data->dh_priv, dhcomp)
654 os_memset(data->dh_priv, 0, sizeof(data->dh_priv));

Completed in 70 milliseconds