ax(ueps): fix inaccurate default-case comment in ReadAndVerify
Comment showed Write([]byte{...}) but code uses WriteByte — misleading
concrete example violates AX Principle 2 (comments as accurate usage examples).
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
836fc18ff3
commit
be4d388860
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ func ReadAndVerify(reader *bufio.Reader, sharedSecret []byte) (*ParsedPacket, er
|
|||
case TagHMAC:
|
||||
hmacSignature = tagValue
|
||||
default:
|
||||
// hmacInputBuffer.Write([]byte{tagType, tagValueLength}); hmacInputBuffer.Write(tagValue) — unknown tags included in HMAC
|
||||
// hmacInputBuffer.WriteByte(tagType); hmacInputBuffer.WriteByte(tagValueLength); hmacInputBuffer.Write(tagValue)
|
||||
hmacInputBuffer.WriteByte(tagType)
|
||||
hmacInputBuffer.WriteByte(tagValueLength)
|
||||
hmacInputBuffer.Write(tagValue)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue