Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReadPartCheckSums (1.17 sec)

  1. internal/hash/checksum.go

    				res[xhttp.AmzChecksumType] = ckType
    			}
    		}
    	}
    	if len(res) == 0 {
    		res = nil
    	}
    	return res, isMP
    }
    
    // ReadPartCheckSums will read all part checksums from b and return them.
    func ReadPartCheckSums(b []byte) (res []map[string]string) {
    	for len(b) > 0 {
    		t, n := binary.Uvarint(b)
    		if n <= 0 {
    			break
    		}
    		b = b[n:]
    
    		typ := ChecksumType(t)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  2. cmd/encryption-v1.go

    		if err != nil {
    			if !errors.Is(err, crypto.ErrSecretKeyMismatch) {
    				encLogIf(GlobalContext, err)
    			}
    			return
    		}
    		data = decrypted
    	}
    	cs := hash.ReadPartCheckSums(data)
    	if len(cs) == len(o.Parts) {
    		for i := range o.Parts {
    			o.Parts[i].Checksums = cs[i]
    		}
    	}
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 38K bytes
    - Viewed (0)
Back to top