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  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 10 Mar 2014 07:36:51 -0400
From: Bill Cox <waywardgeek@...il.com>
To: discussions@...sword-hashing.net
Subject: Re: [PHC] Upgrade HKDF to HKDF2?

On Mon, Mar 10, 2014 at 5:38 AM,  <Stefan.Lucks@...-weimar.de> wrote:
> On Sun, 9 Mar 2014, Bill Cox wrote:
>
>> for(i = 0; i < passwordLength; i += 256) {
>>    for(j = 0; j < 256; j++) {
>>        buf[i] = password[(i + j) % passwordLength];
>>    }
>>    Hash_Update(hashCtx, buf, 256);
>> }
>
>
> Welcome password collisions!
>
> Consider, e.g., passwords such as "abcd", "abcdabcd", "abcdabcdabcd" ...
>
> Stefan

That's why PBKDF2 hash has collisions for this reason, but I'm
prepending all lengths with an extra Update call before adding padded
data.  This should eliminate the collision problem, shouldn't it?

Bill

Powered by blists - more mailing lists