]> www.infradead.org Git - users/jedix/linux-maple.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 08:23:22 +0000 (16:23 +0800)
commitf80a2e2e77bedd0aa645a60f89b4f581c70accda
treed8ea64c10796ed087344cfae5b41c0a17be546e3
parentb157e7a228aee9b48c2de05129476b822aa7956d
crypto: tegra - Use HMAC fallback when keyslots are full

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