MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / SHA256Digest

Function SHA256Digest

utils/crypto/hash.go:19–23  ·  view source on GitHub ↗
(v []byte)

Source from the content-addressed store, hash-verified

17}
18
19func SHA256Digest(v []byte) []byte {
20 h := sha256.New()
21 h.Write(v)
22 return h.Sum(make([]byte, 0, sha256.Size))
23}
24
25func SHA1Digest(v []byte) []byte {
26 h := sha1.New()

Callers 1

BuildKexExchangeRequestFunction · 0.92

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected