[crypto/ec] for ECC parameters with NULL or zero cofactor, compute it