From 10b6daf755ad8dd4771baefb010a12def0d397df Mon Sep 17 00:00:00 2001 From: Xiaokang Qian Date: Mon, 22 May 2023 02:28:06 +0000 Subject: [PATCH] Fix the comments of sum in ecp function Signed-off-by: Xiaokang Qian --- tests/suites/test_suite_ecp.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_ecp.function b/tests/suites/test_suite_ecp.function index 69cd4e5adc..f5cb3df77a 100644 --- a/tests/suites/test_suite_ecp.function +++ b/tests/suites/test_suite_ecp.function @@ -1640,7 +1640,7 @@ void ecp_mod_add_sub(char *input_A, char *input_B, int id, int ctype) TEST_EQUAL(mbedtls_mpi_mod_residue_setup(&rB, &m, p_B, p_B_limbs), 0); TEST_EQUAL(mbedtls_mpi_mod_residue_setup(&rS, &m, p_S, p_A_limbs), 0); - /* Firstly add A and B to get the summary S, then subtract B, + /* Firstly add A and B to get the sum S, then subtract B, * the difference should be equal to A*/ TEST_EQUAL(0, mbedtls_mpi_mod_add(&rS, &rA, &rB, &m)); TEST_EQUAL(0, mbedtls_mpi_mod_sub(&rS, &rS, &rB, &m));