mirror of
https://github.com/emmansun/gmsm.git
synced 2025-10-14 07:10:45 +08:00
internal/sm2ec: loong64 p256Mul failed
This commit is contained in:
parent
773785fef1
commit
d92ff50f28
@ -144,7 +144,7 @@ func p256MulTest(t *testing.T, x, y, p, r *big.Int) {
|
|||||||
expected := new(big.Int).Mul(x, y)
|
expected := new(big.Int).Mul(x, y)
|
||||||
expected = expected.Mod(expected, p)
|
expected = expected.Mod(expected, p)
|
||||||
if resInt.Cmp(expected) != 0 {
|
if resInt.Cmp(expected) != 0 {
|
||||||
t.FailNow()
|
t.Fatalf("p256Mul(%x, %x) = %x, want %x", x, y, resInt, expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user