mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
SECURE BOOT: support for validation of dynamic image
Some images to be validated are relocated to a dynamic address at run time. So, these addresses cannot be known befor hand while signing the images and creating the header offline. So, support is required to pass the image address to the validate function as an argument. If an address is provided to the function, the address field in Header is not read and is treated as a reserved field. Signed-off-by: Saksham Jain <saksham@freescale.com> Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com> Acked-by: Ruchika Gupta <ruchika.gupta@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
6629261ddd
commit
b055a0fd86
3 changed files with 32 additions and 18 deletions
|
@ -193,10 +193,13 @@ struct fsl_secboot_img_priv {
|
|||
*/
|
||||
|
||||
struct fsl_secboot_sg_table sgtbl[MAX_SG_ENTRIES]; /* SG table */
|
||||
ulong ehdrloc; /* ESBC client location */
|
||||
uintptr_t ehdrloc; /* ESBC Header location */
|
||||
uintptr_t img_addr; /* ESBC Image Location */
|
||||
uint32_t img_size; /* ESBC Image Size */
|
||||
};
|
||||
|
||||
int fsl_secboot_validate(ulong haddr, char *arg_hash_str);
|
||||
int fsl_secboot_validate(uintptr_t haddr, char *arg_hash_str,
|
||||
uintptr_t img_loc);
|
||||
int fsl_secboot_blob_encap(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[]);
|
||||
int fsl_secboot_blob_decap(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue