Skip to content

Conversation

@twiss
Copy link
Member

@twiss twiss commented Jul 9, 2025

When generating extractable key pairs, check that the exported JWK public key is a superset of the exported JWK private key (with the exception of the key_ops property).

This test fails for X25519 in WebKitGTK 2.49.3 in Epiphany Technology Preview 49.alpha.1-33-g785305607+.

When generating extractable key pairs, check that the exported JWK
public key is a superset of the exported JWK private key
(with the exception of the `key_ops` property).
@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request besides its author. Please reach out on the chat room to get help with this. Thank you!

@twiss twiss requested a review from annevk July 17, 2025 11:17
]);

if (extractable) {
// Test that the JWK public key is a superset of the JWK private key.
Copy link
Member

Choose a reason for hiding this comment

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

This is true for all JWK key types then?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, at least for all algorithms in Web Crypto, the JWK export steps only have additional steps for private keys, not for public keys.

@twiss twiss merged commit ab08796 into web-platform-tests:master Jul 21, 2025
25 checks passed
@twiss twiss deleted the webcrypto-check-jwk-pub-priv-match branch July 21, 2025 11:26
foolip pushed a commit that referenced this pull request Aug 13, 2025
…53680)

When generating extractable key pairs, check that the exported JWK
public key is a superset of the exported JWK private key
(with the exception of the `key_ops` property).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants