From 919a5b2af627a18c0298db8a4ac11d8b2b6da7b9 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 14 Mar 2015 13:15:17 -0500 Subject: DER serialization of DSA private keys --- tests/hazmat/backends/test_openssl.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'tests/hazmat/backends') diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 410d3d2a..6ce89d65 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -507,19 +507,3 @@ class TestRSAPEMSerialization(object): serialization.PrivateFormat.PKCS8, serialization.BestAvailableEncryption(password) ) - - -@pytest.mark.requires_backend_interface(interface=DSABackend) -class TestDSADERSerialization(object): - def test_unsupported_private_key_encoding(self): - key_bytes = load_vectors_from_file( - os.path.join("asymmetric", "PKCS8", "unenc-dsa-pkcs8.pem"), - lambda pemfile: pemfile.read().encode() - ) - key = serialization.load_pem_private_key(key_bytes, None, backend) - with pytest.raises(TypeError): - key.private_bytes( - serialization.Encoding.DER, - serialization.PrivateFormat.TraditionalOpenSSL, - serialization.NoEncryption() - ) -- cgit v1.2.3