bitwiseshiftleft / sjcl

Stanford Javascript Crypto Library
http://bitwiseshiftleft.github.com/sjcl/
Other
7.19k stars 988 forks source link

Update pbkdf2.js #421

Open ogryb opened 4 years ago

ogryb commented 4 years ago

Please add hash param as suggested in the change. There is no way of using anything except SHA256, since this is a default in HMAC. That creates issues for keys derived by other systems that use a different hash function.

I've just committed yet another change to the same "pull" location: https://github.com/ogryb/sjcl.git

Please take a look. A bug in bitArray.equal function causes PKCS5 verification failure in cbc.js, so it needs to be fixed. We should exclude the bits following partial, since they are not really a part of the bit array.

jdub113113 commented 3 years ago

Hey