internal/bigmod: add support for even moduli #280

This commit is contained in:
Sun Yimin 2024-11-27 08:56:11 +08:00 committed by GitHub
parent 4df708a76b
commit e08954dd45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)