Skip to content

Tegra Security Engine driver improvements

Akhil R linux-crypto linux-rockchip linux-tegra lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 7 repliesIn review
  2. v210 patches 0 repliesSuperseded
  3. v17 patches 4 repliesSuperseded

Changes in v3 from the cover letter

* Fixed testbot warnings.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10crypto: tegra: Use separate buffer for setkeydrivers/crypto/tegra/tegra-se-aes.c drivers/crypto/tegra/tegra-se-hash.c drivers/crypto/tegra/tegra-se-key.c +2 more+37 -210 replies
2/10crypto: tegra: Do not use fixed size buffersdrivers/crypto/tegra/tegra-se-aes.c drivers/crypto/tegra/tegra-se-hash.c drivers/crypto/tegra/tegra-se.h+89 -750 replies
3/10crypto: tegra: finalize crypto req on errordrivers/crypto/tegra/tegra-se-aes.c+17 -110 replies
4/10crypto: tegra: check return value for hash do_one_reqdrivers/crypto/tegra/tegra-se-aes.c drivers/crypto/tegra/tegra-se-hash.c+15 -20 replies
5/10crypto: tegra: Transfer HASH init function to crypto enginedrivers/crypto/tegra/tegra-se-aes.c drivers/crypto/tegra/tegra-se-hash.c drivers/crypto/tegra/tegra-se.h+109 -780 replies
6/10crypto: tegra: Fix HASH intermediate result handlingdrivers/crypto/tegra/tegra-se-hash.c drivers/crypto/tegra/tegra-se.h+98 -520 replies
7/10crypto: tegra: Fix CMAC intermediate result handlingdrivers/crypto/tegra/tegra-se-aes.c+9 -90 replies
8/10crypto: tegra: Set IV to NULL explicitly for AES ECBdrivers/crypto/tegra/tegra-se-aes.c+3 -00 replies
9/10crypto: tegra: Reserve keyslots to allocate dynamicallydrivers/crypto/tegra/tegra-se-aes.c drivers/crypto/tegra/tegra-se-key.c drivers/crypto/tegra/tegra-se.h+163 -213 replies
10/10crypto: tegra: Use HMAC fallback when keyslots are fulldrivers/crypto/tegra/tegra-se-hash.c+6 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/10] Tegra Security Engine driver improvements

With the CRYPTO_TEST now being run asynchronously unveiled some concurrency issues in the Security Engine driver. These were not caught during functional or fuzz testing as all the tests were run synchronously.

This patchset contains the fixes for the concurrency issues and few other improvements identified during the stress-ng and cryptsetup tests.

---
v2->v3:
* Fixed testbot warnings.
v1->v2:
* Added patch to handle the scenario when keyslots are full
* Added patch to finalize crypto request which was not called in some error cases.

v1: https://lore.kernel.org/lkml/[email protected]/

Akhil R (10):
crypto: tegra: Use separate buffer for setkey
crypto: tegra: Do not use fixed size buffers
crypto: tegra: finalize crypto req on error
crypto: tegra: check return value for hash do_one_req
crypto: tegra: Transfer HASH init function to crypto engine
crypto: tegra: Fix HASH intermediate result handling
crypto: tegra: Fix CMAC intermediate result handling
crypto: tegra: Set IV to NULL explicitly for AES ECB
crypto: tegra: Reserve keyslots to allocate dynamically
crypto: tegra: Use HMAC fallback when keyslots are full

 drivers/crypto/tegra/tegra-se-aes.c  | 401 ++++++++++++++++++---------
 drivers/crypto/tegra/tegra-se-hash.c | 287 ++++++++++++-------
 drivers/crypto/tegra/tegra-se-key.c  |  27 +-
 drivers/crypto/tegra/tegra-se-main.c |  16 +-
 drivers/crypto/tegra/tegra-se.h      |  39 ++-
 5 files changed, 523 insertions(+), 247 deletions(-)
Signature · 1 line
2.43.2