linux/drivers/crypto/tegra
Akhil R 4a7e28e352 crypto: tegra - Set IV to NULL explicitly for AES ECB
[ Upstream commit bde5582208 ]

It may happen that the variable req->iv may have stale values or
zero sized buffer by default and may end up getting used during
encryption/decryption. This inturn may corrupt the results or break the
operation. Set the req->iv variable to NULL explicitly for algorithms
like AES-ECB where IV is not used.

Fixes: 0880bb3b00 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-04-10 14:39:18 +02:00
..
Makefile crypto: tegra - Add Tegra Security Engine driver 2024-04-12 15:07:51 +08:00
tegra-se-aes.c crypto: tegra - Set IV to NULL explicitly for AES ECB 2025-04-10 14:39:18 +02:00
tegra-se-hash.c crypto: tegra - Use HMAC fallback when keyslots are full 2025-04-10 14:39:17 +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 - Use separate buffer for setkey 2025-04-10 14:39:17 +02:00