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

Simon Glass sjg at chromium.org
Fri Nov 15 15:20:29 CET 2024


On Thu, 14 Nov 2024 at 07:29, Ilias Apalodimas
<ilias.apalodimas at linaro.org> 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>
> ---
>
> Changes since v1:
> - Update the commit message and title and picked up r-b from Jerome
> - v1 can be found here https://lore.kernel.org/u-boot/42870ab3-1621-491f-a221-8ced932ed703@linaro.org/
>
>  net/lwip/wget.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Yes this seems better!


More information about the U-Boot mailing list