aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.travis/install.sh4
-rw-r--r--cryptography/hazmat/primitives/interfaces.py6
-rw-r--r--docs/hazmat/primitives/interfaces.rst8
-rw-r--r--tox.ini2
4 files changed, 16 insertions, 4 deletions
diff --git a/.travis/install.sh b/.travis/install.sh
index 74220bff..58d7404d 100755
--- a/.travis/install.sh
+++ b/.travis/install.sh
@@ -52,8 +52,8 @@ if [[ "$(uname -s)" == "Darwin" ]]; then
pip install virtualenv
;;
py33)
- pyenv install 3.3.2
- pyenv global 3.3.2
+ pyenv install 3.3.5
+ pyenv global 3.3.5
pip install virtualenv
;;
py34)
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.
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst
index cc2a3000..cefd81ac 100644
--- a/docs/hazmat/primitives/interfaces.rst
+++ b/docs/hazmat/primitives/interfaces.rst
@@ -323,7 +323,13 @@ Asymmetric Interfaces
.. versionadded:: 0.3
- A `DSA`_ private key.
+ A `DSA`_ public key.
+
+ .. attribute:: key_size
+
+ :type: int
+
+ The bit length of the modulus.
.. method:: parameters()
diff --git a/tox.ini b/tox.ini
index 3ee449f1..72884654 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py26,py27,pypy,py32,py33,docs,pep8,py3pep8
+envlist = py26,py27,pypy,py32,py33,py34,docs,pep8,py3pep8
[testenv]
deps =