Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_core_add_if (Results 1 – 4 of 4) sorted by relevance

/external/mbedtls/library/
Dbignum_mod_raw.c120 (void) mbedtls_mpi_core_add_if( X, N->p, N->limbs, (unsigned) c ); in mbedtls_mpi_mod_raw_sub()
142 (void) mbedtls_mpi_core_add_if( X, N->p, N->limbs, (unsigned) ( carry ^ borrow ) ); in mbedtls_mpi_mod_raw_add()
Dbignum_core.h332 mbedtls_mpi_uint mbedtls_mpi_core_add_if( mbedtls_mpi_uint *X,
Dbignum_core.c380 mbedtls_mpi_uint mbedtls_mpi_core_add_if( mbedtls_mpi_uint *X, in mbedtls_mpi_core_add_if() function
/external/mbedtls/tests/suites/
Dtest_suite_bignum_core.function87 /** Verifies mbedtls_mpi_core_add_if().
96 * \return 1 if mbedtls_mpi_core_add_if() passes this test, otherwise 0.
116 TEST_EQUAL( 0, mbedtls_mpi_core_add_if( X, B, limbs, 0 ) );
120 TEST_EQUAL( carry, mbedtls_mpi_core_add_if( X, B, limbs, 1 ) );
129 TEST_EQUAL( 0, mbedtls_mpi_core_add_if( X, X, limbs, 0 ) );
133 TEST_EQUAL( carry, mbedtls_mpi_core_add_if( X, X, limbs, 1 ) );
142 TEST_EQUAL( 0, mbedtls_mpi_core_add_if( X, A, limbs, 0 ) );
146 TEST_EQUAL( carry, mbedtls_mpi_core_add_if( X, A, limbs, 1 ) );