fixed forward secrecy test

master
Kevin Froman 2020-03-26 03:57:42 -05:00
parent b8a8cfd3f6
commit 16ae16f042
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class OnionrForwardSecrecyTests(unittest.TestCase):
encrypted = friendUser.forwardEncrypt(message) encrypted = friendUser.forwardEncrypt(message)
decrypted = crypto.encryption.pub_key_decrypt(encrypted[0], privkey=fakeForwardPair[1], encodedData=True) decrypted = crypto.encryption.pub_key_decrypt(encrypted[0], privkey=fakeForwardPair[1], encodedData=True)
self.assertEqual(decrypted, message.encode()) self.assertEqual(decrypted, message)
def test_forward_encrypt(self): def test_forward_encrypt(self):