TestPacket_MarshalAndSign_Ugly commented "modifying any byte breaks HMAC verification" (prose description) but never called ReadAndVerify to prove it. Replaced with a usage-example comment and an actual ReadAndVerify call that asserts errIntegrityViolation is returned — AX Principle 2. Co-Authored-By: Charon <charon@lethean.io> |
||
|---|---|---|
| .. | ||
| packet.go | ||
| packet_test.go | ||
| reader.go | ||
| reader_test.go | ||