Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for IsETagSealed (0.06 seconds)

  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.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Jun 10 17:40:33 GMT 2024
    - 6.4K bytes
    - Click Count (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)})
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 16 14:27:42 GMT 2025
    - 6.2K bytes
    - Click Count (0)
Back to Top