aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/rsa/rsa.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2020-03-23 20:38:00 +0000
committerBryan C. Mills <bcmills@google.com>2020-03-23 21:15:27 +0000
commitfb2a6343defa5259df3032fef771057843e799ce (patch)
treea63a9e3cc24c7bccca8d55bc1526b6bbb498f80a /src/crypto/rsa/rsa.go
parent5b897ec0171ba92d01c63ed442fab733fe195775 (diff)
downloadgo-fb2a6343defa5259df3032fef771057843e799ce.tar.gz
go-fb2a6343defa5259df3032fef771057843e799ce.zip
Revert "crypto/rsa,crypto/ecdsa,crypto/ed25519: implement PublicKey.Equal"
This reverts CL 223754. Reason for revert: new tests are failing on all longtest builders. Change-Id: I2257d106c132f3a02c0af6b20061d4f9a8093c4f Reviewed-on: https://go-review.googlesource.com/c/go/+/225077 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Katie Hockman <katie@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/crypto/rsa/rsa.go')
-rw-r--r--src/crypto/rsa/rsa.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/crypto/rsa/rsa.go b/src/crypto/rsa/rsa.go
index 5a42990640..d058949242 100644
--- a/src/crypto/rsa/rsa.go
+++ b/src/crypto/rsa/rsa.go
@@ -50,15 +50,6 @@ func (pub *PublicKey) Size() int {
return (pub.N.BitLen() + 7) / 8
}
-// Equal reports whether pub and x have the same value.
-func (pub *PublicKey) Equal(x crypto.PublicKey) bool {
- xx, ok := x.(*PublicKey)
- if !ok {
- return false
- }
- return pub.N.Cmp(xx.N) == 0 && pub.E == xx.E
-}
-
// OAEPOptions is an interface for passing options to OAEP decryption using the
// crypto.Decrypter interface.
type OAEPOptions struct {