aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-07-23 19:55:06 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2018-07-23 07:55:06 -0400
commit162a17e246f51c90f61fe135e1db1006965a3385 (patch)
treea659b08040b2f7ff90a4e19d5c1efb7629cd2398 /tests/hazmat/primitives/utils.py
parenteb49820cd0750319eabb79a582f8a98419b819c5 (diff)
downloadcryptography-162a17e246f51c90f61fe135e1db1006965a3385.tar.gz
cryptography-162a17e246f51c90f61fe135e1db1006965a3385.tar.bz2
cryptography-162a17e246f51c90f61fe135e1db1006965a3385.zip
block_size isn't part of our interface and future hashes won't have it (#4366)
Diffstat (limited to 'tests/hazmat/primitives/utils.py')
-rw-r--r--tests/hazmat/primitives/utils.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index b0cc0cff..811dcf90 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -168,16 +168,15 @@ def hash_test(backend, algorithm, params):
assert m.finalize() == binascii.unhexlify(expected_md)
-def generate_base_hash_test(algorithm, digest_size, block_size):
+def generate_base_hash_test(algorithm, digest_size):
def test_base_hash(self, backend):
- base_hash_test(backend, algorithm, digest_size, block_size)
+ base_hash_test(backend, algorithm, digest_size)
return test_base_hash
-def base_hash_test(backend, algorithm, digest_size, block_size):
+def base_hash_test(backend, algorithm, digest_size):
m = hashes.Hash(algorithm, backend=backend)
assert m.algorithm.digest_size == digest_size
- assert m.algorithm.block_size == block_size
m_copy = m.copy()
assert m != m_copy
assert m._ctx != m_copy._ctx