internal/sm2ec: loong64 p256Mul failed

This commit is contained in:
Sun Yimin 2025-10-13 13:09:17 +08:00 committed by GitHub
parent 773785fef1
commit d92ff50f28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,7 +144,7 @@ func p256MulTest(t *testing.T, x, y, p, r *big.Int) {
expected := new(big.Int).Mul(x, y)
expected = expected.Mod(expected, p)
if resInt.Cmp(expected) != 0 {
t.FailNow()
t.Fatalf("p256Mul(%x, %x) = %x, want %x", x, y, resInt, expected)
}
}