Lines Matching refs:u
614 mbedtls_mpi u; in mpi_egcd() local
622 get_mpi(&u, NULL); in mpi_egcd()
642 MPI_CHECK(mbedtls_mpi_copy(&u, &x)); in mpi_egcd()
649 while (mbedtls_mpi_cmp_int(&u, 0)) { in mpi_egcd()
650 while (mpi_is_even(&u)) { in mpi_egcd()
651 MPI_CHECK(mbedtls_mpi_shift_r(&u, 1)); in mpi_egcd()
671 if (mbedtls_mpi_cmp_mpi(&u, gcd) >= 0) { in mpi_egcd()
672 MPI_CHECK(mbedtls_mpi_sub_mpi(&u, &u, gcd)); in mpi_egcd()
676 MPI_CHECK(mbedtls_mpi_sub_mpi(gcd, gcd, &u)); in mpi_egcd()
693 mbedtls_mpi_free(&u); in mpi_egcd()
696 void TEE_BigIntComputeExtendedGcd(TEE_BigInt *gcd, TEE_BigInt *u, in TEE_BigIntComputeExtendedGcd() argument
713 if (!u && !v) { in TEE_BigIntComputeExtendedGcd()
725 get_mpi(&mpi_u, u); in TEE_BigIntComputeExtendedGcd()
742 MPI_CHECK(copy_mpi_to_bigint(&mpi_u, u)); in TEE_BigIntComputeExtendedGcd()