Lines Matching refs:R

392     mbedtls_mpi_uint *R = NULL;
405 TEST_EQUAL(mbedtls_test_read_mpi_core(&R, &limbs_R, result), 0);
423 TEST_MEMORY_COMPARE(X, bytes, R, bytes);
428 TEST_MEMORY_COMPARE(X, bytes, R, bytes);
433 TEST_MEMORY_COMPARE(X, bytes, R, bytes);
438 TEST_MEMORY_COMPARE(X, bytes, R, bytes);
443 TEST_MEMORY_COMPARE(X, bytes, R, bytes);
448 TEST_MEMORY_COMPARE(X, bytes, R, bytes);
453 TEST_MEMORY_COMPARE(X, bytes, R, bytes);
458 TEST_MEMORY_COMPARE(X, bytes, R, bytes);
465 mbedtls_free(R);
692 mbedtls_mpi_uint *R = NULL; /* for result of low-level conversion */
722 TEST_CALLOC(R, limbs);
723 mbedtls_mpi_core_to_mont_rep(R, A, N, n_limbs,
726 TEST_MEMORY_COMPARE(R, bytes, X, bytes);
729 memcpy(R, A, bytes);
730 mbedtls_mpi_core_to_mont_rep(R, R, N, n_limbs,
732 TEST_MEMORY_COMPARE(R, bytes, X, bytes);
746 mbedtls_free(R);
756 mbedtls_mpi_uint *R = NULL; /* for result of low-level conversion */
786 TEST_CALLOC(R, limbs);
787 mbedtls_mpi_core_from_mont_rep(R, A, N, n_limbs,
790 TEST_MEMORY_COMPARE(R, bytes, X, bytes);
793 memcpy(R, A, bytes);
794 mbedtls_mpi_core_from_mont_rep(R, R, N, n_limbs,
796 TEST_MEMORY_COMPARE(R, bytes, X, bytes);
810 mbedtls_free(R);
821 mbedtls_mpi_uint *R = NULL;
837 TEST_CALLOC(R, n_limbs);
843 mbedtls_mpi_mod_raw_neg(R, Z, &m);
844 TEST_MEMORY_COMPARE(R, bytes, Z, bytes);
847 mbedtls_mpi_mod_raw_neg(R, N, &m);
848 TEST_MEMORY_COMPARE(R, bytes, Z, bytes);
851 mbedtls_mpi_mod_raw_neg(R, A, &m);
852 TEST_MEMORY_COMPARE(R, bytes, X, bytes);
854 /* Neg( A ): alias A to R => Correct result */
862 mbedtls_free(R);