Signature calculation of application image for secure boot

Ian Hall from Renesas put a sample secure bootloader project ("YASB") on github.  Ian's python program prepends a 0x100-byte signature header to the application image and then performs the hash calculation starting from inside the header, rather than from the start of the application image.  It would seem the most straightforward way would be to calculate the hash based solely on the application image, generate the signature from it, and prepend the header to the image.

I'm sure there must be a good reason for including part of the header in the hash calculation so I'd appreciate understanding why it was done this way.

Thanks

tom

Parents Reply Children
No Data