Developers
Profile
- ML-KEM-512, ML-KEM-768 and ML-KEM-1024 as specified in FIPS 203, with implicit rejection.
- ML-DSA-44, ML-DSA-65 and ML-DSA-87 as specified in FIPS 204: pure ML-DSA, empty context, hedged signing with 32 bytes of fresh randomness.
- Randomness comes only from the browser's
crypto.getRandomValues(). Operations stop if it is unavailable. - Provider: @noble/post-quantum 0.7.1, run inside a dedicated Web Worker.
Exchange formats
Every key, ciphertext and signature is the raw byte string from the standard, in one of four encodings:
- Raw binary files.
- Hex, upper or lower case on input, lower case on output.
- Base64 with standard alphabet and required padding.
- Base64URL with URL-safe alphabet and no padding.
Inputs are strict: whitespace is allowed only before and after the value, non-canonical Base64 is rejected, and the decoded length must match the selected parameter set and role exactly. Untagged inputs carry no metadata, so you always choose the algorithm and role.
Private keys export as the seed by default (64 bytes, d ‖ z, for ML-KEM; 32 bytes, ξ, for ML-DSA) or as the FIPS expanded key. Downloads are named like ml-dsa-65.public-key.b64 and labelled with algorithm, role and encoding. SPKI, PKCS#8, PEM and JWK are not supported yet.
Test evidence
- All 450 relevant NIST ACVP test cases pass, covering key generation, encapsulation, decapsulation with implicit rejection, both FIPS 203 key checks, deterministic and hedged signing, and verification, for all six parameter sets.
- Two-way interoperability with OpenSSL 3.5.10: seeds produce identical keys on both sides, shared secrets match in all three exchange directions, and each side verifies the other's signatures and rejects altered ones. This covers raw keys, seeds and expanded keys, pure ML-DSA and the empty context.
- In every browser tested (Chromium, Firefox and WebKit), the page runs a known-answer self-test through the worker on load.
Reproduce with OpenSSL 3.5
Derive the same key pair from a seed exported by PQCSmith, given as hex:
openssl genpkey -algorithm ML-DSA-65 -pkeyopt hexseed:<seed-hex> -out key.pem openssl pkey -in key.pem -text -noout
The pub: bytes match PQCSmith's public key. Sign a file with that key in OpenSSL and verify the signature in PQCSmith's Verify tool, or the other way round:
openssl pkeyutl -sign -rawin -inkey key.pem -in message.bin -out message.sig openssl pkey -in key.pem -pubout -out pub.pem openssl pkeyutl -verify -rawin -pubin -inkey pub.pem -in message.bin -sigfile message.sig
For ML-KEM, use the 64-byte seed with the same genpkey option and pkeyutl -encap or -decap.