From e009ad22284ff2bf1f415a13f203fcdcd92d8bf8 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 8 Feb 2014 17:23:46 +0000 Subject: s/bit_length/key_size/ (again) --- cryptography/hazmat/backends/interfaces.py | 4 ++-- docs/hazmat/backends/interfaces.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cryptography/hazmat/backends/interfaces.py b/cryptography/hazmat/backends/interfaces.py index 630e7079..b867f26a 100644 --- a/cryptography/hazmat/backends/interfaces.py +++ b/cryptography/hazmat/backends/interfaces.py @@ -85,8 +85,8 @@ class PBKDF2HMACBackend(six.with_metaclass(abc.ABCMeta)): class RSABackend(six.with_metaclass(abc.ABCMeta)): @abc.abstractmethod - def generate_rsa_private_key(self, public_exponent, bit_length): + def generate_rsa_private_key(self, public_exponent, key_size): """ Generate an RSAPrivateKey instance with public_exponent and a modulus - of bit_length bits. + of key_size bits. """ diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index 444ecb46..db68a646 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -199,12 +199,12 @@ A specific ``backend`` may provide one or more of these interfaces. A backend with methods for using RSA. - .. method:: generate_rsa_private_key(public_exponent, bit_length) + .. method:: generate_rsa_private_key(public_exponent, key_size) :param int public_exponent: The public exponent of the new key. Often one of the small Fermat primes 3, 5, 17, 257 or 65537. - :param int bit_length: The length in bits of the modulus. Should be + :param int key_size: The length in bits of the modulus. Should be at least 2048. :return: A new instance of a -- cgit v1.2.3