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-ebiggers@xxxxxxxxxx/). 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.202565-1-ebiggers@xxxxxxxxxx/). 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