diff --git a/src/crypto/rsa/rsa.go b/src/crypto/rsa/rsa.go index 594305631b..d79c9b23fc 100644 --- a/src/crypto/rsa/rsa.go +++ b/src/crypto/rsa/rsa.go @@ -268,9 +268,8 @@ NextSetOfPrimes: g := new(big.Int) priv.D = new(big.Int) - y := new(big.Int) e := big.NewInt(int64(priv.E)) - g.GCD(priv.D, y, e, totient) + g.GCD(priv.D, nil, e, totient) if g.Cmp(bigOne) == 0 { if priv.D.Sign() < 0 {