Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for SSECopy (0.07 seconds)

  1. cmd/encryption-v1.go

    func ParseSSECopyCustomerRequest(h http.Header, metadata map[string]string) (key []byte, err error) {
    	if crypto.S3.IsEncrypted(metadata) && crypto.SSECopy.IsRequested(h) {
    		return nil, crypto.ErrIncompatibleEncryptionMethod
    	}
    	k, err := crypto.SSECopy.ParseHTTP(h)
    	return k[:], err
    }
    
    // ParseSSECustomerRequest parses the SSE-C header fields of the provided request.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 38K bytes
    - Click Count (0)
  2. cmd/object-api-options.go

    	if copySource {
    		if crypto.SSECopy.IsRequested(header) {
    			clientKey, err = crypto.SSECopy.ParseHTTP(header)
    			if err != nil {
    				return opts, err
    			}
    			if sse, err = encrypt.NewSSEC(clientKey[:]); err != nil {
    				return opts, err
    			}
    			opts.ServerSideEncryption = encrypt.SSECopy(sse)
    			return opts, err
    		}
    		return opts, err
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  3. internal/crypto/header_test.go

    		},
    		Expected: false,
    	}, // 6
    }
    
    func TestSSECopyIsRequested(t *testing.T) {
    	for i, test := range ssecCopyIsRequestedTests {
    		if got := SSECopy.IsRequested(test.Header); got != test.Expected {
    			t.Errorf("Test %d: Wanted %v but got %v", i, test.Expected, got)
    		}
    	}
    }
    
    var ssecParseTests = []struct {
    	Header      http.Header
    	ExpectedErr error
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Jul 13 14:52:15 GMT 2022
    - 21.4K bytes
    - Click Count (0)
  4. cmd/generic-handlers.go

    				writeErrorResponse(r.Context(), w, errorCodes.ToAPIErr(ErrInvalidBucketName), r.URL)
    				return
    			}
    		}
    		// Deny SSE-C requests if not made over TLS
    		if !globalIsTLS && (crypto.SSEC.IsRequested(r.Header) || crypto.SSECopy.IsRequested(r.Header)) {
    			if r.Method == http.MethodHead {
    				if ok {
    					tc.FuncName = "handler.ValidRequest"
    					tc.ResponseRecorder.LogErrBody = false
    				}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 20.7K bytes
    - Click Count (1)
  5. cmd/object-multipart-handlers.go

    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidStorageClass), r.URL)
    			return
    		}
    	}
    
    	encMetadata := map[string]string{}
    
    	if crypto.Requested(r.Header) {
    		if crypto.SSECopy.IsRequested(r.Header) {
    			writeErrorResponse(ctx, w, toAPIError(ctx, errInvalidEncryptionParameters), r.URL)
    			return
    		}
    
    		if crypto.SSEC.IsRequested(r.Header) && crypto.S3.IsRequested(r.Header) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 07 16:13:09 GMT 2025
    - 39.5K bytes
    - Click Count (1)
Back to Top