Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_sub_mpi (Results 1 – 11 of 11) sorted by relevance

/third_party/mbedtls/library/
Dbignum.c1087 int mbedtls_mpi_sub_mpi(mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B) in mbedtls_mpi_sub_mpi() function
1125 return mbedtls_mpi_sub_mpi(X, A, &B); in mbedtls_mpi_sub_int()
1402 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&X, &X, &Y)); in mbedtls_mpi_div_mpi()
1430 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&X, &X, &T1)); in mbedtls_mpi_div_mpi()
1504 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(R, R, B)); in mbedtls_mpi_mod_mpi()
2154 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&U2, &U2, &TA)); in mbedtls_mpi_inv_mod()
2166 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&V2, &V2, &TA)); in mbedtls_mpi_inv_mod()
2174 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&TU, &TU, &TV)); in mbedtls_mpi_inv_mod()
2175 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&U1, &U1, &V1)); in mbedtls_mpi_inv_mod()
2176 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&U2, &U2, &V2)); in mbedtls_mpi_inv_mod()
[all …]
Drsa_alt_helpers.c402 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&L, DP, D)); in mbedtls_rsa_validate_crt()
419 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&L, DQ, D)); in mbedtls_rsa_validate_crt()
Decp.c1091 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(X, A, B)); in mbedtls_mpi_sub_mod()
1214 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&tmp, &grp->P, (X))); \
1301 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(Y, &grp->P, Y)); in mbedtls_ecp_sw_derive_y()
2152 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&mm, &grp->N, m)); in ecp_comb_recode_scalar()
2964 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&XmP, &XmP, P)); in ecp_check_bad_points_mx()
Decdsa.c229 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(x, x, &grp->N)); in derive_mpi()
Drsa.c582 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&H, &ctx->P, &ctx->Q)); in mbedtls_rsa_gen_key()
1035 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&T, &TP, &TQ)); in mbedtls_rsa_private()
Decjpake.c387 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&h, &v, &h)); /* v - x*h */ in ecjpake_zkp_write()
/third_party/mbedtls/tests/suites/
Dtest_suite_bignum.misc.data862 Base test mbedtls_mpi_sub_mpi #1 (Test with negative result)
865 Base test mbedtls_mpi_sub_mpi #2 (Test with negative inputs)
868 Base test mbedtls_mpi_sub_mpi #3 (Test with negative base)
871 Base test mbedtls_mpi_sub_mpi #4 (Test with negative subtraction)
874 Test mbedtls_mpi_sub_mpi: 0 (null) - 0 (null)
877 Test mbedtls_mpi_sub_mpi: 0 (null) - 0 (1 limb)
880 Test mbedtls_mpi_sub_mpi: 0 (null) - 1
883 Test mbedtls_mpi_sub_mpi: 0 (null) - -1
886 Test mbedtls_mpi_sub_mpi: 0 (1 limb) - 0 (null)
889 Test mbedtls_mpi_sub_mpi: 1 - 0 (null)
[all …]
Dtest_suite_ecdsa.function168 TEST_EQUAL(mbedtls_mpi_sub_mpi(&r, &r_check, &grp.N), 0);
169 TEST_EQUAL(mbedtls_mpi_sub_mpi(&s, &s_check, &grp.N), 0);
Dtest_suite_bignum.function725 TEST_ASSERT(mbedtls_mpi_sub_mpi(&Z, &X, &Y) == 0);
730 TEST_ASSERT(mbedtls_mpi_sub_mpi(&X, &X, &Y) == 0);
736 TEST_ASSERT(mbedtls_mpi_sub_mpi(&Y, &X, &Y) == 0);
Dtest_suite_ecp.function1111 TEST_EQUAL(0, mbedtls_mpi_sub_mpi(&M, &N, &C));
/third_party/mbedtls/include/mbedtls/
Dbignum.h725 int mbedtls_mpi_sub_mpi(mbedtls_mpi *X, const mbedtls_mpi *A,