summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMike Roest <mike.roest@replicon.com>2022-04-26 14:40:45 -0600
committerMike Roest <mike.roest@replicon.com>2022-04-26 14:40:45 -0600
commitd596f798f01a5862c277a3ac9d714470688e77b9 (patch)
tree5fec7b1eef61730795ab8c00440f23c4236d8ee7
parent29c4d3210b745e7d56c328ffebc2513ebfb482fb (diff)
Remove blowfish from transport ciphers
-rw-r--r--paramiko/transport.py7
-rw-r--r--tests/test_transport.py6
2 files changed, 3 insertions, 10 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py
index 70c47af9..68cc195d 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -158,7 +158,6 @@ class Transport(threading.Thread, ClosingContextManager):
"aes128-cbc",
"aes192-cbc",
"aes256-cbc",
- "blowfish-cbc",
"3des-cbc",
)
_preferred_macs = (
@@ -232,12 +231,6 @@ class Transport(threading.Thread, ClosingContextManager):
"block-size": 16,
"key-size": 32,
},
- "blowfish-cbc": {
- "class": algorithms.Blowfish,
- "mode": modes.CBC,
- "block-size": 8,
- "key-size": 16,
- },
"aes128-cbc": {
"class": algorithms.AES,
"mode": modes.CBC,
diff --git a/tests/test_transport.py b/tests/test_transport.py
index b26d36cd..c17a1fc3 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -196,9 +196,9 @@ class TransportTest(unittest.TestCase):
def test_security_options(self):
o = self.tc.get_security_options()
self.assertEqual(type(o), SecurityOptions)
- self.assertTrue(("aes256-cbc", "blowfish-cbc") != o.ciphers)
- o.ciphers = ("aes256-cbc", "blowfish-cbc")
- self.assertEqual(("aes256-cbc", "blowfish-cbc"), o.ciphers)
+ self.assertTrue(("aes256-cbc") != o.ciphers)
+ o.ciphers = ("aes256-cbc")
+ self.assertEqual(("aes256-cbc"), o.ciphers)
try:
o.ciphers = ("aes256-cbc", "made-up-cipher")
self.assertTrue(False)