]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
common/encrypt: log full ciphertext verification params
authorEric Biggers <ebiggers@google.com>
Sun, 13 Mar 2022 01:05:58 +0000 (17:05 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Apr 2022 12:40:51 +0000 (20:40 +0800)
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>
common/encrypt

index 2cf02ca08b38f55084c7a01834bd93150bc9777d..cf4025703266a0e00557871a262935121dba5ca7 100644 (file)
@@ -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" \