aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-05-16 10:42:10 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2018-05-16 10:42:10 -0400
commit20b57be8d8068c2cd05cd3917e4e99b8a36debe0 (patch)
tree14a88fa023bac0dff5b59c79205d1ae0c8eb2aa9
parentb6cfb331db882a0c2a2d66714e2bd653716959f9 (diff)
downloadcryptography-20b57be8d8068c2cd05cd3917e4e99b8a36debe0.tar.gz
cryptography-20b57be8d8068c2cd05cd3917e4e99b8a36debe0.tar.bz2
cryptography-20b57be8d8068c2cd05cd3917e4e99b8a36debe0.zip
remove block size as a required part of HashAlgorithm (#4249)
Internal block size isn't a particularly useful piece of information and constructions like SHA3 make it even harder to determine what that really means. Accordingly, we're removing it from the interface (but leaving it on all existing hashes)
-rw-r--r--docs/hazmat/primitives/cryptographic-hashes.rst6
-rw-r--r--src/cryptography/hazmat/primitives/hashes.py6
2 files changed, 0 insertions, 12 deletions
diff --git a/docs/hazmat/primitives/cryptographic-hashes.rst b/docs/hazmat/primitives/cryptographic-hashes.rst
index 021e433d..a73785d4 100644
--- a/docs/hazmat/primitives/cryptographic-hashes.rst
+++ b/docs/hazmat/primitives/cryptographic-hashes.rst
@@ -183,12 +183,6 @@ Interfaces
The size of the resulting digest in bytes.
- .. attribute:: block_size
-
- :type: int
-
- The internal block size of the hash algorithm in bytes.
-
.. class:: HashContext
diff --git a/src/cryptography/hazmat/primitives/hashes.py b/src/cryptography/hazmat/primitives/hashes.py
index 1764e9ce..3f3aadd6 100644
--- a/src/cryptography/hazmat/primitives/hashes.py
+++ b/src/cryptography/hazmat/primitives/hashes.py
@@ -29,12 +29,6 @@ class HashAlgorithm(object):
The size of the resulting digest in bytes.
"""
- @abc.abstractproperty
- def block_size(self):
- """
- The internal block size of the hash algorithm in bytes.
- """
-
@six.add_metaclass(abc.ABCMeta)
class HashContext(object):