aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-03-10 08:38:57 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-03-10 08:38:57 -0500
commit1955ebfb81ac498a86ccd50fd582ca8216a5fa56 (patch)
tree4ce1741c43f8f810ca55d64047aacc8104bc0fd1 /tests/hazmat/backends
parentd0109a59993ba568bb81a67a062dcfb460692447 (diff)
downloadcryptography-1955ebfb81ac498a86ccd50fd582ca8216a5fa56.tar.gz
cryptography-1955ebfb81ac498a86ccd50fd582ca8216a5fa56.tar.bz2
cryptography-1955ebfb81ac498a86ccd50fd582ca8216a5fa56.zip
support DER serialization of public keys
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_openssl.py8
1 files changed, 0 insertions, 8 deletions
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
- )