Repository navigation
fix(pcapng): build a Decryption Secrets Block from bytes secrets_data (#2273) - #2346
Merged
Merged
Conversation
…#2273) _make_block_dsb stored a bytes secrets_data, its b'' default included, in the block schema as given, and every _read_secrets_* expects a parsed secrets schema, so no DSB could be made from bytes for any secrets type. PCAPNG overrides unpack, so the #1312 raw-item reparse never applies. Read the bytes through dsb_secrets_selector, the schema the parse side selects, which packs back to the octets given. Test: TLS, WireGuard, ZigBee NWK/APS (short and long keys), unknown type and empty bytes all make, parse, and rebuild byte-exactly, with the made info equal to the parsed info.
Owner
Author
|
Review: GOOD TO GO at
|
This was referenced Oct 27, 2026
5 of 13 tasks
Contributor
|
Coverage: 91.58% (unit tier, Python 3.15,
Per-file detail: the |
Owner
Author
|
Ready to merge at
|
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make testpasses, and a test case covers the changeWhat is the purpose of your pull request?
fix — bug fixDescription
Closes #2273.
_make_block_dsbread abytessecrets_datastraight through, but every_read_secrets_*expects a parsed schema. It now runs the bytes throughdsb_secrets_selector, the same schema the parser picks, so it packs back byte-exact.origin/main. Passing on the rebased head.