Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewChecksumType (0.06 sec)

  1. internal/hash/checksum_test.go

    			// Skip invalid cases where SHA1 or SHA256 is used with full object
    			if (tt.checksum.Is(ChecksumSHA1) || tt.checksum.Is(ChecksumSHA256)) && tt.fullobj {
    				// Validate that NewChecksumType correctly marks these as invalid
    				alg := tt.checksum.String()
    				typ := NewChecksumType(alg, xhttp.AmzChecksumTypeFullObject)
    				if !typ.Is(ChecksumInvalid) {
    					t.Fatalf("Expected ChecksumInvalid for %s with full object, got %s", tt.name, typ.StringFull())
    				}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. internal/hash/checksum.go

    		// AWS seems to ignore full value, and just assume it.
    		return ChecksumCRC64NVME
    	case "":
    		return ChecksumNone
    	}
    	return ChecksumInvalid
    }
    
    // NewChecksumType returns a checksum type based on the algorithm string and obj type.
    func NewChecksumType(alg, objType string) ChecksumType {
    	full := ChecksumFullObject
    	switch objType {
    	case xhttp.AmzChecksumTypeFullObject:
    	case xhttp.AmzChecksumTypeComposite, "":
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    	}
    
    	// Checksum type set when upload started.
    	var checksumType hash.ChecksumType
    	if cs := fi.Metadata[hash.MinIOMultipartChecksum]; cs != "" {
    		checksumType = hash.NewChecksumType(cs, fi.Metadata[hash.MinIOMultipartChecksumType])
    		if opts.WantChecksum != nil && !opts.WantChecksum.Type.Is(checksumType) {
    			return oi, InvalidArgument{
    				Bucket: bucket,
    				Object: fi.Name,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 47.1K bytes
    - Viewed (0)
Back to top