Skip to main content
Associate
September 24, 2025
Question

STM32H745: Firmware signature verification failure in bootloader

  • September 24, 2025
  • 1 reply
  • 594 views

Hi Team,
Firmware file are just signed not encrypted through STM32 SigningTool - stm32mcu (STM32_SigningTool_CLI.exe) after generating public and private keys through STM32_KeyGen_CLI.exe.

Public key in raw 64 bytes is provided to bootloader_main.c as constant and hash is calculated from firmware data file after placing it at known location.
Able to verify magic number as after signing a firmware file a header of 256 bytes is placed at top but failing to verify ECDSA signature. Using API ECDSAverify from legacy_v3 cryptographic library to verify signature.

Please anyone help me with example as a reference to know where it is getting wrong.

1 reply

Jocelyn RICARD
ST Employee
December 4, 2025

Hello @Ajay_Bhatt ,

You have a full secure boot example available in X-CUBE-SBSFU package.

It is using the cryptolib V3.

Best regards

Jocelyn