mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 00:32:26 -05:00
[chore] Step minio down to 7.0.85 (#3808)
This commit is contained in:
parent
96716e4f43
commit
2f5629143d
13 changed files with 9 additions and 763 deletions
7
vendor/github.com/minio/minio-go/v7/checksum.go
generated
vendored
7
vendor/github.com/minio/minio-go/v7/checksum.go
generated
vendored
|
|
@ -30,8 +30,6 @@ import (
|
|||
"math/bits"
|
||||
"net/http"
|
||||
"sort"
|
||||
|
||||
"github.com/minio/crc64nvme"
|
||||
)
|
||||
|
||||
// ChecksumType contains information about the checksum type.
|
||||
|
|
@ -154,6 +152,9 @@ func (c ChecksumType) RawByteLen() int {
|
|||
|
||||
const crc64NVMEPolynomial = 0xad93d23594c93659
|
||||
|
||||
// crc64 uses reversed polynomials.
|
||||
var crc64Table = crc64.MakeTable(bits.Reverse64(crc64NVMEPolynomial))
|
||||
|
||||
// Hasher returns a hasher corresponding to the checksum type.
|
||||
// Returns nil if no checksum.
|
||||
func (c ChecksumType) Hasher() hash.Hash {
|
||||
|
|
@ -167,7 +168,7 @@ func (c ChecksumType) Hasher() hash.Hash {
|
|||
case ChecksumSHA256:
|
||||
return sha256.New()
|
||||
case ChecksumCRC64NVME:
|
||||
return crc64nvme.New()
|
||||
return crc64.New(crc64Table)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue