u-boot/include
Javier Viguera f6be41c83c arm: imx: fix signature_block_hdr struct fields order
According to the documentation (for example NXP's AN13994 on encrypted
boot on AHAB-enabled devices), the format of the signature block is:

  +--------------+--------------+--------------+-------------+
  | Tag          | Length - msb | Length - lsb | Version     |
  +--------------+--------------+--------------+-------------+
  | SRK Table offset            | Certificate offset         |
  +-----------------------------+----------------------------+
  | Blob offset                 | Signature offset           |
  +-----------------------------+----------------------------+

There is no runtime error in the current u-boot code. The only user of
struct signature_block_hdr is the "get_container_size" function in the
"arch/arm/mach-imx/image-container.c" file, and it's only using the very
first fields of the struct (which are in the correct position) and thus
there is no runtime failure.

On the other hand, extending the code to get the data encryption key
blob offset on the signature header gives a wrong value as the field is
in the wrong order.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-04-05 09:39:18 -03:00
..
acpi acpi: remove duplicate declaration of acpi_fill_header() 2024-03-27 09:22:07 +01:00
asm-generic arm: fix __efi_runtime_start/end definitions 2024-03-29 10:39:25 -04:00
broadcom
cavium
clk
configs First set of u-boot-at91 features for the 2024.07 cycle 2024-03-25 08:19:04 -04:00
cramfs
crypto common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
dm headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
dt-bindings Merge tag 'u-boot-socfpga-next-20240319' of https://source.denx.de/u-boot/custodians/u-boot-socfpga into next 2024-03-19 09:10:30 -04:00
env include: env: Add phytec RAUC boot logic 2024-03-17 18:39:21 -03:00
faraday
firmware/imx/sci imx: scu_api: add implementation of sc_pm_reset_reason 2024-02-08 09:17:46 -03:00
fsl-mc include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
jffs2
k210 clk_k210.c: Clean up how we handle nop 2023-11-07 14:49:40 -05:00
keys
linux firmware: psci: Fix bind_smccc_features psci check 2024-03-13 12:40:43 -04:00
lzma
meson drivers: introduce Meson Secure Monitor driver 2023-10-15 12:23:48 +02:00
mtd mtd: Rename SPL_MTD_SUPPORT to SPL_MTD 2023-11-16 12:43:48 -05:00
mvebu
net Prepare v2024.01-rc6 2024-01-03 09:22:47 -05:00
power power: rk8xx: add support for RK806 2024-03-14 18:19:44 +08:00
reboot-mode
renesas pinctrl: renesas: Add RZ/G2L PFC driver 2023-10-16 15:46:18 +02:00
samsung
spmi
tee
test test: Add framework to test hush behavior 2023-12-28 12:02:56 -05:00
u-boot global: Restrict use of '#include <linux/kconfig.h>' 2023-12-21 08:54:05 -05:00
usb usb: xhci: Better error handling in abort_td() 2023-12-01 14:06:04 +01:00
valgrind
xen
zfs
_exports.h
abuf.h
ACEX1K.h
adc.h
addr_map.h
ahci.h scsi: Forceably finish migration to DM_SCSI 2023-11-07 18:36:06 -05:00
altera.h
android_ab.h
android_bootloader_message.h
android_image.h
ansi.h
api.h
api_public.h
arm_ffa.h
arm_ffa_priv.h
armcoremodule.h
asm-offsets.h
ata.h
atf_common.h
atmel_hlcdc.h
atmel_lcd.h include: Further cleanup includes 2023-12-21 08:54:37 -05:00
atmel_lcdc.h
atmel_mci.h
atsha204a-i2c.h
audio_codec.h
autoboot.h
avb_verify.h common: avb_verify: add str_avb_io_error/str_avb_slot_error 2024-02-15 10:38:34 +01:00
axi.h
axp152.h
axp209.h
axp221.h
axp305.h
axp809.h
axp818.h
axp_pmic.h power: regulator: add AXP313 support 2023-11-12 16:47:16 +00:00
backlight.h
bcb.h cmd: bcb: extend BCB C API to allow read/write the fields 2023-11-16 18:59:58 -05:00
bcd.h
binman.h
binman_sym.h
bios_emul.h
bitfield.h
blk.h rockchip: block: blk-uclass: add bounce buffer flag to blk_desc 2023-10-24 15:55:17 +08:00
blkmap.h blk: blkmap: add ramdisk creation utility function 2023-11-18 10:08:08 +02:00
bloblist.h bloblist: Load the bloblist from the previous loader 2024-02-29 09:24:22 -05:00
bmp_layout.h
boot_fit.h
bootcount.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
bootdev.h Merge patch series "bootm: Refactoring to reduce reliance on CMDLINE (part A)" 2023-12-13 11:51:53 -05:00
bootflow.h bootstd: support scanning a single partition 2024-03-04 10:25:47 -05:00
bootm.h bootm: Create a new boot_run() function to handle booting 2023-12-21 16:07:52 -05:00
bootmeth.h
bootretry.h
bootstage.h global: Restrict use of '#include <linux/kconfig.h>' 2023-12-21 08:54:05 -05:00
bootstd.h bootstd: Introduce programmatic boot 2023-12-13 11:51:24 -05:00
bouncebuf.h
btrfs.h
bus_vcxk.h
button.h boot: add support for button commands 2024-02-13 15:38:49 -05:00
bzlib.h
cache.h include: Add <linux/types.h> in a few places 2023-10-24 16:34:45 -04:00
capitalization.h
cbfs.h binman: Rename TYPE_STAGE to TYPE_LEGACY_STAGE 2023-11-02 22:38:01 -04:00
cedit.h
charset.h lib/charset: Map Unicode code points to CP437 code points 1-31 2024-03-21 06:56:13 +01:00
circbuf.h
cli.h cli: Add a function to set up a new cread 2023-10-11 15:43:54 -04:00
cli_hush.h cli: Enables using modern hush parser as command line parser 2023-12-28 12:02:56 -05:00
clk-uclass.h clk: Document clk_ops return codes and behavior 2024-01-29 22:35:02 -05:00
clk.h treewide: Remove clk_free 2024-01-29 22:35:02 -05:00
clock_legacy.h
cmd_spl.h
command.h cmd/command.c: constify "arg" argument of cmd_get_data_size() 2024-01-16 17:05:29 -05:00
common.h common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
common_timing_params.h
compiler.h
config_distro_bootcmd.h
config_fallbacks.h
config_fsl_chain_trust.h
config_phylib_all_drivers.h
console.h common: console: introduce console_record_isempty helper 2024-01-09 14:58:33 +01:00
cortina.h
cp437.h lib/charset: Map Unicode code points to CP437 code points 1-31 2024-03-21 06:56:13 +01:00
cp1250.h lib/charset: Map Unicode code points to CP437 code points 1-31 2024-03-21 06:56:13 +01:00
cpsw.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
cpu.h include: Add <linux/types.h> in a few places 2023-10-24 16:34:45 -04:00
cpu_func.h
cros_ec.h
cros_ec_message.h
crypt.h
ctype.h
cyclic.h
ddr_spd.h
debug_uart.h
dfu.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
dialog_pmic.h
display.h
display_options.h display_options.h: Correct includes 2023-11-07 14:50:51 -05:00
div64.h
dm-demo.h
dm.h
dma-uclass.h
dma.h
dsi_host.h
dt-structs.h
dt_table.h
dw_hdmi.h
dwc3-omap-uboot.h usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget 2024-04-02 09:08:07 +02:00
dwc3-sti-glue.h
dwc3-uboot.h usb: udc: dwc3: Fold dwc3_uboot_handle_interrupt into dm_usb_gadget_handle_interrupts 2024-04-02 09:08:07 +02:00
dwc_ahsata.h
dwmmc.h
e500.h
ec_commands.h
edid.h
eeprom.h
eeprom_field.h
eeprom_layout.h
efi.h
efi_api.h efi: Use the correct GUID for the SMBIOS table 2024-01-07 13:45:07 -07:00
efi_config.h
efi_default_filename.h
efi_driver.h
efi_dt_fixup.h
efi_load_initrd.h
efi_loader.h efi_loader: export efi_get_configuration_table 2024-01-29 11:31:06 +01:00
efi_riscv.h
efi_rng.h
efi_selftest.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
efi_tcg2.h tpm: Support boot measurements 2023-10-27 13:14:47 +03:00
efi_variable.h
elf.h
env.h env: allow to copy value from default environment into a buffer 2024-01-19 10:57:36 +08:00
env_attr.h
env_callback.h
env_default.h serial: zynqmp: Fetch baudrate from dtb and update 2023-11-07 13:47:08 +01:00
env_flags.h
env_internal.h global: Restrict use of '#include <linux/kconfig.h>' 2023-12-21 08:54:05 -05:00
erofs.h
errno.h
eth_phy.h
ethsw.h
event.h event: add new EVT_SETTINGS_R event 2023-10-23 17:07:06 +03:00
event_internal.h
exception.h
expo.h expo: Add basic support for textline objects 2023-10-11 15:43:55 -04:00
exports.h
ext4fs.h fs: ext4: Remove unused parameter from ext4_mount 2023-11-16 18:53:09 -05:00
ext_common.h fs: ext4: Add some defines for testing 2023-10-17 20:50:52 -04:00
extcon.h
extension_board.h
extlinux.h
fastboot-internal.h fastboot: implement "getvar all" 2024-01-09 14:58:33 +01:00
fastboot.h fastboot: add oem console command support 2024-01-09 14:58:33 +01:00
fat.h fs: fat: calculate FAT type based on cluster count 2023-11-28 20:10:24 -05:00
fb_mmc.h
fb_nand.h
fdt.h
fdt_region.h
fdt_simplefb.h
fdt_support.h boot: Move adding initrd earlier in image_setup_libfdt() 2023-12-13 18:39:05 -05:00
fdtdec.h fdt: Allow the devicetree to come from a bloblist 2024-01-07 13:45:07 -07:00
fis.h
flash.h
fm_eth.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
fpga.h fpga: define dummy fpga_load function for debug build 2023-09-21 13:20:11 +02:00
fs.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
fs_internal.h
fs_loader.h
fsl_csu.h
fsl_ddr.h
fsl_ddr_dimm_params.h
fsl_ddr_sdram.h
fsl_ddrc_version.h
fsl_devdis.h
fsl_dspi.h
fsl_dtsec.h
fsl_errata.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
fsl_esdhc.h
fsl_esdhc_imx.h
fsl_fman.h
fsl_ifc.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
fsl_immap.h
fsl_lpuart.h
fsl_mdio.h
fsl_memac.h
fsl_mmdc.h
fsl_pmic.h
fsl_qbman.h
fsl_qe.h fsl_qe: Drop common.h 2023-11-07 14:50:51 -05:00
fsl_sec.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
fsl_sec_mon.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
fsl_secboot_err.h
fsl_sfp.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
fsl_tgec.h
fsl_usb.h
fsl_validate.h
fsl_wdog.h
fuse.h
fuzzing_engine.h
fwu.h fwu: fix fwu_get_image_index interface 2024-01-13 18:17:47 +01:00
fwu_mdata.h
g_dnl.h
gdsys_fpga.h
generic-phy.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
getopt.h include: Further cleanup includes 2023-12-21 08:54:37 -05:00
gsc.h
gt64120.h
gzip.h
handoff.h
hang.h
hash.h
hda_codec.h
hexdump.h
host_arch.h
hw_sha.h
hwconfig.h
hwspinlock.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
i2c.h i2c: Implement i2c_get_chip_by_phandle() 2023-10-31 09:08:51 +01:00
i2c_eeprom.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
i2s.h
i8042.h
ide.h
image-android-dt.h
image-sparse.h
image.h tools: fix build without LIBCRYPTO support 2024-01-11 22:09:11 -05:00
imx8image.h
imx_container.h arm: imx: fix signature_block_hdr struct fields order 2024-04-05 09:39:18 -03:00
imx_lpi2c.h
imx_sip.h
imx_thermal.h
imximage.h tools: mkimage: Add support for i.MXRT FlexSPI Header 2024-02-08 09:01:22 -03:00
init.h arm: init: export prev_bl_fdt_addr 2024-03-01 14:44:35 +00:00
initcall.h initcall: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
input.h
interrupt.h riscv: allow resume after exception 2023-11-02 16:22:06 +08:00
inttypes.h
iommu.h iommu: add a connect op 2023-12-21 11:59:49 -05:00
iomux.h
ioports.h
iotrace.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
ipu_pixfmt.h
irq.h
irq_func.h
k3-avs.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
k3-clk.h arm: mach-k3: am62px: introduce clock and device files for wkup spl 2024-03-13 10:10:04 -04:00
k3-ddrss.h
k3-dev.h arm: mach-k3: am62px: introduce clock and device files for wkup spl 2024-03-13 10:10:04 -04:00
key_matrix.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
keyboard.h
kgdb.h
lattice.h
led.h led: introduce led_bind_generic() 2023-12-13 11:35:13 -05:00
libata.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
libtizen.h
linker_lists.h
lmb.h
log.h log: fixup log_head after relocating global data 2024-03-02 12:26:56 -05:00
mailbox-uclass.h
mailbox.h
malloc.h
mapmem.h acpi: Write pointers to tables instead of addresses 2024-01-07 13:45:07 -07:00
marvell_phy.h
mc13892.h
media_bus_format.h
memalign.h include: Further cleanup includes 2023-12-21 08:54:37 -05:00
membuff.h lib: membuff: fix readline not returning line in case of overflow 2024-01-09 14:58:33 +01:00
menu.h expo: Support handling any key in cedit 2023-10-11 15:43:55 -04:00
micrel.h
miiphy.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
mipi_display.h
mipi_dsi.h
misc.h
mm_communication.h
mmc.h
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h powerpc: mpc83xx: Rework includes slightly 2023-11-07 14:50:51 -05:00
mpc85xx.h
msc01.h
mtd.h
mtd_node.h
mux-internal.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
mux.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
mv88e6352.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
mvebu_mmc.h
mxs_nand.h
nand.h nand: Allow reinitialization 2023-11-16 12:43:49 -05:00
ndisc.h
net.h cmd: efidebug: add uri device path 2023-11-18 10:08:09 +02:00
net6.h include: Further cleanup includes 2023-12-21 08:54:37 -05:00
netdev.h
ns16550.h pci: serial: Support reading PCI-register size with base 2023-10-06 14:38:13 -04:00
nuvoton_nct6102d.h
nvme.h
nvmem.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
nvmxip.h
of_live.h dm: core: Add a way to convert a devicetree to a dtb 2023-10-06 14:38:13 -04:00
omap3_spi.h
onenand_uboot.h
opensbi.h
os.h arch: sandbox: Add function to create temporary files 2023-11-16 12:43:49 -05:00
p2sb.h
palmas.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
panel.h
part.h part: correct documentation of part_get_bootable() 2024-01-21 11:24:24 +01:00
part_efi.h
pca953x.h
pch.h
pci.h drivers: pci: Fix dm_pci_map_bar() to support 64b BARs 2024-01-18 20:24:13 -05:00
pci_ep.h
pci_gt64120.h
pci_ids.h e1000: add support for i225-IT 2024-03-26 19:58:26 -04:00
pci_msc01.h
pci_rom.h
pci_tegra.h
pe.h
phy-mipi-dphy.h
phy-sun4i-usb.h
phy.h net: phy: Factor out PHY GPIO reset code 2024-03-26 19:58:26 -04:00
phy_interface.h
phys2bus.h
physmem.h
post.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
power-domain-uclass.h
power-domain.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
ppc_asm.tmpl
ppc_defs.h
pvblock.h
pwm.h
pwrseq.h
pxe_utils.h
qfw.h
ram.h
rand.h
rc4.h
regmap.h
relocate.h image: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
remoteproc.h remoteproc: uclass: Add methods to load firmware to rproc and boot rproc 2024-03-22 15:50:28 -04:00
reset-uclass.h
reset.h
rkmtd.h rockchip: block: add rkmtd class and drivers 2023-10-24 15:55:17 +08:00
rng.h rng: eliminate common.h include from RNG drivers 2024-03-02 12:26:19 -05:00
rtc.h include: Further cleanup includes 2023-12-21 08:54:37 -05:00
rtc_def.h
s_record.h
samsung-usb-phy-uboot.h
sandbox-adc.h
sandbox-clk.h
sandbox-sm.h sandbox: add sandbox sm uclass driver 2023-10-15 12:23:48 +02:00
sandbox_efi_capsule.h
sandbox_host.h blk: sandbox: Support binding a device with a given logical block size 2023-10-10 16:19:43 -04:00
sandboxfs.h
sandboxtee.h
sata.h scsi: Forceably finish migration to DM_SCSI 2023-11-07 18:36:06 -05:00
scmi_agent-uclass.h power: domain: add SCMI driver 2023-10-24 17:05:24 -04:00
scmi_agent.h firmware: scmi: framework for installing additional protocols 2023-10-13 16:59:23 -04:00
scmi_protocols.h firmware: scmi: add power domain protocol support 2023-10-24 17:05:24 -04:00
scp03.h
scsi.h scsi: Forceably finish migration to DM_SCSI 2023-11-07 18:36:06 -05:00
scsi_emul.h
sdhci.h mmc: sdhci: Rework SDHCI_QUIRK_BROKEN_R1B 2023-11-01 10:01:10 +09:00
sdp.h sdp: Use plain udevice for UDC controller interaction 2023-09-15 23:38:02 +02:00
search.h
semihosting.h
semihostingfs.h
serial.h serial: zynqmp: Fetch baudrate from dtb and update 2023-11-07 13:47:08 +01:00
sh_pfc.h
signatures.h
sl28cpld.h
slre.h
sm-uclass.h drivers: introduce Secure Monitor uclass 2023-10-15 12:23:48 +02:00
sm.h drivers: introduce Secure Monitor uclass 2023-10-15 12:23:48 +02:00
smbios.h smbios: fill wake-up type 2024-03-27 09:23:30 +01:00
smem.h
smsc_lpc47m.h
smsc_sio1007.h
soc.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
sort.h
sound.h
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi-mem.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
spi.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
spi_flash.h
spl.h spl: Enforce framebuffer reservation from end of RAM 2024-01-29 14:49:17 -05:00
spl_gpio.h
spl_load.h spl: Convert spi to spl_load 2023-11-16 13:49:14 -05:00
splash.h
squashfs.h
status_led.h
stdint.h
stdio.h
stdio_dev.h stdio: fix stdio_deregister_dev() 2023-10-09 15:24:31 -04:00
stdlib.h
stm32_rcc.h
stratixII.h
string.h
sunxi_gpio.h sunxi: introduce NCAT2 generation model 2023-10-22 23:41:46 +01:00
sunxi_image.h
sy8106a.h
syscon.h
sysinfo.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
sysreset.h
system-constants.h global: Rework architecture global_data.h to include <linux/types.h> 2023-12-21 08:54:37 -05:00
tables_csum.h lib: make table_compute_checksum() arguments const 2024-01-09 10:08:52 +01:00
tca642x.h
tee.h
tegra-kbc.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
thermal.h
thor.h thordown: Use plain udevice for UDC controller interaction 2023-09-15 23:38:02 +02:00
ti-usb-phy-uboot.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
time.h
timer.h timer: document the unit of the timer rate 2023-09-09 06:12:47 +02:00
timestamp.h
tlv_eeprom.h headers: don't depend on errno.h being available 2024-01-24 11:12:11 -05:00
tmu.h
tpm-common.h
tpm-v1.h
tpm-v2.h tpm: Support boot measurements 2023-10-27 13:14:47 +03:00
tpm_api.h
tps6586x.h
trace.h
tsec.h
tsi148.h
twl4030.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
twl6030.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
ubi_uboot.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
ubifs_uboot.h
ubispl.h
uboot_aes.h
ufs.h
universe.h
usb.h
usb_cdc_acm.h
usb_defs.h
usb_ether.h
usb_mass_storage.h usb: gadget: UMS: support multiple sector sizes 2024-03-22 10:16:13 +01:00
usbdescriptors.h
usbdevice.h include: Drop <common.h> from include lists 2023-11-07 14:50:52 -05:00
usbroothubdes.h
uuid.h
vbe.h
versalpl.h
version.h
version_string.h
vesa.h
video.h efi: Correct handling of frame buffer 2023-11-14 20:04:00 -07:00
video_bridge.h
video_console.h video: console: Parse UTF-8 character sequences 2024-03-21 06:56:13 +01:00
video_font.h
video_font_4x6.h
video_font_8x16.h
video_font_data.h
video_font_sun12x22.h
video_font_ter16x32.h
video_osd.h
virtex2.h
virtio.h
virtio_ring.h
virtio_types.h
vsc7385.h
vsc9953.h
vsprintf.h
vxworks.h
w1-eeprom.h
w1.h
wait_bit.h
watchdog.h
wdt.h
winbond_w83627.h
xen.h
xilinx.h
xyzModem.h
zfs_common.h
zynq_bootimg.h
zynqmp_firmware.h firmware: zynqmp: Add support to check feature 2023-09-21 13:20:10 +02:00
zynqmppl.h
zynqpl.h