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}