FIBEMATE — Post-Quantum Cryptography Engineering Validation Platform. ML-KEM · ML-DSA · SLH-DSA · SM2/3/4 · FPGA NTT. From math to code to hardware.
[!WARNING] 本项目为开源验证平台,无第三方安全审计,不可作为商业/生产环境的直接密码依赖。 This is an open-source verification platform. It has not had an independent security audit and must not be used as a direct cryptographic dependency in commercial or production systems.
一句话定位 / One line. FIBEMATE 把 FIPS 203/204/205 与 SM2/SM3/SM4 的数学、参考实现、硬件加速和证据链放进同一棵可复现的树 —— 它不是密码库,是"能被第三方重跑"的公开验证平台。同名端到端加密聊天软件是另一个项目 → fibemate.net
This repo is the FIBEMATE PQC engineering verification platform. The math, the reference code, the FPGA accelerator and a timestamped evidence chain live in one reproducible tree: not a crypto library, a platform you can re-run. The chat app of the same name is a separate project.
Every number below can be re-measured with the command next to it. If it does not reproduce, that is our bug.
| 锚点 | 值 | 测量时间 | 复核命令 |
|---|---|---|---|
| ML-KEM-768 KAT | 100/100 向量(500 断言) | 2026-11-17 | node scripts/ci-mlkem-kat.cjs |
| 时间戳证据链 | 366 个 .tsr(257 个不同 basename,94 个 lg-NNN 令牌) | 2026-11-25 | node scripts/count-tsr.cjs |
| 文档-证据一致 | drift 0(denied 10) | 2026-11-27 · fibemate-tools 38d469a | verifact verify --no-cache |
第三个锚点的意思:仓库里 1,410 条“文档声称的代码数字”被逐条评估,105 条已绑定到真实产物(drift 0)。被拒绑的 10 条不是“关掉了”,每条的“真值在哪、候选为什么不算”都写在
verifact.json的note里。核验率按真实口径写:verified 105 / code-artifact 1,410 = 7.45%(对全部受判 1,498 条为 7.01%)。剩下的 135 ambiguous + 1,160 unbound 是待补的工作量,不当作已完成,也不靠换分母把它做高。2026-11-27 复测。
🧭 安全左移 / Shift-left security. 侧信道威胁模型不是"以后补"的文档,是架构资产:Falcon 侧信道威胁模型。每条威胁都带可复现的判据与测量记录;测不出的写
unquantified,不写"安全"。🔎 人话 / Plainly. FIBEMATE 检查文档里写的密码声明与代码实际是否一致,并生成国密合规自查报告;说不清的项写「未评估」,不写「安全」。
⚠️ 安全声明 / Security Notice
- 工程验证组件(ML-KEM-768、SLH-DSA、SM2/SM3/SM4)通过了功能验证、KAT 与软件 TVLA,尚未经过第三方安全审计。
- 实验组件(VWZ、LookingGlass)不提供任何密码学安全保证,默认关闭,需手动启用;源码已迁至 experimental/vwz-lg 分支,main 只保留文档引用。
- 威胁模型与已知边界见 SECURITY.md、Security Model、Known Limitations。
- FIBEMATE is an engineering demonstration platform, not a certified product. Full assessment: SECURITY.md.
Status, known gaps, and how to contribute: English announcement · Contributor guide
🥈 OpenSSF Best Practices Silver — 44/44 MUST criteria, achieved 2026-11-09. Statement coverage 80.53% on CI (run
42682613340, measured 2026-11-10), 81.27% locally; the CI floor is 80%. 📊 OpenSSF Scorecard 8.1 / 10 across 18 checks, as of the latest published record (source:https://api.securityscorecards.dev/projects/github.com/Lennonhaha/fibemate). The badge endpoint itself is the flaky part: repeated probes time out about one run in five while the underlying JSON keeps answering. A blank badge usually means the CDN missed. A red "invalid repo path" badge usually means the CDN cached an outdated negative lookup, not necessarily that the repo path is invalid; confirm the URL in the source link and append a cache-busting query parameter (for example?v=<timestamp>) before concluding anything. ⚠️ Silver is a self-certification of engineering hygiene (CI, docs, licence, release process, governance), not cryptographic correctness or a security audit.
五条设计原则 → 不假装完整 · 证据链优先 · 边界公开 · 发布前预检 · 诚实纠错
v3.3.3 · 2026-11-14 · TSR 令牌 lg-001~lg-117(空号不回收;94 个令牌、257 个 basename,口径见 scripts/count-tsr.cjs)· fibemate.net · PQC Readiness · TSR Manifest 2026-10-29(冻结快照;更早的 TSR-MANIFEST.md 是 2026-09-04 快照,其摘要被封存在时间戳包内)
Engineering evaluation platform — not production ready: 🟢 Verified (default-on, self-tested) | 🔬 Experimental (default-off, no security guarantees). Experimental components are never in the production encryption path. See Security Model.
Cite this work: CITATION.cff — Liu, T. FIBEMATE: Post-Quantum Cryptography Full-Stack Engineering Platform. v3.3.3, 2026.
| If you are... | Jump to |
|---|---|
| 🔒 Engineering evaluation | → 🟢 Verified Components · Security Model · Known Limitations |
| 📊 Scorecards & Dashboards | → [C |
P0: scoped packages get an invalid purl, so OSV-Scan silently skips them
https://github.com/Lennonhaha/fibemate/issues/820
Labels: bug, security, P0
Investigate intermittent timing variance in ctAdd/ctSub
https://github.com/Lennonhaha/fibemate/issues/779
Labels: security, crypto, P2
【Future】评估端到端加密通讯底座 SDK(基于双棘轮 + 设备级回执)
https://github.com/Lennonhaha/fibemate/issues/741
Labels: feature-request
Data hygiene: 9 device rows whose raw_json is not a JSON object (and why readBy [*] must stay)
https://github.com/Lennonhaha/fibemate/issues/705
Labels: tech-debt, P2
chore: investigate commit clock skew
https://github.com/Lennonhaha/fibemate/issues/701
Labels: ci, P2
tech-debt: seven 2026-09 test accounts and three messages from a deleted account
https://github.com/Lennonhaha/fibemate/issues/678
Labels: tech-debt
proposal: auto-deploy workflow draft (implemented; suspended P3 pending R-1)
https://github.com/Lennonhaha/fibemate/issues/617
Labels: P3, proposal
fix(api): the comment says public access, the route requires a bearer token
https://github.com/Lennonhaha/fibemate/issues/601
Labels: bug, P2
baseline: SM2MLKEM768 / IANA 4590 - public numbers and gaps
https://github.com/Lennonhaha/fibemate/issues/593
Labels: documentation, crypto, P3
code scanning: decide the merge-gate boundary now that open alerts are zero
https://github.com/Lennonhaha/fibemate/issues/591
Labels: ci, security, P2
Thanks for your interest in contributing! FIBEMATE is a post-quantum cryptography full-stack engineering verification platform, licensed under GPLv3.
AI-generated code (including from Copilot, ChatGPT, or similar tools) is welcome, but must meet the same standards as human-written code:
See OpenSSF Roadmap for our policy on AI contributions.
Open an Issue with:
Use Discussions → Ideas before opening a PR. Describe:
We use a small, curated label set to triage issues and PRs. Pick the most specific label — not every possible one.
| Label | Meaning | When to use |
|---|---|---|
good first issue | Low barrier, well-scoped task | Your first contribution; docs, tests, small fixes |
good second issue | Moderate follow-up | A step up: needs familiarity with one module |
help wanted | Needs a contributor | Any issue the maintainer can't take on alone |
bug | Something is broken | Confirmed defect with reproduction |
enhancement | New capability | Feature request that fits project scope |
documentation | Docs-only | Typos, missing examples, translations |
perf | Performance | Benchmarks, SIMD/NTT optimization, latency work |
security | Security-sensitive | Side-channels, KAT, timing, key handling |
crypto | Primitive internals | ML-KEM/ML-DSA/SM2/SM3/SM4 core code |
ci | Build/tooling | Workflows, scripts, checks |
dependencies | Dependency bumps | Dependabot / manual version updates |
Performance changes (perf) must include before/after benchmark numbers — see
scripts/bench-pqc.js for the canonical baseline (node scripts/bench-pqc.js --full).
Security-sensitive changes (security) follow the mandatory 24-hour cool-down
and require a security reasoning section in the PR (see Code Review).
Fork the repository
Create a feature branch following naming conventions:
feature/description — new featuresfix/description — bug fixesdocs/description — documentationsecurity/description — security fixesperf/description — performance improvementsKeep changes focused: One PR = one logical change
Test your changes:
npm test # Unit tests
node ci-smoke.mjs --json 2>&1 # Integration smoke tests
Verify no regressions in existing KAT vectors
Sign your commits (DCO required):
git commit -s -m "feat: description"
Submit the PR against main (not master)
Two failures keep showing up in documentation PRs, and both take seconds to catch locally.
1. Encoding damage. PowerShell redirection and editor saves have both produced GBK mojibake and U+FFFD replacement characters in this repository.
node scripts/check-encoding.cjs # all tracked text files
node scripts/check-encoding.cjs docs/x.md # or just what you touched
2. A forbidden phrase written inside the rule that forbids it. If a rule says "do not publish X", the sentence explaining the rule must not contain X either, or the grep that proves compliance still hits the rule document.
git grep -n -E "<pattern>" -- README.md docs www tools
To automate both, enable the optional hook (not required, not enforced for contributors):
git config core.hooksPath scripts/hooks
It runs the encoding check on staged text files and the patterns listed in scripts/hooks/forbidden-literals.txt. Skip it for a single commit with git commit --no-verify.
| Area | Welcome? | Notes |
|---|---|---|
| ML-KEM-768 / SLH-DSA | ✅ | Must match FIPS 203/205 KAT vectors |
| SM2 / SM3 / SM4 | ✅ | Must match GB/T test vectors |
| TLS 1.3 Hybrid KEM | ✅ | Path A (oqs-provider) or Path C (application-layer) |
| FPGA NTT (Artix-7) | ✅ | Vivado 2023.1+, WNS ≥ 0 |
| LookingGlass / VWZ | ⚠️ | Research-only; requires security discussion first |
| Documentation | ✅ | Fixes, translations, examples |
| Benchmarks | ✅ | Reproducible methodology |
git-lfs or external hosting)All tool pages under www/tools/ must follow these four rules: