Re: algorithm for half-md4 used in htree directories
From: "Theodore Ts'o" <tytso@mit.edu>
Date: 2021-10-12 17:30:52
From: "Theodore Ts'o" <tytso@mit.edu>
Date: 2021-10-12 17:30:52
On Mon, Oct 11, 2021 at 07:58:00PM -0700, Avi Deitcher wrote:
Aha. I missed that the seed is injected into buf before passing it into half_md4_transform. I was looking at it as just the empty buffer before the first iteration of the loop (or, in my case, since I was testing with a 6 char filename, the only iteration). I will repeat my experiment with that and see if I can tease it out.
BTW, if you are looking for a userspace implementation of the hash, it's available in libext2fs in e2fsprogs. Cheers, - Ted