Skip to content

Commit

Permalink
Update test/test_crypto.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Graeb <[email protected]>
  • Loading branch information
DmitriyMusatkin and graebm authored Nov 19, 2024
1 parent a117c7e commit b11de0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ def test_rsa_signing_roundtrip_der(self):
h.update(b'totally original test string')
digest = h.digest()

decoded_private_key = base64.b64decode(RSA_PRIVATE_KEY_DER)
rsa = RSA.new_private_key_from_der_data(decoded_private_key)
private_key_der_bytes = base64.b64decode(RSA_PRIVATE_KEY_DER_BASE64)
rsa = RSA.new_private_key_from_der_data(private_key_der_bytes)
signature = rsa.sign(p, digest)
self.assertTrue(rsa.verify(p, digest, signature))

Expand Down

0 comments on commit b11de0c

Please sign in to comment.