aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-23 22:03:09 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-25 07:50:25 -0600
commit8aad028501ef434071d3969bce41c4e6375b4c61 (patch)
treea06d8e93e8ff50d2e419f6524a8495a644e5f4a6 /src
parent4d236049529bc1ab1b301756a6c9be7a30ce8f8a (diff)
downloadcryptography-8aad028501ef434071d3969bce41c4e6375b4c61.tar.gz
cryptography-8aad028501ef434071d3969bce41c4e6375b4c61.tar.bz2
cryptography-8aad028501ef434071d3969bce41c4e6375b4c61.zip
rename dump to as_bytes
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/rsa.py2
-rw-r--r--src/cryptography/hazmat/primitives/asymmetric/rsa.py4
2 files changed, 3 insertions, 3 deletions
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.
"""