]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: marvell/cesa - use memcpy_and_pad in mv_cesa_ahash_export
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 17 Mar 2026 16:52:57 +0000 (17:52 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Mar 2026 09:52:25 +0000 (18:52 +0900)
commit914b0c68d4decebe52b31929f89364de32d0156e
tree72d3dedb7d057c2790167fcaa2714d4204282fe7
parentf30579bbae86c860a642621322d90d3d4c60c9b5
crypto: marvell/cesa - use memcpy_and_pad in mv_cesa_ahash_export

Replace memset() followed by memcpy() with memcpy_and_pad() to simplify
the code and to write to 'cache' only once.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/cesa/hash.c