- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SignV4 (0.08 sec)
-
cmd/post-policy_test.go
// Add content length condition, only accept content sizes of a given length. contentLengthCondStr := `["content-length-range", 1024, 1048576]` // Add the algorithm condition, only accept AWS SignV4 Sha256. algorithmConditionStr := `["eq", "$x-amz-algorithm", "AWS4-HMAC-SHA256"]` // Add the date condition, only accept the current date. dateConditionStr := fmt.Sprintf(`["eq", "$x-amz-date", "%s"]`, t.Format(iso8601DateFormat))
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 30.2K bytes - Viewed (0) -
cmd/admin-handlers-users_test.go
} req.ContentLength = int64(len(buf)) sum := sha256.Sum256(buf) req.Header.Set("X-Amz-Content-Sha256", hex.EncodeToString(sum[:])) req.Body = io.NopCloser(bytes.NewReader(buf)) req = signer.SignV4(*req, accessKey, secretKey, "", "") // 3.1 Execute the request. resp, err := s.TestSuiteCommon.client.Do(req) if err != nil { c.Fatalf("unexpected request err: %v", err) } if resp.StatusCode != 200 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 45.7K bytes - Viewed (0) -
src/runtime/vlrt.go
} //go:nosplit func slowdodiv(n, d uint64) (q, r uint64) { if d == 0 { panicdivide() } // Set up the divisor and find the number of iterations needed. capn := n if n >= sign64 { capn = sign64 } i := 0 for d < capn { d <<= 1 i++ } for ; i >= 0; i-- { q <<= 1 if n >= d { n -= d q |= 1 } d >>= 1 } return q, n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 6.7K bytes - Viewed (0)