Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsETagSealed (0.16 sec)

  1. internal/crypto/metadata.go

    	if metadata == nil {
    		return map[string]string{MetaMultipart: ""}
    	}
    	metadata[MetaMultipart] = ""
    	return metadata
    }
    
    // IsETagSealed returns true if the etag seems to be encrypted.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Jun 10 17:40:33 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. internal/crypto/key.go

    // because such ETags indicate that the S3 client hasn't sent
    // an ETag = MD5(object) and the backend has picked an ETag value.
    func (key ObjectKey) UnsealETag(etag []byte) ([]byte, error) {
    	if !IsETagSealed(etag) {
    		return etag, nil
    	}
    	mac := hmac.New(sha256.New, key[:])
    	mac.Write([]byte("SSE-etag"))
    	return sio.DecryptBuffer(make([]byte, 0, len(etag)), etag, sio.Config{Key: mac.Sum(nil)})
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 16 14:27:42 UTC 2025
    - 6.2K bytes
    - Viewed (0)
Back to top