diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-03-10 18:37:28 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-03-10 18:37:28 -0400 |
commit | b9287cac82a06fde4e474d88ee1989efd7144dff (patch) | |
tree | 1f6b2cdb7c0501ee8a9810b118fadf11f4bdb4b8 /tests/hazmat/backends/test_openssl.py | |
parent | a66cb11b6abdd5a77f09c7bf8adbd424c701bb2b (diff) | |
parent | a2c48659274fb25a07fbffca3a74d11c6a49f131 (diff) | |
download | cryptography-b9287cac82a06fde4e474d88ee1989efd7144dff.tar.gz cryptography-b9287cac82a06fde4e474d88ee1989efd7144dff.tar.bz2 cryptography-b9287cac82a06fde4e474d88ee1989efd7144dff.zip |
Merge pull request #1741 from reaperhulk/serialize-der-public-keys
support DER serialization of public keys
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 8 |
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 - ) |