cloudflare / cloudflare/workerd

Investigate and fix JWK parsing for WebCryptoAPI

Open
#4,552 0 comments 0 reactions 1 assignee Claimed by @jasnell View on GitHub
wpt-conformance
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

There are so many failing WPT tests relating to JWK parsing that it likely points to some issues with our implementation. We should look at our implementation and see if it needs fixing.

Examples:
- Invalid 'crv' field: importKey(jwk(private), {name: ECDSA, namedCurve: P-256}, true, [sign])
- Good parameters with JWK alg Ed25519: Ed25519 (jwk, object(kty, crv, x), {name: Ed25519}, true, [verify])
- Invalid key pair: importKey(jwk(private), {name: Ed25519}, true, [sign])

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.