Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for signature (0.19 sec)

  1. cmd/signature-v4.go

    	// Get signature.
    	newSignature := getSignature(signingKey, formValues.Get("Policy"))
    
    	// Verify signature.
    	if !compareSignatureV4(newSignature, formValues.Get(xhttp.AmzSignature)) {
    		return cred, ErrSignatureDoesNotMatch
    	}
    
    	// Success.
    	return cred, ErrNone
    }
    
    // doesPresignedSignatureMatch - Verify query headers with presigned signature
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. cmd/signature-v4-utils_test.go

    		{"X-Amz-Content-Sha256", unsignedPayload, "X-Amz-Credential", "", true},
    
    		// Test case - 4.
    		// Enabling PreSigned Signature v4, but X-Amz-Content-Sha256 not set has to be skipped.
    		{"", "", "X-Amz-Credential", "", true},
    
    		// Test case - 5.
    		// Enabling PreSigned Signature v4, but X-Amz-Content-Sha256 set and its not UNSIGNED-PAYLOAD, we shouldn't skip.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	req.URL.RawQuery = query.Encode()
    
    	// Save signature finally.
    	req.URL.RawQuery += "&Signature=" + url.QueryEscape(signature)
    	return nil
    }
    
    // Sign given request using Signature V2.
    func signRequestV2(req *http.Request, accessKey, secretKey string) error {
    	signer.SignV2(*req, accessKey, secretKey, false)
    	return nil
    }
    
    // Sign given request using Signature V4.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. cmd/post-policy_test.go

    	}
    }
    
    // postPresignSignatureV4 - presigned signature for PostPolicy requests.
    func postPresignSignatureV4(policyBase64 string, t time.Time, secretAccessKey, location string) string {
    	// Get signining key.
    	signingkey := getSigningKey(secretAccessKey, t, location, "s3")
    	// Calculate signature.
    	signature := getSignature(signingkey, policyBase64)
    	return signature
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  5. cmd/bucket-policy.go

    	}
    
    	if lc != "" {
    		args["LocationConstraint"] = []string{lc}
    	}
    
    	cloneHeader := r.Header.Clone()
    	if v := cloneHeader.Get("x-amz-signature-age"); v != "" {
    		args["signatureAge"] = []string{v}
    		cloneHeader.Del("x-amz-signature-age")
    	}
    
    	if userTags := cloneHeader.Get(xhttp.AmzObjectTagging); userTags != "" {
    		tag, _ := tags.ParseObjectTags(userTags)
    		if tag != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  6. cmd/auth-handler.go

    	return strings.HasPrefix(r.Header.Get(xhttp.Authorization), jwtAlgorithm)
    }
    
    // Verify if request has AWS Signature Version '4'.
    func isRequestSignatureV4(r *http.Request) bool {
    	return strings.HasPrefix(r.Header.Get(xhttp.Authorization), signV4Algorithm)
    }
    
    // Verify if request has AWS Signature Version '2'.
    func isRequestSignatureV2(r *http.Request) bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  7. docs/debugging/xl-meta/main.go

    	tmp := struct {
    		VersionID string
    		ModTime   time.Time
    		Signature string
    		Type      uint8
    		Flags     uint8
    		EcM, EcN  uint8 // Note that these will be 0/0 for non-v2 objects and older xl.meta
    	}{
    		VersionID: hex.EncodeToString(z.VersionID[:]),
    		ModTime:   time.Unix(0, z.ModTime),
    		Signature: hex.EncodeToString(z.Signature[:]),
    		Type:      z.Type,
    		Flags:     z.Flags,
    		EcM:       z.EcM,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  8. cmd/handler-utils.go

    			// parameter for a streaming signature which is set
    			// to a custom value for example: "aws-chunked,gzip".
    			metadata[strings.ToLower(xhttp.ContentEncoding)] = contentEncoding
    		} else {
    			// Trimmed content encoding is empty when the header
    			// value is set to "aws-chunked" only.
    
    			// Make sure to delete the content-encoding parameter
    			// for a streaming signature which is set to value
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  9. cmd/object-multipart-handlers.go

    		return
    	}
    
    	// if Content-Length is unknown/missing, throw away
    	size := r.ContentLength
    
    	rAuthType := getRequestAuthType(r)
    	// For auth type streaming signature, we need to gather a different content length.
    	switch rAuthType {
    	// Check signature types that must have content length
    	case authTypeStreamingSigned, authTypeStreamingSignedTrailer, authTypeStreamingUnsignedTrailer:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2_gen.go

    		return
    	}
    	z.ModTime, err = dc.ReadInt64()
    	if err != nil {
    		err = msgp.WrapError(err, "ModTime")
    		return
    	}
    	err = dc.ReadExactBytes((z.Signature)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "Signature")
    		return
    	}
    	{
    		var zb0002 uint8
    		zb0002, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err, "Type")
    			return
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top