file-store/pkg/erasureencode/util.go

11 lines
132 B
Go

package erasureencode
import (
"crypto/sha256"
)
func sha256sum(input []byte) []byte {
v := sha256.Sum256(input)
return v[:]
}