]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/encrypt: verify the key identifiers
authorEric Biggers <ebiggers@google.com>
Sun, 13 Mar 2022 01:05:59 +0000 (17:05 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Apr 2022 12:40:55 +0000 (20:40 +0800)
commit1e516c86003021861734a6b14628059316b1c455
tree5f30b31a311391611ef56c9fe4e89e2e01855dca
parent775e2763a39264adba5c33482db89ef2b0634ac3
common/encrypt: verify the key identifiers

As part of all the ciphertext verification tests, verify that the
filesystem correctly computed the key identifier from the key the test
generated.  This uses fscrypt-crypt-util to compute the key identifier.

Previously this was only being tested indirectly, via the tests that
happen to use the hardcoded $TEST_RAW_KEY and $TEST_KEY_IDENTIFIER.
The new check provides better coverage.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/encrypt