Hi Ahmad, > -----Original Message----- > From: Ahmad Fatoum <[email protected]> > Sent: Tuesday, April 9, 2024 10:58 PM > To: Kshitiz Varshney <[email protected]>; David Gstir > <[email protected]>; Mimi Zohar <[email protected]>; James > Bottomley <[email protected]>; Jarkko Sakkinen <[email protected]>; > Herbert Xu <[email protected]>; David S. Miller > <[email protected]> > Cc: [email protected]; Gaurav Jain <[email protected]>; Catalin > Marinas <[email protected]>; David Howells > <[email protected]>; [email protected]; Fabio Estevam > <[email protected]>; Paul Moore <[email protected]>; Jonathan > Corbet <[email protected]>; Richard Weinberger <[email protected]>; Rafael J. > Wysocki <[email protected]>; James Morris <[email protected]>; > dl-linux-imx <[email protected]>; Serge E. Hallyn <[email protected]>; > Paul E. McKenney <[email protected]>; Sascha Hauer > <[email protected]>; Pankaj Gupta <[email protected]>; sigma > star Kernel Team <[email protected]>; Steven Rostedt (Google) > <[email protected]>; David Oberhollenzer <david.oberhollenzer@sigma- > star.at>; [email protected]; [email protected]; > Randy Dunlap <[email protected]>; [email protected]; Li > Yang <[email protected]>; [email protected]; linux- > [email protected]; Pengutronix Kernel Team <[email protected]>; > Tejun Heo <[email protected]>; [email protected]; Shawn Guo > <[email protected]>; Varun Sethi <[email protected]> > Subject: Re: [EXT] [PATCH v8 3/6] KEYS: trusted: Introduce NXP DCP-backed > trusted keys > > Caution: This is an external email. Please take care when clicking links or > opening attachments. When in doubt, report the message using the 'Report > this email' button > > > Hello Kshitiz, > > On 09.04.24 12:54, Kshitiz Varshney wrote: > > Hi David, > >> + b->fmt_version = DCP_BLOB_VERSION; > >> + get_random_bytes(b->nonce, AES_KEYSIZE_128); > >> + get_random_bytes(b->blob_key, AES_KEYSIZE_128); > > > > We can use HWRNG instead of using kernel RNG. Please refer > > drivers/char/hw_random/imx-rngc.c > > imx-rngc can be enabled and used to seed the kernel entropy pool. Adding > direct calls into imx-rngc here only introduces duplicated code at no extra > benefit. > > Cheers, > Ahmad > > -- > Pengutronix e.K. | | > Steuerwalder Str. 21 | > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww. > pengutronix.de%2F&data=05%7C02%7Ckshitiz.varshney%40nxp.com%7Ce9 > 97f259d34548ad1a9808dc58ba63a8%7C686ea1d3bc2b4c6fa92cd99c5c30 > 1635%7C0%7C0%7C638482804763047266%7CUnknown%7CTWFpbGZsb3 > d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0 > %3D%7C0%7C%7C%7C&sdata=UZgE9MXqAqCwqVnWty67YLh8QnIwpuq%2 > F7%2BQeDLQhF8I%3D&reserved=0 | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Understood. Regards, Kshitiz
