Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for chksum1 (0.12 sec)

  1. src/archive/tar/format.go

    // If the checksum fails, then FormatUnknown is returned.
    func (b *block) getFormat() Format {
    	// Verify checksum.
    	var p parser
    	value := p.parseOctal(b.toV7().chksum())
    	chksum1, chksum2 := b.computeChecksum()
    	if p.err != nil || (value != chksum1 && value != chksum2) {
    		return FormatUnknown
    	}
    
    	// Guess the magic values.
    	magic := string(b.toUSTAR().magic())
    	version := string(b.toUSTAR().version())
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. src/archive/tar/reader_test.go

    				t.Fatalf("got %d headers, want %d headers", len(hdrs), len(v.headers))
    			}
    
    			for i, sum := range chksums {
    				if i >= len(v.chksums) {
    					t.Fatalf("entry %d: unexpected sum: got %s", i, sum)
    				}
    				if sum != v.chksums[i] {
    					t.Fatalf("entry %d: incorrect checksum: got %s, want %s", i, sum, v.chksums[i])
    				}
    			}
    
    			if err != v.err {
    				t.Fatalf("unexpected error: got %v, want %v", err, v.err)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  3. internal/hash/checksum.go

    func AddChecksumHeader(w http.ResponseWriter, c map[string]string) {
    	for k, v := range c {
    		cksum := NewChecksumString(k, v)
    		if cksum == nil {
    			continue
    		}
    		if cksum.Valid() {
    			w.Header().Set(cksum.Type.Key(), v)
    		}
    	}
    }
    
    // GetContentChecksum returns content checksum.
    // Returns ErrInvalidChecksum if so.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. cmd/object-lambda-handlers.go

    	if err != nil {
    		return levent.Event{}, err
    	}
    
    	ckSum := sha256.Sum256([]byte(cred.AccessKey + u.RawQuery))
    
    	eventData := levent.Event{
    		GetObjectContext: &levent.GetObjectContext{
    			InputS3URL:  u.String(),
    			OutputRoute: shortuuid.New(),
    			OutputToken: hex.EncodeToString(ckSum[:]),
    		},
    		UserRequest: levent.UserRequest{
    			URL:     r.URL.String(),
    			Headers: r.Header.Clone(),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    		chkSums := objInfo.decryptChecksums(0, r.Header)
    		// AWS does not appear to append part number on this API call.
    		if len(chkSums) > 0 {
    			OA.Checksum = &objectAttributesChecksum{
    				ChecksumCRC32:  strings.Split(chkSums["CRC32"], "-")[0],
    				ChecksumCRC32C: strings.Split(chkSums["CRC32C"], "-")[0],
    				ChecksumSHA1:   strings.Split(chkSums["SHA1"], "-")[0],
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  6. cmd/erasure-multipart.go

    	fi.VersionID = opts.VersionID
    	if opts.Versioned && fi.VersionID == "" {
    		fi.VersionID = mustGetUUID()
    	}
    	fi.DataDir = mustGetUUID()
    
    	if ckSum := userDefined[ReplicationSsecChecksumHeader]; ckSum != "" {
    		v, err := base64.StdEncoding.DecodeString(ckSum)
    		if err == nil {
    			fi.Checksum = v
    		}
    		delete(userDefined, ReplicationSsecChecksumHeader)
    	}
    
    	// Initialize erasure metadata.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  7. cmd/erasure-metadata.go

    const minIOErasureUpgraded = "x-minio-internal-erasure-upgraded"
    
    const erasureAlgorithm = "rs-vandermonde"
    
    // GetChecksumInfo - get checksum of a part.
    func (e ErasureInfo) GetChecksumInfo(partNumber int) (ckSum ChecksumInfo) {
    	for _, sum := range e.Checksums {
    		if sum.PartNumber == partNumber {
    			// Return the checksum
    			return sum
    		}
    	}
    	return ChecksumInfo{Algorithm: DefaultBitrotAlgorithm}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  8. cmd/erasure-object.go

    	fi.VersionID = opts.VersionID
    	if opts.Versioned && fi.VersionID == "" {
    		fi.VersionID = mustGetUUID()
    	}
    
    	fi.DataDir = mustGetUUID()
    	if ckSum := userDefined[ReplicationSsecChecksumHeader]; ckSum != "" {
    		if v, err := base64.StdEncoding.DecodeString(ckSum); err == nil {
    			fi.Checksum = v
    		}
    		delete(userDefined, ReplicationSsecChecksumHeader)
    	}
    	uniqueID := mustGetUUID()
    	tempObj := uniqueID
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top