MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / SHA256Bytes

Function SHA256Bytes

common/persistence/utils.go:29–32  ·  view source on GitHub ↗

SHA256Bytes 对byte数组执行SHA256运算

(body []byte)

Source from the content-addressed store, hash-verified

27
28// SHA256Bytes 对byte数组执行SHA256运算
29func SHA256Bytes(body []byte) ([]byte, error) {
30 buf := bytes.NewBuffer(body)
31 return SHA256Streams([]io.Reader{buf})
32}
33
34// SHA256Streams 对文件流执行SHA256运算
35func SHA256Streams(streams []io.Reader) ([]byte, error) {

Callers 3

SHA256StringFunction · 0.85
RSA2048SignBytesFunction · 0.85
RSA2048VerifyBytesFunction · 0.85

Calls 1

SHA256StreamsFunction · 0.85

Tested by

no test coverage detected