]> 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)
commit410f9f6da539de7077667c4153f4551338c2beb9
tree81ec72a041cc6e80bef7a833c250dab17c2346bd
parent571c0083ee73c2ff1268324aa2f90b483ad25d3b
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