Skip to content

zynqmp: Fix -verify header signature checking on non-FSBL ACs#48

Open
bradfa wants to merge 1 commit into
Xilinx:masterfrom
bradfa:master-verify-check-every-bh
Open

zynqmp: Fix -verify header signature checking on non-FSBL ACs#48
bradfa wants to merge 1 commit into
Xilinx:masterfrom
bradfa:master-verify-check-every-bh

Conversation

@bradfa

@bradfa bradfa commented Jun 23, 2026

Copy link
Copy Markdown

Each authentication certificate carries a boot header signature that must be signed by that AC's own SPK. Previously only the bootloader (FSBL) partition's AC was checked, so a bad boot header signature on the header-table AC or any non-FSBL partition AC would pass -verify undetected but fail to authenticate on real hardware.

Extract the check into VerifyBootHeaderSignature() and call it for the header-table AC and for every authenticated partition (first block only for multi-block partitions), each verified against its own AC's SPK.

Follow the seek/read sequence to use the nested style seen in neighbor functions and the partition loop. Fixup the trailing cleanup comment to "// Cleanup handled by unique_ptr", which is the standard phrasing used throughout.

Each authentication certificate carries a boot header signature that
must be signed by that AC's own SPK. Previously only the bootloader
(FSBL) partition's AC was checked, so a bad boot header signature on the
header-table AC or any non-FSBL partition AC would pass -verify
undetected but fail to authenticate on real hardware.

Extract the check into VerifyBootHeaderSignature() and call it for the
header-table AC and for every authenticated partition (first block only
for multi-block partitions), each verified against its own AC's SPK.

Follow the seek/read sequence to use the nested style seen in neighbor
functions and the partition loop.  Fixup the trailing cleanup comment to
"// Cleanup handled by unique_ptr", which is the standard phrasing used
throughout.

Signed-off-by: Andrew Bradford <andrew.bradford@konsulko.com>
@bradfa bradfa force-pushed the master-verify-check-every-bh branch from b01395c to 0966bba Compare June 23, 2026 14:08
@bradfa

bradfa commented Jun 23, 2026

Copy link
Copy Markdown
Author

Removed the dependency on #47 pull request as this change doesn't actually depend on that, assuming you use an older toolchain which isn't affected by #47.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant