Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 110 for CHECKSUM (0.12 sec)

  1. cmd/streaming-signature-v4.go

    // than 16 MiB. We must not accept arbitrary large chunks.
    // One 16 MiB is a reasonable max limit.
    //
    // Then we read the signature and payload data. We compute the SHA256 checksum
    // of the payload and verify that it matches the expected signature value.
    //
    // The last chunk is *always* 0-sized. So, we must only return io.EOF if we have encountered
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  2. cmd/object-api-putobject_test.go

    		// With invalid crc32.
    		33: {
    			bucketName: bucket, objName: object, inputData: []byte("abcd"),
    			inputMeta:     map[string]string{"etag": "e2fc714c4727ee9395f324cd2e7f331f", "x-amz-checksum-crc32": "abcd"},
    			inputDataSize: int64(len("abcd")),
    		},
    	}
    	for i, testCase := range testCases {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. cmd/object-multipart-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidChecksum), r.URL)
    		return
    	} else if checksumType.IsSet() && !checksumType.Is(hash.ChecksumTrailing) {
    		opts.WantChecksum = &hash.Checksum{Type: checksumType}
    	}
    
    	if opts.WantChecksum != nil {
    		opts.WantChecksum.Type |= hash.ChecksumMultipart | hash.ChecksumIncludesMultipart
    	}
    
    	newMultipartUpload := objectAPI.NewMultipartUpload
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  4. cmd/api-response.go

    	EncodingType string `xml:"EncodingType,omitempty"`
    }
    
    // Part container for part metadata.
    type Part struct {
    	PartNumber   int
    	LastModified string
    	ETag         string
    	Size         int64
    
    	// Checksum values
    	ChecksumCRC32     string `xml:"ChecksumCRC32,omitempty"`
    	ChecksumCRC32C    string `xml:"ChecksumCRC32C,omitempty"`
    	ChecksumSHA1      string `xml:"ChecksumSHA1,omitempty"`
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  5. src/archive/zip/reader.go

    var zipinsecurepath = godebug.New("zipinsecurepath")
    
    var (
    	ErrFormat       = errors.New("zip: not a valid zip file")
    	ErrAlgorithm    = errors.New("zip: unsupported compression algorithm")
    	ErrChecksum     = errors.New("zip: checksum error")
    	ErrInsecurePath = errors.New("zip: insecure file path")
    )
    
    // A Reader serves content from a ZIP archive.
    type Reader struct {
    	r             io.ReaderAt
    	File          []*File
    	Comment       string
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Mar 11 22:19:38 UTC 2025
    - 28.4K bytes
    - Viewed (0)
  6. cmd/erasure-healing.go

    			for i, disk := range outDatedDisks {
    				if disk == OfflineDisk {
    					continue
    				}
    
    				// A non-nil stale disk which did not receive
    				// a healed part checksum had a write error.
    				if writers[i] == nil {
    					outDatedDisks[i] = nil
    					disksToHealCount--
    					continue
    				}
    
    				// A non-nil stale disk which got error on Close()
    				if closeErrs[i] != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 34.6K bytes
    - Viewed (0)
  7. cmd/erasure-sets.go

    	sum64 := siphash.Hash(k0, k1, []byte(key))
    	return int(sum64 % uint64(cardinality))
    }
    
    func crcHashMod(key string, cardinality int) int {
    	if cardinality <= 0 {
    		return -1
    	}
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    	return int(keyCrc % uint32(cardinality))
    }
    
    func hashKey(algo string, key string, cardinality int, id [16]byte) int {
    	switch algo {
    	case formatErasureVersionV2DistributionAlgoV1:
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37K bytes
    - Viewed (1)
  8. cmd/notification.go

    		err := embedFileInZip(zipWriter, fmt.Sprintf("profile-%s-%s", thisAddr, typ), data, 0o600)
    		internalLogIf(ctx, err)
    	}
    
    	return
    }
    
    // VerifyBinary - asks remote peers to verify the checksum
    func (sys *NotificationSys) VerifyBinary(ctx context.Context, u *url.URL, sha256Sum []byte, releaseInfo string, bin []byte) []NotificationPeerErr {
    	// FIXME: network calls made in this manner such as one goroutine per node,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.9K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2_test.go

    	trimmed := xlMetaV2TrimData(serialized)
    	failOnErr(xl2.Load(trimmed))
    	if len(xl2.data) != 0 {
    		t.Fatal("data, was not trimmed, bytes left:", len(xl2.data))
    	}
    	// Corrupt metadata, last 5 bytes is the checksum, so go a bit further back.
    	trimmed[len(trimmed)-10] += 10
    	if err := xl2.Load(trimmed); err == nil {
    		t.Fatal("metadata corruption not detected")
    	}
    }
    
    // TestUsesDataDir tests xlMetaV2.UsesDataDir
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37.8K bytes
    - Viewed (0)
  10. cmd/server_test.go

    	c.Assert(err, nil)
    
    	req.Body = io.NopCloser(bytes.NewReader([]byte("foobar!\n")))
    	req.Trailer = http.Header{}
    	req.Trailer.Set("x-amz-checksum-crc32", "rK0DXg==")
    
    	now := UTCNow()
    
    	req = signer.StreamingUnsignedV4(req, "", 8, now)
    
    	maliciousHeaders := http.Header{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
Back to top