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
4df708a76b
commit
e08954dd45
@ -546,7 +546,7 @@ func BenchmarkExp(b *testing.B) {
|
||||
}
|
||||
|
||||
func TestNewModulus(t *testing.T) {
|
||||
expected := "modulus must be > 0 and odd"
|
||||
expected := "modulus must be > 0"
|
||||
_, err := NewModulus([]byte{})
|
||||
if err == nil || err.Error() != expected {
|
||||
t.Errorf("NewModulus(0) got %q, want %q", err, expected)
|
||||
|
Loading…
x
Reference in New Issue
Block a user