[PATCH v5 3/6] crypto: loongson - add Loongson RNG driver support

2025-03-15 Thread Qunqin Zhao
Loongson's Random Number Generator is found inside Loongson 6000SE. Co-developed-by: Yinggang Gu Signed-off-by: Yinggang Gu Signed-off-by: Qunqin Zhao --- v2-v5: None drivers/crypto/Kconfig | 1 + drivers/crypto/Makefile| 1 + drivers/crypto/loongson/Kconfi

Re: [PATCH] crypto: axis/artpec6: change from kzalloc to kcalloc in artpec6_crypto_probe()

2025-03-15 Thread Herbert Xu
On Sat, Mar 08, 2025 at 07:30:52PM -0500, Ethan Carter Edwards wrote: > We are trying to get rid of all multiplications from allocation > functions to prevent potential integer overflows. Here the > multiplication is probably safe, but using kcalloc() is more > appropriate and improves readability.

Re: [PATCH] crypto: virtio - Erase some sensitive memory when it is freed

2025-03-15 Thread Herbert Xu
On Mon, Mar 03, 2025 at 08:08:04PM +0100, Christophe JAILLET wrote: > virtcrypto_clear_request() does the same as the code here, but uses > kfree_sensitive() for one of the free operation. > > So, better safe than sorry, use virtcrypto_clear_request() directly to > save a few lines of code and cle