Question on ext4 directory hashes in combination with file name encryption

From: Richard Weinberger
Date: Fri Sep 30 2016 - 10:09:44 EST


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 binary data is used as input.

Thanks,
//richard