Skip to content
Snippets Groups Projects
Commit ed286bc8 authored by Utkarsh Gupta's avatar Utkarsh Gupta Committed by Stefano Babic
Browse files

imx: hab: Check if CSF is valid before authenticating image


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: default avatarUtkarsh Gupta <utkarsh.gupta@nxp.com>
Signed-off-by: default avatarBreno Lima <breno.lima@nxp.com>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
parent 8c4037a0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment