tools: mxsboot: Calculate ECC strength dynamically