Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_import_private_pkcs8_in_pem_with_parameters_clear for issue #133 #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/Crypto/SelfTest/PublicKey/test_import_ECC.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ def test_import_private_pkcs8_in_pem_clear(self):
key = ECC.import_key(key_file)
self.assertEqual(ref_private, key)

def test_import_private_pkcs8_in_pem_with_parameters_clear(self):
key_file = load_file("ecc_p256_private_with_parameters_clear.pem")

key = ECC.import_key(key_file)
self.assertEqual(ref_private, key)

def test_import_private_pkcs8_encrypted_1(self):
key_file = load_file("ecc_p256_private_p8.der")

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-----BEGIN EC PARAMETERS-----
BggqhkjOPQMBBw==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIGVACa4F96iDau21g+NgZ2EhShjnjijtSGmGQpgdQOJ8oAoGCCqGSM49
AwEHoUQDQgAE21z/R5bXO0szKdO0Ocy+6n13GJr9nLnMWwBrAG5oxmFDuoLh2PSY
AkiYgkPQ0+ZDenbmOBijVyRlI7IVA46mkw==
-----END EC PRIVATE KEY-----