Files
BackOne/tools
proitlab 727e31b33d dissector: stop reporting ciphertext bytes as verb on encrypted frames
The dissector tested only the pre-1.0.3 0x80 "encrypted" bit, which a
modern AES-GCM packet never sets — the cipher suite lives in flags bits
3-5 (Packet.hpp:1319). Every AES-GCM frame therefore had byte 27 shown
as zt.verb, so a PQ capture produced a histogram of garbage (values up
to 254) that looked like protocol traffic and none of it was.

Cipher suite is now read from bits 3-5, zt.verb is only added on
unencrypted frames, and encrypted frames are labelled as such.

This also invalidates a claim in both docs: VERB_PQ_KEYS is armored with
encryptPayload=true (Peer.cpp:628), so its verb was never actually
readable. The earlier "zt.verb == 23 matches 1" result was ciphertext
that happened to equal 23. PQ_KEYS must be identified by size and
fragmentation (4257 B, ~13 fragments at 1480 B), which is what §7 now
says.

Verified on a live hybrid capture: verb histogram collapses to the
single real value 1, all 127 frames still match zt, the capability bit
and fragment headers still parse.

Adds docs §6.3 covering the data-channel question: the session key
cannot be read from the wire, but pqcHybridActive reports
Peer::hybridSessionKeyInstalled(), which does assert the installed key.
Confirmed true on both hosts.
2026-10-08 09:28:55 +00:00
..