Skip to content

xfstests: test the fscrypt hardware-wrapped key support

Eric Biggers fstests linux-fscrypt 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fscrypt-crypt-util: add hardware KDF supportsrc/fscrypt-crypt-util.c+240 -110 replies
2/3common/encrypt: support hardware-wrapped key testingcommon/config common/encrypt+77 -40 replies
3/3generic: verify ciphertext with hardware-wrapped keystests/generic/900 tests/generic/900.out tests/generic/901 +1 more+60 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchZorro Lang
SeriesReveiwed-by
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] xfstests: test the fscrypt hardware-wrapped key support

This is a refreshed version of my hardware-wrapped inline encryption key tests from several years ago
(https://lore.kernel.org/fstests/[email protected]/).
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/[email protected]/).
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

Signature · 1 line
2.47.1