]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: tegra - Fix CMAC intermediate result handling
authorAkhil R <akhilrajeev@nvidia.com>
Mon, 24 Feb 2025 09:16:07 +0000 (14:46 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 08:22:24 +0000 (16:22 +0800)
commitce390d6c2675d2e24d798169a1a0e3cdbc076907
treeb110c3a785c75ee959e4ab8dfb2d0068b5d560a1
parentff4b7df0b511b6121f3386607f02c16fb5d41192
crypto: tegra - Fix CMAC intermediate result handling

Saving and restoring of the intermediate results are needed if there is
context switch caused by another ongoing request on the same engine.
This is therefore not only to support import/export functionality.
Hence, save and restore the intermediate result for every non-first task.

Fixes: 0880bb3b00c8 ("crypto: tegra - Add Tegra Security Engine driver")
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/tegra/tegra-se-aes.c