Skip to content

Commit 6295316

Browse files
committed
add SHAKE tests
1 parent 82a8bc8 commit 6295316

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lib/test/test_hashlib.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,15 @@ def test_HACL_sha2_attributes(self, size, attrname):
14961496
def test_HACL_sha3_attributes(self, size, attrname):
14971497
self.check_HACL_attribute(_sha3, f"sha3_{size}", attrname)
14981498

1499+
@requires_sha3
1500+
@support.subTests("size", [128, 256])
1501+
@support.subTests(
1502+
"attrname",
1503+
["block_size", "digest_size", "_capacity_bits", "_rate_bits"],
1504+
)
1505+
def test_HACL_shake_attributes(self, size, attrname):
1506+
self.check_HACL_attribute(_sha3, f"shake_{size}", attrname)
1507+
14991508

15001509
if __name__ == "__main__":
15011510
unittest.main()

0 commit comments

Comments
 (0)