SPB Git

Repository Public

README.md 2.3 KB 31 lines markdown

1# security/vectors — third-party test vectors of the audit23**Third-party material.** The files under `wycheproof/` and `bip/` are not SP Boucher code: they keep4their own licences and carry no SP Boucher header. `MANIFEST.json` gives, for each file, the source URL,5the pinned commit, the licence and the SHA-256 of the raw content and of the stored file.67| Directory | Source | Pinned commit | Licence |8|---|---|---|---|9| `wycheproof/` | https://github.com/C2SP/wycheproof (`testvectors_v1/`) | `c0cfeee0654850a5f407628a00381e6e685227cd` | Apache-2.0 (`wycheproof/LICENSE`) |10| `bip/bip-0340-test-vectors.csv` | https://github.com/bitcoin/bips (`bip-0340/test-vectors.csv`) | `c597d68e983096f623817c9feb1692d46722eb89` | BSD-2-Clause |11| `bip/bip-0032-vectors.json` | same repository, extracted from `bip-0032.mediawiki` by `fetch.py` | same | BIP text licence |12| `bip/bip-0039-vectors.json` | https://github.com/trezor/python-mnemonic (`vectors.json`) | `b57a5ad77a981e743f4167ab2f7927a55c1e82a8` | MIT |13| `bip/bip-0173-0350-vectors.json` | https://github.com/sipa/bech32 (`ref/python/tests.py`, lists extracted without executing the file) | `7a7d7ab158db7078a333384e0e918c90dbc42917` | MIT |1415- `python3 security/vectors/fetch.py --verify` checks every stored file against the manifest (offline; the16  orchestrator runs it at each audit).17- `python3 security/vectors/fetch.py` downloads the pinned revisions again and rewrites the files and the18  manifest (only public vector files are downloaded; nothing is uploaded).19- Wycheproof JSON files are stored gzip-compressed with a zero timestamp (reproducible bytes).2021Vectors that live elsewhere and are reused by the audit:2223- NIST ACVP (ML-KEM, ML-DSA, SLH-DSA, SHA-2, SHA-3, SHAKE), NIST CAVP GCM and RFC 8439 vectors committed with24  the engine tests: `Tests/<Module>Tests/Vectors/` (each with its `README.txt`: source, revision, licence).25- The complete SLH-DSA ACVP files (several hundred megabytes) are read, when present, from26  `~/Desktop/Cluster/projets/SP/spb-quantum-crypto/tests/kat/acvp` (read-only, opt-in: `QY_SLHDSA_FULL_KAT`27  or the default location). When they are absent the reduced committed set is replayed and the report says so.2829Wycheproof files deliberately not used: `ecdh_secp256k1_*` (the engine exposes no secp256k1 ECDH),30`aes_gcm_siv`, `xchacha20`, RSA, NIST P-curves, HPKE (not implemented by the engine).31
Files main
Menu

Theme