diff options
author | Bryan C. Mills <bcmills@google.com> | 2020-03-23 20:38:00 +0000 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2020-03-23 21:15:27 +0000 |
commit | fb2a6343defa5259df3032fef771057843e799ce (patch) | |
tree | a63a9e3cc24c7bccca8d55bc1526b6bbb498f80a /src/crypto/rsa/rsa.go | |
parent | 5b897ec0171ba92d01c63ed442fab733fe195775 (diff) | |
download | go-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.go | 9 |
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 { |