From 1955ebfb81ac498a86ccd50fd582ca8216a5fa56 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 10 Mar 2015 08:38:57 -0500 Subject: support DER serialization of public keys --- tests/hazmat/backends/test_openssl.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/hazmat/backends') diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index ba0a2ba3..cfdc06b4 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -516,11 +516,3 @@ class TestRSAPEMSerialization(object): serialization.PrivateFormat.PKCS8, serialization.NoEncryption() ) - - def test_unsupported_public_key_encoding(self): - key = RSA_KEY_2048.private_key(backend).public_key() - with pytest.raises(ValueError): - key.public_bytes( - serialization.Encoding.DER, - serialization.PublicFormat.SubjectPublicKeyInfo - ) -- cgit v1.2.3