|
|
Log in / Subscribe / Register

xfstests: test the fscrypt hardware-wrapped key support

From:  Eric Biggers <ebiggers-AT-kernel.org>
To:  fstests-AT-vger.kernel.org
Subject:  [PATCH v2 0/3] xfstests: test the fscrypt hardware-wrapped key support
Date:  Thu, 12 Dec 2024 21:28:36 -0800
Message-ID:  <20241213052840.314921-1-ebiggers@kernel.org>
Cc:  linux-fscrypt-AT-vger.kernel.org, Bartosz Golaszewski <brgl-AT-bgdev.pl>, Gaurav Kashyap <quic_gaurkash-AT-quicinc.com>
Archive-link:  Article

This is a refreshed version of my hardware-wrapped inline encryption key
tests from several years ago
(https://lore.kernel.org/fstests/20220228074722.77008-1-eb...).
It applies to the latest master branch of xfstests (8467552f09e1).
It is not ready for merging yet; I am sending this out so that people
have access to the latest patches for testing.

This corresponds to the kernel patchset
"[PATCH v10 00/15] Support for hardware-wrapped inline encryption keys"
(https://lore.kernel.org/linux-fscrypt/20241213041958.2025...).
In theory the new tests should run and pass on the SM8650 HDK with that
kernel patchset applied.  On all other systems they should be skipped.

Eric Biggers (3):
  fscrypt-crypt-util: add hardware KDF support
  common/encrypt: support hardware-wrapped key testing
  generic: verify ciphertext with hardware-wrapped keys

 common/config            |   1 +
 common/encrypt           |  80 ++++++++++++-
 src/fscrypt-crypt-util.c | 251 +++++++++++++++++++++++++++++++++++++--
 tests/generic/900        |  24 ++++
 tests/generic/900.out    |   6 +
 tests/generic/901        |  24 ++++
 tests/generic/901.out    |   6 +
 7 files changed, 377 insertions(+), 15 deletions(-)
 create mode 100755 tests/generic/900
 create mode 100644 tests/generic/900.out
 create mode 100755 tests/generic/901
 create mode 100644 tests/generic/901.out


base-commit: 8467552f09e1672a02712653b532a84bd46ea10e
-- 
2.47.1




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