Skip to content

Commit

Permalink
fix .result() bug in AES test, fix typo in DES test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yac committed Aug 24, 2021
1 parent c66eced commit 0a5537e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cryptol-remote-api/python/tests/cryptol/test_AES.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def test_AES(self):
decrypted_ct = c.call("aesDecrypt", (ct, key)).result()
self.assertEqual(pt, decrypted_ct)

self.assertTrue(c.safe("aesEncrypt"))
self.assertTrue(c.safe("aesDecrypt"))
self.assertTrue(c.safe("aesEncrypt").result())
self.assertTrue(c.safe("aesDecrypt").result())
self.assertTrue(c.check("AESCorrect").result().success)
# c.prove("AESCorrect") # probably takes too long for this script...?

Expand Down
2 changes: 1 addition & 1 deletion cryptol-remote-api/python/tests/cryptol/test_DES.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class TestDES(unittest.TestCase):
def test_SHA256(self):
def test_DES(self):
c = cryptol.connect(verify=False)
c.load_file(str(Path('tests','cryptol','test-files','examples','DEStest.cry')))

Expand Down

0 comments on commit 0a5537e

Please sign in to comment.