|
|
Log in / Subscribe / Register

Tegra Security Engine driver improvements

From:  Akhil R <akhilrajeev-AT-nvidia.com>
To:  <herbert-AT-gondor.apana.org.au>, <davem-AT-davemloft.net>, <thierry.reding-AT-gmail.com>, <jonathanh-AT-nvidia.com>, <linux-crypto-AT-vger.kernel.org>, <linux-tegra-AT-vger.kernel.org>, <linux-kernel-AT-vger.kernel.org>
Subject:  [PATCH 0/7] Tegra Security Engine driver improvements
Date:  Tue, 17 Dec 2024 21:42:00 +0530
Message-ID:  <20241217161207.72921-1-akhilrajeev@nvidia.com>
Cc:  <akhilrajeev-AT-nvidia.com>
Archive-link:  Article

With the CRYPTO_TEST now being run asynchronously unveiled some
concurrency issues in the 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.

Akhil R (7):
  crypto: tegra: Use separate buffer for setkey
  crypto: tegra: Do not use fixed size buffers
  crypto: tegra: check retrun 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

 drivers/crypto/tegra/tegra-se-aes.c  | 247 +++++++++++++-----------
 drivers/crypto/tegra/tegra-se-hash.c | 279 +++++++++++++++++----------
 drivers/crypto/tegra/tegra-se-key.c  |  10 +-
 drivers/crypto/tegra/tegra-se-main.c |  16 +-
 drivers/crypto/tegra/tegra-se.h      |  11 +-
 5 files changed, 346 insertions(+), 217 deletions(-)

-- 
2.43.2




Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds