]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: tegra - Reserve keyslots to allocate dynamically
authorAkhil R <akhilrajeev@nvidia.com>
Mon, 24 Feb 2025 09:16:09 +0000 (14:46 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 08:23:22 +0000 (16:23 +0800)
commitb157e7a228aee9b48c2de05129476b822aa7956d
treeacc96079deb4130d060d2268dee793c42c8c28e4
parentbde558220866e74f19450e16d9a2472b488dfedf
crypto: tegra - Reserve keyslots to allocate dynamically

The HW supports only storing 15 keys at a time. This limits the number
of tfms that can work without failutes. Reserve keyslots to solve this
and use the reserved ones during the encryption/decryption operation.
This allow users to have the capability of hardware protected keys
and faster operations if there are limited number of tfms while not
halting the operation if there are more tfms.

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-aes.c
drivers/crypto/tegra/tegra-se-key.c
drivers/crypto/tegra/tegra-se.h