lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 26 Mar 2013 19:57:18 -0700
From: Tony Arcieri <tony.arcieri@...il.com>
To: "discussions@...sword-hashing.net" <discussions@...sword-hashing.net>
Subject: Suggestion: API should include a verifier function

I think to be a "complete" solution, the API should include a verify
function which guarantees a constant time comparison, similar to what NaCl
provides for its authenticators:

http://nacl.cr.yp.to/auth.html

e.g.

    crypto_auth(a,m,mlen,k);
    crypto_auth_verify(a,m,mlen,k);

Without such an API, I am afraid that users of the API will screw up the
comparison and open themselves up to a timing attack.

The arguments of the verifier function are identical to the original
hashing function, except instead of calculating a password hash, you'd
provide a user-supplied one as input, and verify via a guaranteed constant
time comparison whether or not it's correct.

-- 
Tony Arcieri

Content of type "text/html" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ