From 8aad028501ef434071d3969bce41c4e6375b4c61 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 23 Feb 2015 22:03:09 -0600 Subject: rename dump to as_bytes --- src/cryptography/hazmat/backends/openssl/rsa.py | 2 +- src/cryptography/hazmat/primitives/asymmetric/rsa.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/cryptography/hazmat/backends/openssl/rsa.py b/src/cryptography/hazmat/backends/openssl/rsa.py index efc1a577..0a1f106f 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 dump(self, encoding, fmt, encryption_algorithm): + def as_bytes(self, encoding, fmt, 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 918717f3..160ac6aa 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/rsa.py +++ b/src/cryptography/hazmat/primitives/asymmetric/rsa.py @@ -50,9 +50,9 @@ class RSAPrivateKeyWithSerialization(RSAPrivateKey): """ @abc.abstractmethod - def dump(self, encoding, fmt, encryption_algorithm): + def as_bytes(self, encoding, fmt, encryption_algorithm): """ - Returns the dumped key. + Returns the key serialized as bytes. """ -- cgit v1.2.3