Added Java compatible dh function on ecc.elGamal