diff options
author | Mohammed Attia <skeuomorf@gmail.com> | 2014-03-17 12:12:31 +0200 |
---|---|---|
committer | Mohammed Attia <skeuomorf@gmail.com> | 2014-03-17 12:12:31 +0200 |
commit | 02ebc7a14fbc33042d585edce6abcdc8e16f82f7 (patch) | |
tree | 93dad38010559d1c2daf14dfbd193bd948ebcdb3 | |
parent | 31b837fdefc1516e4e1dff7bfb8db9c4303078f0 (diff) | |
download | cryptography-02ebc7a14fbc33042d585edce6abcdc8e16f82f7.tar.gz cryptography-02ebc7a14fbc33042d585edce6abcdc8e16f82f7.tar.bz2 cryptography-02ebc7a14fbc33042d585edce6abcdc8e16f82f7.zip |
Add key_size property to DSAPublicKey
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 6 |
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. |