MCPcopy
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// 创建哈希计算实例
182func 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

msgHashFunction · 0.92
ZAFunction · 0.92
kdfFunction · 0.92
newFinishedHashGMFunction · 0.92
newFinishedHashFunction · 0.92
TestSm3Function · 0.70
BenchmarkSm3Function · 0.70

Calls 1

ResetMethod · 0.95

Tested by 2

TestSm3Function · 0.56
BenchmarkSm3Function · 0.56