Skip to content

crypto: remove webcrypto EdDSA key checks and properties - #1093

Closed
panva wants to merge 1 commit into
cloudflare:mainfrom
panva:crypto-update-eddsa-alg
Closed

panva wants to merge 1 commit into
cloudflare:mainfrom
panva:crypto-update-eddsa-alg

Conversation

@panva

@panva panva commented Aug 30, 2023

Copy link
Copy Markdown
Contributor

As per WICG/webcrypto-secure-curves#24 this removes the check for Ed25519 JWK alg during importKey and removes the alg for Ed25519 keys during JWK exportKey.

@github-actions

github-actions Bot commented Aug 30, 2023 •

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@panva

panva commented Aug 30, 2023

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Aug 30, 2023
jwk.x = kj::encodeBase64Url(kj::arrayPtr(rawPublicKey, publicKeyLen));
if (getAlgorithmName() == "Ed25519"_kj) {
jwk.alg = kj::str("EdDSA");
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There's a chance this could end up being a breaking change. Will need to determine if a compatibility flag is necessary on this particular bit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Cool, by all means please take this effort over, my hope here was merely to bring this to your attention ;)

@panva

panva commented Oct 25, 2023

Copy link
Copy Markdown
Contributor Author

I've deleted my fork so this PR automatically closed, i'm assuming you'll take this over @jasnell

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.

2 participants