[PATCH] tools: key2dtsi: Write out modulus and r-squared with the correct length

Hans Gfirtner (Nokia) hans.gfirtner at nokia.com
Fri Nov 7 08:43:27 CET 2025


Thank you!

-----Original Message-----
From: Tom Rini <trini at konsulko.com> 
Sent: Thursday, November 6, 2025 6:00 PM
To: U-Boot Mailing List <u-boot at lists.denx.de>; Hans Gfirtner (Nokia) <hans.gfirtner at nokia.com>; Jan Kiszka <jan.kiszka at siemens.com>
Subject: Re: [PATCH] tools: key2dtsi: Write out modulus and r-squared with the correct length


CAUTION: This is an external email. Please be very careful when clicking links or opening attachments. See the URL nok.it/ext for additional information.



On Fri, 31 Oct 2025 10:35:16 +0100, Jan Kiszka wrote:

> Align the implementation to rsa_add_verify_data() by writing the 
> modulus and r-squared properties with the same length as the key 
> itself. This fixes signature verification issues when one of the 
> parameters has leading zeros.
>
>

Applied to u-boot/master, thanks!

[1/1] tools: key2dtsi: Write out modulus and r-squared with the correct length
      commit: 77905c333e4fa1093154984cc65575b5cb7cc97d
--
Tom




More information about the U-Boot mailing list