MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / eciesDecrypt

Function eciesDecrypt

plugins/CryptMessage/CryptMessage.py:25–27  ·  view source on GitHub ↗
(encrypted_data, privatekey)

Source from the content-addressed store, hash-verified

23 return key_e, ciphertext + mac
24
25def eciesDecrypt(encrypted_data, privatekey):
26 ecc_key = getEcc(privatekey)
27 return ecc_key.decrypt(base64.b64decode(encrypted_data))
28
29def split(encrypted):
30 iv = encrypted[0:16]

Callers

nothing calls this directly

Calls 2

getEccFunction · 0.85
decryptMethod · 0.80

Tested by

no test coverage detected