trustfence: fix sign/encryption for very small artifacts

The HAB on the i.MX6/i.MX6UL expects an entrypoint which is used to pass
execution to U-Boot in the ROM code. In later executions of HAB, U-Boot calls
the HAB but ignores this value.

A fixed value of 0x1000 was being used for the entrypoint, which is too big for
really small artifacts, like bootscripts. This commit reduces the value to
0x100. This allows to sign and encrypt artifacts as small as 260 bytes.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
Diaz de Grenu, Jose 2016-10-19 17:19:58 +02:00
parent 62362688df
commit 6aff5b5524
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ ivt_uimage_start="$((auth_len - 0x20))"
ivt_ram_start="$((CONFIG_RAM_START + ivt_uimage_start))" ivt_ram_start="$((CONFIG_RAM_START + ivt_uimage_start))"
ivt_size="0x20" ivt_size="0x20"
csf_ram_start="$((ivt_ram_start + ivt_size))" csf_ram_start="$((ivt_ram_start + ivt_size))"
entrypoint_uimage_offset="0x1000" entrypoint_uimage_offset="0x100"
entrypoint_ram_start="$((CONFIG_RAM_START + entrypoint_uimage_offset))" entrypoint_ram_start="$((CONFIG_RAM_START + entrypoint_uimage_offset))"
entrypoint_size="0x20" entrypoint_size="0x20"
header_uimage_offset="0x0" header_uimage_offset="0x0"