diff --git a/go/store/hash/hash.go b/go/store/hash/hash.go index e77d4572af4..630d54e0d82 100644 --- a/go/store/hash/hash.go +++ b/go/store/hash/hash.go @@ -47,9 +47,9 @@ package hash import ( "bytes" - "crypto/sha512" "encoding/binary" "fmt" + "github.com/zeebo/blake3" "regexp" "strconv" "strings" @@ -91,7 +91,7 @@ func (h Hash) String() string { // Of computes a new Hash from data. func Of(data []byte) Hash { - r := sha512.Sum512(data) + r := blake3.Sum512(data) h := Hash{} copy(h[:], r[:ByteLen]) return h diff --git a/go/store/nbs/table.go b/go/store/nbs/table.go index 0566503fa83..4512ce55189 100644 --- a/go/store/nbs/table.go +++ b/go/store/nbs/table.go @@ -23,7 +23,7 @@ package nbs import ( "context" - "crypto/sha512" + "github.com/zeebo/blake3" "hash/crc32" "io" "maps" @@ -146,7 +146,7 @@ func crc(b []byte) uint32 { } func computeHashDefault(data []byte) hash.Hash { - r := sha512.Sum512(data) + r := blake3.Sum512(data) return hash.New(r[:hash.ByteLen]) }