Home
last modified time | relevance | path

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

12

/mbedtls-latest/library/
Dpsa_crypto_ecp.c97 mbedtls_ecp_keypair *ecp = NULL; in mbedtls_psa_ecp_load_representation() local
134 ecp = mbedtls_calloc(1, sizeof(mbedtls_ecp_keypair)); in mbedtls_psa_ecp_load_representation()
135 if (ecp == NULL) { in mbedtls_psa_ecp_load_representation()
138 mbedtls_ecp_keypair_init(ecp); in mbedtls_psa_ecp_load_representation()
154 mbedtls_ecp_group_load(&ecp->grp, grp_id)); in mbedtls_psa_ecp_load_representation()
163 mbedtls_ecp_point_read_binary(&ecp->grp, &ecp->Q, in mbedtls_psa_ecp_load_representation()
172 mbedtls_ecp_check_pubkey(&ecp->grp, &ecp->Q)); in mbedtls_psa_ecp_load_representation()
179 mbedtls_ecp_read_key(ecp->grp.id, in mbedtls_psa_ecp_load_representation()
180 ecp, in mbedtls_psa_ecp_load_representation()
188 *p_ecp = ecp; in mbedtls_psa_ecp_load_representation()
[all …]
Decdsa.c146 #define ECDSA_RS_ECP (rs_ctx == NULL ? NULL : &rs_ctx->ecp)
155 if (rs_ctx != NULL && rs_ctx->ecp.depth++ == 0) \
156 rs_ctx->ecp.ops_done = 0; \
182 rs_ctx->ecp.depth--; \
831 mbedtls_ecp_restart_init(&ctx->ecp); in mbedtls_ecdsa_restart_init()
849 mbedtls_ecp_restart_free(&ctx->ecp); in mbedtls_ecdsa_restart_free()
Dpsa_crypto_ecp.h46 psa_status_t mbedtls_psa_ecp_load_public_part(mbedtls_ecp_keypair *ecp);
89 mbedtls_ecp_keypair *ecp,
Dpk_ecc.c35 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec_rw(*pk); in mbedtls_pk_ecc_set_group()
44 return mbedtls_ecp_group_load(&(ecp->grp), grp_id); in mbedtls_pk_ecc_set_group()
Dpk_wrap.c530 mbedtls_ecp_keypair *ecp = (mbedtls_ecp_keypair *) pk->pk_ctx; in eckey_get_bitlen()
531 return ecp->grp.pbits; in eckey_get_bitlen()
1106 mbedtls_ecp_keypair *ecp = (mbedtls_ecp_keypair *) pk->pk_ctx; in eckey_debug()
1109 items->value = &(ecp->Q); in eckey_debug()
DMakefile114 ecp.o \
DCMakeLists.txt40 ecp.c
Dpsa_crypto.c4001 operation->num_ops += operation->restart_ctx.ecp.ops_done;
4210 operation->num_ops += operation->restart_ctx.ecp.ops_done;
/mbedtls-latest/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_ecp.function2 #include "mbedtls/ecp.h"
/mbedtls-latest/programs/fuzz/
Dfuzz_pubkey.c50 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(pk); in LLVMFuzzerTestOneInput() local
51 mbedtls_ecp_group_id grp_id = mbedtls_ecp_keypair_get_group_id(ecp); in LLVMFuzzerTestOneInput()
65 if (mbedtls_ecp_export(ecp, NULL, &d, NULL) != 0) { in LLVMFuzzerTestOneInput()
Dfuzz_privkey.c73 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec(pk); in LLVMFuzzerTestOneInput() local
74 mbedtls_ecp_group_id grp_id = mbedtls_ecp_keypair_get_group_id(ecp); in LLVMFuzzerTestOneInput()
/mbedtls-latest/programs/pkey/
Dkey_app.c57 static int show_ecp_key(const mbedtls_ecp_keypair *ecp, int has_private) in show_ecp_key() argument
63 mbedtls_ecp_keypair_get_group_id(ecp)); in show_ecp_key()
75 MBEDTLS_MPI_CHK(mbedtls_ecp_export(ecp, &grp, in show_ecp_key()
Dgen_key.c161 static int show_ecp_key(const mbedtls_ecp_keypair *ecp, int has_private) in show_ecp_key() argument
167 mbedtls_ecp_keypair_get_group_id(ecp)); in show_ecp_key()
179 MBEDTLS_MPI_CHK(mbedtls_ecp_export(ecp, &grp, in show_ecp_key()
Dkey_app_writer.c177 static int show_ecp_key(const mbedtls_ecp_keypair *ecp, int has_private) in show_ecp_key() argument
183 mbedtls_ecp_keypair_get_group_id(ecp)); in show_ecp_key()
195 MBEDTLS_MPI_CHK(mbedtls_ecp_export(ecp, &grp, in show_ecp_key()
/mbedtls-latest/tests/scripts/
Dcomponents-configuration-crypto.sh1045 grep mbedtls_ecp library/ecp.o
1143 not grep mbedtls_ecp_muladd library/ecp.o
1144 grep mxz library/ecp.o
1146 grep mbedtls_ecp_muladd library/ecp.o
1147 not grep mxz library/ecp.o
1238 not grep mbedtls_ecp_mul library/ecp.o
1343 not grep mbedtls_ecp_ library/ecp.o
1518 not grep mbedtls_ecp_ library/ecp.o
1621 not grep mbedtls_ecp_ library/ecp.o
/mbedtls-latest/programs/
D.gitignore59 test/ecp-bench
/mbedtls-latest/docs/
Ddriver-only-builds.md202 ### Limitations regarding fully removing `ecp.c`
204 A limited subset of `ecp.c` will still be automatically re-enabled if any of
214 Note: when any of the above options is enabled, a subset of `ecp.c` will
220 We do have plans to support each of these with `ecp.c` fully removed in the
243 removing `ecp.c`" above). However, what if you have an accelerator that only
/mbedtls-latest/include/mbedtls/
Decdsa.h99 mbedtls_ecp_restart_ctx MBEDTLS_PRIVATE(ecp); /*!< base context for ECP restart and
/mbedtls-latest/scripts/data_files/
Dquery_config.fmt41 #include "mbedtls/ecp.h"
/mbedtls-latest/tests/
DMakefile99 generated_ecp_test_data: ../framework/scripts/mbedtls_framework/ecp.py
DCMakeLists.txt139 ${CMAKE_CURRENT_SOURCE_DIR}/../framework/scripts/mbedtls_framework/ecp.py
/mbedtls-latest/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-latest/docs/architecture/psa-migration/
Dstrategy.md314 to/from PSA or legacy identifiers belongs in TLS, not `ecp.c`).

12