add rdm for elgamal in terms