Adjusted UI to use new elgamal.enrypt function