From b14262e9ebfc7b639cc24460540b50cb816f698d Mon Sep 17 00:00:00 2001 From: charlie <3140647@qq.com> Date: Tue, 5 Aug 2025 14:57:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=AF=86=E9=92=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hmac/hmac.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmac/hmac.go b/hmac/hmac.go index 3f96304..d2e396c 100644 --- a/hmac/hmac.go +++ b/hmac/hmac.go @@ -80,7 +80,7 @@ func Sha512(key, msg []byte) bytesconv.BytesResult { return sum(sha512.New, key, func Sm3(key, msg []byte) bytesconv.BytesResult { return sum(sm3.New, key, msg) } -func sum(f func() hash.Hash, msg, key []byte) bytesconv.BytesResult { +func sum(f func() hash.Hash, key, msg []byte) bytesconv.BytesResult { h := hmac.New(f, key) h.Write(msg)