SPB Git

Repository Public

README.md 2.3 KB

# security/vectors — third-party test vectors of the audit

Third-party material. The files under wycheproof/ and bip/ are not SP Boucher code: they keep their own licences and carry no SP Boucher header. MANIFEST.json gives, for each file, the source URL, the pinned commit, the licence and the SHA-256 of the raw content and of the stored file.

Directory Source Pinned commit Licence
wycheproof/ https://github.com/C2SP/wycheproof (testvectors_v1/) c0cfeee0654850a5f407628a00381e6e685227cd Apache-2.0 (wycheproof/LICENSE)
bip/bip-0340-test-vectors.csv https://github.com/bitcoin/bips (bip-0340/test-vectors.csv) c597d68e983096f623817c9feb1692d46722eb89 BSD-2-Clause
bip/bip-0032-vectors.json same repository, extracted from bip-0032.mediawiki by fetch.py same BIP text licence
bip/bip-0039-vectors.json https://github.com/trezor/python-mnemonic (vectors.json) b57a5ad77a981e743f4167ab2f7927a55c1e82a8 MIT
bip/bip-0173-0350-vectors.json https://github.com/sipa/bech32 (ref/python/tests.py, lists extracted without executing the file) 7a7d7ab158db7078a333384e0e918c90dbc42917 MIT
  • python3 security/vectors/fetch.py --verify checks every stored file against the manifest (offline; the orchestrator runs it at each audit).
  • python3 security/vectors/fetch.py downloads the pinned revisions again and rewrites the files and the manifest (only public vector files are downloaded; nothing is uploaded).
  • Wycheproof JSON files are stored gzip-compressed with a zero timestamp (reproducible bytes).

Vectors that live elsewhere and are reused by the audit:

  • NIST ACVP (ML-KEM, ML-DSA, SLH-DSA, SHA-2, SHA-3, SHAKE), NIST CAVP GCM and RFC 8439 vectors committed with the engine tests: Tests/<Module>Tests/Vectors/ (each with its README.txt: source, revision, licence).
  • The complete SLH-DSA ACVP files (several hundred megabytes) are read, when present, from ~/Desktop/Cluster/projets/SP/spb-quantum-crypto/tests/kat/acvp (read-only, opt-in: QY_SLHDSA_FULL_KAT or the default location). When they are absent the reduced committed set is replayed and the report says so.

Wycheproof files deliberately not used: ecdh_secp256k1_* (the engine exposes no secp256k1 ECDH), aes_gcm_siv, xchacha20, RSA, NIST P-curves, HPKE (not implemented by the engine).

Files main
Menu

Theme