Home
last modified time | relevance | path

Searched refs:dh (Results 1 – 8 of 8) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Ddh_groups.c1193 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv) in dh_init() argument
1198 if (dh == NULL) in dh_init()
1202 *priv = wpabuf_alloc(dh->prime_len); in dh_init()
1206 if (random_get_bytes(wpabuf_put(*priv, dh->prime_len), dh->prime_len)) in dh_init()
1213 if (os_memcmp(wpabuf_head(*priv), dh->prime, dh->prime_len) > 0) { in dh_init()
1219 pv_len = dh->prime_len; in dh_init()
1227 if (crypto_mod_exp(dh->generator, dh->generator_len, in dh_init()
1229 dh->prime, dh->prime_len, wpabuf_mhead(pv), in dh_init()
1251 const struct dh_group *dh) in dh_derive_shared() argument
1256 if (dh == NULL || peer_public == NULL || own_private == NULL) in dh_derive_shared()
[all …]
Ddh_groups.h24 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
27 const struct dh_group *dh);
/hal_espressif-latest/components/wpa_supplicant/src/common/
Dsae.c47 tmp->dh = dh_groups_get(group); in sae_set_group()
48 if (tmp->dh) { in sae_set_group()
52 tmp->prime_len = tmp->dh->prime_len; in sae_set_group()
58 tmp->prime_buf = crypto_bignum_init_set(tmp->dh->prime, in sae_set_group()
66 tmp->order_len = tmp->dh->order_len; in sae_set_group()
67 tmp->order_buf = crypto_bignum_init_set(tmp->dh->order, in sae_set_group()
68 tmp->dh->order_len); in sae_set_group()
199 sae->tmp->dh->prime, sae->tmp->prime_len, pwd_value, in sae_test_pwd_seed_ffc()
206 res = const_time_memcmp(pwd_value, sae->tmp->dh->prime, in sae_test_pwd_seed_ffc()
229 if (sae->tmp->dh->safe_prime) { in sae_test_pwd_seed_ffc()
[all …]
Dsae.h57 const struct dh_group *dh; member
91 const struct dh_group *dh; member
/hal_espressif-latest/components/bt/controller/esp32c2/
Dbt.c1299 uint8_t dh[32]; in ble_sm_alg_gen_dhkey() local
1360 rc = mbedtls_mpi_write_binary(&z, dh, 32); in ble_sm_alg_gen_dhkey()
1381 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1387 swap_buf(out_dhkey, dh, 32); in ble_sm_alg_gen_dhkey()
/hal_espressif-latest/components/bt/controller/esp32c6/
Dbt.c1394 uint8_t dh[32]; in ble_sm_alg_gen_dhkey() local
1455 rc = mbedtls_mpi_write_binary(&z, dh, 32); in ble_sm_alg_gen_dhkey()
1476 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1482 swap_buf(out_dhkey, dh, 32); in ble_sm_alg_gen_dhkey()
/hal_espressif-latest/components/bt/controller/esp32h2/
Dbt.c1371 uint8_t dh[32]; in ble_sm_alg_gen_dhkey() local
1432 rc = mbedtls_mpi_write_binary(&z, dh, 32); in ble_sm_alg_gen_dhkey()
1453 rc = uECC_shared_secret(pk, priv, dh, &curve_secp256r1); in ble_sm_alg_gen_dhkey()
1459 swap_buf(out_dhkey, dh, 32); in ble_sm_alg_gen_dhkey()
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dtlsv1_cred.c1072 const u8 *dh, size_t len) in tlsv1_set_dhparams_der() argument
1077 pos = dh; in tlsv1_set_dhparams_der()
1078 end = dh + len; in tlsv1_set_dhparams_der()