@@ -24,9 +24,10 @@ cleartextPayload := 0xFFFFFFFFFFFFFFFF . contentKey
24
24
ciphertextPayload, tag := aesGcm(cleartextPayload, encryptionMasterKey, headerNonce)
25
25
```
26
26
27
- <Image src="/img/security/file-header-encryption.png" srcset="/img/security/file-header-encryption.png 1x, /img/security/file-
[email protected] 2x" alt="File Header Encryption" width="433" height="199" style={{backgroundColor: '#ffffff', borderRadius: 'var(--ifm-global-radius)', padding: 'var(--ifm-pre-padding)', boxSizing: 'content-box'}} />
28
-
29
- * Random per file change
27
+ <WhiteBox >
28
+ <
Image src =
" /img/security/file-header-encryption.png " srcset =
" /img/security/file-header-encryption.png 1x, /img/security/[email protected] 2x " alt =
" File Header Encryption " width =
" 433 " height =
" 199 " />
29
+ <WhiteBoxCaption >* Random per file change</WhiteBoxCaption >
30
+ </WhiteBox >
30
31
31
32
## File Content Encryption {#file-content-encryption}
32
33
@@ -54,9 +55,10 @@ for (int i = 0; i < length(cleartextChunks); i++) {
54
55
ciphertextFileContent := join(ciphertextChunks[])
55
56
```
56
57
57
- <Image src="/img/security/file-content-encryption.png" srcset="/img/security/file-content-encryption.png 1x, /img/security/file-
[email protected] 2x" alt="File Content Encryption" width="782" height="195" style={{backgroundColor: '#ffffff', borderRadius: 'var(--ifm-global-radius)', padding: 'var(--ifm-pre-padding)', boxSizing: 'content-box'}} />
58
-
59
- * Random per chunk change
58
+ <WhiteBox >
59
+ <
Image src =
" /img/security/file-content-encryption.png " srcset =
" /img/security/file-content-encryption.png 1x, /img/security/[email protected] 2x " alt =
" File Content Encryption " width =
" 782 " height =
" 195 " />
60
+ <WhiteBoxCaption >* Random per chunk change</WhiteBoxCaption >
61
+ </WhiteBox >
60
62
61
63
## Directory IDs {#directory-ids}
62
64
@@ -94,9 +96,10 @@ Cryptomator uses [AES-SIV](https://tools.ietf.org/html/rfc5297) to encrypt names
94
96
The directory ID of the parent folder is passed as associated data.
95
97
This prevents undetected movement of files between directories.
96
98
97
- <Image src="/img/security/filename-encryption.png" srcset="/img/security/filename-encryption.png 1x, /img/security/filename-
[email protected] 2x" alt="Filename Encryption" width="614" height="220" style={{backgroundColor: '#ffffff', borderRadius: 'var(--ifm-global-radius)', padding: 'var(--ifm-pre-padding)', boxSizing: 'content-box'}} />
98
-
99
- * Unencrypted directory ID of the parent dir [ as described above] ( #directory-ids )
99
+ <WhiteBox >
100
+ <
Image src =
" /img/security/filename-encryption.png " srcset =
" /img/security/filename-encryption.png 1x, /img/security/[email protected] 2x " alt =
" Filename Encryption " width =
" 614 " height =
" 220 " />
101
+ <WhiteBoxCaption >* Unencrypted directory ID of the parent dir [ as described above] ( #directory-ids ) </WhiteBoxCaption >
102
+ </WhiteBox >
100
103
101
104
```
102
105
ciphertextName := base64url(aesSiv(cleartextName, parentDirId, encryptionMasterKey, macMasterKey)) + '.c9r'
0 commit comments