Re: [PATCH v8 3/3] crypto: Add Inside Secure SafeXcel EIP-93 crypto engine support

Herbert Xu
2024-12-14T04:37:51Z

On Wed, Dec 11, 2024 at 12:39:13PM +0100, Christian Marangi wrote:
>
> Do you have quick example for this?

Just search for crypto_ahash_set_reqsize in drivers/crypto and see
how they use the reqctx to store temporary data. For each request,
you're guaranteed to have exclusive ownership of the reqctx.

If you wish to DMA into the reqctx, search for ahash_request_ctx_dma
to see how you should set it up.

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