build with-all, fixed base64 encoding and java compatible ecc.elGamal dh
function