All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Lane <dm-crypt@jelmail.com>
To: dm-crypt@saout.de
Subject: [dm-crypt] Plain hashing algorithm
Date: Tue, 09 Dec 2014 14:33:45 +0000	[thread overview]
Message-ID: <54870849.4000904@jelmail.com> (raw)

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

             reply	other threads:[~2014-12-09 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-09 14:33 John Lane [this message]
2014-12-09 15:45 ` [dm-crypt] Plain hashing algorithm Arno Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54870849.4000904@jelmail.com \
    --to=dm-crypt@jelmail.com \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.