Add helpers for populating apex module info

Use this to populate the module information in Keystore and send the
hash of the encoding to KeyMint(s).

Unit testing for `encode_module_info` in a follow-up CL (currently these
methods are unused).

Bug: 369375199
Test: VtsAidlKeyMintTargetTest
Change-Id: I4b8d5b5c3325c2269a93e08eb4473bc39737835a
2 files changed