diff options
| author | 2025-02-19 19:18:01 +0100 | |
|---|---|---|
| committer | 2025-02-19 19:18:01 +0100 | |
| commit | 2f5629143d632a17902934293fe00340e6898146 (patch) | |
| tree | 2ba6880a34352c050fafd76f9c8b0f17ec3869b3 /vendor/github.com/minio/minio-go/v7 | |
| parent | [feature] Forward-compatibility with Approval objects (#3807) (diff) | |
| download | gotosocial-2f5629143d632a17902934293fe00340e6898146.tar.xz | |
[chore] Step minio down to 7.0.85 (#3808)
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7')
| -rw-r--r-- | vendor/github.com/minio/minio-go/v7/api.go | 2 | ||||
| -rw-r--r-- | vendor/github.com/minio/minio-go/v7/checksum.go | 7 | 
2 files changed, 5 insertions, 4 deletions
| diff --git a/vendor/github.com/minio/minio-go/v7/api.go b/vendor/github.com/minio/minio-go/v7/api.go index 1b4842ad1..ff9f69118 100644 --- a/vendor/github.com/minio/minio-go/v7/api.go +++ b/vendor/github.com/minio/minio-go/v7/api.go @@ -155,7 +155,7 @@ type Options struct {  // Global constants.  const (  	libraryName    = "minio-go" -	libraryVersion = "v7.0.86" +	libraryVersion = "v7.0.85"  )  // User Agent should always following the below style. diff --git a/vendor/github.com/minio/minio-go/v7/checksum.go b/vendor/github.com/minio/minio-go/v7/checksum.go index c7456cda2..8e4c27ce4 100644 --- a/vendor/github.com/minio/minio-go/v7/checksum.go +++ b/vendor/github.com/minio/minio-go/v7/checksum.go @@ -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  } | 
