Thread (6 messages) 6 messages, 3 authors, 2021-04-06

Re: [PATCH v2 1/2] ext4: Handle casefolding with encryption

From: Andreas Dilger <hidden>
Date: 2021-03-20 11:20:29
Also in: linux-fsdevel, lkml

On Mar 19, 2021, at 1:34 AM, Daniel Rosenberg [off-list ref] wrote:
This adds support for encryption with casefolding.

Since the name on disk is case preserving, and also encrypted, we can no
longer just recompute the hash on the fly. Additionally, to avoid
leaking extra information from the hash of the unencrypted name, we use
siphash via an fscrypt v2 policy.

The hash is stored at the end of the directory entry for all entries
inside of an encrypted and casefolded directory apart from those that
deal with '.' and '..'. This way, the change is backwards compatible
with existing ext4 filesystems.

Signed-off-by: Daniel Rosenberg <redacted>
Reviewed-by: Andreas Dilger <redacted>

Cheers, Andreas




Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help