-
Notifications
You must be signed in to change notification settings - Fork 3.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
deriveBits and deriveKey tests #3305
Conversation
Reviewers for this pull request are: @Ms2ger, @wafflespeanut, @engelke, and @jimsch. |
Critic review: https://critic.hoppipolla.co.uk/r/6705 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
…sts into derive_bits_keys
@jimsch this is waiting on review |
Object.keys(sizes).forEach(function(namedCurve) { | ||
// Basic success case | ||
promise_test(function(test) { | ||
return subtle.deriveBits({name: "ECDH", namedCurve: namedCurve, public: publicKeys[namedCurve]}, privateKeys[namedCurve], 8 * sizes[namedCurve]) |
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.
namedCurve does not appear to be a used field. Should it be removed?
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.
Yes it should, and has been for deriveBits now.
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.
And now also for deriveKeys.
New tests for subtleCrypto deriveBits and deriveKey methods for all all supported algorithms (ECDH, HKDF, PBKDF2).