]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: tegra - Use HMAC fallback when keyslots are full
authorAkhil R <akhilrajeev@nvidia.com>
Mon, 24 Feb 2025 09:16:10 +0000 (14:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:17 +0000 (14:39 +0200)
commit46ea02988bb9d171bb2135dd0bb7ceeaef585424
treea9fe02e31906b7d1596da882ffbb8bfc7a40e433
parent057298d193342ef6c4a37d6f69cbccb45e7812f4
crypto: tegra - Use HMAC fallback when keyslots are full

[ Upstream commit f80a2e2e77bedd0aa645a60f89b4f581c70accda ]

The intermediate results for HMAC is stored in the allocated keyslot by
the hardware. Dynamic allocation of keyslot during an operation is hence
not possible. As the number of keyslots are limited in the hardware,
fallback to the HMAC software implementation if keyslots are not available

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>
drivers/crypto/tegra/tegra-se-hash.c