diff options
author | David Reid <dreid@dreid.org> | 2014-05-01 12:56:56 -0700 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-05-01 12:56:56 -0700 |
commit | 7d47b98e0e95f759a18e2651a5cc6e466bccef9f (patch) | |
tree | 9d0e0ef64fde6f79f8a3d29c7f42ca2a3b94f8e8 /docs/hazmat/backends | |
parent | 7f39ebc6b32c4e3a92f17357271668c9553dc830 (diff) | |
parent | f58d1ab6cf5d90ae06a593fca52ab388d75da068 (diff) | |
download | cryptography-7d47b98e0e95f759a18e2651a5cc6e466bccef9f.tar.gz cryptography-7d47b98e0e95f759a18e2651a5cc6e466bccef9f.tar.bz2 cryptography-7d47b98e0e95f759a18e2651a5cc6e466bccef9f.zip |
Merge pull request #982 from reaperhulk/dsa-verify
DSA verification
Diffstat (limited to 'docs/hazmat/backends')
-rw-r--r-- | docs/hazmat/backends/interfaces.rst | 36 | ||||
-rw-r--r-- | docs/hazmat/backends/openssl.rst | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index 2f63f3e0..6833f221 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -345,6 +345,42 @@ A specific ``backend`` may provide one or more of these interfaces. 1.0.0 and the key size is larger than 1024; older OpenSSL versions do not support keys larger than 1024 bits. + .. method:: create_dsa_verification_ctx(public_key, signature, algorithm) + + :param public_key: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.DSAPublicKey` + provider. + + :param bytes signature: The signature to verify. DER encoded as + specified in :rfc:`6979`. + + :param algorithm: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` + provider. + + :returns: + :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext` + + .. method:: dsa_hash_supported(algorithm): + + :param algorithm: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` + provider. + + :returns: ``True`` if the specified ``algorithm`` is supported by this + backend, otherwise ``False``. + + .. method:: dsa_parameters_supported(p, q, g): + + :param int p: The p value of a DSA key. + + :param int q: The q value of a DSA key. + + :param int g: The g value of a DSA key. + + :returns: ``True`` if the given values of ``p``, ``q``, and ``g`` are + supported by this backend, otherwise ``False``. + .. class:: CMACBackend diff --git a/docs/hazmat/backends/openssl.rst b/docs/hazmat/backends/openssl.rst index 43e5d8f3..f15bc282 100644 --- a/docs/hazmat/backends/openssl.rst +++ b/docs/hazmat/backends/openssl.rst @@ -14,6 +14,7 @@ Red Hat Enterprise Linux 5) and greater. Earlier versions may work but are It implements the following interfaces: * :class:`~cryptography.hazmat.backends.interfaces.CipherBackend` + * :class:`~cryptography.hazmat.backends.interfaces.DSABackend` * :class:`~cryptography.hazmat.backends.interfaces.HashBackend` * :class:`~cryptography.hazmat.backends.interfaces.HMACBackend` * :class:`~cryptography.hazmat.backends.interfaces.PBKDF2HMACBackend` |