summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2021-11-28 14:07:16 -0500
committerJeff Forcier <jeff@bitprophet.org>2021-11-28 20:24:17 -0500
commitbdb5d9a766e30b04c0df0eea8e7b313813ce6e1d (patch)
tree85714aec365dc22a2a03b498d2bc0cb2c5406bf3
parent1b4fcd3f0abb209060080034eb66f226196dd8b0 (diff)
Patch missed RSAKey for some reason. Fixed.
-rw-r--r--paramiko/rsakey.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/paramiko/rsakey.py b/paramiko/rsakey.py
index 172f42d4..142dd278 100644
--- a/paramiko/rsakey.py
+++ b/paramiko/rsakey.py
@@ -98,10 +98,9 @@ class RSAKey(PKey):
else:
return self.asbytes().decode("utf8", errors="ignore")
- def __hash__(self):
- return hash(
- (self.get_name(), self.public_numbers.e, self.public_numbers.n)
- )
+ @property
+ def _fields(self):
+ return (self.get_name(), self.public_numbers.e, self.public_numbers.n)
def get_name(self):
return "ssh-rsa"