diff options
author | Michal Bohuslávek <mbohuslavek@gmail.com> | 2016-09-06 10:49:26 +0100 |
---|---|---|
committer | Adam Langley <agl@golang.org> | 2016-09-11 23:38:44 +0000 |
commit | 4ba2a4913c4e29754ade9d7329ff324a8f5de59a (patch) | |
tree | 70d09b545a443cff6a9aa14a17e60ced7db9f212 /src/crypto/rsa/rsa.go | |
parent | 5a59b66f23bc2eb11cc8445aea1dcf7a71bf2954 (diff) | |
download | go-4ba2a4913c4e29754ade9d7329ff324a8f5de59a.tar.gz go-4ba2a4913c4e29754ade9d7329ff324a8f5de59a.zip |
crypto/rsa: remove unused variable y
Change-Id: I70beb844cd6928dbfbfd8de365e0cb708e54f71e
Reviewed-on: https://go-review.googlesource.com/28496
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
Diffstat (limited to 'src/crypto/rsa/rsa.go')
-rw-r--r-- | src/crypto/rsa/rsa.go | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |