]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: verify ciphertext with hardware-wrapped keys
authorEric Biggers <ebiggers@google.com>
Fri, 13 Dec 2024 05:28:39 +0000 (21:28 -0800)
committerZorro Lang <zlang@kernel.org>
Wed, 8 Jan 2025 11:11:16 +0000 (19:11 +0800)
commit59e3354dd1f7a11b457fee3e529dedfba7134a9b
treea42e9c6bc82430b07cb4a051396c879c7097288d
parent91e779a8bed1fdd403191f2fe94cc286ec69428e
generic: verify ciphertext with hardware-wrapped keys

Add two tests which verify that encrypted files are encrypted correctly
when a hardware-wrapped inline encryption key is used.  The two tests
are identical except that one uses FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64
and the other uses FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32.  These cover both
of the settings where hardware-wrapped keys may be used.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/368 [new file with mode: 0755]
tests/generic/368.out [new file with mode: 0644]
tests/generic/369 [new file with mode: 0755]
tests/generic/369.out [new file with mode: 0644]