Change ecp_mul() prototype to allow randomization

(Also improve an error code while at it.)
10 files changed