-
|
I have a problem with the additive homomorphic encryption in EC-Elgamal encryption. async def crypt_cycle(secgrp, M, public_out=True): The output is : |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The code you've modified above is using encoding and decoding mappings in combination with ElGamal, but these mappings are not (meant to be) homomorphic. To get started it's better to look at another piece of code in the same demo. Namely, the function Lines 79 to 103 in 98ac889 The ElGamal encryptions are made additively homomorphic by using |
Beta Was this translation helpful? Give feedback.
The code you've modified above is using encoding and decoding mappings in combination with ElGamal, but these mappings are not (meant to be) homomorphic.
To get started it's better to look at another piece of code in the same demo. Namely, the function
election(), which demonstrates the well-known CGS97 election scheme in the passive case:mpyc/demos/elgamal.py
Lines 79 to 103 in 98ac889