crypto: fix unit test for fe_c to use negative

This commit is contained in:
j-berman
2026-09-18 17:02:29 -07:00
parent 4d9ebc3746
commit f2185acaba
+1
View File
@@ -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);