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 f669e4f commit 07fc1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def test_rsa_encryption_roundtrip_der(self):
pt = rsa.decrypt(p, ct)
self.assertEqual(test_pt, pt)

decoded_public_key = base64.b64decode(RSA_PUBLIC_KEY_DER)
public_key_der_bytes = base64.b64decode(RSA_PUBLIC_KEY_DER_BASE64)
rsa_pub = RSA.new_public_key_from_der_data(decoded_public_key)
ct_pub = rsa_pub.encrypt(p, test_pt)
pt_pub = rsa.decrypt(p, ct_pub)
Expand Down

0 comments on commit 07fc1c8

Please sign in to comment.