/hal_espressif-3.7.0/components/mbedtls/port/ecc/ |
D | ecc_alt.c | 23 static int esp_mbedtls_ecp_point_multiply(const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, in esp_mbedtls_ecp_point_multiply() argument 34 p_pt.len = grp->pbits / 8; in esp_mbedtls_ecp_point_multiply() 56 int ecp_mul_restartable_internal( mbedtls_ecp_group *grp, mbedtls_ecp_point *R, in ecp_mul_restartable_internal() argument 62 if (grp->id != MBEDTLS_ECP_DP_SECP192R1 && grp->id != MBEDTLS_ECP_DP_SECP256R1) { in ecp_mul_restartable_internal() 64 return ecp_mul_restartable_internal_soft(grp, R, m, P, f_rng, p_rng, rs_ctx); in ecp_mul_restartable_internal() 71 MBEDTLS_MPI_CHK( mbedtls_ecp_check_privkey(grp, m) ); in ecp_mul_restartable_internal() 72 MBEDTLS_MPI_CHK( mbedtls_ecp_check_pubkey(grp, P) ); in ecp_mul_restartable_internal() 74 MBEDTLS_MPI_CHK( esp_mbedtls_ecp_point_multiply(grp, R, m, P) ); in ecp_mul_restartable_internal() 83 int mbedtls_ecp_check_pubkey( const mbedtls_ecp_group *grp, in mbedtls_ecp_check_pubkey() argument 89 if (grp->id != MBEDTLS_ECP_DP_SECP192R1 && grp->id != MBEDTLS_ECP_DP_SECP256R1) { in mbedtls_ecp_check_pubkey() [all …]
|
/hal_espressif-3.7.0/components/mbedtls/port/ecdsa/ |
D | ecdsa_alt.c | 99 static int esp_ecdsa_sign(mbedtls_ecp_group *grp, mbedtls_mpi* r, mbedtls_mpi* s, in esp_ecdsa_sign() argument 110 if (!grp || !r || !s || !d || !msg) { in esp_ecdsa_sign() 118 if (grp->id == MBEDTLS_ECP_DP_SECP192R1) { in esp_ecdsa_sign() 121 } else if (grp->id == MBEDTLS_ECP_DP_SECP256R1) { in esp_ecdsa_sign() 160 extern int __real_mbedtls_ecdsa_sign(mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, 164 int __wrap_mbedtls_ecdsa_sign(mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, 168 int __wrap_mbedtls_ecdsa_sign(mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, in __wrap_mbedtls_ecdsa_sign() argument 177 return esp_ecdsa_sign(grp, r, s, d, buf, blen); in __wrap_mbedtls_ecdsa_sign() 179 return __real_mbedtls_ecdsa_sign(grp, r, s, d, buf, blen, f_rng, p_rng); in __wrap_mbedtls_ecdsa_sign() 185 static int esp_ecdsa_verify(mbedtls_ecp_group *grp, in esp_ecdsa_verify() argument [all …]
|
/hal_espressif-3.7.0/components/mbedtls/test_apps/main/ |
D | test_ecp.c | 64 …TEST_ASSERT_MBEDTLS_OK( mbedtls_ecp_group_load(ACCESS_ECDH(&ctx, grp), MBEDTLS_ECP_DP_CURVE25519) … 66 …TEST_ASSERT_MBEDTLS_OK( mbedtls_ecdh_gen_public(ACCESS_ECDH(&ctx, grp), ACCESS_ECDH(&ctx, d), ACCE… 98 …TEST_ASSERT_MBEDTLS_OK(mbedtls_ecp_mul(&ctxECDSA.MBEDTLS_PRIVATE(grp), &ctxECDSA.MBEDTLS_PRIVATE(Q… 99 … &ctxECDSA.MBEDTLS_PRIVATE(d), &ctxECDSA.MBEDTLS_PRIVATE(grp).G, 221 mbedtls_ecp_group grp; in test_ecp_mul() local 226 mbedtls_ecp_group_init(&grp); in test_ecp_mul() 231 mbedtls_ecp_group_load(&grp, id); in test_ecp_mul() 233 size = grp.pbits / 8; in test_ecp_mul() 247 ret = mbedtls_ecp_mul(&grp, &R, &m, &P, rng_wrapper, NULL); in test_ecp_mul() 267 mbedtls_ecp_group_free(&grp); in test_ecp_mul() [all …]
|
D | test_mbedtls_ecdsa.c | 112 mbedtls_ecp_group_load(&ecdsa_context.MBEDTLS_PRIVATE(grp), id); in test_ecdsa_verify() 113 size_t plen = mbedtls_mpi_size(&ecdsa_context.MBEDTLS_PRIVATE(grp).P); in test_ecdsa_verify() 124 …TEST_ASSERT_MBEDTLS_OK(mbedtls_ecdsa_verify(&ecdsa_context.MBEDTLS_PRIVATE(grp), hash, 32, &ecdsa_… in test_ecdsa_verify() 207 mbedtls_ecp_group_load(&ecdsa_context.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP192R1); in test_ecdsa_sign() 210 mbedtls_ecp_group_load(&ecdsa_context.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1); in test_ecdsa_sign() 214 …mbedtls_ecdsa_sign(&ecdsa_context.MBEDTLS_PRIVATE(grp), &r, &s, &key_mpi, sha, HASH_LEN, NULL, NUL… in test_ecdsa_sign()
|
/hal_espressif-3.7.0/components/mbedtls/port/include/mbedtls/ |
D | ecp.h | 16 int ecp_mul_restartable_internal( mbedtls_ecp_group *grp, mbedtls_ecp_point *R, 23 int ecp_mul_restartable_internal_soft( mbedtls_ecp_group *grp, mbedtls_ecp_point *R, 31 int mbedtls_ecp_check_pubkey_soft(const mbedtls_ecp_group *grp,
|
/hal_espressif-3.7.0/components/bootloader_support/src/secure_boot_v2/ |
D | secure_boot_ecdsa_signature.c | 45 mbedtls_ecp_group_load(&ecdsa_context.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP192R1); in verify_ecdsa_signature_block() 49 mbedtls_ecp_group_load(&ecdsa_context.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1); in verify_ecdsa_signature_block() 83 size_t plen = mbedtls_mpi_size(&ecdsa_context.MBEDTLS_PRIVATE(grp).P); in verify_ecdsa_signature_block() 95 …ret = mbedtls_ecdsa_verify(&ecdsa_context.MBEDTLS_PRIVATE(grp), image_digest, ESP_SECURE_BOOT_DIGE… in verify_ecdsa_signature_block()
|
/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | crypto_mbedtls-ec.c | 296 static int ecp_opp(const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_ecp_point *P) in ecp_opp() argument 307 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&R->MBEDTLS_PRIVATE(Y), &grp->P, &R->MBEDTLS_PRIVATE(Y))); in ecp_opp() 551 mbedtls_ecp_group_load(&mbedtls_pk_ec(*key)->MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1); in crypto_ec_set_pubkey_point() 605 return (struct crypto_ec_group *)&(mbedtls_pk_ec(*pkey)->MBEDTLS_PRIVATE(grp)); in crypto_ec_get_group_from_key() 612 …group = (int)crypto_ec_get_mbedtls_to_nist_group_id(mbedtls_pk_ec(*pkey)->MBEDTLS_PRIVATE(grp).id); in crypto_ec_key_group() 715 mbedtls_ecp_group *grp = (mbedtls_ecp_group *)group; in crypto_ec_get_curve_id() local 716 return (crypto_ec_get_mbedtls_to_nist_group_id(grp->id)); in crypto_ec_get_curve_id() 802 ret = mbedtls_ecdsa_sign(&ctx->MBEDTLS_PRIVATE(grp), (mbedtls_mpi *)r, (mbedtls_mpi *)s, in crypto_ecdsa_get_sign() 828 if((ret = mbedtls_ecdsa_verify(&ctx->MBEDTLS_PRIVATE(grp), hash, hlen, in crypto_edcsa_sign_verify() 847 mbedtls_ecp_curve_info_from_grp_id( ecp->MBEDTLS_PRIVATE(grp).id )->name ); in crypto_debug_print_ec_key() [all …]
|
/hal_espressif-3.7.0/components/bootloader_support/src/secure_boot_v1/ |
D | secure_boot_signatures_app.c | 105 mbedtls_ecp_group_load(&ecdsa_context.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1); in esp_secure_boot_verify_ecdsa_signature_block() 106 size_t plen = mbedtls_mpi_size(&ecdsa_context.MBEDTLS_PRIVATE(grp).P); in esp_secure_boot_verify_ecdsa_signature_block() 118 …ret = mbedtls_ecdsa_verify(&ecdsa_context.MBEDTLS_PRIVATE(grp), image_digest, ESP_SECURE_BOOT_DIGE… in esp_secure_boot_verify_ecdsa_signature_block()
|
/hal_espressif-3.7.0/components/bt/controller/esp32c2/ |
D | bt.c | 1070 if (mbedtls_ecp_group_load(&keypair.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1) != 0) { in ble_sm_alg_gen_dhkey() 1074 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1078 if (mbedtls_ecp_check_pubkey(&keypair.MBEDTLS_PRIVATE(grp), &pt) != 0) { in ble_sm_alg_gen_dhkey() 1089 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1097 rc = mbedtls_ecdh_compute_shared(&keypair.MBEDTLS_PRIVATE(grp), &z, &Q, &d, in ble_sm_alg_gen_dhkey() 1169 …if ((rc = mbedtls_ecp_point_write_binary(&keypair.MBEDTLS_PRIVATE(grp), &keypair.MBEDTLS_PRIVATE(Q… in mbedtls_gen_keypair()
|
/hal_espressif-3.7.0/components/bt/controller/esp32c6/ |
D | bt.c | 1263 if (mbedtls_ecp_group_load(&keypair.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1) != 0) { in ble_sm_alg_gen_dhkey() 1267 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1271 if (mbedtls_ecp_check_pubkey(&keypair.MBEDTLS_PRIVATE(grp), &pt) != 0) { in ble_sm_alg_gen_dhkey() 1282 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1290 rc = mbedtls_ecdh_compute_shared(&keypair.MBEDTLS_PRIVATE(grp), &z, &Q, &d, in ble_sm_alg_gen_dhkey() 1362 if ((rc = mbedtls_ecp_point_write_binary(&keypair.MBEDTLS_PRIVATE(grp), in mbedtls_gen_keypair()
|
/hal_espressif-3.7.0/components/bt/controller/esp32h2/ |
D | bt.c | 1242 if (mbedtls_ecp_group_load(&keypair.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1) != 0) { in ble_sm_alg_gen_dhkey() 1246 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1250 if (mbedtls_ecp_check_pubkey(&keypair.MBEDTLS_PRIVATE(grp), &pt) != 0) { in ble_sm_alg_gen_dhkey() 1261 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1269 rc = mbedtls_ecdh_compute_shared(&keypair.MBEDTLS_PRIVATE(grp), &z, &Q, &d, in ble_sm_alg_gen_dhkey() 1341 if ((rc = mbedtls_ecp_point_write_binary(&keypair.MBEDTLS_PRIVATE(grp), in mbedtls_gen_keypair()
|
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/nimble_host/ |
D | mesh_bearer_adapt.c | 1804 mbedtls_ecp_group grp = {0}; in bt_mesh_check_public_key() local 1814 mbedtls_ecp_group_init(&grp); in bt_mesh_check_public_key() 1817 if (mbedtls_ecp_group_load(&grp, MBEDTLS_ECP_DP_SECP256R1) != 0) { in bt_mesh_check_public_key() 1821 if (mbedtls_ecp_point_read_binary(&grp, &pt, pub, 65) != 0) { in bt_mesh_check_public_key() 1825 if (mbedtls_ecp_check_pubkey(&grp, &pt) != 0) { in bt_mesh_check_public_key() 1833 mbedtls_ecp_group_free(&grp); in bt_mesh_check_public_key()
|
/hal_espressif-3.7.0/zephyr/esp32c3/src/wifi/ |
D | esp_wifi_adapter.c | 525 void vEventGroupDelete(void *grp) in vEventGroupDelete() argument 527 ARG_UNUSED(grp); in vEventGroupDelete()
|
/hal_espressif-3.7.0/zephyr/esp32/src/wifi/ |
D | esp_wifi_adapter.c | 495 void vEventGroupDelete(void *grp) in vEventGroupDelete() argument
|
/hal_espressif-3.7.0/zephyr/esp32s2/src/wifi/ |
D | esp_wifi_adapter.c | 491 void vEventGroupDelete(void *grp) in vEventGroupDelete() argument
|
/hal_espressif-3.7.0/zephyr/esp32s3/src/wifi/ |
D | esp_wifi_adapter.c | 554 void vEventGroupDelete(void *grp) in vEventGroupDelete() argument
|