Homomorphic encryption (HE):
An encryption scheme E is called homomorphic over an operation # if E(x1)#E(x2) = E(x1#x2) where x1, x2 belongs to…