change wording
This commit is contained in:
parent
b9fd3d903c
commit
c6f6fc4a78
|
|
@ -45,7 +45,7 @@ func ceilSqrt(x *big.Int) *big.Int {
|
||||||
func babyStepGiantStep(n, b, x, order *big.Int) (*big.Int, error) {
|
func babyStepGiantStep(n, b, x, order *big.Int) (*big.Int, error) {
|
||||||
z := new(big.Int).GCD(nil, nil, b, n)
|
z := new(big.Int).GCD(nil, nil, b, n)
|
||||||
if z.Cmp(big.NewInt(1)) != 0 {
|
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
|
var m *big.Int
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue