We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 521df17 commit 9cf0fbfCopy full SHA for 9cf0fbf
test/test_crypto.py
@@ -363,7 +363,7 @@ def test_ec_asn1_signing_roundtrip(self):
363
h.update(b'totally original test string')
364
digest = h.digest()
365
366
- ec = EC.new_key_from_der_data(base64.decode(EC_PRIVATE_KEY_SEC1_BASE64))
+ ec = EC.new_key_from_der_data(base64.b64decode(EC_PRIVATE_KEY_SEC1_BASE64))
367
signature = ec.sign(digest)
368
369
(r, s) = EC.decode_der_signature(signature)
0 commit comments