summaryrefslogtreecommitdiff
path: root/tests/test_pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-21 16:34:53 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-21 16:34:53 -0400
commitb7af6829de1e4c4544334bca11fc777c6d350548 (patch)
treeffb8c28b51ae54e8afe1328c1b6d018341653a7d /tests/test_pkey.py
parent0db807758757170b92d882ecbc43f1bdad36cce6 (diff)
parent26ae0c9b452b4fa395aa89a010e855cbe10780e6 (diff)
downloadparamiko-b7af6829de1e4c4544334bca11fc777c6d350548.tar.gz
Merge branch '2.3' into 2.4
Diffstat (limited to 'tests/test_pkey.py')
-rw-r--r--tests/test_pkey.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index f7dabf26..749bb5f5 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -467,6 +467,14 @@ class KeyTest(unittest.TestCase):
)
self.assertNotEqual(key1.asbytes(), key2.asbytes())
+ def test_ed25519_funky_padding(self):
+ # Proves #1306 by just not exploding with 'Invalid key'.
+ Ed25519Key.from_private_key_file(_support("test_ed25519-funky-padding.key"))
+
+ def test_ed25519_funky_padding_with_passphrase(self):
+ # Proves #1306 by just not exploding with 'Invalid key'.
+ Ed25519Key.from_private_key_file(_support("test_ed25519-funky-padding_password.key"), b"asdf")
+
def test_ed25519_compare(self):
# verify that the private & public keys compare equal
key = Ed25519Key.from_private_key_file(_support("test_ed25519.key"))