Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 88 of 88 for EncodeToString (0.11 seconds)

  1. cmd/iam.go

    		return auth.Credentials{}, time.Time{}, errIAMActionNotAllowed
    	}
    	m := make(map[string]any)
    	m[parentClaim] = parentUser
    
    	if len(policyBuf) > 0 {
    		m[policy.SessionPolicyName] = base64.StdEncoding.EncodeToString(policyBuf)
    		m[iamPolicyClaimNameSA()] = embeddedPolicyType
    	} else {
    		m[iamPolicyClaimNameSA()] = inheritedPolicyType
    	}
    
    	// Add all the necessary claims for the service account.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 76.5K bytes
    - Click Count (0)
  2. cmd/admin-handlers-users_test.go

    	if err != nil {
    		c.Fatalf("unexpected encryption err: %v", err)
    	}
    
    	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 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 50.6K bytes
    - Click Count (0)
  3. cmd/iam-store.go

    			}
    
    			if len(policyBuf) > maxSVCSessionPolicySize {
    				return updatedAt, errSessionPolicyTooLarge
    			}
    
    			// Overwrite session policy claims.
    			m.Set(policy.SessionPolicyName, base64.StdEncoding.EncodeToString(policyBuf))
    			m.Set(iamPolicyClaimNameSA(), embeddedPolicyType)
    		}
    	}
    
    	cr.SessionToken, err = auth.JWTSignWithAccessKey(accessKey, m.Map(), cr.SecretKey)
    	if err != nil {
    		return updatedAt, err
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 87.1K bytes
    - Click Count (0)
  4. cmd/bucket-replication.go

    		}
    	}
    	isMP = objInfo.isMultipart()
    	if len(objInfo.Checksum) > 0 {
    		// Add encrypted CRC to metadata for SSE-C objects.
    		if isSSEC {
    			meta[ReplicationSsecChecksumHeader] = base64.StdEncoding.EncodeToString(objInfo.Checksum)
    		} else {
    			cs, mp := getCRCMeta(objInfo, 0, nil)
    			// Set object checksum.
    			maps.Copy(meta, cs)
    			isMP = mp
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 118.2K bytes
    - Click Count (0)
  5. cmd/object-handlers.go

    					HTTPStatusCode: http.StatusBadRequest,
    				}
    			}
    		}
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    
    	w.Header()[xhttp.ETag] = []string{`"` + hex.EncodeToString(hreader.MD5Current()) + `"`}
    	hash.TransferChecksumHeader(w, r)
    	writeSuccessResponseHeadersOnly(w)
    }
    
    // Delete objectAPIHandlers
    
    // DeleteObjectHandler - delete an object
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 120.6K bytes
    - Click Count (0)
  6. api/go1.txt

    pkg encoding/base32, method (*Encoding) DecodedLen(int) int
    pkg encoding/base32, method (*Encoding) Encode([]uint8, []uint8)
    pkg encoding/base32, method (*Encoding) EncodeToString([]uint8) string
    pkg encoding/base32, method (*Encoding) EncodedLen(int) int
    pkg encoding/base32, method (CorruptInputError) Error() string
    pkg encoding/base32, type CorruptInputError int64
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Click Count (0)
  7. lib/fips140/v1.26.0.zip

    TestGenerator(t *testing.T) { // These are the coordinates of B from RFC 8032, Section 5.1, converted to // little endian hex. x := "1ad5258f602d56c9b2a7" y := "58666666666666666666" if got := hex.EncodeToString(B.x.Bytes()); got != x { t.Errorf("wrong B.x: got %s, expected %s", got, x) } if got := hex.EncodeToString(B.y.Bytes()); got != y { t.Errorf("wrong B.y: got %s, expected %s", got, y) } if B.z.Equal(feOne) != 1 { t.Errorf("wrong B.z: got %v, expected 1", B.z) } // Check that t is correct. checkOnCurve(t,...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 08 17:58:32 GMT 2026
    - 660.3K bytes
    - Click Count (0)
  8. lib/fips140/v1.0.0-c2097c7c.zip

    TestGenerator(t *testing.T) { // These are the coordinates of B from RFC 8032, Section 5.1, converted to // little endian hex. x := "1ad5258f602d56c9b2a7" y := "58666666666666666666" if got := hex.EncodeToString(B.x.Bytes()); got != x { t.Errorf("wrong B.x: got %s, expected %s", got, x) } if got := hex.EncodeToString(B.y.Bytes()); got != y { t.Errorf("wrong B.y: got %s, expected %s", got, y) } if B.z.Equal(feOne) != 1 { t.Errorf("wrong B.z: got %v, expected 1", B.z) } // Check that t is correct. checkOnCurve(t,...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Sep 25 19:53:19 GMT 2025
    - 642.7K bytes
    - Click Count (0)
Back to Top