aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/interfaces.rst
diff options
context:
space:
mode:
authorMohammed Attia <skeuomorf@gmail.com>2014-04-25 22:44:40 +0200
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-30 15:55:10 -0500
commit59edb613d278bb93dc165e486f354b69fc12fdee (patch)
tree727d339938f94ce7592b6659ddc96d3505bfc931 /docs/hazmat/primitives/interfaces.rst
parent643b314ede639c2fa100a5b20740c8827952299b (diff)
downloadcryptography-59edb613d278bb93dc165e486f354b69fc12fdee.tar.gz
cryptography-59edb613d278bb93dc165e486f354b69fc12fdee.tar.bz2
cryptography-59edb613d278bb93dc165e486f354b69fc12fdee.zip
Add DSA verification docs
Diffstat (limited to 'docs/hazmat/primitives/interfaces.rst')
-rw-r--r--docs/hazmat/primitives/interfaces.rst26
1 files changed, 23 insertions, 3 deletions
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst
index c76582c0..c1d01f74 100644
--- a/docs/hazmat/primitives/interfaces.rst
+++ b/docs/hazmat/primitives/interfaces.rst
@@ -412,17 +412,37 @@ Asymmetric interfaces
The bit length of the modulus.
+ .. attribute:: y
+
+ :type: int
+
+ The public key.
+
.. method:: parameters()
:return: :class:`~cryptography.hazmat.primitives.interfaces.DSAParameters`
The DSAParameters object associated with this public key.
- .. attribute:: y
+ .. method:: verifier(signature, algorithm, backend)
- :type: int
+ .. versionadded:: 0.4
- The public key.
+ Verify data was signed by the private key associated with this public
+ key.
+
+ :param bytes signature: The signature to verify.
+
+ :param algorithm: An instance of a
+ :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
+ provider.
+
+ :param backend: A
+ :class:`~cryptography.hazmat.backends.interfaces.DSABackend`
+ provider.
+
+ :returns:
+ :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext`
.. class:: AsymmetricSignatureContext