aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2022-03-12 17:05:58 -0800
committerEryu Guan <guaneryu@gmail.com>2022-04-10 20:40:51 +0800
commit775e2763a39264adba5c33482db89ef2b0634ac3 (patch)
treee40a39b517ddc20f9cbccbcc1b262a916fa5c483
parent28eae4d04d1e82c90107fd7b1151cea72e8d79e7 (diff)
downloadxfstests-dev-775e2763a39264adba5c33482db89ef2b0634ac3.tar.gz
common/encrypt: log full ciphertext verification params
To help with debugging, log some additional information to $seqres.full. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rw-r--r--common/encrypt11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/encrypt b/common/encrypt
index 2cf02ca08b..cf40257032 100644
--- a/common/encrypt
+++ b/common/encrypt
@@ -908,6 +908,17 @@ _verify_ciphertext_for_encryption_policy()
echo -e "\tfilenames_encryption_mode: $filenames_encryption_mode"
[ $# -ne 0 ] && echo -e "\toptions: $*"
+ cat >> $seqres.full <<EOF
+Full ciphertext verification parameters:
+ contents_encryption_mode = $contents_encryption_mode
+ filenames_encryption_mode = $filenames_encryption_mode
+ policy_flags = $policy_flags
+ set_encpolicy_args = $set_encpolicy_args
+ keyspec = $keyspec
+ raw_key_hex = $raw_key_hex
+ crypt_util_contents_args = $crypt_util_contents_args
+ crypt_util_filename_args = $crypt_util_filename_args
+EOF
_do_verify_ciphertext_for_encryption_policy \
"$contents_encryption_mode" \
"$filenames_encryption_mode" \