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

feat(ext/crypto): implement deriveKey #12117

Merged
merged 25 commits into from
Oct 12, 2021
Merged

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Sep 17, 2021

Towards #11690

Large WPT diff because of missing importKey and some previously false tests were disabled.

@littledivy littledivy marked this pull request as draft September 17, 2021 06:49
@littledivy littledivy marked this pull request as ready for review September 17, 2021 10:50
@bartlomieju bartlomieju added this to the 1.15.0 milestone Sep 17, 2021
@bartlomieju
Copy link
Member

Please rebase

Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

ext/crypto/00_crypto.js Outdated Show resolved Hide resolved
ext/crypto/00_crypto.js Outdated Show resolved Hide resolved
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM too

Copy link
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

LGTM but has merge conflicts (in expectation.json presumably.)

);
}
} else if (algorithm.length !== 0) {
length == algorithm.length;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
length == algorithm.length;
length = algorithm.length;

I'd just return here (and above too - easier to reason about.)

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just following the steps as per spec. Easier for anyone reading/debugging with the spec open alongside IMO

@satyarohith satyarohith merged commit 58f04d8 into denoland:main Oct 12, 2021
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.

5 participants