ax(ueps): remove surviving prose fragment from MarshalAndSign_Ugly comment
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 08:49:53 +01:00
parent fbdb14e98f
commit dae27bb10b
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -116,9 +116,8 @@ func TestPacket_MarshalAndSign_Bad(t *testing.T) {
}
}
// the HMAC stored in the frame (the frame is immutable once signed).
// frame, _ := builder.MarshalAndSign(secret)
// // modifying frame[len(frame)-1] breaks HMAC verification
// corrupted[len(frame)-1] ^= 0xFF // modifying any byte breaks HMAC verification
func TestPacket_MarshalAndSign_Ugly(t *testing.T) {
builder := NewBuilder(0x03, []byte("sensitive"))
sharedSecret := []byte("my-secret")