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

#1 Add method to perform PBKDF2 in WebAssembly to help support experi… #2

Merged
merged 4 commits into from
Jan 8, 2019

Conversation

ernieturner
Copy link
Contributor

…ence in MS Edge

Copy link
Member

@coltfred coltfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than taking a usize, this looks simple enough to me.

src/api256.rs Outdated
* 32 bytes of salt, and an iteration count and returns a vector of bytes which can be used as a secure derived key.
*/
#[wasm_bindgen]
pub fn pbkdf2SHA256(salt: &[u8], password: &[u8], iterations: u32) -> Vec<u8> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just take this as a usize? It'd save a cast and should be the same in JS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@ernieturner ernieturner merged commit f90cb1e into master Jan 8, 2019
@ernieturner ernieturner deleted the pbkdf2 branch January 8, 2019 16:18
ernieturner pushed a commit that referenced this pull request Jan 8, 2019
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.

None yet

2 participants