diff options
author | Akhil R <akhilrajeev@nvidia.com> | 2025-02-24 14:46:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-10 14:39:18 +0200 |
commit | 4a7e28e3523f2cb9a25a1a3dbafed04dbcafa464 (patch) | |
tree | 187b7056d4946aa113192a81dbd88f1368cf3989 /drivers/net/wwan/iosm/iosm_ipc_protocol.c | |
parent | 7d25febb0e033e4c09bb4026378d35104f612f59 (diff) |
crypto: tegra - Set IV to NULL explicitly for AES ECB
[ Upstream commit bde558220866e74f19450e16d9a2472b488dfedf ]
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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol.c')
0 files changed, 0 insertions, 0 deletions