Skip to content

generic: test HCTR2 filename encryption

Nathan Huckleberry fstests linux-fscrypt 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 2 repliesIn review
  2. v52 patches 3 repliesSuperseded
  3. v4 RFC2 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 RFC2 patches1 replySuperseded
v2 RFC2 patches1 replySuperseded
v1 RFC1 patch2 repliesSuperseded

Changes in v6 from the cover letter

* Remove unused variable
* Rework cover letter

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fscrypt-crypt-util: add HCTR2 implementationcommon/encrypt src/fscrypt-crypt-util.c+302 -570 replies
2/2generic: add tests for fscrypt policies with HCTR2tests/generic/900 tests/generic/900.out+47 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric Biggers
1/2R-b T-b
2/2R-b T-b

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

Read the v6 thread

Cover letter [PATCH v6 0/2] generic: test HCTR2 filename encryption

HCTR2 is a new wide-block encryption mode that can used for filename encryption in fscrypt. This patchset adds a reference implementation of HCTR2 to the fscrypt testing utility and adds tests for filename encryption with HCTR2.

More information on HCTR2 can be found here: "Length-preserving encryption with HCTR2": https://ia.cr/2021/1441

The patchset introducing HCTR2 to the kernel can be found here:
https://lore.kernel.org/linux-crypto/[email protected]/

Changes in v6:
* Remove unused variable
* Rework cover letter

Changes in v5:
* Added links to relevant references for POLYVAL and HCTR2
* Removed POLYVAL partial block handling
* Referenced HCTR2 commit in test

Changes in v4:
* Add helper functions for HCTR2 hashing
* Fix accumulator alignment bug
* Small style fixes

Changes in v3:
* Consolidate tests into one file

Changes in v2:
* Use POLYVAL multiplication directly instead of using GHASH trick
* Split reference implementation and tests into two patches
* Remove v1 policy tests
* Various small style fixes

Nathan Huckleberry (2):
fscrypt-crypt-util: add HCTR2 implementation
generic: add tests for fscrypt policies with HCTR2

 common/encrypt           |   2 +
 src/fscrypt-crypt-util.c | 357 ++++++++++++++++++++++++++++++++-------
 tests/generic/900        |  31 ++++
 tests/generic/900.out    |  16 ++
 4 files changed, 349 insertions(+), 57 deletions(-)
 create mode 100755 tests/generic/900
 create mode 100644 tests/generic/900.out
Signature · 1 line
2.37.1.559.g78731f0fdb-goog