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 Zynq®-7000 format:
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 Zynq® UltraScale+™ MPSoC format:
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