Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/eap_common/
Deap_eke_common.c159 int eap_eke_dh_init(u8 group, u8 *ret_priv, u8 *ret_pub) in eap_eke_dh_init() argument
173 if (random_get_bytes(ret_priv, dh->prime_len)) in eap_eke_dh_init()
175 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) { in eap_eke_dh_init()
177 ret_priv[0] = 0; in eap_eke_dh_init()
180 if (ret_priv[i]) in eap_eke_dh_init()
183 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1)) in eap_eke_dh_init()
186 ret_priv, dh->prime_len); in eap_eke_dh_init()
190 if (crypto_mod_exp(&gen, 1, ret_priv, dh->prime_len, in eap_eke_dh_init()
Deap_eke_common.h84 int eap_eke_dh_init(u8 group, u8 *ret_priv, u8 *ret_pub);