Hi,
The link you've sent doesn't contain answer to the question: is it possible to sign and encrypt whole u-boot.bin.
All examples and Figure "Chosen memory layout of the encrypted u-boot" on page Encrypted U-boot Example use signature only for unencrypted data, while encrypted part stays unsigned. Like this :
[Authenticate Data]
Blocks = 0x177ff400 0x00000000 0x00000C10 "./u-boot.imx"
[Decrypt Data]
Blocks = 0x17800010 0x00000C10 0x0007AFF0 "./u-boot.imx"
Is it possible to add extra "Authenticate Data" with the same block as in "Decrypt Data" ?
[Authenticate Data]
Blocks = 0x177ff400 0x00000000 0x00000C10 "./u-boot.imx"
[Authenticate Data]
Blocks = 0x17800010 0x00000C10 0x0007AFF0 "./u-boot.imx"
[Decrypt Data]
Blocks = 0x17800010 0x00000C10 0x0007AFF0 "./u-boot.imx"
I've tried such config already. CSF was generated and u-boot.bin was encrypted without errors. But final image failed to boot. need to figure out:
- am I doing something wrong ?
- or simultaneous encryption and signing doesn't supported
Thanks