diff --git a/test/test_crypto.py b/test/test_crypto.py index ba48b5a8..9ae55bcc 100644 --- a/test/test_crypto.py +++ b/test/test_crypto.py @@ -178,8 +178,8 @@ def test_rsa_encryption_roundtrip_der(self): for p in param_list: with self.subTest(msg="RSA Encryption Roundtrip using algo p", p=p): test_pt = b'totally original test string' - 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) ct = rsa.encrypt(p, test_pt) pt = rsa.decrypt(p, ct) self.assertEqual(test_pt, pt)