aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/bindings/interfaces.rst
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-11-18 12:44:30 -0800
committerDavid Reid <dreid@dreid.org>2013-11-18 12:44:30 -0800
commit6624a444c665ff6655cb0f2b9cece131afab6e49 (patch)
treeb0b04a351ba8d28a628f19b937bb271029a640e2 /docs/hazmat/bindings/interfaces.rst
parent5973f4cc78a5afeab010d44fc7962660158f1d30 (diff)
downloadcryptography-6624a444c665ff6655cb0f2b9cece131afab6e49.tar.gz
cryptography-6624a444c665ff6655cb0f2b9cece131afab6e49.tar.bz2
cryptography-6624a444c665ff6655cb0f2b9cece131afab6e49.zip
Hashes and HMACs.
Diffstat (limited to 'docs/hazmat/bindings/interfaces.rst')
-rw-r--r--docs/hazmat/bindings/interfaces.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/hazmat/bindings/interfaces.rst b/docs/hazmat/bindings/interfaces.rst
index 851b31a9..98c099bb 100644
--- a/docs/hazmat/bindings/interfaces.rst
+++ b/docs/hazmat/bindings/interfaces.rst
@@ -85,6 +85,8 @@ Backend Interfaces
.. method:: hash_supported(algorithm)
+ Check if the specified ``algorithm`` is supported by this backend.
+
:param algorithm: An instance of a
:class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
provider.
@@ -95,6 +97,10 @@ Backend Interfaces
.. method:: create_hash_ctx(algorithm)
+ Create a
+ :class:`~cryptogrpahy.hazmat.primitives.interfaces.HashContext` that
+ uses the specified ``algorithm`` to calculate a message digest.
+
:param algorithm: An instance of a
:class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
provider.
@@ -110,6 +116,11 @@ Backend Interfaces
.. method:: create_hmac_ctx(algorithm)
+ Create a
+ :class:`~cryptogrpahy.hazmat.primitives.interfaces.HashContext` that
+ uses the specified ``algorithm`` to calculate a hash-based message
+ authentication code.
+
:param algorithm: An instance of a
:class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm`
provider.