On Tue, Apr 02, 2024 at 12:36:41PM +0000, Akhil R wrote: > > Should I set the reqsize as below in sha_cra_init()? Seeing this in other crypto drivers. > > crypto_ahash_set_reqsize(ahash_tfm, > sizeof(struct tegra_sha_reqctx) + > crypto_ahash_reqsize(ctx->fallback_tfm)); Yes if you places the fallback request at the end of reqctx then this is the correct reqsize. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt