mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-22 10:16:18 +08:00
check failed detail
This commit is contained in:
parent
38f25df5ce
commit
7e768828e0
@ -32,7 +32,7 @@ func p256OrderSqrTest(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("expected %x, got %x", expected.Bytes(), resInt.Bytes())
|
||||
}
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ func p256OrdMulTest(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("expected %x, got %x", expected.Bytes(), resInt.Bytes())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user