Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getDecryptedETag (0.52 sec)

  1. cmd/encryption-v1.go

    	return hex.EncodeToString(etag), nil
    }
    
    // For encrypted objects, the ETag sent by client if available
    // is stored in encrypted form in the backend. Decrypt the ETag
    // if ETag was previously encrypted.
    func getDecryptedETag(headers http.Header, objInfo ObjectInfo, copySource bool) (decryptedETag string) {
    	var (
    		key [32]byte
    		err error
    	)
    	// If ETag is contentMD5Sum return it as is.
    	if len(objInfo.ETag) == 32 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37.8K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    			if err != nil {
    				// Call the cleanup funcs
    				for i := len(cFns) - 1; i >= 0; i-- {
    					cFns[i]()
    				}
    				return nil, err
    			}
    
    			oi.ETag = getDecryptedETag(h, oi, false)
    
    			// Apply the skipLen and limit on the
    			// decrypted stream
    			decReader = io.LimitReader(xioutil.NewSkipReader(decReader, skipLen), decRangeLength)
    
    			// Assemble the GetObjectReader
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 25 15:08:54 UTC 2025
    - 37.3K bytes
    - Viewed (0)
Back to top