From ddb62cb269144a550f018febe3bd1a693fa8d213 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 08:58:53 +0100 Subject: [PATCH] ax(ueps): use full variable name in TagHMAC and TagPayload comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AX Principle 1 — predictable names over short names. Comments showing usage examples must use the same full names as the implementation: 'buffer' not 'buf'. Co-Authored-By: Charon --- pkg/ueps/packet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index 48818cd..aee901a 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -24,8 +24,8 @@ const ( TagTargetLayer = 0x03 TagIntent = 0x04 TagThreatScore = 0x05 - TagHMAC = 0x06 // writeTLV(buf, TagHMAC, hmacSignature) — covers all preceding header TLVs + payload - TagPayload = 0xFF // buf.WriteByte(TagPayload); buf.Write(rawPayload) — no length prefix + TagHMAC = 0x06 // writeTLV(buffer, TagHMAC, hmacSignature) — covers all preceding header TLVs + payload + TagPayload = 0xFF // buffer.WriteByte(TagPayload); buffer.Write(rawPayload) — no length prefix ) // header := ueps.UEPSHeader{Version: 0x09, CurrentLayer: 5, TargetLayer: 3, IntentID: 0x01, ThreatScore: 0}