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) --- src/cryptography/hazmat/primitives/hashes.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') 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