diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-28 18:54:10 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-28 18:54:10 -0600 |
commit | 223a8f02a37a87b3c7366441647013cf9a18b061 (patch) | |
tree | 35ea59c389d43ff8b23ccf4532932fe80b861660 /tests/hazmat/backends/test_openssl.py | |
parent | 35194c99aeb846b2d85d6303dbe4f11b21eadaa6 (diff) | |
download | cryptography-223a8f02a37a87b3c7366441647013cf9a18b061.tar.gz cryptography-223a8f02a37a87b3c7366441647013cf9a18b061.tar.bz2 cryptography-223a8f02a37a87b3c7366441647013cf9a18b061.zip |
change as_bytes to private_bytes, link more things
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 8cf14b98..4f44f686 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -502,7 +502,7 @@ class TestRSAPEMSerialization(object): password = b"x" * 1024 key = RSA_KEY_2048.private_key(backend) with pytest.raises(ValueError): - key.as_bytes( + key.private_bytes( serialization.Encoding.PEM, serialization.Format.PKCS8, serialization.BestAvailableEncryption(password) @@ -511,7 +511,7 @@ class TestRSAPEMSerialization(object): def test_unsupported_key_encoding(self): key = RSA_KEY_2048.private_key(backend) with pytest.raises(ValueError): - key.as_bytes( + key.private_bytes( serialization.Encoding.DER, serialization.Format.PKCS8, serialization.NoEncryption() |