diff options
author | Ayrx <terrycwk1994@gmail.com> | 2014-04-15 19:17:03 +0800 |
---|---|---|
committer | Ayrx <terrycwk1994@gmail.com> | 2014-04-15 19:17:03 +0800 |
commit | a0f9850e6d45a60715685a5d07d395db9f317ad4 (patch) | |
tree | ea5eb0cfa12d0738724935013205c3292054b52a /docs | |
parent | 3c75966ac5c9308eb5868a2487d94f754e17ade2 (diff) | |
download | cryptography-a0f9850e6d45a60715685a5d07d395db9f317ad4.tar.gz cryptography-a0f9850e6d45a60715685a5d07d395db9f317ad4.tar.bz2 cryptography-a0f9850e6d45a60715685a5d07d395db9f317ad4.zip |
Added missing HashContext documentation
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hazmat/primitives/interfaces.rst | 21 |
1 files changed, 21 insertions, 0 deletions
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 ~~~~~~~~~~~~~~~~~~~~~~~~ |