Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go/store/hash/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ package hash

import (
"bytes"
"crypto/sha512"
"encoding/binary"
"fmt"
"github.com/zeebo/blake3"
"regexp"
"strconv"
"strings"
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go/store/nbs/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package nbs

import (
"context"
"crypto/sha512"
"github.com/zeebo/blake3"
"hash/crc32"
"io"
"maps"
Expand Down Expand Up @@ -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])
}

Expand Down
Loading