On Tue, Dec 10, 2024 at 12:55:02PM +0100, Christian Marangi wrote: > > The main problem here is that .update only enqueue packet to be > processed and we don't wait for it to finish as that would result in > really bad performance. You can return from update prior to finishing the hash. However, you must return -EINPROGRESS in that case. Once the hash has completed then you must export the hash state from the hardware into the request object, and then invoke the callback to inform the user that the update has finished. At that point, the user may call export. The user cannot call export prior to the update completing. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt