Searched refs:keypair (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-latest/components/bt/controller/esp32c2/ |
D | bt.c | 1275 static mbedtls_ecp_keypair keypair; variable 1328 if (mbedtls_ecp_group_load(&keypair.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1) != 0) { in ble_sm_alg_gen_dhkey() 1332 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1336 if (mbedtls_ecp_check_pubkey(&keypair.MBEDTLS_PRIVATE(grp), &pt) != 0) { in ble_sm_alg_gen_dhkey() 1346 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1354 rc = mbedtls_ecdh_compute_shared(&keypair.MBEDTLS_PRIVATE(grp), &z, &Q, &d, in ble_sm_alg_gen_dhkey() 1400 mbedtls_ecp_keypair_init(&keypair); in mbedtls_gen_keypair() 1407 if ((rc = mbedtls_ecp_gen_key(MBEDTLS_ECP_DP_SECP256R1, &keypair, in mbedtls_gen_keypair() 1412 if ((rc = mbedtls_mpi_write_binary(&keypair.MBEDTLS_PRIVATE(d), private_key, 32)) != 0) { in mbedtls_gen_keypair() 1419 …if ((rc = mbedtls_ecp_point_write_binary(&keypair.MBEDTLS_PRIVATE(grp), &keypair.MBEDTLS_PRIVATE(Q… in mbedtls_gen_keypair() [all …]
|
/hal_espressif-latest/components/bt/controller/esp32c6/ |
D | bt.c | 1370 static mbedtls_ecp_keypair keypair; variable 1423 if (mbedtls_ecp_group_load(&keypair.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1) != 0) { in ble_sm_alg_gen_dhkey() 1427 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1431 if (mbedtls_ecp_check_pubkey(&keypair.MBEDTLS_PRIVATE(grp), &pt) != 0) { in ble_sm_alg_gen_dhkey() 1441 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1449 rc = mbedtls_ecdh_compute_shared(&keypair.MBEDTLS_PRIVATE(grp), &z, &Q, &d, in ble_sm_alg_gen_dhkey() 1495 mbedtls_ecp_keypair_init(&keypair); in mbedtls_gen_keypair() 1502 if ((rc = mbedtls_ecp_gen_key(MBEDTLS_ECP_DP_SECP256R1, &keypair, in mbedtls_gen_keypair() 1507 if ((rc = mbedtls_mpi_write_binary(&keypair.MBEDTLS_PRIVATE(d), private_key, 32)) != 0) { in mbedtls_gen_keypair() 1514 …if ((rc = mbedtls_ecp_point_write_binary(&keypair.MBEDTLS_PRIVATE(grp), &keypair.MBEDTLS_PRIVATE(Q… in mbedtls_gen_keypair() [all …]
|
/hal_espressif-latest/components/bt/controller/esp32h2/ |
D | bt.c | 1347 static mbedtls_ecp_keypair keypair; variable 1400 if (mbedtls_ecp_group_load(&keypair.MBEDTLS_PRIVATE(grp), MBEDTLS_ECP_DP_SECP256R1) != 0) { in ble_sm_alg_gen_dhkey() 1404 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &pt, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1408 if (mbedtls_ecp_check_pubkey(&keypair.MBEDTLS_PRIVATE(grp), &pt) != 0) { in ble_sm_alg_gen_dhkey() 1418 if (mbedtls_ecp_point_read_binary(&keypair.MBEDTLS_PRIVATE(grp), &Q, pub, 65) != 0) { in ble_sm_alg_gen_dhkey() 1426 rc = mbedtls_ecdh_compute_shared(&keypair.MBEDTLS_PRIVATE(grp), &z, &Q, &d, in ble_sm_alg_gen_dhkey() 1472 mbedtls_ecp_keypair_init(&keypair); in mbedtls_gen_keypair() 1479 if ((rc = mbedtls_ecp_gen_key(MBEDTLS_ECP_DP_SECP256R1, &keypair, in mbedtls_gen_keypair() 1484 if ((rc = mbedtls_mpi_write_binary(&keypair.MBEDTLS_PRIVATE(d), private_key, 32)) != 0) { in mbedtls_gen_keypair() 1491 …if ((rc = mbedtls_ecp_point_write_binary(&keypair.MBEDTLS_PRIVATE(grp), &keypair.MBEDTLS_PRIVATE(Q… in mbedtls_gen_keypair() [all …]
|
/hal_espressif-latest/components/mbedtls/port/ecdsa/ |
D | ecdsa_alt.c | 106 mbedtls_ecp_keypair *keypair; in esp_ecdsa_privkey_load_pk_context() local 121 keypair = mbedtls_pk_ec(*key_ctx); in esp_ecdsa_privkey_load_pk_context() 123 return esp_ecdsa_privkey_load_mpi(&(keypair->MBEDTLS_PRIVATE(d)), efuse_blk); in esp_ecdsa_privkey_load_pk_context()
|