Re: Question on ext4 directory hashes in combination with file name encryption

2016-09-30 Thread Theodore Ts'o
On Fri, Sep 30, 2016 at 04:09:09PM +0200, Richard Weinberger wrote: > > if I read the ext4 code correctly, you pass encrypted filenames to > ext4fs_dirhash(). > These filenames are not encoded and therefore binary gibberish. That's correct. > Isn't this a problem for the ext4 hash functions? My

Re: Question on ext4 directory hashes in combination with file name encryption

2016-09-30 Thread Andreas Dilger
On Sep 30, 2016, at 8:09 AM, Richard Weinberger wrote: > > Hi, > > if I read the ext4 code correctly, you pass encrypted filenames to > ext4fs_dirhash(). > These filenames are not encoded and therefore binary gibberish. > Isn't this a problem for the ext4 hash functions? My fear is that these

Question on ext4 directory hashes in combination with file name encryption

2016-09-30 Thread Richard Weinberger
Hi, if I read the ext4 code correctly, you pass encrypted filenames to ext4fs_dirhash(). These filenames are not encoded and therefore binary gibberish. Isn't this a problem for the ext4 hash functions? My fear is that these hashes are optimized for ASCII strings and produce more collisions when