Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getStringToSignV2 (0.1 sec)

  1. cmd/signature-v2.go

    	stringToSign := getStringToSignV2(method, encodedResource, encodedQuery, headers, expires)
    	return calculateSignatureV2(stringToSign, cred.SecretKey)
    }
    
    // Return the signature v2 of a given request.
    func signatureV2(cred auth.Credentials, method string, encodedResource string, encodedQuery string, headers http.Header) string {
    	stringToSign := getStringToSignV2(method, encodedResource, encodedQuery, headers, "")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    			encodedQuery = splits[1]
    		}
    	}
    
    	unescapedQueries, err := unescapeQueries(encodedQuery)
    	if err != nil {
    		return err
    	}
    
    	// Get presigned string to sign.
    	stringToSign := getStringToSignV2(req.Method, encodedResource, strings.Join(unescapedQueries, "&"), req.Header, expiresStr)
    	hm := hmac.New(sha1.New, []byte(secretAccessKey))
    	hm.Write([]byte(stringToSign))
    
    	// Calculate signature.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top