BGN homomorphic encryption library