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 <[email protected]>
> Suggested-by: Simon Glass <[email protected]>
> Signed-off-by: Ilias Apalodimas <[email protected]>
> Reviewed-by: Simon Glass <[email protected]>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to