diff options
author | Jack Lloyd <[email protected]> | 2019-04-18 14:38:33 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-04-18 14:38:33 -0400 |
commit | ce824cd15596712f8a5370eb27ef112c316da50f (patch) | |
tree | acd1d8d7793af4348ee38ec116f4f57d64094b52 /src/scripts/test_python.py | |
parent | d10e7d152444a864488d9e113f34b64a75aa541c (diff) |
Simplify declaration of ffi functions
And fix a Python3 issue
Diffstat (limited to 'src/scripts/test_python.py')
-rw-r--r-- | src/scripts/test_python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/test_python.py b/src/scripts/test_python.py index 9e2e53db9..dd434531e 100644 --- a/src/scripts/test_python.py +++ b/src/scripts/test_python.py @@ -213,7 +213,7 @@ ofvkP1EDmpx50fHLawIDAQAB priv_pem = rsapriv.to_pem() priv_der = rsapriv.to_der() - self.assertEqual(priv_pem[0:28], b"-----BEGIN PRIVATE KEY-----\n") + self.assertEqual(priv_pem[0:28], "-----BEGIN PRIVATE KEY-----\n") self.assertTrue(len(priv_pem) > len(priv_der)) rsapub = rsapriv.get_public_key() @@ -223,7 +223,7 @@ ofvkP1EDmpx50fHLawIDAQAB pub_pem = rsapub.to_pem() pub_der = rsapub.to_der() - self.assertEqual(pub_pem[0:27], b"-----BEGIN PUBLIC KEY-----\n") + self.assertEqual(pub_pem[0:27], "-----BEGIN PUBLIC KEY-----\n") self.assertTrue(len(pub_pem) > len(pub_der)) enc = botan2.PKEncrypt(rsapub, "OAEP(SHA-256)") |