summaryrefslogtreecommitdiff
path: root/paramiko/kex_gex.py
diff options
context:
space:
mode:
Diffstat (limited to 'paramiko/kex_gex.py')
-rw-r--r--paramiko/kex_gex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py
index 7bf24ddd..baa0803d 100644
--- a/paramiko/kex_gex.py
+++ b/paramiko/kex_gex.py
@@ -48,7 +48,7 @@ from paramiko.ssh_exception import SSHException
) = [byte_chr(c) for c in range(30, 35)]
-class KexGex(object):
+class KexGex:
name = "diffie-hellman-group-exchange-sha1"
min_bits = 1024
@@ -111,7 +111,7 @@ class KexGex(object):
qnorm = util.deflate_long(q, 0)
qhbyte = byte_ord(qnorm[0])
byte_count = len(qnorm)
- qmask = 0xff
+ qmask = 0xFF
while not (qhbyte & 0x80):
qhbyte <<= 1
qmask >>= 1