11 lines
132 B
Go
11 lines
132 B
Go
|
package erasureencode
|
||
|
|
||
|
import (
|
||
|
"crypto/sha256"
|
||
|
)
|
||
|
|
||
|
func sha256sum(input []byte) []byte {
|
||
|
v := sha256.Sum256(input)
|
||
|
return v[:]
|
||
|
}
|