imx: hab: Add function to authenticate kernel image
authorYe Li <ye.li@nxp.com>
Thu, 25 Mar 2021 09:30:06 +0000 (17:30 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 07:18:29 +0000 (09:18 +0200)
commitc428ca80c298df55db242571d868dae7b475ccb5
tree849e573fdac9c6ea89a56edb7c80f3ced0aae03d
parent55086e196eaca9403a636ea7079e7135bddbbece
imx: hab: Add function to authenticate kernel image

When loading kernel image, the image size is parsed from header, so it
does not include the CSF and IVT.

Add back the authenticate_image function to wrap the imx_hab_authenticate_image
with calculating IVT offset and full image size.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/hab.c