You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ChromaLTS opened this issue
Oct 1, 2024
· 1 comment
Labels
duplicateDuplicate issues or pull requests. This one is closed in favor of the other issue or pull request.invalidInvalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry!
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:
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?
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-actionsbot
added
the
invalid
Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry!
label
Oct 1, 2024
duplicateDuplicate issues or pull requests. This one is closed in favor of the other issue or pull request.invalidInvalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry!
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
api.SubtleCrypto.deriveKey
The text was updated successfully, but these errors were encountered: