Exemplo n.º 1
0
 def test_decrypt_block(self):
     c = CamCrypt()
     c.keygen(128, "\x80" + "\x00" * 15)
     encrypted = "6c227f749319a3aa7da235a9bba05a2c".decode("hex")
     self.assertEqual(ZERO_BUF, c.decrypt_block(encrypted))