From ee3e6bf35d482df4af4b7fdf9804df71e62d4717 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sun, 2 Feb 2014 21:13:48 +0000 Subject: Rename RSAs key_length to key_size So that it matches the existing documented CipherContext stuff. --- cryptography/hazmat/primitives/interfaces.py | 4 ++-- docs/hazmat/primitives/interfaces.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index 1a27644f..4fa24570 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -185,7 +185,7 @@ class RSAPrivateKey(six.with_metaclass(abc.ABCMeta)): """ @abc.abstractproperty - def key_length(self): + def key_size(self): """ The bit length of the public modulus. """ @@ -241,7 +241,7 @@ class RSAPublicKey(six.with_metaclass(abc.ABCMeta)): """ @abc.abstractproperty - def key_length(self): + def key_size(self): """ The bit length of the public modulus. """ diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 09a5a4ce..7fef1c13 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -130,7 +130,7 @@ Asymmetric Interfaces The public exponent. - .. attribute:: key_length + .. attribute:: key_size :type: int @@ -179,7 +179,7 @@ Asymmetric Interfaces The public modulus. - .. attribute:: key_length + .. attribute:: key_size :type: int -- cgit v1.2.3