diff options
author | Alex Stapleton <alexs@prol.etari.at> | 2014-06-23 16:45:28 +0100 |
---|---|---|
committer | Alex Stapleton <alexs@prol.etari.at> | 2014-06-23 16:45:28 +0100 |
commit | da0841898d247ba167c39019ea958b582a578b70 (patch) | |
tree | c6f5cc85d46e4087ec47ea6b6245a93b3956c981 /docs/hazmat | |
parent | e5a9ccf1dbc0f8833cbe4285deb10649b7054c6f (diff) | |
parent | 0739afcc629dafd53668babb3cda629c7143981d (diff) | |
download | cryptography-da0841898d247ba167c39019ea958b582a578b70.tar.gz cryptography-da0841898d247ba167c39019ea958b582a578b70.tar.bz2 cryptography-da0841898d247ba167c39019ea958b582a578b70.zip |
Merge pull request #1164 from reaperhulk/dsa-numbers-loading
add new DSABackend interface methods for loading numbers
Diffstat (limited to 'docs/hazmat')
-rw-r--r-- | docs/hazmat/backends/interfaces.rst | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index 9e476f72..5cbd47d1 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -470,6 +470,40 @@ A specific ``backend`` may provide one or more of these interfaces. :returns: ``True`` if the given values of ``p``, ``q``, and ``g`` are supported by this backend, otherwise ``False``. + .. method:: load_dsa_parameter_numbers(numbers): + + :param numbers: An instance of + :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParameterNumbers`. + + :returns: A provider of + :class:`~cryptography.hazmat.primitives.interfaces.DSAParameters`. + + :raises cryptography.exceptions.UnsupportedAlgorithm: This raised when + any backend specific criteria are not met. + + .. method:: load_dsa_private_numbers(numbers): + + :param numbers: An instance of + :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateNumbers`. + + :returns: A provider of + :class:`~cryptography.hazmat.primitives.interfaces.DSAPrivateKey`. + + :raises cryptography.exceptions.UnsupportedAlgorithm: This raised when + any backend specific criteria are not met. + + .. method:: load_dsa_public_numbers(numbers): + + :param numbers: An instance of + :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicNumbers`. + + :returns: A provider of + :class:`~cryptography.hazmat.primitives.interfaces.DSAPublicKey`. + + :raises cryptography.exceptions.UnsupportedAlgorithm: This raised when + any backend specific criteria are not met. + + .. class:: CMACBackend |