]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: lib/chacha - add strongly-typed state zeroization
authorEric Biggers <ebiggers@google.com>
Mon, 5 May 2025 18:18:23 +0000 (11:18 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 12 May 2025 05:32:53 +0000 (13:32 +0800)
commit607c92141cdec6e472d80de813f5251685b9ddc1
treec5aba824a6119fac977fe93a76514544723bd70b
parent32c9541189eb31ba6b25e2ff28e42660394a62af
crypto: lib/chacha - add strongly-typed state zeroization

Now that the ChaCha state matrix is strongly-typed, add a helper
function chacha_zeroize_state() which zeroizes it.  Then convert all
applicable callers to use it instead of direct memzero_explicit.  No
functional changes.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/random.c
fs/bcachefs/checksum.c
include/crypto/chacha.h
lib/crypto/chacha20poly1305.c