diff options
author | Donald Stufft <donald@stufft.io> | 2013-10-19 19:49:18 -0700 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-10-19 19:49:18 -0700 |
commit | 1caf8ab5ec72d8373bc9af7a9f7b63c2ac0826f7 (patch) | |
tree | 6a07f51334f49e419a7d56019affe4acea430375 /tests/primitives/test_hashes.py | |
parent | 9f9f550a1803fbeb930ff4debfc825bfba0819ca (diff) | |
parent | 79ff8bf91838e0e98ec75b467c0650968bf4f626 (diff) | |
download | cryptography-1caf8ab5ec72d8373bc9af7a9f7b63c2ac0826f7.tar.gz cryptography-1caf8ab5ec72d8373bc9af7a9f7b63c2ac0826f7.tar.bz2 cryptography-1caf8ab5ec72d8373bc9af7a9f7b63c2ac0826f7.zip |
Merge pull request #128 from reaperhulk/hash-saga-whirlpool
Hash Saga Part 6 (Whirlpool support)
Diffstat (limited to 'tests/primitives/test_hashes.py')
-rw-r--r-- | tests/primitives/test_hashes.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/primitives/test_hashes.py b/tests/primitives/test_hashes.py index bfb45037..982fc7cd 100644 --- a/tests/primitives/test_hashes.py +++ b/tests/primitives/test_hashes.py @@ -76,3 +76,13 @@ class TestRIPEMD160(object): only_if=lambda api: api.supports_hash(hashes.RIPEMD160), skip_message="Does not support RIPEMD160", ) + + +class TestWhirlpool(object): + test_Whirlpool = generate_base_hash_test( + hashes.Whirlpool, + digest_size=64, + block_size=64, + only_if=lambda api: api.supports_hash(hashes.Whirlpool), + skip_message="Does not support Whirlpool", + ) |