]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun8i-ce - use kfree_sensitive to clear and free sensitive data
authorJason Wang <wangborong@cdjrlc.com>
Tue, 3 Aug 2021 12:55:25 +0000 (20:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Aug 2021 11:16:57 +0000 (19:16 +0800)
commit4ce51e580777aa15a95b1d9d41e34a955f56d8cd
tree81ec72a041cc6e80bef7a833c250dab17c2346bd
parent7899017e35a24c19ff2441e7e1fab8b10c115344
crypto: sun8i-ce - use kfree_sensitive to clear and free sensitive data

The kfree_sensitive is a kernel API to clear sensitive information
that should not be leaked to other future users of the same memory
objects and free the memory. Its function is the same as the
combination  of memzero_explicit and kfree. Thus, we can replace the
combination APIs with the single kfree_sensitive API.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c