Notes for ElGamal encryption implementation section