Post-quantum Web Crypto status

Which JavaScript runtimes have ML-KEM, ML-DSA and SLH-DSA in the Web Cryptography API, and what webpqc does on each of them.

Modern Algorithms in the Web Cryptography API adds the post-quantum algorithms to crypto.subtle. The tables below are not taken from documentation: a probe calls the API on each runtime, generates keys, runs the operations, and checks the results against the TypeScript implementations of webpqc.

Probed by the CI of webpqc. Each column has the date on which the runtime was probed.

webpqc on each runtime

webpqc works on every runtime below. It uses the native implementation of the runtime where there is one which it can use, and its own TypeScript implementation otherwise, with the same API and the same results.

native the Web Cryptography API did the encapsulation and the decapsulation (ML-KEM), or the signing and the verification (ML-DSA and SLH-DSA), with the default options partly native it did only one of the two TypeScript ran its own implementation failed did not work not run ‡ not known

Observed by watching the calls of crypto.subtle which webpqc makes: a call counts only if it gives a result which webpqc takes, as webpqc falls back to TypeScript otherwise. The key generation is not in the table: webpqc always does it in TypeScript. HQC (@webpqc/hqc) always runs in TypeScript, as it is not in the Web Cryptography API. A runtime with a native implementation can still show TypeScript, as webpqc does not use a native implementation which prints a warning. ‡ webpqc was not run: signing with the parameter sets of SLH-DSA for small signatures (s) takes long in TypeScript, so they are run only on a runtime to which webpqc delegates the signing.

Native support in the Web Cryptography API

✓ yes every check passed ◐ partial available, but a check failed ✕ no not available * reported by the implementer, not probed Select a cell for the details.

Select a cell to see the checks behind it.

The browsers are the builds which Playwright installs, and all the runtimes run with their default settings, except † Cloudflare Workers with the compatibility flag webcrypto_modern_algorithms. The columns with * quote the implementation status issue of the specification, where a status is given per algorithm family.