(self, user)
| 22 | assert ecc.decrypt(encrypted) == text_repeated |
| 23 | |
| 24 | def testDecryptEcies(self, user): |
| 25 | encrypted = base64.b64decode(self.ecies_encrypted_text) |
| 26 | ecc = CryptMessage.getEcc(self.privatekey) |
| 27 | assert ecc.decrypt(encrypted) == b"hello" |
| 28 | |
| 29 | def testPublickey(self, ui_websocket): |
| 30 | pub = ui_websocket.testAction("UserPublickey", 0) |