gnodet commented on PR #31032:
URL: https://github.com/apache/camel/pull/31032#issuecomment-7226248176

   Thank you @davsclaus for the thorough review! All four points and the 
smaller items have been addressed in the two commits pushed after the review 
(d7efa8e and ece9ef0):
   
   1. **Header constants corrected** — `WIRE_VERSION = 0x02` and 
`FORMAT_TYPE_KEM = 0x03`; the format-type table in `pqc-hybrid.adoc` now has a 
`0x03` row for "KEM data encryption (PQCDataFormat)".
   
   2. **Header authenticated as AAD** — `cipher.updateAAD(header)` on the 
encrypt path and `cipher.updateAAD(headerBytes)` on the v2 decrypt path. The 
`tamperedHeaderIsRejected` test verifies that flipping a header byte triggers 
an authentication failure.
   
   3. **Docs updated** — `pqc-dataformat.adoc` now shows the full v2 layout 
with correct version and format bytes; the stale NOTE in `pqc-hybrid.adoc` ("v2 
migration tracked in CAMEL-27548") is removed; both catalog copies are 
regenerated.
   
   4. **Upgrade guide** — Uses "4.22 and 4.23" instead of "4.23 and earlier"; 
rolling-upgrade advice ("upgrade the readers before the writers") added; the 
entry is now a sibling subsection of "Hybrid wire format v2 is now the default".
   
   Smaller items:
   - `pbIn.read()` → `pbIn.readNBytes(2)` ✓
   - `PQCAlgorithmId.UNKNOWN` for DSTU7624/GOST3412-2015 is documented in the 
class-level Javadoc ✓
   - v2 error-path tests for wrong version, wrong format type, 1-byte, 2-byte, 
and 7-byte truncated headers, and both KEM and symmetric algorithm-mismatch 
cases ✓
   - `fmt.stop()` moved to `finally` blocks in all tests ✓
   
   _Claude Code on behalf of gnodet_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to