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

2021-04-05 Thread Theodore Ts'o
On Fri, Mar 19, 2021 at 07:34:13AM +, Daniel Rosenberg 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

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

2021-03-20 Thread Andreas Dilger
On Mar 19, 2021, at 1:34 AM, Daniel Rosenberg 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

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

2021-03-19 Thread Daniel Rosenberg
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.