summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-02-05 13:34:10 +0100
committerSybren A. Stüvel <sybren@stuvel.eu>2018-02-05 13:59:52 +0100
commitda7145a8835820d63539909cfe5dcc8954e4013a (patch)
tree77725ace9c08e0611dab54ba1dbac4728fe5b866 /tests
parent173be1fcf5bdf59e92c1d42072bc3497cb3ed704 (diff)
downloadrsa-git-da7145a8835820d63539909cfe5dcc8954e4013a.tar.gz
Changed unittest to cover the new SHA-224 hash method
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pkcs1.py4
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))