Skip to content

Commit

Permalink
change err msg format
Browse files Browse the repository at this point in the history
  • Loading branch information
makiuchi-d committed Jul 17, 2024
1 parent fff7bbe commit 5c9707d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/auth/mackey.go
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ func EncryptMACKey(appKey, macKey string) (string, error) {
func ValidateMsgHMAC(mac hash.Hash, data []byte) ([]byte, error) {
dlen := len(data) - mac.Size()
if dlen < 0 {
return nil, xerrors.Errorf("data=%v", data)
return nil, xerrors.Errorf("data=[% X]", data)
}
data, h := data[:dlen], data[dlen:]
hash := CalculateMsgHMAC(mac, data)

0 comments on commit 5c9707d

Please sign in to comment.