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

Reintroduce alg JWK field for Ed25519 keys #401

Merged
merged 1 commit into from
Mar 7, 2025
Merged

Conversation

panva
Copy link
Member

@panva panva commented Mar 6, 2025

With https://datatracker.ietf.org/doc/draft-ietf-jose-fully-specified-algorithms/ submitted to IESG for Publication we can add the new "alg" to the Ed25519 JWK export while accepting both old and new in JWK import.

I don't think this is strictly necessary but I'm opening this here as an option in hopes that it will strike at least one of the objections raised prior by @davidben that (I think?) continues to block the unflagging of Ed25519 in Chromium.

Refs WICG/webcrypto-secure-curves#24
Refs #362 (comment)
Refs https://issues.chromium.org/issues/40074061


Preview | Diff

@javifernandez
Copy link
Collaborator

Thanks !

continues to block the unflagging of Ed25519 in Chromium.

I wouldn't say that is a blocker, but it definitively doesn't help to support removing the experimental runtime flag. So the sooner we can address the issue, the better.

Copy link
Member

@twiss twiss left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM. If you have time, could you also make a corresponding PR to https://github.com/WICG/webcrypto-secure-curves, to keep them in sync? (Perhaps we should remove Ed25519 from there, but Ed448 also needs the same change, I'm guessing.) Otherwise I can also do it 😊

@panva
Copy link
Member Author

panva commented Mar 7, 2025

I'm happy to do a PR https://github.com/WICG/webcrypto-secure-curves removing Curve25519 and separately updating Ed448 with "alg" per this PR

@twiss twiss changed the title reintroduce alg for Ed25519 Reintroduce alg JWK field for Ed25519 keys Mar 7, 2025
@twiss twiss merged commit e3459a5 into w3c:main Mar 7, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Mar 7, 2025
SHA: e3459a5
Reason: push, by twiss

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@panva panva deleted the eddsa-alg branch March 7, 2025 16:05
@javifernandez
Copy link
Collaborator

javifernandez commented Mar 7, 2025

Shouldn't the PR#42333 to the corresponding tests in the WPT repository be reverted then ? Or at least, write again the correct test cases for the new behavior.

@panva
Copy link
Member Author

panva commented Mar 7, 2025

Shouldn't the PR#42333 to the corresponding tests in the WPT repository be reverted then ? Or at least, write again the correct test cases for the new behavior.

I'm working on that just now.

@javifernandez
Copy link
Collaborator

Shouldn't the PR#42333 to the corresponding tests in the WPT repository be reverted then ? Or at least, write again the correct test cases for the new behavior.

I'm working on that just now.

Great ! Thank you very much

@panva
Copy link
Member Author

panva commented Mar 7, 2025

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.

3 participants