ax(ueps): use full variable name in TagHMAC and TagPayload comments
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 <charon@lethean.io>
This commit is contained in:
parent
315d052b15
commit
ddb62cb269
1 changed files with 2 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue