summaryrefslogtreecommitdiff
path: root/lib/tpm_api.c
diff options
context:
space:
mode:
authorJavier Viguera <javier.viguera@digi.com>2024-04-04 17:11:09 +0200
committerFabio Estevam <festevam@gmail.com>2024-04-05 09:39:18 -0300
commitf6be41c83c17c09dddfb1e29a7ca391b5190634d (patch)
treebcb41c441e854b08cee8b3d13a301c73233f5635 /lib/tpm_api.c
parent23fe2def1edf0bcd4bd91371e09069bd778a0f77 (diff)
arm: imx: fix signature_block_hdr struct fields order
According to the documentation (for example NXP's AN13994 on encrypted boot on AHAB-enabled devices), the format of the signature block is: +--------------+--------------+--------------+-------------+ | Tag | Length - msb | Length - lsb | Version | +--------------+--------------+--------------+-------------+ | SRK Table offset | Certificate offset | +-----------------------------+----------------------------+ | Blob offset | Signature offset | +-----------------------------+----------------------------+ There is no runtime error in the current u-boot code. The only user of struct signature_block_hdr is the "get_container_size" function in the "arch/arm/mach-imx/image-container.c" file, and it's only using the very first fields of the struct (which are in the correct position) and thus there is no runtime failure. On the other hand, extending the code to get the data encryption key blob offset on the signature header gives a wrong value as the field is in the wrong order. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Diffstat (limited to 'lib/tpm_api.c')
0 files changed, 0 insertions, 0 deletions