]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: authencesn - Do not place hiseq at end of dst for out-of-place decryption
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 Apr 2026 06:36:01 +0000 (23:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Apr 2026 09:24:38 +0000 (11:24 +0200)
commitd589abd8b019b07075fda255ceab8c8e950cdb3f
treebdda203dc8b31eaec5764cc46439aa033b762d85
parente416c41a96c85ce12f608c30eb72fd9dfb75184b
crypto: authencesn - Do not place hiseq at end of dst for out-of-place decryption

commit e02494114ebf7c8b42777c6cd6982f113bfdbec7 upstream.

When decrypting data that is not in-place (src != dst), there is
no need to save the high-order sequence bits in dst as it could
simply be re-copied from the source.

However, the data to be hashed need to be rearranged accordingly.

Reported-by: Taeyang Lee <0wn@theori.io>
Fixes: 104880a6b470 ("crypto: authencesn - Convert to new AEAD interface")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/authencesn.c