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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux