-
Notifications
You must be signed in to change notification settings - Fork 1k
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
DeriveKey Scrypt unit test #886
Conversation
Codecov Report
@@ Coverage Diff @@
## master #886 +/- ##
=======================================
Coverage 45.04% 45.04%
=======================================
Files 178 178
Lines 12603 12603
=======================================
Hits 5677 5677
Misses 6926 6926 Continue to review full report at Codecov.
|
This does not change the results, right? |
Yes, this change the results of the output hash |
I think it is not compatible with scrypt. In RFC 7914, it is fixed at |
Because scrypt add extra security layer (and this method is used only with scrypt), maybe is not needed. If you want i can remove all changes except the unit test |
Yes, please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds very good, Shargon.
Just this time assert that is funny...aheuahuea
Maybe just report the time for now.
* 调整样式,兼容 IE10+ * 修复 Edge 兼容性问题
* Strengthen PBKDF2 * Update SCrypt.cs * Scrypt DeriveKey ut * Deterministic behaviour
The number of iterations is set to only to 1, last NIST recommendation (from 2016) is 10.000 (https://pages.nist.gov/800-63-3/sp800-63b.html#sec5).