Homomorphic encryption c code