summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/kex_curve25519.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/paramiko/kex_curve25519.py b/paramiko/kex_curve25519.py
index fc13db7f..60fb2c7a 100644
--- a/paramiko/kex_curve25519.py
+++ b/paramiko/kex_curve25519.py
@@ -22,7 +22,9 @@ class KexCurve25519(object):
def _perform_exchange(self, peer_key):
secret = self.key.exchange(peer_key)
if constant_time.bytes_eq(secret, b"\x00" * 32):
- raise SSHException("peer's curve25519 public value has wrong order")
+ raise SSHException(
+ "peer's curve25519 public value has wrong order"
+ )
return secret
def start_kex(self):