From c6f6fc4a7847c506827559638299e49612dc4b84 Mon Sep 17 00:00:00 2001 From: filifa Date: Wed, 10 Sep 2025 22:15:46 -0400 Subject: [PATCH] change wording --- cmd/discreteLog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/discreteLog.go b/cmd/discreteLog.go index 0bd405d..2225bc4 100644 --- a/cmd/discreteLog.go +++ b/cmd/discreteLog.go @@ -45,7 +45,7 @@ func ceilSqrt(x *big.Int) *big.Int { func babyStepGiantStep(n, b, x, order *big.Int) (*big.Int, error) { z := new(big.Int).GCD(nil, nil, b, n) if z.Cmp(big.NewInt(1)) != 0 { - return nil, fmt.Errorf("base %v is not invertible modulo %v", b, n) + return nil, fmt.Errorf("base %v and modulus %v are not coprime", b, n) } var m *big.Int