mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/encrypt: disambiguate session encryption keys
Rename the helper functions that add/remove keys from the session keyring, in order to distinguish them from the helper functions I'll be adding to add/remove keys from the new filesystem-level keyring. Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
+2
-2
@@ -50,7 +50,7 @@ _new_session_keyring
|
||||
_scratch_mkfs_encrypted &>> $seqres.full
|
||||
_scratch_mount
|
||||
mkdir $SCRATCH_MNT/edir
|
||||
keydesc=$(_generate_encryption_key)
|
||||
keydesc=$(_generate_session_encryption_key)
|
||||
# -f 0x2: zero-pad to 16-byte boundary (i.e. encryption block boundary)
|
||||
_set_encpolicy $SCRATCH_MNT/edir $keydesc -f 0x2
|
||||
|
||||
@@ -66,7 +66,7 @@ _set_encpolicy $SCRATCH_MNT/edir $keydesc -f 0x2
|
||||
seq -f "$SCRATCH_MNT/edir/abcdefghijklmnopqrstuvwxyz012345%.0f" 100000 | xargs touch
|
||||
find $SCRATCH_MNT/edir/ -type f | xargs stat -c %i | sort | uniq | wc -l
|
||||
|
||||
_unlink_encryption_key $keydesc
|
||||
_unlink_session_encryption_key $keydesc
|
||||
_scratch_cycle_mount
|
||||
|
||||
# Verify that every file has a unique inode number and can be removed without
|
||||
|
||||
Reference in New Issue
Block a user