Part Number: LP-AM263P
Tool/software:
Hello,
Currently working with a HS-SE device. tifs lib version 1.0.0.5
No updates have been made to the HSMrt image, apart from rebuilding it for the HS variant.
ospi-sbl-mcelf is then rebuilt so the new HSMrt image is loaded.
What I'm finding is that the HSMrt streaming authentication service does not seem to be catching corruptions of the supplied application image.
If some error bytes are injected into some field of the x509 certificate at start of the Application image, ospi-sbl can generally capture the failure. For example, modifying 16 bytes on 0x400 for mcelf.hs:

Will result in sbl failure:

However, for a more subtle change, for example modifying 16 bytes which (after decoding) are destined to be loaded into 0x70041485 in my case, .text into OCRAM:


The section does not get picked up as erroneous as the authentication is completed throughIBootloader_finishUpdate(). This then results in the SBL booting the application image, and causing random exceptions as a result.
I've ensured doAuth is activated, ensuring authentication should happen.

I'm going to dig into the ipc messages to check HSM response, but to how much of an extent has this been tested for the tifs? Would it be reasonable to assume such a corruption should be picked up?
If IPC client/server messages don't show anything useful will likely have to debug HSMrt. What's the easiest way to do this?
Thanks,
Rens







