# Vendored third-party code — provenance Everything under `public/vendor/` is served from our own origin only. No CDN, no external loads, ever (enforced by CSP `default-src 'none'`). ## mlkem.js — ML-KEM-768 (FIPS 203) - **What:** single-file ESM bundle exporting `ml_kem768` from `@noble/post-quantum@0.7.1` (`ml-kem.js` entry point). - **Resolved dependency versions at bundle time:** `@noble/hashes@2.4.0`, `@noble/curves@2.4.0`, `@noble/ciphers@2.4.0` (the exact versions the upstream package declares). - **Bundler:** esbuild 0.27.2, `--bundle --format=esm --platform=neutral`. - **Upstream:** https://github.com/paulmillr/noble-post-quantum — MIT License (see `LICENSE.noble-post-quantum` in this directory). The noble libraries are widely used, publicly reviewed implementations; ML-KEM here is the NIST-standardized FIPS 203 algorithm, not a home-grown construction. - **sha256 of the vendored file (as shipped, including the header comment):** `2eb07152671e649c3c56850600808fcafa51cef36037c33690f1cb310445fa64` - **Verification performed at vendor time (2026-11-25):** - `keygen(seed)` public key from the bundle is byte-identical to the upstream npm package for the same seed. - `encapsulate(pub, msg)` ciphertext and shared secret from the bundle are byte-identical to upstream for the same inputs. - Roundtrip: `decapsulate(ct, secretKey) === encapsulate(pub).sharedSecret`. - Sizes match FIPS 203 ML-KEM-768: public key 1184 B, secret key 2400 B, ciphertext 1088 B, shared secret 32 B. - **How it is used:** hybrid key exchange only — the ML-KEM shared secret is combined with classical ECDH shared secrets via HKDF-SHA256 when deriving a session root key (PQXDH-style). Classical ECDH alone never depends on this file loading; if it fails to load, sessions fall back to classical X3DH and the UI says so.