diff options
author | Benno Rice <benno.rice@oracle.com> | 2021-07-21 10:19:48 +1000 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2021-07-23 13:46:10 -0400 |
commit | 5df405f34db85c054b080ced8cdc9342ad321ff4 (patch) | |
tree | e7044ead59fa9809278cad75fe266ff5f2d76b15 | |
parent | 5ad689f70b188e11b88b63c239defcab3feac2a3 (diff) |
Don't force all algorithms to use sha1 if they don't want to.
Fixes #1882
-rw-r--r-- | paramiko/kex_group1.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/kex_group1.py b/paramiko/kex_group1.py index 5131e895..dce3fd91 100644 --- a/paramiko/kex_group1.py +++ b/paramiko/kex_group1.py @@ -140,7 +140,7 @@ class KexGroup1(object): hm.add_mpint(self.e) hm.add_mpint(self.f) hm.add_mpint(K) - H = sha1(hm.asbytes()).digest() + H = self.hash_algo(hm.asbytes()).digest() self.transport._set_K_H(K, H) # sign it sig = self.transport.get_server_key().sign_ssh_data(H) |