aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat
diff options
context:
space:
mode:
authorMohammed Attia <skeuomorf@gmail.com>2014-03-30 02:35:13 +0200
committerMohammed Attia <skeuomorf@gmail.com>2014-03-30 23:54:27 +0200
commit230457a605999bbdd49df7592290956d80863f3c (patch)
treeed3e442cfc66e62a1ba7133404856b0752ba7295 /docs/hazmat
parent99b0b1f78d5ca9888f996d8d9b0392ca32b8210f (diff)
downloadcryptography-230457a605999bbdd49df7592290956d80863f3c.tar.gz
cryptography-230457a605999bbdd49df7592290956d80863f3c.tar.bz2
cryptography-230457a605999bbdd49df7592290956d80863f3c.zip
Add DSA private key api, docs and tests
Diffstat (limited to 'docs/hazmat')
-rw-r--r--docs/hazmat/primitives/asymmetric/dsa.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/dsa.rst b/docs/hazmat/primitives/asymmetric/dsa.rst
index e93bd447..69e8d58e 100644
--- a/docs/hazmat/primitives/asymmetric/dsa.rst
+++ b/docs/hazmat/primitives/asymmetric/dsa.rst
@@ -24,6 +24,23 @@ DSA
not match the bounds specified in `FIPS 186-4`_.
+.. class:: DSAPrivateKey(modulus, subgroup_order, generator, x, y)
+
+ .. versionadded:: 0.4
+
+ A DSA private key is required for signing messages.
+
+ This class conforms to the
+ :class:`~cryptography.hazmat.primitives.interfaces.DSAPrivateKey`
+ interface.
+
+ :raises TypeError: This is raised when the arguments are not all integers.
+
+ :raises ValueError: This is raised when the values of ``modulus``,
+ ``subgroup_order``, or ``generator`` do
+ not match the bounds specified in `FIPS 186-4`_.
+
+
.. class:: DSAPublicKey(modulus, subgroup_order, generator, y)
.. versionadded:: 0.4