All of lore.kernel.org
 help / color / mirror / Atom feed
* algorithm for half-md4 used in htree directories
@ 2021-10-01 11:49 Avi Deitcher
  2021-10-03 12:47 ` Avi Deitcher
  0 siblings, 1 reply; 15+ messages in thread
From: Avi Deitcher @ 2021-10-01 11:49 UTC (permalink / raw)
  To: linux-ext4

Hi,

I have been trying to understand the algorithm used for the "half-md4"
in htree-structured directories. Going through the code (and trying
not to get into reverse engineering), it looks like it is part of md4
but not entirely? Yet any subset I take doesn't quite line up with
what I see in an actual sample.

What is the algorithm it is using to turn an entry of, e.g., "file125"
into the appropriate hash. I did run a live sample, and try to get
some form of correlation between the actual md4 hash (16 bytes) of the
above to the actual entry (4 bytes) shown by debugfs, without much
luck.

What basic thing am I missing?

Separately, how does the seed play into it?

Thanks
Avi

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-10-18 16:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01 11:49 algorithm for half-md4 used in htree directories Avi Deitcher
2021-10-03 12:47 ` Avi Deitcher
2021-10-03 16:43   ` Andreas Dilger
2021-10-04  7:57     ` Avi Deitcher
2021-10-11 15:30       ` Avi Deitcher
2021-10-11 20:20         ` Theodore Ts'o
2021-10-12  2:58           ` Avi Deitcher
2021-10-12 17:30             ` Theodore Ts'o
2021-10-13  2:20               ` Avi Deitcher
2021-10-15 18:43               ` Avi Deitcher
2021-10-15 19:10                 ` Theodore Ts'o
2021-10-15 19:43                   ` Avi Deitcher
2021-10-15 20:30                     ` Theodore Ts'o
2021-10-15 19:50                   ` Theodore Ts'o
2021-10-18 16:56                     ` Avi Deitcher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.