From f2185acabab677a67115ba0e693000bac91390d3 Mon Sep 17 00:00:00 2001 From: j-berman Date: Fri, 18 Sep 2026 17:02:29 -0700 Subject: [PATCH] crypto: fix unit test for fe_c to use negative --- tests/unit_tests/crypto.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit_tests/crypto.cpp b/tests/unit_tests/crypto.cpp index a64671644..931994793 100644 --- a/tests/unit_tests/crypto.cpp +++ b/tests/unit_tests/crypto.cpp @@ -615,6 +615,7 @@ TEST(Crypto, fe_constants) fe_reduce_vartime(c, c); ASSERT_TRUE(fcmp_pp::sqrt(c, c)); fe_reduce_vartime(c, c); + fe_neg(c, c); // need the negative value of the sqrt ASSERT_TRUE(memcmp(fe_d, D, sizeof(fe)) == 0); ASSERT_TRUE(memcmp(fe_a_sub_d, a_minus_D, sizeof(fe)) == 0);