u-boot/arch
Parthiban Nallathambi ea91031b22 imx: hab: extend hab_auth_img to calculate ivt_offset
Current implementation of hab_auth_img command needs ivt_offset to
authenticate the image. But ivt header is placed at the end of image
date after padding.

This leaves the usage of hab_auth_img command to fixed size or static
offset for ivt header. New function "get_image_ivt_offset" is introduced
to find the ivt offset during runtime. The case conditional check in this
function is same as boot_get_kernel in common/bootm.c

With this variable length image e.g. FIT image with any random size can
have IVT at the end and ivt_offset option can be left optional

Can be used as "hab_auth_img $loadaddr $filesize" from u-boot script

Signed-off-by: Parthiban Nallathambi <pn@denx.de>
Reviewed-by: Breno Lima <breno.lima@nxp.com>
2019-01-01 14:12:18 +01:00
..
arc ARC: Improve identification of ARC cores 2018-12-03 14:26:18 +03:00
arm imx: hab: extend hab_auth_img to calculate ivt_offset 2019-01-01 14:12:18 +01:00
m68k m68k: ColdFire mcf5441x, add eSDHC support 2018-09-16 00:01:13 +02:00
microblaze arch: types.h: factor out fixed width typedefs to int-ll64.h 2018-09-10 20:48:16 -04:00
mips bmips: bcm6838: fix device tree warning 2018-12-10 18:47:13 +01:00
nds32 Drop CONFIG_INIT_CRITICAL 2018-11-26 13:57:31 +08:00
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc Merge branch 'master' of git://git.denx.de/u-boot-spi 2018-12-05 15:06:24 -05:00
riscv riscv: ax25-ae350: Pass dtb address to u-boot with a1 register 2018-12-05 14:14:16 +08:00
sandbox Merge branch 'master' of git://git.denx.de/u-boot-usb 2018-12-10 07:15:12 -05:00
sh Kbuild: add LDFLAGS_STANDALONE 2018-11-18 16:02:23 +01:00
x86 efi: payload: only init usb if necessary 2018-12-10 10:14:42 +08:00
xtensa xtensa: use asm-generic/atomic.h 2018-09-25 21:49:18 -04:00
.gitignore
Kconfig test: Add a simple test for bloblist 2018-11-26 08:25:33 -05:00