linux/drivers/crypto/tegra
Akhil R bbad32b836 crypto: tegra - Fix IV usage for AES ECB
[ Upstream commit 1ddaff40c0 ]

Modifying the crypto_request turns out to be not the right way to handle
the stale value issue with the IV. Though the IV is not used for AES ECB,
it eventually get used in algorithms like LRW in the next step after
AES ECB encryption/decryption. Setting req->iv to NULL breaks the
implementation of such algorithms. Hence modify only the local reqctx
to check for IV.

Fixes: bde5582208 ("crypto: tegra - Set IV to NULL explicitly for AES ECB")
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-04-25 10:47:39 +02:00
..
Makefile crypto: tegra - Add Tegra Security Engine driver 2024-04-12 15:07:51 +08:00
tegra-se-aes.c crypto: tegra - Fix IV usage for AES ECB 2025-04-25 10:47:39 +02:00
tegra-se-hash.c crypto: tegra - Do not use fixed size buffers 2025-04-25 10:47:39 +02:00
tegra-se-key.c crypto: tegra - Use separate buffer for setkey 2025-04-10 14:39:17 +02:00
tegra-se-main.c crypto: tegra - Use separate buffer for setkey 2025-04-10 14:39:17 +02:00
tegra-se.h crypto: tegra - Do not use fixed size buffers 2025-04-25 10:47:39 +02:00