summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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"