[U-Boot] [PATCH 3/5] imx: hab: Check if CSF is valid before authenticating image

Fabio Estevam festevam at gmail.com
Tue Feb 20 10:45:09 UTC 2018


On Mon, Feb 19, 2018 at 10:19 PM, Breno Lima <brenomatheus at gmail.com> wrote:
> From: Utkarsh Gupta <utkarsh.gupta at nxp.com>
>
> For proper authentication the HAB code must check if the CSF is valid.
> Users must call the csf_is_valid() function to parse the CSF prior to
> authenticating any additional images. The function will return a failure
> if any of the following invalid conditions are met:
>
> - CSF pointer is NULL
> - CSF Header does not exist
> - CSF does not lie within the image bounds
> - CSF command length zero
>
> Signed-off-by: Utkarsh Gupta <utkarsh.gupta at nxp.com>
> Signed-off-by: Breno Lima <breno.lima at nxp.com>

Reviewed-by: Fabio Estevam <fabio.estevam at nxp.com>


More information about the U-Boot mailing list