Skip to content

Commit

Permalink
Changed unittest to cover the new SHA-224 hash method
Browse files Browse the repository at this point in the history
  • Loading branch information
sybrenstuvel committed Feb 5, 2018
1 parent 173be1f commit da7145a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pkcs1.py
Expand Up @@ -128,7 +128,7 @@ def test_hash_sign_verify(self):
"""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))

0 comments on commit da7145a

Please sign in to comment.