Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
func
SHA256Digest(v []byte) []byte {
20
h := sha256.New()
21
h.Write(v)
22
return
h.Sum(make([]byte, 0, sha256.Size))
23
}
24
25
func
SHA1Digest(v []byte) []byte {
26
h := sha1.New()
Callers
1
BuildKexExchangeRequest
Function · 0.92
Calls
1
Write
Method · 0.45
Tested by
no test coverage detected