Re: [PATCH] crypto: doc - clarify hash callbacks state machine

From: Herbert Xu
Date: Mon Mar 19 2018 - 05:25:26 EST


On Mon, Mar 19, 2018 at 06:39:50AM +0000, Horia GeantÄ wrote:
>
> The fact that there can be multiple requests in parallel (for a given tfm) is a
> different topic.
> Each request object has its state in its own state machine, independent from the
> other request objects.
> I assume this is clear enough.

My point is that all of the state associated with a request needs
to be stored in the request object. If you're start storing things
in the driver/hardware, then things will get ugly one way or another.

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