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

api.SubtleCrypto.deriveKey - <SUMMARIZE THE PROBLEM> #24594

Closed
ChromaLTS opened this issue Oct 1, 2024 · 1 comment
Closed

api.SubtleCrypto.deriveKey - <SUMMARIZE THE PROBLEM> #24594

ChromaLTS opened this issue Oct 1, 2024 · 1 comment
Labels
duplicate Duplicate issues or pull requests. This one is closed in favor of the other issue or pull request. invalid Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry!

Comments

@ChromaLTS
Copy link

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

X25519 is no longer supported in Deno. Consider adding a message to inform users to import from Node's implementation instead of std. Deno recently updated and launched its std library, which is advertised as the default library for the included features. This std is based on Chrome's implementation and includes their SubtleCrypto, which doesn't support X25519. So this is one case where updating results in progressive technological advancement - Just backwards.... :c

What browsers does this problem apply to, if applicable?

Deno

What did you expect to see?

I expected the result of using the example from MDN's page on SubtleCrypto under X25519 - specifically for the deriveBits function - to be something like:

Keys changed
234,189,125,157,50,51,232,127,158,251…[16 bytes total] (Alice secret)
234,189,125,157,50,51,232,127,158,251…[16 bytes total] (Bob secret)

Did you test this? If so, how?

I tested it in:

  • Deno --version
    deno 1.46.3 (stable, release, x86_64-pc-windows-msvc)
    v8 12.9.202.5-rusty
    typescript 5.5.2

  • The browser. I used Chrome; it failed and gave the same error as Deno. Then I enabled the flag "#enable-experimental-web-platform-features" and restarted, then it gave the result I provided in my answer for "What did you expect to see".

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

The compatability chart with missing or incorrect information:
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits#browser_compatibility

The example i used in all environments:
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits#result

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey

MDN metadata

MDN page report details
  • Query: api.SubtleCrypto.deriveKey
  • Report started: 2024-10-01T09:16:58.484Z
Copy link

github-actions bot commented Oct 1, 2024

This issue was automatically closed because the title was left as the default, and a summary was not added.

If this is not a spam issue, please replace the <SUMMARIZE THE PROBLEM> part of the title with a short summary of the reported issue, and then post a follow-up comment. A maintainer will review your issue and reopen it if needed.

@github-actions github-actions bot added the invalid Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry! label Oct 1, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
@queengooborg queengooborg added the duplicate Duplicate issues or pull requests. This one is closed in favor of the other issue or pull request. label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate issues or pull requests. This one is closed in favor of the other issue or pull request. invalid Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry!
Projects
None yet
Development

No branches or pull requests

2 participants