summaryrefslogtreecommitdiff
path: root/paramiko/kex_group14.py
diff options
context:
space:
mode:
authorEdgar Sousa <edg@edgsousa.xyz>2018-05-23 12:37:06 +0100
committeredgsousa <mythund3r>2018-05-23 12:37:06 +0100
commitc8ab126730c5f0ad8414c3198d9d876b4b9375fd (patch)
tree8c40478972a88ae41d2fbc353b78e5f9e057420e /paramiko/kex_group14.py
parent413bf37df7c9bf88d70d2b046935687c072980d4 (diff)
downloadparamiko-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_group14.py')
-rw-r--r--paramiko/kex_group14.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/paramiko/kex_group14.py b/paramiko/kex_group14.py
index 22955e34..009ccb2f 100644
--- a/paramiko/kex_group14.py
+++ b/paramiko/kex_group14.py
@@ -22,7 +22,7 @@ Standard SSH key exchange ("kex" if you wanna sound cool). Diffie-Hellman of
"""
from paramiko.kex_group1 import KexGroup1
-from hashlib import sha1
+from hashlib import sha1, sha256
class KexGroup14(KexGroup1):
@@ -33,3 +33,6 @@ class KexGroup14(KexGroup1):
name = 'diffie-hellman-group14-sha1'
hash_algo = sha1
+
+class KexGroup14_SHA256(KexGroup14):
+ hash_algo = sha256