Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_lset (Results 1 – 17 of 17) sorted by relevance

/mbedtls-3.5.0/tests/suites/
Dtest_suite_bignum.function399 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 …]
Dtest_suite_random.function188 TEST_EQUAL(0, mbedtls_mpi_lset(&d, 123456789));
Dtest_suite_ecdsa.function150 TEST_EQUAL(mbedtls_mpi_lset(&zero, 0), 0);
505 TEST_EQUAL(mbedtls_mpi_lset(&ctx.Q.Z, 1), 0);
Dtest_suite_dhm.function243 TEST_ASSERT(mbedtls_mpi_lset(&P, 1) == 0);
Dtest_suite_bignum_random.function384 TEST_ASSERT(mbedtls_mpi_lset(&result, before > 0 ? 1 : -1) == 0);
Dtest_suite_ecp.function290 TEST_ASSERT(mbedtls_mpi_lset(&Q.Z, 1) == 0);
1104 TEST_EQUAL(0, mbedtls_mpi_lset(&C, -c));
Dtest_suite_asn1parse.function436 TEST_ASSERT(mbedtls_mpi_lset(&complement, 1) == 0);
/mbedtls-3.5.0/library/
Dbignum.c268 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 …]
Decp.c642 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()
Ddhm.c369 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()
Drsa_alt_helpers.c129 mbedtls_mpi_lset(&K, primes[attempt]); in mbedtls_rsa_deduce_primes()
Decjpake.c596 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()
Dpkparse.c346 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()
Decp_curves.c4667 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()
Dbignum_core.c524 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 1)); in mbedtls_mpi_core_get_mont_r2_unsafe()
Drsa.c571 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&ctx->E, exponent)); in mbedtls_rsa_gen_key()
/mbedtls-3.5.0/include/mbedtls/
Dbignum.h373 int mbedtls_mpi_lset(mbedtls_mpi *X, mbedtls_mpi_sint z);