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

deriveBits and deriveKey tests #3305

Merged
merged 24 commits into from
Sep 2, 2016

Conversation

engelke
Copy link
Contributor

@engelke engelke commented Jul 18, 2016

New tests for subtleCrypto deriveBits and deriveKey methods for all all supported algorithms (ECDH, HKDF, PBKDF2).

@wpt-pr-bot
Copy link
Collaborator

Reviewers for this pull request are: @Ms2ger, @wafflespeanut, @engelke, and @jimsch.

@hoppipolla-critic-bot
Copy link

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 git rebase -i or git commit --amend) when updating this pull request.

@sideshowbarker
Copy link
Contributor

@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])
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@jimsch jimsch merged commit 13824c3 into web-platform-tests:master Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants