From a0f9850e6d45a60715685a5d07d395db9f317ad4 Mon Sep 17 00:00:00 2001 From: Ayrx Date: Tue, 15 Apr 2014 19:17:03 +0800 Subject: Added missing HashContext documentation --- docs/hazmat/primitives/interfaces.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 9a1f3307..cdb925ee 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -402,6 +402,27 @@ Hash algorithms The internal block size of the hash algorithm in bytes. +.. class:: HashContext + + .. attribute:: algorithm + + A :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` that + will be used by this context. + + .. method:: update(data) + + :param data bytes: The data you want to hash. + + .. method:: finalize() + + :return: The final digest as bytes. + + .. method:: copy() + + :return: A :class:`~cryptography.hazmat.primitives.interfaces.HashContext` + that is a copy of the current context. + + Key derivation functions ~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3