]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: essiv - Check ssize for decryption and in-place encryption
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Oct 2025 07:54:20 +0000 (15:54 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Oct 2025 07:02:35 +0000 (15:02 +0800)
commit6bb73db6948c2de23e407fe1b7ef94bf02b7529f
treee0734b87f421b9e1387c0427d5fc5b56bc73f1a0
parent229c586b5e86979badb7cb0d38717b88a9e95ddd
crypto: essiv - Check ssize for decryption and in-place encryption

Move the ssize check to the start in essiv_aead_crypt so that
it's also checked for decryption and in-place encryption.

Reported-by: Muhammad Alifa Ramdhan <ramdhan@starlabs.sg>
Fixes: be1eb7f78aa8 ("crypto: essiv - create wrapper template for ESSIV generation")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/essiv.c