blob: e93bd4478f61c2574c433fad7774ae7e53bb3539 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
.. hazmat::
DSA
===
.. currentmodule:: cryptography.hazmat.primitives.asymmetric.dsa
`DSA`_ is a `public-key`_ algorithm for signing messages.
.. class:: DSAParameters(modulus, subgroup_order, generator)
.. versionadded:: 0.4
DSA Parameters are required for generating a DSA private key.
This class conforms to the
:class:`~cryptography.hazmat.primitives.interfaces.DSAParameters`
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
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
|