[PATCH v2] net: lwip: provide entropy to MBed TLS in one go

Tom Rini trini at konsulko.com
Sat Nov 23 03:42:01 CET 2024


On Thu, Nov 14, 2024 at 04:29:15PM +0200, Ilias Apalodimas wrote:

> We currently provide entropy to mbedTLS using 8b chunks.
> Take into account the 'len' parameter passed by MBed TLS to the entropy
> gathering function instead. Note that the current code works because len
> is always 128 (defined at compile time), therefore mbedtls_hardware_poll()
> is called repeatedly and the buffer is filled correctly. But passing 'len'
> to dm_rng_read() is both better and simpler.
> 
> Reviewed-by: Jerome Forissier <jerome.forissier at linaro.org>
> Suggested-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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: <https://lists.denx.de/pipermail/u-boot/attachments/20241122/f528f28c/attachment.sig>


More information about the U-Boot mailing list