From dae27bb10b9578573bb31ffee355400a992c6a04 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 08:49:53 +0100 Subject: [PATCH] ax(ueps): remove surviving prose fragment from MarshalAndSign_Ugly comment Co-Authored-By: Charon --- pkg/ueps/packet_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/ueps/packet_test.go b/pkg/ueps/packet_test.go index 35eb133..c6b8751 100644 --- a/pkg/ueps/packet_test.go +++ b/pkg/ueps/packet_test.go @@ -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")