aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-24 21:48:46 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-24 21:48:46 -0500
commitcede72d984190fed405122836574a747c43ab7e2 (patch)
tree3d29cd952af6e08a81d4b5695d6e0eb1fdd626f0 /tests/hazmat/primitives
parent506f65b47f52377b0144669cfb41835762b25bb4 (diff)
parent7289496d8534645c8bf00b0a90b485e6fcf30bbb (diff)
downloadcryptography-cede72d984190fed405122836574a747c43ab7e2.tar.gz
cryptography-cede72d984190fed405122836574a747c43ab7e2.tar.bz2
cryptography-cede72d984190fed405122836574a747c43ab7e2.zip
Merge pull request #1341 from michael-hart/ec_vectors
Test Vector changes
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/test_serialization.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/hazmat/primitives/test_serialization.py b/tests/hazmat/primitives/test_serialization.py
index 7c912a92..d369e8f4 100644
--- a/tests/hazmat/primitives/test_serialization.py
+++ b/tests/hazmat/primitives/test_serialization.py
@@ -298,9 +298,9 @@ class TestPKCS8Serialization(object):
@pytest.mark.parametrize(
("key_file", "password"),
[
- ("unencpkcs8.pem", None),
- ("encpkcs8.pem", b"foobar"),
- ("enc2pkcs8.pem", b"baz"),
+ ("unenc-rsa-pkcs8.pem", None),
+ ("enc-rsa-pkcs8.pem", b"foobar"),
+ ("enc2-rsa-pkcs8.pem", b"baz"),
("pkcs12_s2k_pem-X_9607.pem", b"123456"),
("pkcs12_s2k_pem-X_9671.pem", b"123456"),
("pkcs12_s2k_pem-X_9925.pem", b"123456"),
@@ -349,7 +349,7 @@ class TestPKCS8Serialization(object):
def test_unused_password(self, backend):
key_file = os.path.join(
- "asymmetric", "PKCS8", "unencpkcs8.pem")
+ "asymmetric", "PKCS8", "unenc-rsa-pkcs8.pem")
password = b"this password will not be used"
with pytest.raises(TypeError):
@@ -362,7 +362,7 @@ class TestPKCS8Serialization(object):
def test_wrong_password(self, backend):
key_file = os.path.join(
- "asymmetric", "PKCS8", "encpkcs8.pem")
+ "asymmetric", "PKCS8", "enc-rsa-pkcs8.pem")
password = b"this password is wrong"
with pytest.raises(ValueError):
@@ -378,7 +378,7 @@ class TestPKCS8Serialization(object):
key_file = os.path.join(
"asymmetric",
"PKCS8",
- "encpkcs8.pem"
+ "enc-rsa-pkcs8.pem"
)
with pytest.raises(TypeError):
@@ -403,7 +403,7 @@ class TestPKCS8Serialization(object):
)
def test_corrupt_format(self, backend):
- # unencpkcs8.pem with a bunch of data missing.
+ # unenc-rsa-pkcs8.pem with a bunch of data missing.
key_data = textwrap.dedent("""\
-----BEGIN PRIVATE KEY-----
MIICdQIBADALBgkqhkiG9w0BAQEEggJhMIICXQIBAAKBgQC7JHoJfg6yNzLMOWet
@@ -433,7 +433,7 @@ class TestPKCS8Serialization(object):
)
def test_encrypted_corrupt_format(self, backend):
- # encpkcs8.pem with some bits flipped.
+ # enc-rsa-pkcs8.pem with some bits flipped.
key_data = textwrap.dedent("""\
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIICojAcBgoqhkiG9w0BDAEDMA4ECHK0M0+QuEL9AgIBIcSCAoDRq+KRY+0XP0tO
@@ -469,7 +469,7 @@ class TestPKCS8Serialization(object):
def test_key1_pem_encrypted_values(self, backend):
pkey = load_vectors_from_file(
os.path.join(
- "asymmetric", "PKCS8", "encpkcs8.pem"),
+ "asymmetric", "PKCS8", "enc-rsa-pkcs8.pem"),
lambda pemfile: load_pem_pkcs8_private_key(
pemfile.read().encode(), b"foobar", backend
)