aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammed Attia <skeuomorf@gmail.com>2014-03-17 12:12:31 +0200
committerMohammed Attia <skeuomorf@gmail.com>2014-03-17 12:12:31 +0200
commit02ebc7a14fbc33042d585edce6abcdc8e16f82f7 (patch)
tree93dad38010559d1c2daf14dfbd193bd948ebcdb3
parent31b837fdefc1516e4e1dff7bfb8db9c4303078f0 (diff)
downloadcryptography-02ebc7a14fbc33042d585edce6abcdc8e16f82f7.tar.gz
cryptography-02ebc7a14fbc33042d585edce6abcdc8e16f82f7.tar.bz2
cryptography-02ebc7a14fbc33042d585edce6abcdc8e16f82f7.zip
Add key_size property to DSAPublicKey
-rw-r--r--cryptography/hazmat/primitives/interfaces.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index 3824bcde..eab48b4d 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -367,6 +367,12 @@ class DSAPrivateKey(six.with_metaclass(abc.ABCMeta)):
class DSAPublicKey(six.with_metaclass(abc.ABCMeta)):
@abc.abstractproperty
+ def key_size(self):
+ """
+ The bit length of the prime modulus.
+ """
+
+ @abc.abstractproperty
def y(self):
"""
The public key.