Home
last modified time | relevance | path

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

/openthread-3.6.0/third_party/mbedtls/repo/library/
Dpsa_crypto_ecp.c55 mbedtls_ecp_keypair *ecp = NULL; in mbedtls_psa_ecp_load_representation() local
94 ecp = mbedtls_calloc( 1, sizeof( mbedtls_ecp_keypair ) ); in mbedtls_psa_ecp_load_representation()
95 if( ecp == NULL ) in mbedtls_psa_ecp_load_representation()
97 mbedtls_ecp_keypair_init( ecp ); in mbedtls_psa_ecp_load_representation()
115 mbedtls_ecp_group_load( &ecp->grp, grp_id ) ); in mbedtls_psa_ecp_load_representation()
124 mbedtls_ecp_point_read_binary( &ecp->grp, &ecp->Q, in mbedtls_psa_ecp_load_representation()
132 mbedtls_ecp_check_pubkey( &ecp->grp, &ecp->Q ) ); in mbedtls_psa_ecp_load_representation()
140 mbedtls_ecp_read_key( ecp->grp.id, in mbedtls_psa_ecp_load_representation()
141 ecp, in mbedtls_psa_ecp_load_representation()
148 *p_ecp = ecp; in mbedtls_psa_ecp_load_representation()
[all …]
Dpsa_crypto_ecp.h92 mbedtls_ecp_keypair *ecp,
Decdsa.c170 #define ECDSA_RS_ECP ( rs_ctx == NULL ? NULL : &rs_ctx->ecp )
179 if( rs_ctx != NULL && rs_ctx->ecp.depth++ == 0 ) \
180 rs_ctx->ecp.ops_done = 0; \
206 rs_ctx->ecp.depth--; \
977 mbedtls_ecp_restart_init( &ctx->ecp ); in mbedtls_ecdsa_restart_init()
994 mbedtls_ecp_restart_free( &ctx->ecp ); in mbedtls_ecdsa_restart_free()
DMakefile94 ecp.o \
DCMakeLists.txt37 ecp.c
Dpsa_crypto.c4856 mbedtls_ecp_keypair *ecp = NULL; in psa_key_agreement_raw_internal() local
4862 &ecp ); in psa_key_agreement_raw_internal()
4866 ecp, in psa_key_agreement_raw_internal()
4869 mbedtls_ecp_keypair_free( ecp ); in psa_key_agreement_raw_internal()
4870 mbedtls_free( ecp ); in psa_key_agreement_raw_internal()
/openthread-3.6.0/third_party/mbedtls/repo/programs/pkey/
Dkey_app.c224 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk ); in main() local
225 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "Q(X): ", &ecp->Q.X, 16, NULL ) ); in main()
226 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "Q(Y): ", &ecp->Q.Y, 16, NULL ) ); in main()
227 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "Q(Z): ", &ecp->Q.Z, 16, NULL ) ); in main()
228 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "D : ", &ecp->d , 16, NULL ) ); in main()
275 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk ); in main() local
276 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "Q(X): ", &ecp->Q.X, 16, NULL ) ); in main()
277 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "Q(Y): ", &ecp->Q.Y, 16, NULL ) ); in main()
278 MBEDTLS_MPI_CHK( mbedtls_mpi_write_file( "Q(Z): ", &ecp->Q.Z, 16, NULL ) ); 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->Q.X, 16, NULL ); in main()
342 mbedtls_mpi_write_file( "Q(Y): ", &ecp->Q.Y, 16, NULL ); in main()
343 mbedtls_mpi_write_file( "Q(Z): ", &ecp->Q.Z, 16, NULL ); in main()
344 mbedtls_mpi_write_file( "D : ", &ecp->d , 16, NULL ); in main()
393 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( key ); in main() local
394 mbedtls_mpi_write_file( "Q(X): ", &ecp->Q.X, 16, NULL ); in main()
395 mbedtls_mpi_write_file( "Q(Y): ", &ecp->Q.Y, 16, NULL ); in main()
396 mbedtls_mpi_write_file( "Q(Z): ", &ecp->Q.Z, 16, NULL ); in main()
Dgen_key.c396 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( key ); in main() local
398 mbedtls_ecp_curve_info_from_grp_id( ecp->grp.id )->name ); in main()
399 mbedtls_mpi_write_file( "X_Q: ", &ecp->Q.X, 16, NULL ); in main()
400 mbedtls_mpi_write_file( "Y_Q: ", &ecp->Q.Y, 16, NULL ); in main()
401 mbedtls_mpi_write_file( "D: ", &ecp->d , 16, NULL ); in main()
/openthread-3.6.0/third_party/mbedtls/repo/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()
57 if( mbedtls_mpi_cmp_int( &ecp->d, 0 ) != 0 ) in LLVMFuzzerTestOneInput()
Dfuzz_privkey.c50 mbedtls_ecp_keypair *ecp = mbedtls_pk_ec( pk ); in LLVMFuzzerTestOneInput() local
51 mbedtls_ecp_group_id grp_id = ecp->grp.id; in LLVMFuzzerTestOneInput()
/openthread-3.6.0/third_party/mbedtls/repo/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_ecp.function2 #include "mbedtls/ecp.h"
Dtest_suite_pk.function7 #include "mbedtls/ecp.h"
/openthread-3.6.0/third_party/mbedtls/repo/programs/
D.gitignore58 test/ecp-bench
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/
Decdsa.h110 mbedtls_ecp_restart_ctx ecp; /*!< base context for ECP restart and member
/openthread-3.6.0/third_party/mbedtls/
DBUILD.gn78 "repo/include/mbedtls/ecp.h",
152 "repo/library/ecp.c",
/openthread-3.6.0/third_party/mbedtls/repo/scripts/data_files/
Dquery_config.fmt62 #include "mbedtls/ecp.h"
/openthread-3.6.0/third_party/mbedtls/repo/tests/
DCMakeLists.txt117 add_test_suite(ecp)
/openthread-3.6.0/third_party/mbedtls/repo/docs/proposed/
Dpsa-conditional-inclusion-c.md24 …uld still embark the `bignum` module and large parts of the `ecp_curves`, `ecp` and `ecdsa` module…
/openthread-3.6.0/third_party/mbedtls/repo/
DChangeLog3414 * Split off curves from ecp.c into ecp_curves.c