/mbedtls-3.5.0/library/ |
D | psa_crypto_ecp.c | 52 mbedtls_ecp_keypair *ecp = NULL; in mbedtls_psa_ecp_load_representation() local 89 ecp = mbedtls_calloc(1, sizeof(mbedtls_ecp_keypair)); in mbedtls_psa_ecp_load_representation() 90 if (ecp == NULL) { in mbedtls_psa_ecp_load_representation() 93 mbedtls_ecp_keypair_init(ecp); in mbedtls_psa_ecp_load_representation() 110 mbedtls_ecp_group_load(&ecp->grp, grp_id)); in mbedtls_psa_ecp_load_representation() 119 mbedtls_ecp_point_read_binary(&ecp->grp, &ecp->Q, in mbedtls_psa_ecp_load_representation() 128 mbedtls_ecp_check_pubkey(&ecp->grp, &ecp->Q)); in mbedtls_psa_ecp_load_representation() 135 mbedtls_ecp_read_key(ecp->grp.id, in mbedtls_psa_ecp_load_representation() 136 ecp, in mbedtls_psa_ecp_load_representation() 144 *p_ecp = ecp; in mbedtls_psa_ecp_load_representation() [all …]
|
D | psa_crypto_ecp.h | 58 psa_status_t mbedtls_psa_ecp_load_public_part(mbedtls_ecp_keypair *ecp); 101 mbedtls_ecp_keypair *ecp,
|
D | ecdsa.c | 158 #define ECDSA_RS_ECP (rs_ctx == NULL ? NULL : &rs_ctx->ecp) 167 if (rs_ctx != NULL && rs_ctx->ecp.depth++ == 0) \ 168 rs_ctx->ecp.ops_done = 0; \ 194 rs_ctx->ecp.depth--; \ 843 mbedtls_ecp_restart_init(&ctx->ecp); in mbedtls_ecdsa_restart_init() 861 mbedtls_ecp_restart_free(&ctx->ecp); in mbedtls_ecdsa_restart_free()
|
D | Makefile | 104 ecp.o \
|
D | CMakeLists.txt | 39 ecp.c
|
D | psa_crypto.c | 3687 operation->num_ops += operation->restart_ctx.ecp.ops_done; 3896 operation->num_ops += operation->restart_ctx.ecp.ops_done;
|
/mbedtls-3.5.0/programs/pkey/ |
D | key_app.c | 225 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(pk); in main() local 227 &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), 16, in main() 230 &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), 16, in main() 233 &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Z), 16, in main() 235 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("D : ", &ecp->MBEDTLS_PRIVATE(d), 16, NULL)); in main() 275 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(pk); in main() local 277 &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), 16, in main() 280 &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), 16, in main() 283 &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Z), 16, in main()
|
D | key_app_writer.c | 340 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(key); in main() local 341 mbedtls_mpi_write_file("Q(X): ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), 16, NULL); in main() 342 mbedtls_mpi_write_file("Q(Y): ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), 16, NULL); in main() 343 mbedtls_mpi_write_file("Q(Z): ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Z), 16, NULL); in main() 344 mbedtls_mpi_write_file("D : ", &ecp->MBEDTLS_PRIVATE(d), 16, NULL); in main() 386 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(key); in main() local 387 mbedtls_mpi_write_file("Q(X): ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), 16, NULL); in main() 388 mbedtls_mpi_write_file("Q(Y): ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), 16, NULL); in main() 389 mbedtls_mpi_write_file("Q(Z): ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Z), 16, NULL); in main()
|
D | gen_key.c | 368 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(key); in main() local 370 mbedtls_ecp_curve_info_from_grp_id(ecp->MBEDTLS_PRIVATE(grp).id)->name); in main() 371 mbedtls_mpi_write_file("X_Q: ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), 16, NULL); in main() 372 mbedtls_mpi_write_file("Y_Q: ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), 16, NULL); in main() 373 mbedtls_mpi_write_file("D: ", &ecp->MBEDTLS_PRIVATE(d), 16, NULL); in main()
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_ecdh.function | 5 mbedtls_ecp_keypair *ecp) 8 TEST_ASSERT(mbedtls_ecp_group_load(&ecp->grp, grp_id) == 0); 9 TEST_ASSERT(mbedtls_ecp_point_read_binary(&ecp->grp, 10 &ecp->Q, 13 TEST_ASSERT(mbedtls_ecp_check_pubkey(&ecp->grp, 14 &ecp->Q) == 0); 21 mbedtls_ecp_keypair *ecp, 25 TEST_ASSERT(mbedtls_ecp_read_key(grp_id, ecp, 28 TEST_ASSERT(mbedtls_ecp_check_privkey(&ecp->grp, &ecp->d) == 0); 30 TEST_ASSERT(mbedtls_ecp_mul(&ecp->grp, &ecp->Q, &ecp->d, [all …]
|
D | test_suite_pkparse.function | 5 #include "mbedtls/ecp.h"
|
D | test_suite_pk.function | 7 #include "mbedtls/ecp.h"
|
D | test_suite_ecp.function | 2 #include "mbedtls/ecp.h"
|
/mbedtls-3.5.0/programs/fuzz/ |
D | fuzz_pubkey.c | 45 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(pk); in LLVMFuzzerTestOneInput() local 46 mbedtls_ecp_group_id grp_id = ecp->grp.id; in LLVMFuzzerTestOneInput() 58 if (mbedtls_mpi_cmp_int(&ecp->d, 0) != 0) { in LLVMFuzzerTestOneInput()
|
D | fuzz_privkey.c | 68 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(pk); in LLVMFuzzerTestOneInput() local 69 mbedtls_ecp_group_id grp_id = ecp->grp.id; in LLVMFuzzerTestOneInput()
|
/mbedtls-3.5.0/tests/scripts/ |
D | generate_ecp_tests.py | 30 from mbedtls_dev import ecp # pylint: disable=unused-import
|
/mbedtls-3.5.0/programs/ |
D | .gitignore | 65 test/ecp-bench
|
/mbedtls-3.5.0/include/mbedtls/ |
D | ecdsa.h | 111 mbedtls_ecp_restart_ctx MBEDTLS_PRIVATE(ecp); /*!< base context for ECP restart and
|
/mbedtls-3.5.0/scripts/data_files/ |
D | query_config.fmt | 53 #include "mbedtls/ecp.h"
|
/mbedtls-3.5.0/tests/ |
D | Makefile | 115 generated_ecp_test_data: ../scripts/mbedtls_dev/ecp.py
|
D | CMakeLists.txt | 106 ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/mbedtls_dev/ecp.py
|
/mbedtls-3.5.0/docs/proposed/ |
D | psa-conditional-inclusion-c.md | 24 …uld still embark the `bignum` module and large parts of the `ecp_curves`, `ecp` and `ecdsa` module…
|
/mbedtls-3.5.0/ |
D | ChangeLog | 4428 * Split off curves from ecp.c into ecp_curves.c
|