Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for Hash (0.13 sec)

  1. internal/hash/checksum.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package hash
    
    import (
    	"bytes"
    	"context"
    	"crypto/sha1"
    	"encoding/base64"
    	"encoding/binary"
    	"fmt"
    	"hash"
    	"hash/crc32"
    	"net/http"
    	"strings"
    
    	"github.com/minio/minio/internal/hash/sha256"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    		}
    	}
    
    	checksumType := hash.NewChecksumType(r.Header.Get(xhttp.AmzChecksumAlgo))
    	if checksumType.Is(hash.ChecksumInvalid) {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequestParameter), r.URL)
    		return
    	} else if checksumType.IsSet() && !checksumType.Is(hash.ChecksumTrailing) {
    		opts.WantChecksum = &hash.Checksum{Type: checksumType}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  3. cmd/storage-errors.go

    // errFileCorrupt - file has an unexpected size, or is not readable
    var errFileCorrupt = StorageErr("file is corrupted")
    
    // errBitrotHashAlgoInvalid - the algo for bit-rot hash
    // verification is empty or invalid.
    var errBitrotHashAlgoInvalid = StorageErr("bit-rot hash algorithm is invalid")
    
    // errCrossDeviceLink - rename across devices not allowed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-rebalance.go

    		parts := make([]CompletePart, len(oi.Parts))
    		for i, part := range oi.Parts {
    			hr, err := hash.NewReader(ctx, io.LimitReader(gr, part.Size), part.Size, "", "", part.ActualSize)
    			if err != nil {
    				return fmt.Errorf("rebalanceObject: hash.NewReader() %w", err)
    			}
    			pi, err := z.PutObjectPart(ctx, bucket, oi.Name, res.UploadID,
    				part.Number,
    				NewPutObjReader(hr),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    	if !etag.ContentMD5Requested(r.Header) && (crypto.S3KMS.IsRequested(r.Header) || crypto.SSEC.IsRequested(r.Header) || !globalServerCtxt.StrictS3Compat) {
    		forceMD5 = mustGetUUIDBytes()
    	}
    	hashReader, err := hash.NewReaderWithOpts(ctx, reader, hash.Options{
    		Size:       size,
    		MD5Hex:     md5hex,
    		SHA256Hex:  sha256hex,
    		ActualSize: actualSize,
    		DisableMD5: false,
    		ForceMD5:   forceMD5,
    	})
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  6. cmd/api-errors.go

    		apiErr = ErrEntityTooSmall
    	case SignatureDoesNotMatch:
    		apiErr = ErrSignatureDoesNotMatch
    	case hash.SHA256Mismatch:
    		apiErr = ErrContentSHA256Mismatch
    	case hash.ChecksumMismatch:
    		apiErr = ErrContentChecksumMismatch
    	case hash.SizeTooSmall:
    		apiErr = ErrEntityTooSmall
    	case hash.SizeTooLarge:
    		apiErr = ErrEntityTooLarge
    	case NotImplemented:
    		apiErr = ErrNotImplemented
    	case PartTooBig:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  7. cmd/auth-handler.go

    	"strings"
    	"sync/atomic"
    	"time"
    
    	"github.com/minio/minio/internal/auth"
    	objectlock "github.com/minio/minio/internal/bucket/object/lock"
    	"github.com/minio/minio/internal/etag"
    	"github.com/minio/minio/internal/hash"
    	xhttp "github.com/minio/minio/internal/http"
    	xjwt "github.com/minio/minio/internal/jwt"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/minio/internal/mcontext"
    	"github.com/minio/pkg/v2/policy"
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  8. cmd/format-erasure_test.go

    	}
    
    	formatCountMap := make(map[string]int)
    	for _, hash := range formatHashes {
    		if hash == "" {
    			continue
    		}
    		formatCountMap[hash]++
    	}
    
    	maxHash := ""
    	maxCount := 0
    	for hash, count := range formatCountMap {
    		if count > maxCount {
    			maxCount = count
    			maxHash = hash
    		}
    	}
    
    	if maxCount < len(formats)/2 {
    		return nil, errErasureReadQuorum
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  9. cmd/erasure-metadata.go

    			h.Reset()
    		}
    	}
    
    	metaHashCountMap := make(map[string]int)
    	for _, hash := range metaHashes {
    		if hash == "" {
    			continue
    		}
    		metaHashCountMap[hash]++
    	}
    
    	maxHash := ""
    	maxCount := 0
    	for hash, count := range metaHashCountMap {
    		if count > maxCount {
    			maxCount = count
    			maxHash = hash
    		}
    	}
    
    	if maxCount < quorum {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  10. cmd/erasure-object.go

    	"github.com/minio/minio/internal/config/storageclass"
    	"github.com/minio/minio/internal/crypto"
    	"github.com/minio/minio/internal/event"
    	"github.com/minio/minio/internal/grid"
    	"github.com/minio/minio/internal/hash"
    	xhttp "github.com/minio/minio/internal/http"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/mimedb"
    	"github.com/minio/pkg/v2/sync/errgroup"
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
Back to top