mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-26 11:37:09 +00:00
Fix the comments of sum in ecp function
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
be860a14ce
commit
10b6daf755
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user