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-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 08 Mar 2014 16:06:11 -0800
From: "Jeremy Spilman" <jeremy@...link.co>
To: discussions@...sword-hashing.net
Subject: Re: [PHC] Are password trailing 0's a problem?

Just restating what CiC said in bullet form, but seeing it in pseudo-code  
always helps me. When using password as the HMAC key, the way that PBKDF2  
does, you end up with:

if (password.length < block_size)
   password = password.pad(0x00, password.length - block_size)
else if (password.length > block_size)
   password = hash(password)

I guess it should be apparent that you can pass the hash of a password  
longer than the block size in place of the password, but I bet 99.9% of  
people using PBKDF2 would be "shocked" to learn this.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ