Home
last modified time | relevance | path

Searched refs:ecp (Results 1 – 23 of 23) sorted by relevance

/mbedtls-3.5.0/library/
Dpsa_crypto_ecp.c52 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 …]
Dpsa_crypto_ecp.h58 psa_status_t mbedtls_psa_ecp_load_public_part(mbedtls_ecp_keypair *ecp);
101 mbedtls_ecp_keypair *ecp,
Decdsa.c158 #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()
DMakefile104 ecp.o \
DCMakeLists.txt39 ecp.c
Dpsa_crypto.c3687 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/
Dkey_app.c225 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()
Dkey_app_writer.c340 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()
Dgen_key.c368 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/
Dtest_suite_ecdh.function5 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 …]
Dtest_suite_pkparse.function5 #include "mbedtls/ecp.h"
Dtest_suite_pk.function7 #include "mbedtls/ecp.h"
Dtest_suite_ecp.function2 #include "mbedtls/ecp.h"
/mbedtls-3.5.0/programs/fuzz/
Dfuzz_pubkey.c45 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()
Dfuzz_privkey.c68 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/
Dgenerate_ecp_tests.py30 from mbedtls_dev import ecp # pylint: disable=unused-import
/mbedtls-3.5.0/programs/
D.gitignore65 test/ecp-bench
/mbedtls-3.5.0/include/mbedtls/
Decdsa.h111 mbedtls_ecp_restart_ctx MBEDTLS_PRIVATE(ecp); /*!< base context for ECP restart and
/mbedtls-3.5.0/scripts/data_files/
Dquery_config.fmt53 #include "mbedtls/ecp.h"
/mbedtls-3.5.0/tests/
DMakefile115 generated_ecp_test_data: ../scripts/mbedtls_dev/ecp.py
DCMakeLists.txt106 ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/mbedtls_dev/ecp.py
/mbedtls-3.5.0/docs/proposed/
Dpsa-conditional-inclusion-c.md24 …uld still embark the `bignum` module and large parts of the `ecp_curves`, `ecp` and `ecdsa` module…
/mbedtls-3.5.0/
DChangeLog4428 * Split off curves from ecp.c into ecp_curves.c