diff options
author | Edgar Sousa <edg@edgsousa.xyz> | 2018-05-23 12:37:06 +0100 |
---|---|---|
committer | edgsousa <mythund3r> | 2018-05-23 12:37:06 +0100 |
commit | c8ab126730c5f0ad8414c3198d9d876b4b9375fd (patch) | |
tree | 8c40478972a88ae41d2fbc353b78e5f9e057420e /paramiko/kex_group1.py | |
parent | 413bf37df7c9bf88d70d2b046935687c072980d4 (diff) | |
download | paramiko-c8ab126730c5f0ad8414c3198d9d876b4b9375fd.tar.gz |
Add support for DH Group14-SHA256.
Fix bug on Group1 implementation using hardcoded sha1 cipher instead of class parameter.
Diffstat (limited to 'paramiko/kex_group1.py')
-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 1bebd375..35e30e2e 100644 --- a/paramiko/kex_group1.py +++ b/paramiko/kex_group1.py @@ -110,7 +110,7 @@ class KexGroup1(object): hm.add_mpint(self.e) hm.add_mpint(self.f) hm.add_mpint(K) - self.transport._set_K_H(K, sha1(hm.asbytes()).digest()) + self.transport._set_K_H(K, self.hash_algo(hm.asbytes()).digest()) self.transport._verify_key(host_key, sig) self.transport._activate_outbound() |