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

Return CryptoKeyPair in SubtleCrypto#importKey #1363

Closed
wants to merge 3 commits into from

Conversation

BANOnotIT
Copy link

fixes #1361

@ghost
Copy link

ghost commented Jul 19, 2022

CLA assistant check
All CLA requirements met.

@github-actions
Copy link
Contributor

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@mathe42
Copy link
Contributor

mathe42 commented Jul 19, 2022

In the spec https://w3c.github.io/webcrypto/#SubtleCrypto-method-importKey it is statet in step 8 that the result is allways of type CryptoKey so I'm not sure if this change is valid.

I think the stackoverflow link you provided is not what you think. Yes we can import a key-pair but as i understand the private key is just droped and only the public is provided...

@BANOnotIT BANOnotIT closed this Jul 19, 2022
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.

SubtleCrypto#import missing jwk CryptoKeyPair result
2 participants