DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Plain hashing algorithm
@ 2014-12-09 14:33 John Lane
  2014-12-09 15:45 ` Arno Wagner
  0 siblings, 1 reply; 2+ messages in thread
From: John Lane @ 2014-12-09 14:33 UTC (permalink / raw)
  To: dm-crypt

Just trying to satisfy my curiosity... hope that's ok...

When I do plain mode I can specify a hash or accept the default, ripemd160.

That isn't the full story, however, as the hash (160 bits) is stretched
to the key size (256 bits).

I've checked the source and can see the algorithm in the code
(crypt_plain.c#30-62).

I don't fully understand it but just wondered if that's some standard
alg similar PBKDF2 (which it isn't) or something specifc to cryptsetup?

I'm also curious about the "hack from hashalot". By googling that phrase
I find it's been copied into a number of other things.

Like I said, just curious.

Thanks,
John

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

end of thread, other threads:[~2014-12-09 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 14:33 [dm-crypt] Plain hashing algorithm John Lane
2014-12-09 15:45 ` Arno Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox