fscrypt-crypt-util: add support for dumping key identifier
authorEric Biggers <ebiggers@google.com>
Sun, 13 Mar 2022 01:05:57 +0000 (17:05 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Apr 2022 12:40:48 +0000 (20:40 +0800)
commit28eae4d04d1e82c90107fd7b1151cea72e8d79e7
tree5ed76c203d704b94342881e2a23867e75aacd755
parent02222a33a0e59aac403b92a3e0dfb7953566b446
fscrypt-crypt-util: add support for dumping key identifier

Add an option to fscrypt-crypt-util to make it compute the key
identifier for the given key.  This will allow testing the correctness
of the filesystem's key identifier computation.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/fscrypt-crypt-util.c