Re: [PATCH] crypto: authencesn - Fix incorrect setauthsize function

From: Herbert Xu
Date: Fri Oct 13 2023 - 06:21:20 EST


Ingyu Jang <ingyujang25@xxxxxxxxxxx> wrote:
>
> diff --git a/crypto/authencesn.c b/crypto/authencesn.c
> index 91424e791d5c..c1346d5b7950 100644
> --- a/crypto/authencesn.c
> +++ b/crypto/authencesn.c
> @@ -52,6 +52,8 @@ static int crypto_authenc_esn_setauthsize(struct crypto_aead *authenc_esn,
> if (authsize > 0 && authsize < 4)
> return -EINVAL;
>
> + authenc_esn->authsize = authsize;
> +

The premise of this patch is incorrect. Please check the code for
setauthsize in crypto/aead.c.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt