Debian Codegraph @

cli-tests/t_encrypt_raw_key.out

raw
1
2 # Encrypt with raw_key protector from file
3 ext4 filesystem "MNT" has 1 protector and 1 policy.
4 All users can create fscrypt metadata on this filesystem.
5
6 PROTECTOR LINKED DESCRIPTION
7 desc1 No raw key protector "prot"
8
9 POLICY UNLOCKED PROTECTORS
10 desc2 Yes desc1
11 "MNT/dir" is encrypted with fscrypt.
12
13 Policy: desc2
14 Options: padding:32 contents:AES_256_XTS filenames:AES_256_CTS policy_version:2
15 Unlocked: Yes
16
17 Protected with 1 protector:
18 PROTECTOR LINKED DESCRIPTION
19 desc1 No raw key protector "prot"
20
21 # Encrypt with raw_key protector from stdin
22 ext4 filesystem "MNT" has 1 protector and 1 policy.
23 All users can create fscrypt metadata on this filesystem.
24
25 PROTECTOR LINKED DESCRIPTION
26 desc6 No raw key protector "prot"
27
28 POLICY UNLOCKED PROTECTORS
29 desc7 Yes desc6
30 "MNT/dir" is encrypted with fscrypt.
31
32 Policy: desc7
33 Options: padding:32 contents:AES_256_XTS filenames:AES_256_CTS policy_version:2
34 Unlocked: Yes
35
36 Protected with 1 protector:
37 PROTECTOR LINKED DESCRIPTION
38 desc6 No raw key protector "prot"
39
40 # Try to encrypt with raw_key protector from file, using wrong key length
41 [ERROR] fscrypt encrypt: TMPDIR/raw_key: key file must be 32 bytes
42 ext4 filesystem "MNT" has 0 protectors and 0 policies.
43 All users can create fscrypt metadata on this filesystem.
44
45 [ERROR] fscrypt status: file or directory "MNT/dir" is not
46 encrypted
47
48 # Try to encrypt with raw_key protector from stdin, using wrong key length
49 [ERROR] fscrypt encrypt: unexpected EOF
50 ext4 filesystem "MNT" has 0 protectors and 0 policies.
51 All users can create fscrypt metadata on this filesystem.
52
53 [ERROR] fscrypt status: file or directory "MNT/dir" is not
54 encrypted
55
56 # Encrypt with raw_key protector from file, unlock from stdin
57 "MNT/dir" is now locked.
58 ext4 filesystem "MNT" has 1 protector and 1 policy.
59 All users can create fscrypt metadata on this filesystem.
60
61 PROTECTOR LINKED DESCRIPTION
62 desc11 No raw key protector "prot"
63
64 POLICY UNLOCKED PROTECTORS
65 desc12 Yes desc11
66 "MNT/dir" is encrypted with fscrypt.
67
68 Policy: desc12
69 Options: padding:32 contents:AES_256_XTS filenames:AES_256_CTS policy_version:2
70 Unlocked: Yes
71
72 Protected with 1 protector:
73 PROTECTOR LINKED DESCRIPTION
74 desc11 No raw key protector "prot"
75
76 # Try to unlock with wrong key, both with and without --quiet
77 "MNT/dir" is now locked.
78 [ERROR] fscrypt unlock: incorrect key provided
79 [ERROR] fscrypt unlock: incorrect key provided
80 ext4 filesystem "MNT" has 1 protector and 1 policy.
81 All users can create fscrypt metadata on this filesystem.
82
83 PROTECTOR LINKED DESCRIPTION
84 desc16 No raw key protector "prot"
85
86 POLICY UNLOCKED PROTECTORS
87 desc17 No desc16
88 "MNT/dir" is encrypted with fscrypt.
89
90 Policy: desc17
91 Options: padding:32 contents:AES_256_XTS filenames:AES_256_CTS policy_version:2
92 Unlocked: No
93
94 Protected with 1 protector:
95 PROTECTOR LINKED DESCRIPTION
96 desc16 No raw key protector "prot"