You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(pcapng): Decryption Secrets Block never pads its secrets data #1279
Describe the bug secrets_length is the unpadded length and the block length adds it without padding (pcapkit/protocols/misc/pcapng.py:3995, :4003), so odd-sized secrets give a block that is not a multiple of 4.
To Reproduce
in 0a000000 18000000 78563412 03000000 01020300 18000000
build from parsed info -> ProtocolError: PCAP-NG: [Block 10] invalid length: 23
Expected behavior
Secrets data is padded to 32 bits with zeros; Secrets Length stays unpadded.
Found by the misc round-trip audit (#1202). The repro was re-checked by an independent verifier, and I re-ran it on main at 11ae68ebf.
Activity
JarryShaw commentedon Oct 7, 2026
Blocked until the PCAP-NG K1-K5 PR (#1267-#1271) merges.
fix(pcapng): constructed and rebuilt blocks round-trip (#1267, #1268, #…
fix(pcapng): constructed and rebuilt blocks round-trip (#1267, #1268, #…
JarryShaw commentedon Oct 7, 2026
Unblocked: #1339 merged at 20:42Z. Back to
pending.fix(pcapng): rebuilt blocks keep their lengths and padding (#1276, #1279