1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00

算法名称

This commit is contained in:
2022-06-23 15:52:34 +08:00
parent 79a5d3c935
commit d1a4cfda24

View File

@ -21,13 +21,13 @@ var _ crypto.Signer = &hashComparer{}
type HMacFunc func(key, msg []byte) bytesconv.BytesResult type HMacFunc func(key, msg []byte) bytesconv.BytesResult
var hmacFuncs = map[string]HMacFunc{ var hmacFuncs = map[string]HMacFunc{
"MD5": Md5, "HmacMD5": Md5,
"SHA1": Sha1, "HmacSHA1": Sha1,
"SHA224": Sha224, "HmacSHA224": Sha224,
"SHA256": Sha256, "HmacSHA256": Sha256,
"SHA384": Sha384, "HmacSHA384": Sha384,
"SHA512": Sha512, "HmacSHA512": Sha512,
"SM3": Sm3, "HmacSM3": Sm3,
} }
type hashComparer struct { type hashComparer struct {