Example #1
0
 def test_verify_fail_wrong_signature(self):
     sig = Crypto.sign(self.message, self.wrong_key)
     assert_false(Crypto.verify(self.message + b"2", self.key, sig))
Example #2
0
 def test_verify(self):
     sig = Crypto.sign(self.message, self.key)
     assert_true(Crypto.verify(self.message, self.key, sig))