Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tjfoc/gmsm
/ New
Function
New
sm3/sm3.go:182–187 ·
view source on GitHub ↗
创建哈希计算实例
()
Source
from the content-addressed store, hash-verified
180
181
// 创建哈希计算实例
182
func
New() hash.Hash {
183
var
sm3 SM3
184
185
sm3.Reset()
186
return
&sm3
187
}
188
189
// BlockSize returns the hash's underlying block size.
190
// The Write method must be able to accept any amount
Callers
7
msgHash
Function · 0.92
ZA
Function · 0.92
kdf
Function · 0.92
newFinishedHashGM
Function · 0.92
newFinishedHash
Function · 0.92
TestSm3
Function · 0.70
BenchmarkSm3
Function · 0.70
Calls
1
Reset
Method · 0.95
Tested by
2
TestSm3
Function · 0.56
BenchmarkSm3
Function · 0.56