Searched refs:ret_priv (Results 1 – 2 of 2) sorted by relevance
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_eke_common.c | 161 int eap_eke_dh_init(u8 group, u8 *ret_priv, u8 *ret_pub) in eap_eke_dh_init() argument 178 if (random_get_bytes(ret_priv, dh->prime_len)) in eap_eke_dh_init() 180 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) { in eap_eke_dh_init() 182 ret_priv[0] = 0; in eap_eke_dh_init() 185 if (ret_priv[i]) in eap_eke_dh_init() 188 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1)) in eap_eke_dh_init() 191 ret_priv, dh->prime_len); in eap_eke_dh_init() 195 if (crypto_mod_exp(&gen, 1, ret_priv, dh->prime_len, in eap_eke_dh_init()
|
D | eap_eke_common.h | 84 int eap_eke_dh_init(u8 group, u8 *ret_priv, u8 *ret_pub);
|