Leak errors resolved for ElGamal