feat(pqc): plumb pqcMode to identity path, hybrid HELLO ct, spec review fixes
- Node stores _pqcMode; Identity::generate(bool,int) derives pq from daemon mode - OneService reads local.conf settings.pqcMode before new Node (opt-in, absent=classic) - Peer/IncomingPacket: hybrid KEM ct in HELLO/OK, capability-bit fallback classic - tools/pqc-lab.sh two-node E2E lab + tools/zt-dissector.lua capture dissector - docs/pqc-test-scenario.md test plan - SPEC.md review pass: V12 evidence -> live daemon check, V14/V15 cite realign, T24/T25 tasks (pqconly preset gap documented)
This commit is contained in:
1 parent
1ead221c6a
commit
fa08792c78
13 files changed
+1058
-144
No files matched your search
+4
-5
@@ -100,17 +100,16 @@ void Identity::generate(bool pq, int pqcMode)
|
||||
|
||||
delete [] genmem;
|
||||
|
||||
// V12: mode off never carries v2 material; pqconly always does.
|
||||
// Hybrid leaves it to the caller (daemon passes a mode-derived flag once
|
||||
// Node::pqcMode is plumbed) so bare generate() stays classic.
|
||||
// Mode resolves the default when the caller has no opinion; an explicit
|
||||
// pq=true always wins so a hybrid mode can request v2 material directly.
|
||||
// Address derivation stays over the C25519 material only (V10).
|
||||
if (pqcMode == ZT_PQC_MODE_CLASSIC) {
|
||||
pq = false;
|
||||
}
|
||||
else if (pqcMode == ZT_PQC_MODE_PQCONLY) {
|
||||
pq = true;
|
||||
}
|
||||
// Identity type 1: ML-KEM-768 key exchange + ML-DSA-65 signature key pairs.
|
||||
// Address derivation stays over the C25519 material only (V10).
|
||||
// Identity type 1: ML-KEM-768 key exchange + ML-DSA-65 signature keys.
|
||||
if (pq) {
|
||||
if (! _pq) {
|
||||
_pq = new PQKeys();
|
||||
|
||||
Reference in new issue
Block a user