mirror of
https://github.com/emmansun/gmsm.git
synced 2025-10-13 23:00:47 +08:00
internal/sm2ec: check failure
This commit is contained in:
parent
331219bd5b
commit
abb51580f9
@ -197,7 +197,7 @@ func p256SqrTest(t *testing.T, x, p, r *big.Int) {
|
||||
expected := new(big.Int).Mul(x, x)
|
||||
expected = expected.Mod(expected, p)
|
||||
if resInt.Cmp(expected) != 0 {
|
||||
t.FailNow()
|
||||
t.Fatalf("p256Sqr(%x) = %x, want %x", x, resInt, expected)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user