Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Nov 18, 2024
1 parent 436bf60 commit 6217cf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def test_rsa_signing_roundtrip(self):
digest = h.digest()

param_list = [RSASignatureAlgorithm.PKCS1_5_SHA256,
RSASignatureAlgorithm.PKCS1_5_SHA1,
RSASignatureAlgorithm.PSS_SHA256]

for p in param_list:
Expand All @@ -148,7 +149,7 @@ def test_rsa_signing_roundtrip(self):
signature = rsa.sign(p, digest)
self.assertTrue(rsa.verify(p, digest, signature))

rsa_pub = RSA.new_private_key_from_pem_data(RSA_PRIVATE_KEY_PEM)
rsa_pub = RSA.new_public_key_from_pem_data(RSA_PUBLIC_KEY_PEM)
self.assertTrue(rsa_pub.verify(p, digest, signature))

def test_rsa_load_error(self):
Expand Down

0 comments on commit 6217cf1

Please sign in to comment.