/external/wpa_supplicant_8/src/common/ |
sae.c | 33 tmp->prime_len = crypto_ec_prime_len(tmp->ec); 43 tmp->prime_len = tmp->dh->prime_len; 44 if (tmp->prime_len > SAE_MAX_PRIME_LEN) { 50 tmp->prime_len); 173 get_rand_1_to_p_1(const u8 *prime, size_t prime_len, size_t prime_bits, 180 if (random_get_bytes(tmp, prime_len) < 0) 183 buf_shift_right(tmp, prime_len, 8 - prime_bits % 8); 184 if (os_memcmp(tmp, prime, prime_len) >= 0) 186 r = crypto_bignum_init_set(tmp, prime_len); 430 size_t prime_len; local [all...] |
sae.h | 35 int prime_len; member in struct:sae_temporary_data
|
/external/wpa_supplicant_8/src/crypto/ |
dh_groups.h | 17 size_t prime_len; member in struct:dh_group
|
dh_groups.c | [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
eap_eke_common.c | 173 if (random_get_bytes(ret_priv, dh->prime_len)) 175 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) { 179 for (i = 0; i < dh->prime_len - 1; i++) { 183 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1)) 186 ret_priv, dh->prime_len); 189 pub_len = dh->prime_len; 190 if (crypto_mod_exp(&gen, 1, ret_priv, dh->prime_len, 191 dh->prime, dh->prime_len, ret_pub, &pub_len) < 0) 193 if (pub_len < dh->prime_len) { 194 size_t pad = dh->prime_len - pub_len [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
ikev2.c | 78 pad_len = data->dh->prime_len - wpabuf_len(shared); 399 if (kei_len - 4 != data->dh->prime_len) { 402 (long) (kei_len - 4), (long) data->dh->prime_len); 925 wpabuf_put(msg, data->dh->prime_len - wpabuf_len(pv));
|
eap_pwd.c | 365 size_t prime_len, order_len; local 372 prime_len = BN_num_bytes(data->grp->prime); 375 if (payload_len != 2 * prime_len + order_len) { 379 (unsigned int) (2 * prime_len + order_len));
|
/external/wpa_supplicant_8/src/eap_server/ |
ikev2.c | 83 pad_len = data->dh->prime_len - wpabuf_len(shared); 404 if (ker_len - 4 != data->dh->prime_len) { 407 (long) (ker_len - 4), (long) data->dh->prime_len); 991 wpabuf_put(msg, data->dh->prime_len - wpabuf_len(pv));
|
eap_server_pwd.c | 664 size_t prime_len, order_len; local 668 prime_len = BN_num_bytes(data->grp->prime); 671 if (payload_len != 2 * prime_len + order_len) { 675 (unsigned int) (2 * prime_len + order_len));
|