generate_hashes - 2024.1 English

Bootgen User Guide (UG1283)

Document ID
UG1283
Release Date
2024-05-30
Version
2024.1 English

Syntax

bootgen -image test.bif -generate_hashes

Description

This option generates hash files for all the partitions and other components to be signed like boot header, image, and partition headers. This option generates a file containing PKCS#1v1.5 padded hash for the AMD Zynq™ 7000 format:

Table 1. Zynq: SHA-2 (256-bytes)
Value SHA-2 Hash T-Padding 0x0 0xFF 0x01 0x00
Number of bytes 32 19 1 202 1 1

This option generates the file containing PKCS#1v1.5 padded hash for the AMD Zynq™ UltraScale+™ MPSoC format:

Table 2. ZynqMP: SHA-3 (384-bytes)
Value 0x0 0x1 0xFF 0xFF T-Padding SHA-3 Hash
Number of bytes 1 1 314 1 19 48

Example

test:
{                                            
      [pskfile] ppk.txt
      [sskfile] spk.txt
      [bootloader, authentication=rsa] fsbl.elf
      [authentication=rsa] hello.elf           
}
Bootgen generates the following hash files with the specified BIF:
  • bootheader hash
  • spk hash
  • header table hash
  • fsbl.elf partition hash
  • hello.elf partition hash