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

crypto: add SubtleCrypto.supports feature detection in Web Crypto API #57270

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

panva
Copy link
Member

@panva panva commented Mar 2, 2025

Early draft implementation of SubtleCrypto.supports.

While today we support all the methods and algorithms, this method will become really useful for interop when modern webcrypto algorithms are going to start popping up that will depend on new OpenSSL versions, such as ML-DSA that may not be immediately available in distributions with linked OpenSSL.

cc @twiss

This will remain a draft PR until this work is accepted by WICG as a proposal for the addition of its content to the Web Cryptography API.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/crypto

@nodejs-github-bot nodejs-github-bot added crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. labels Mar 2, 2025
@panva panva changed the title crypto: add SubleCrypto.supports feature detection in Web Crypto API crypto: add SubtleCrypto.supports feature detection in Web Crypto API Mar 2, 2025
@panva panva force-pushed the experimental-subtle-crypto-supports branch from cb66676 to b639d6e Compare March 2, 2025 12:08
@panva
Copy link
Member Author

panva commented Mar 2, 2025

#57273 will allow the implementation to share validation code with the actual algorithm operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants