diff options
author | Donald Stufft <donald@stufft.io> | 2013-10-19 20:59:12 -0700 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-10-19 20:59:12 -0700 |
commit | 7abcb9c0e87787d58f4754c079a3296aaedae657 (patch) | |
tree | cef8d5454e951721ed92cd71c5e0b23c7ebc0551 /tests/primitives/test_hashes.py | |
parent | 1caf8ab5ec72d8373bc9af7a9f7b63c2ac0826f7 (diff) | |
parent | 746815b8f2b6a485b41e37c67969ed21338946db (diff) | |
download | cryptography-7abcb9c0e87787d58f4754c079a3296aaedae657.tar.gz cryptography-7abcb9c0e87787d58f4754c079a3296aaedae657.tar.bz2 cryptography-7abcb9c0e87787d58f4754c079a3296aaedae657.zip |
Merge pull request #130 from reaperhulk/hash-saga-thrilling-conclusion-md5
Hash Saga Part 7 (MD5 support + docs)
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 982fc7cd..901ddabb 100644 --- a/tests/primitives/test_hashes.py +++ b/tests/primitives/test_hashes.py @@ -86,3 +86,13 @@ class TestWhirlpool(object): only_if=lambda api: api.supports_hash(hashes.Whirlpool), skip_message="Does not support Whirlpool", ) + + +class TestMD5(object): + test_MD5 = generate_base_hash_test( + hashes.MD5, + digest_size=16, + block_size=64, + only_if=lambda api: api.supports_hash(hashes.MD5), + skip_message="Does not support MD5", + ) |