Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pbkdf2.js #421

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Update pbkdf2.js #421

wants to merge 4 commits into from

Conversation

ogryb
Copy link

@ogryb ogryb commented Nov 12, 2020

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.

ogryb and others added 4 commits November 12, 2020 08:22
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.
… what was wrong. The current implementation causes PKCS#5 verification failure in cbc.js
I've created more changes related to bitArray.equal function, which
currently has a bug causing PKCS5 validation failure in cbc.js.
'equal' functiom should exclude bitts following partial since they
are not a part of bitArray. I've also added test case for 'equal' to
bitArray_test.js file.
@jdub113113
Copy link

Hey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants