hesahesa / IntegerFHE-Gentry

A fully homomorphic encryption scheme from gentry's http://crypto.stanford.edu/craig/easy-fhe.pdf using Python
4 stars 5 forks source link

Something wrong when I run your code. #1

Open wuxichuma opened 5 years ago

wuxichuma commented 5 years ago

I run the TAHesa-somewhat_symmetric_fhe.py and change the m1 and m2 in that file. However, the result of m1+m2 is always 0 and m1*m2 is always 1, could you please help me with that? Thank you.

image

hesahesa commented 5 years ago

@wuxichuma could you show me what value did you change m1 and m2 into? note that the m1 and m2 are in the (mod 2) number (the value can only be 1 or 0) and the resulting operations are also in the (mod 2)