summaryrefslogtreecommitdiffhomepage
path: root/tests/test_pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-21 16:36:47 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-21 16:36:47 -0400
commite5d052c4da3b9a966b1c6ee67c93157a3c55b871 (patch)
tree705bd1bb170960806d91add6430bd548760b5cfb /tests/test_pkey.py
parent22c20fd288c9a2e8bdaf42f2ba76e390679211b0 (diff)
parentb7af6829de1e4c4544334bca11fc777c6d350548 (diff)
Merge branch '2.4' into 2.5
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"))