From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: crypt() non-DES support
Date: Wed, 3 Oct 2012 16:01:35 +0200 [thread overview]
Message-ID: <20121003140135.GD24157@port70.net> (raw)
In-Reply-To: <CAOPXC2=44Y-OuGZwupi5FvD4Abh4AKvwd8RXgyc-Dyw5L0im3w@mail.gmail.com>
* Gregor Pintar <grpintar@gmail.com> [2012-10-03 13:56:37 +0200]:
> 2012/10/3, Szabolcs Nagy <nsz@port70.net>:
> > * Daniel Cegie?ka <daniel.cegielka@gmail.com> [2012-10-03 09:16:02 +0200]:
> >> We already have SHA3 finalist:
> >>
> >> http://csrc.nist.gov/groups/ST/hash/sha-3/winner_sha-3.html
> >> http://keccak.noekeon.org/
> >> http://keccak.noekeon.org/KeccakReferenceAndOptimized-3.2.zip
> >>
> >
> > note that crypt is a password based key derivation function
> > that is supposed to be (configurably) slow, protected against
> > dictionary attacks and collision resistant (used for password
> > verification mostly), while sha* is a secure hash that is
> > supposed to be fast and collision resistant (used for integrity
> > protection and digital signatures mostly)
> >
>
> You can increase number of rounds.
well
the main selling point of keccak is that it
has very simple and efficient hw implementation
which means hw implementation can be a lot
faster than any software implementation
on a generic cpu
this is good for a cryptographic hash, because
you want it to be fast, but it's bad for a passwd
hash, because you want it to have stable run time,
otherwise you cannot set a reasonable iteration
count
(eg for this reason the scrypt passwd hash
was designed so that hw implementation would
use lots of transistors and cannot gain much
performance)
(the nist pbkdf2 often uses hmac-sha hash internally
but it's main application is creating a secure
symmetric encryption key from a simple password,
the stored passwd hash application is more sensitive
to the speed variation of the hash function)
tl;dr: don't use sha3 for passwd hash
next prev parent reply other threads:[~2012-10-03 14:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-08 9:23 orc
2012-06-08 14:08 ` Rich Felker
2012-10-03 7:16 ` Daniel Cegiełka
2012-10-03 9:54 ` Szabolcs Nagy
2012-10-03 11:56 ` Gregor Pintar
2012-10-03 14:01 ` Szabolcs Nagy [this message]
2012-10-03 14:07 ` Solar Designer
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=20121003140135.GD24157@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).