From 230457a605999bbdd49df7592290956d80863f3c Mon Sep 17 00:00:00 2001 From: Mohammed Attia Date: Sun, 30 Mar 2014 02:35:13 +0200 Subject: Add DSA private key api, docs and tests --- docs/hazmat/primitives/asymmetric/dsa.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'docs/hazmat') 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 -- cgit v1.2.3