Searched refs:mbedtls_mpi_lset (Results 1 – 17 of 17) sorted by relevance
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_bignum.function | 399 TEST_ASSERT(mbedtls_mpi_lset(&X, input_X) == 0); 1034 TEST_ASSERT(mbedtls_mpi_lset(&A, 1) == 0); 1039 TEST_ASSERT(mbedtls_mpi_lset(&E, 1) == 0); 1044 TEST_ASSERT(mbedtls_mpi_lset(&N, 1) == 0); 1215 TEST_ASSERT(mbedtls_mpi_lset(&X, before > 0 ? 1 : -1) == 0); 1276 /* Test mbedtls_mpi_lset() */ 1277 TEST_EQUAL(mbedtls_mpi_lset(&A, most_negative), 0); 1294 TEST_EQUAL(mbedtls_mpi_lset(&A, most_positive), 0); 1299 TEST_EQUAL(mbedtls_mpi_lset(&A, 0), 0); 1304 TEST_EQUAL(mbedtls_mpi_lset(&A, most_negative), 0); [all …]
|
D | test_suite_random.function | 188 TEST_EQUAL(0, mbedtls_mpi_lset(&d, 123456789));
|
D | test_suite_ecdsa.function | 150 TEST_EQUAL(mbedtls_mpi_lset(&zero, 0), 0); 505 TEST_EQUAL(mbedtls_mpi_lset(&ctx.Q.Z, 1), 0);
|
D | test_suite_dhm.function | 243 TEST_ASSERT(mbedtls_mpi_lset(&P, 1) == 0);
|
D | test_suite_bignum_random.function | 384 TEST_ASSERT(mbedtls_mpi_lset(&result, before > 0 ? 1 : -1) == 0);
|
D | test_suite_ecp.function | 290 TEST_ASSERT(mbedtls_mpi_lset(&Q.Z, 1) == 0); 1104 TEST_EQUAL(0, mbedtls_mpi_lset(&C, -c));
|
D | test_suite_asn1parse.function | 436 TEST_ASSERT(mbedtls_mpi_lset(&complement, 1) == 0);
|
/mbedtls-3.5.0/library/ |
D | bignum.c | 268 int mbedtls_mpi_lset(mbedtls_mpi *X, mbedtls_mpi_sint z) in mbedtls_mpi_lset() function 426 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 0)); in mbedtls_mpi_read_string() 433 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 0)); in mbedtls_mpi_read_string() 1167 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 0)); in mbedtls_mpi_mul_mpi() 1209 return mbedtls_mpi_lset(X, 0); in mbedtls_mpi_mul_int() 1369 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(Q, 0)); in mbedtls_mpi_div_mpi() 1382 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&Z, 0)); in mbedtls_mpi_div_mpi() 1420 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&T1, 0)); in mbedtls_mpi_div_mpi() 1764 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&RR, 1)); in mbedtls_mpi_exp_mod() 2141 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&U1, 1)); in mbedtls_mpi_inv_mod() [all …]
|
D | ecp.c | 642 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->X, 1)); in mbedtls_ecp_set_zero() 643 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Y, 1)); in mbedtls_ecp_set_zero() 644 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Z, 0)); in mbedtls_ecp_set_zero() 682 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&P->Z, 1)); in mbedtls_ecp_point_read_string() 795 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Z, 1)); in mbedtls_ecp_point_read_binary() 813 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Z, 1)); in mbedtls_ecp_point_read_binary() 1196 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, c)) 3550 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&m, 2)); in mbedtls_ecp_self_test()
|
D | dhm.c | 369 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&ctx->Vi, 1)); in dhm_update_blinding() 370 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&ctx->Vf, 1)); in dhm_update_blinding()
|
D | rsa_alt_helpers.c | 129 mbedtls_mpi_lset(&K, primes[attempt]); in mbedtls_rsa_deduce_primes()
|
D | ecjpake.c | 596 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&one, 1)); in ecjpake_ecp_add3() 780 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&one, 1)); in mbedtls_ecjpake_derive_k()
|
D | pkparse.c | 346 mbedtls_mpi_lset(&grp->G.Y, p[0] - 2) != 0 || in pk_group_from_specified() 347 mbedtls_mpi_lset(&grp->G.Z, 1) != 0) { in pk_group_from_specified()
|
D | ecp_curves.c | 4667 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->A, curve25519_a24)); in ecp_use_curve25519() 4677 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.X, 9)); in ecp_use_curve25519() 4678 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.Z, 1)); in ecp_use_curve25519() 4729 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->A, curve448_a24)); in ecp_use_curve448() 4736 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.X, 5)); in ecp_use_curve448() 4737 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.Z, 1)); in ecp_use_curve448()
|
D | bignum_core.c | 524 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 1)); in mbedtls_mpi_core_get_mont_r2_unsafe()
|
D | rsa.c | 571 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&ctx->E, exponent)); in mbedtls_rsa_gen_key()
|
/mbedtls-3.5.0/include/mbedtls/ |
D | bignum.h | 373 int mbedtls_mpi_lset(mbedtls_mpi *X, mbedtls_mpi_sint z);
|