diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-02-05 13:34:10 +0100 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-02-05 13:59:52 +0100 |
commit | da7145a8835820d63539909cfe5dcc8954e4013a (patch) | |
tree | 77725ace9c08e0611dab54ba1dbac4728fe5b866 | |
parent | 173be1fcf5bdf59e92c1d42072bc3497cb3ed704 (diff) | |
download | rsa-da7145a8835820d63539909cfe5dcc8954e4013a.tar.gz |
Changed unittest to cover the new SHA-224 hash method
-rw-r--r-- | tests/test_pkcs1.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pkcs1.py b/tests/test_pkcs1.py index a96c8be..5377b30 100644 --- a/tests/test_pkcs1.py +++ b/tests/test_pkcs1.py @@ -128,7 +128,7 @@ class SignatureTest(unittest.TestCase): """Test happy flow of hash, sign, and verify""" message = b'je moeder' - msg_hash = pkcs1.compute_hash(message, 'SHA-256') - signature = pkcs1.sign_hash(msg_hash, self.priv, 'SHA-256') + msg_hash = pkcs1.compute_hash(message, 'SHA-224') + signature = pkcs1.sign_hash(msg_hash, self.priv, 'SHA-224') self.assertTrue(pkcs1.verify(message, signature, self.pub)) |