[EXT] Re: [PATCH v5 02/16] crypto/fsl: Add CAAM support for bkek, random number generation

Michael Walle michael at walle.cc
Tue Nov 16 13:03:52 CET 2021


Am 2021-11-16 12:57, schrieb Gaurav Jain:
>> >> > +int hwrng_generate(u8 *dst, u32 len)
>> >>
>> >> likewise.
>> >> But more important what is the difference to drivers/crypto/fsl/rng.c?
>> >> Why
>> >> do you need a new function here?
>> 
>> This one. Why can't you reuse the code which is already there?
> 
> I might have missed to update this.
> dm_rng_read() can be used. Will remove hwrng_generate().

Nice, thanks. Slightly lesser code :)

-michael


More information about the U-Boot mailing list