diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-30 15:58:20 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-30 15:58:20 -0500 |
commit | 99b0b1f78d5ca9888f996d8d9b0392ca32b8210f (patch) | |
tree | 38ae8cd1d265e4e512d60983ec45796ee5c5dc16 /docs | |
parent | 3b1e6e4b2ec5274b8e21c446e18fc993001e637e (diff) | |
parent | 5b50613aaa9ec06d4b9f350ddbe6427b6d85e424 (diff) | |
download | cryptography-99b0b1f78d5ca9888f996d8d9b0392ca32b8210f.tar.gz cryptography-99b0b1f78d5ca9888f996d8d9b0392ca32b8210f.tar.bz2 cryptography-99b0b1f78d5ca9888f996d8d9b0392ca32b8210f.zip |
Merge pull request #870 from skeuomorf/dsa-public-key
Add DSA public key api, docs and tests
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/dsa.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/asymmetric/dsa.rst b/docs/hazmat/primitives/asymmetric/dsa.rst index c9fd2f55..e93bd447 100644 --- a/docs/hazmat/primitives/asymmetric/dsa.rst +++ b/docs/hazmat/primitives/asymmetric/dsa.rst @@ -24,6 +24,28 @@ DSA not match the bounds specified in `FIPS 186-4`_. +.. class:: DSAPublicKey(modulus, subgroup_order, generator, y) + + .. versionadded:: 0.4 + + A DSA public key is required for verifying messages. + + Normally you do not need to directly construct public keys because you'll + be loading them from a file, generating them automatically or receiving + them from a 3rd party. + + This class conforms to the + :class:`~cryptography.hazmat.primitives.interfaces.DSAPublicKey` + 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``,``generator``, or ``y`` + do not match the bounds specified in `FIPS 186-4`_. + + .. _`DSA`: https://en.wikipedia.org/wiki/Digital_Signature_Algorithm .. _`public-key`: https://en.wikipedia.org/wiki/Public-key_cryptography .. _`FIPS 186-4`: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-4.pdf + |