From: Tom Rini Date: Wed, 8 Jul 2020 20:23:53 -0400 Subject: [PATCH v6 3/8] lib: rsa: bring exp_len in line when generating a key_prop In-Reply-To: <20200618142328.1753036-3-heiko@sntech.de> References: <20200618142328.1753036-1-heiko@sntech.de> <20200618142328.1753036-3-heiko@sntech.de> Message-ID: <20200709002353.GM1306@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jun 18, 2020 at 04:23:23PM +0200, Heiko Stuebner wrote: > From: Heiko Stuebner > > The exponent field of struct key_prop gets allocated an uint64_t, > and the contents are positioned from the back, so an exponent of > "0x01 0x00 0x01" becomes 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x1" > > Right now rsa_gen_key_prop() allocates a uint64_t but sets exp_len > to the size returned from the parser, while on the other hand the > when getting the key from the devicetree exp_len always gets set to > sizeof(uint64_t). > > So bring that in line with the established code. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: