mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
internal/bigmod: add support for even moduli #280
This commit is contained in:
parent
e08954dd45
commit
8264b5f42c
@ -559,10 +559,6 @@ func TestNewModulus(t *testing.T) {
|
||||
if err == nil || err.Error() != expected {
|
||||
t.Errorf("NewModulus(0) got %q, want %q", err, expected)
|
||||
}
|
||||
_, err = NewModulus([]byte{1, 1, 1, 1, 2})
|
||||
if err == nil || err.Error() != expected {
|
||||
t.Errorf("NewModulus(2) got %q, want %q", err, expected)
|
||||
}
|
||||
}
|
||||
|
||||
func TestOverflowedBytes(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user