Re: [PATCH v3 2/2] crypto: hisilicon/sec2 - fix for aead invalid authsize

Herbert Xu
2024-11-15T02:09:37Z

On Thu, Nov 14, 2024 at 08:47:11PM +0800, linwenkai (C) wrote:
>
> I have found another setup for fallback in the sec_aead_param_check
> function, so I need to fix it right too.

So you want to determine whether to use the fallback based on
the parameters of the request. In that case I think you should
create a new fallback field in the request context. Set its
initial value to that of the tfm context fallback variable, and
then modify it based on the request parameters.

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