Bootrom Tools: Pseudo-IMS generator
Bootrom Tools: Pseudo-IMS generator

Generate <count> legal IMS or CMS values.
NOTE: Intended for testing only! (This uses Python's random number generator
which is not cryptographically robust. Thus, while legal, these are not
good/secure.)

This commit adds CMS generation, and extends the human-readable IMS generati
to include the standard and ES3-compatible Endpoint Unique IDs. Also fixes
the range over which the IMS Hamming weight test is applied. The bootrom onl
uses the LSB 32 bytes, whereas the previous version of ims-gen would validat
the hamming weight over all 35 bytes of the IMS. The revised code generates
a full 35 bytes of randomness, of which only the LSB 32 bytes contribute to
the hamming weight. (Incorporates review feedback from Olin)

Testing Done: Generated multiple pseudo-IMS's, verified that they were legal
Verified I could generate them in simple and .efz format
Bug Number: trivial
Review URL: https://reviews.leaflabs.com/r/2136/
Reviewed by: Olin Sibert

Signed-off-by:  Morgan Girling <980e61e2e2b82c453db57c2e8646c01fbd3318cd@bsquare.com>

gregkh/bootrom-tools,projectara/bootrom-tools,projectara/bootrom-tools,gregkh/bootrom-tools,gregkh/bootrom-tools,projectara/bootrom-tools