diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-29 10:51:15 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-29 10:51:15 -0800 |
commit | eef972b17e72e9e7cd6f7aad5e89f39b8c44188e (patch) | |
tree | 119585046079664777b3bbb31cf2144630db7899 /docs/hazmat/primitives/interfaces.rst | |
parent | d571d87740cdeeea3d64571c6d2760ba4d45d765 (diff) | |
parent | 4c75a8c34610aef42e3bf3635a393d14a55273f8 (diff) | |
download | cryptography-eef972b17e72e9e7cd6f7aad5e89f39b8c44188e.tar.gz cryptography-eef972b17e72e9e7cd6f7aad5e89f39b8c44188e.tar.bz2 cryptography-eef972b17e72e9e7cd6f7aad5e89f39b8c44188e.zip |
Merge pull request #528 from reaperhulk/fix-527
Document HashAlgorithm
Diffstat (limited to 'docs/hazmat/primitives/interfaces.rst')
-rw-r--r-- | docs/hazmat/primitives/interfaces.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 2adad913..09a5a4ce 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -204,6 +204,31 @@ Asymmetric Interfaces The public exponent. Alias for :attr:`public_exponent`. +Hash Algorithms +~~~~~~~~~~~~~~~ + +.. class:: HashAlgorithm + + .. attribute:: name + + :type: str + + The standard name for the hash algorithm, for example: ``"sha256"`` or + ``"whirlpool"``. + + .. attribute:: digest_size + + :type: int + + The size of the resulting digest in bytes. + + .. attribute:: block_size + + :type: int + + The internal block size of the hash algorithm in bytes. + + Key Derivation Functions ~~~~~~~~~~~~~~~~~~~~~~~~ |