From 20b57be8d8068c2cd05cd3917e4e99b8a36debe0 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 16 May 2018 10:42:10 -0400 Subject: 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) --- docs/hazmat/primitives/cryptographic-hashes.rst | 6 ------ src/cryptography/hazmat/primitives/hashes.py | 6 ------ 2 files changed, 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): -- cgit v1.2.3