file-store/pkg/erasureencode/util.go

11 lines
132 B
Go
Raw Normal View History

2022-08-24 02:54:01 +00:00
package erasureencode
import (
"crypto/sha256"
)
func sha256sum(input []byte) []byte {
v := sha256.Sum256(input)
return v[:]
}