Messages in this thread | | | Date | Tue, 2 Apr 2024 20:38:09 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH v6 3/5] crypto: tegra: Add Tegra Security Engine driver |
| |
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@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |