Home
last modified time | relevance | path

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

/mbedtls-3.4.0/library/
Dbignum.c269 int mbedtls_mpi_lset( mbedtls_mpi *X, mbedtls_mpi_sint z ) in mbedtls_mpi_lset() function
416 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) ); in mbedtls_mpi_read_string()
426 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) ); in mbedtls_mpi_read_string()
1114 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) ); in mbedtls_mpi_mul_mpi()
1155 return( mbedtls_mpi_lset( X, 0 ) ); in mbedtls_mpi_mul_int()
1305 if( Q != NULL ) MBEDTLS_MPI_CHK( mbedtls_mpi_lset( Q, 0 ) ); in mbedtls_mpi_div_mpi()
1315 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &Z, 0 ) ); in mbedtls_mpi_div_mpi()
1357 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &T1, 0 ) ); in mbedtls_mpi_div_mpi()
1698 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &RR, 1 ) ); in mbedtls_mpi_exp_mod()
2073 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &lower_bound, min ) ); in mbedtls_mpi_random()
[all …]
Decp.c638 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->X , 1 ) ); in mbedtls_ecp_set_zero()
639 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->Y , 1 ) ); in mbedtls_ecp_set_zero()
640 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->Z , 0 ) ); in mbedtls_ecp_set_zero()
679 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &P->Z, 1 ) ); in mbedtls_ecp_point_read_string()
784 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->Z, 1 ) ); in mbedtls_ecp_point_read_binary()
807 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pt->Z, 1 ) ); in mbedtls_ecp_point_read_binary()
1159 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, c ) )
3428 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &m, 2 ) ); in mbedtls_ecp_self_test()
Ddhm.c358 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &ctx->Vi, 1 ) ); in dhm_update_blinding()
359 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &ctx->Vf, 1 ) ); in dhm_update_blinding()
Decp_curves.c4642 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &grp->A, curve25519_a24 ) ); in ecp_use_curve25519()
4645 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &grp->P, 1 ) ); in ecp_use_curve25519()
4657 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &grp->G.X, 9 ) ); in ecp_use_curve25519()
4658 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &grp->G.Z, 1 ) ); in ecp_use_curve25519()
4693 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &grp->A, curve448_a24 ) ); in ecp_use_curve448()
4696 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &grp->P, 1 ) ); in ecp_use_curve448()
4705 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &grp->G.X, 5 ) ); in ecp_use_curve448()
4706 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &grp->G.Z, 1 ) ); in ecp_use_curve448()
Drsa_alt_helpers.c131 mbedtls_mpi_lset( &K, primes[attempt] ); in mbedtls_rsa_deduce_primes()
Decjpake.c584 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &one, 1 ) ); in ecjpake_ecp_add3()
774 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &one, 1 ) ); in mbedtls_ecjpake_derive_k()
Dpkparse.c338 mbedtls_mpi_lset( &grp->G.Y, p[0] - 2 ) != 0 || in pk_group_from_specified()
339 mbedtls_mpi_lset( &grp->G.Z, 1 ) != 0 ) in pk_group_from_specified()
Dbignum_core.c534 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 1 ) ); in mbedtls_mpi_core_get_mont_r2_unsafe()
Drsa.c555 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &ctx->E, exponent ) ); in mbedtls_rsa_gen_key()
/mbedtls-3.4.0/tests/suites/
Dtest_suite_bignum.function447 TEST_ASSERT( mbedtls_mpi_lset( &X, input_X ) == 0);
1083 TEST_ASSERT( mbedtls_mpi_lset( &A, 1 ) == 0 );
1088 TEST_ASSERT( mbedtls_mpi_lset( &E, 1 ) == 0 );
1093 TEST_ASSERT( mbedtls_mpi_lset( &N, 1 ) == 0 );
1267 TEST_ASSERT( mbedtls_mpi_lset( &X, before > 0 ? 1 : -1 ) == 0 );
1418 TEST_ASSERT( mbedtls_mpi_lset( &result, before > 0 ? 1 : -1 ) == 0 );
1492 /* Test mbedtls_mpi_lset() */
1493 TEST_EQUAL( mbedtls_mpi_lset( &A, most_negative ), 0 );
1510 TEST_EQUAL( mbedtls_mpi_lset( &A, most_positive ), 0 );
1515 TEST_EQUAL( mbedtls_mpi_lset( &A, 0 ), 0 );
[all …]
Dtest_suite_random.function188 TEST_EQUAL( 0, mbedtls_mpi_lset( &d, 123456789 ) );
Dtest_suite_ecdsa.function151 TEST_EQUAL( mbedtls_mpi_lset( &zero, 0 ), 0 );
486 TEST_EQUAL( mbedtls_mpi_lset( &ctx.Q.Z, 1 ), 0 );
Dtest_suite_dhm.function238 TEST_ASSERT( mbedtls_mpi_lset( &P, 1 ) == 0 );
Dtest_suite_ecp.function275 TEST_ASSERT( mbedtls_mpi_lset( &Q.Z, 1 ) == 0 );
1077 TEST_EQUAL( 0, mbedtls_mpi_lset( &C, -c ) );
Dtest_suite_asn1parse.function453 TEST_ASSERT( mbedtls_mpi_lset( &complement, 1 ) == 0 );
/mbedtls-3.4.0/include/mbedtls/
Dbignum.h372 int mbedtls_mpi_lset( mbedtls_mpi *X, mbedtls_mpi_sint z );