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 /src | |
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 'src')
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/rsa.py | 2 | ||||
-rw-r--r-- | src/cryptography/hazmat/primitives/asymmetric/rsa.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/rsa.py b/src/cryptography/hazmat/backends/openssl/rsa.py index ce6f646c..e7365c11 100644 --- a/src/cryptography/hazmat/backends/openssl/rsa.py +++ b/src/cryptography/hazmat/backends/openssl/rsa.py @@ -565,7 +565,7 @@ class _RSAPrivateKey(object): ) ) - def as_bytes(self, encoding, format, encryption_algorithm): + def private_bytes(self, encoding, format, encryption_algorithm): if not isinstance(encoding, Encoding): raise TypeError("encoding must be an item from the Encoding enum") diff --git a/src/cryptography/hazmat/primitives/asymmetric/rsa.py b/src/cryptography/hazmat/primitives/asymmetric/rsa.py index 932868e1..4963d85c 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/rsa.py +++ b/src/cryptography/hazmat/primitives/asymmetric/rsa.py @@ -50,7 +50,7 @@ class RSAPrivateKeyWithSerialization(RSAPrivateKey): """ @abc.abstractmethod - def as_bytes(self, encoding, format, encryption_algorithm): + def private_bytes(self, encoding, format, encryption_algorithm): """ Returns the key serialized as bytes. """ |