From e08954dd45357b205b0e92d8340290f29627d958 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 27 Nov 2024 08:56:11 +0800 Subject: [PATCH] internal/bigmod: add support for even moduli #280 --- internal/bigmod/nat_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/bigmod/nat_test.go b/internal/bigmod/nat_test.go index d6af772..80e6f53 100644 --- a/internal/bigmod/nat_test.go +++ b/internal/bigmod/nat_test.go @@ -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)