diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-06-21 16:34:03 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-06-21 16:34:03 -0400 |
commit | 26ae0c9b452b4fa395aa89a010e855cbe10780e6 (patch) | |
tree | a21df7dbb695e9c0269c69e7844a8425491d8be1 /tests/test_pkey.py | |
parent | b79a2150d90502c16cc3c9436dc558ae1023713e (diff) | |
parent | c45fa9f85c5dd0e697a2660b079e9915462d7c90 (diff) | |
download | paramiko-26ae0c9b452b4fa395aa89a010e855cbe10780e6.tar.gz |
Merge branch '2.2' into 2.3
Diffstat (limited to 'tests/test_pkey.py')
-rw-r--r-- | tests/test_pkey.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py index 08d38e3b..4e84da7b 100644 --- a/tests/test_pkey.py +++ b/tests/test_pkey.py @@ -468,6 +468,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")) |