Re: [PATCH] crypto: xcbc - use init_tfm & exit_tfm instead of cra_int & cra_exit
From: Herbert Xu
Date: Fri Dec 04 2026 - 01:04:34 EST
On Mon, Nov 23, 2026 at 04:10:30PM +0530, Mohamad Raizudeen wrote:
> The cra_init and cra_exit fields of struct crypto_alg are deprecated.
> Switch to the shash-speicific init_tfm & exit_tfm callbacks, which take
> a struct crypto_shash directly.
>
> This also removes (void *) cast of tfm->__crt_alg and the manual
> crypto_instance_ctx() conversion and drops a stray semicolon after
> xcbc_init_tfm().
>
> No functional change.
>
> Signed-off-by: Mohamad Raizudeen <raizudeen.kerneldev@xxxxxxxxx>
> ---
> crypto/xcbc.c | 19 ++++++++++---------
> 1 file changed, 10 insertions(+), 9 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt