diff --git a/pkg/ueps/reader.go b/pkg/ueps/reader.go index 6ea0972..73b4bd3 100644 --- a/pkg/ueps/reader.go +++ b/pkg/ueps/reader.go @@ -86,7 +86,7 @@ func ReadAndVerify(reader *bufio.Reader, sharedSecret []byte) (*ParsedPacket, er case TagHMAC: hmacSignature = tagValue default: - // signedData.WriteByte(unknownTag); signedData.Write(tagValue) — unknown tags contribute to HMAC, blocking injection + // signedData.WriteByte(tagByte); signedData.Write(tagValue) — unknown tags contribute to HMAC, blocking injection signedData.WriteByte(tagByte) signedData.WriteByte(tagValueLength) signedData.Write(tagValue)