]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: algif_aead - Revert to operating out-of-place
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 26 Mar 2026 06:30:20 +0000 (15:30 +0900)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 Mar 2026 08:11:47 +0000 (17:11 +0900)
commita664bf3d603dc3bdcf9ae47cc21e0daec706d7a5
tree2aa024412d16d02322bd442ff701c183568fa03e
parent62397b493e14107ae82d8b80938f293d95425bcb
crypto: algif_aead - Revert to operating out-of-place

This mostly reverts commit 72548b093ee3 except for the copying of
the associated data.

There is no benefit in operating in-place in algif_aead since the
source and destination come from different mappings.  Get rid of
all the complexity added for in-place operation and just copy the
AD directly.

Fixes: 72548b093ee3 ("crypto: algif_aead - copy AAD from src to dst")
Reported-by: Taeyang Lee <0wn@theori.io>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/af_alg.c
crypto/algif_aead.c
crypto/algif_skcipher.c
include/crypto/if_alg.h