Firmware authenticity verification with ECDSA
Hello,
I am using the X-CUBE-SBSFU package with the KMS to perform firmware update on my ST MCU.
To verify the authenticity of the firmware I use ECDSA. However, I don't understand why I only need to provide a private key but not the public key. If I understood correctly the ECDSA should be used to sign the firmware update and this is done by the postbuild script but to verify the signature, the bootloader should be using a public key associated to the private key. However, the KMS only contains the private ECDSA key. Why do we verify the firmware with the private key and not with a public key ?
Kind regards,
Benjamin
