Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for StdEncoding (0.33 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    func (t *testEnvelopeService) Decrypt(data []byte) ([]byte, error) {
    	if t.err != nil {
    		return nil, t.err
    	}
    	return base64.StdEncoding.DecodeString(string(data))
    }
    
    func (t *testEnvelopeService) Encrypt(data []byte) ([]byte, error) {
    	if t.err != nil {
    		return nil, t.err
    	}
    	return []byte(base64.StdEncoding.EncodeToString(data)), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    			Claims:          cred.Claims,
    		}) {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrAccessDenied), r.URL)
    			return
    		}
    	}
    
    	policyBytes, err := base64.StdEncoding.DecodeString(formValues.Get("Policy"))
    	if err != nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedPOSTRequest), r.URL)
    		return
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  3. cmd/iam.go

    		return auth.Credentials{}, time.Time{}, errIAMActionNotAllowed
    	}
    	m := make(map[string]interface{})
    	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.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  4. src/net/http/client_test.go

    	ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		auth := r.Header.Get("Authorization")
    		if strings.HasPrefix(auth, "Basic ") {
    			encoded := auth[6:]
    			decoded, err := base64.StdEncoding.DecodeString(encoded)
    			if err != nil {
    				t.Fatal(err)
    			}
    			expected := gopher + ":"
    			s := string(decoded)
    			if expected != s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  5. pkg/proxy/iptables/proxier.go

    func portProtoHash(servicePortName string, protocol string) string {
    	hash := sha256.Sum256([]byte(servicePortName + protocol))
    	encoded := base32.StdEncoding.EncodeToString(hash[:])
    	return encoded[:16]
    }
    
    const (
    	servicePortPolicyClusterChainNamePrefix = "KUBE-SVC-"
    	servicePortPolicyLocalChainNamePrefix   = "KUBE-SVL-"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	hm := hmac.New(sha1.New, []byte(secretAccessKey))
    	hm.Write([]byte(stringToSign))
    
    	// Calculate signature.
    	signature := base64.StdEncoding.EncodeToString(hm.Sum(nil))
    
    	query := req.URL.Query()
    	// Handle specially for Google Cloud Storage.
    	query.Set("AWSAccessKeyId", accessKeyID)
    	// Fill in Expires for presigned query.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/lib.go

    			prefix = "type:."
    		}
    		return prefix + base64.StdEncoding.EncodeToString(hash[:6])
    	}
    	// instantiated symbol, replace type name in []
    	i := strings.IndexByte(name, '[')
    	j := strings.LastIndexByte(name, ']')
    	if j == -1 || j <= i {
    		j = len(name)
    	}
    	hash := notsha256.Sum256([]byte(name[i+1 : j]))
    	return name[:i+1] + base64.StdEncoding.EncodeToString(hash[:6]) + name[j:]
    }
    
    /*
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  8. pkg/proxy/nftables/proxier.go

    // service that differ in only a single digit).
    func hashAndTruncate(name string) string {
    	hash := sha256.Sum256([]byte(name))
    	encoded := base32.StdEncoding.EncodeToString(hash[:])
    	name = encoded[:8] + "-" + name
    	if len(name) > chainNameBaseLengthMax {
    		name = name[:chainNameBaseLengthMax-3] + "..."
    	}
    	return name
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  9. src/net/http/request.go

    	const prefix = "Basic "
    	// Case insensitive prefix match. See Issue 22736.
    	if len(auth) < len(prefix) || !ascii.EqualFold(auth[:len(prefix)], prefix) {
    		return "", "", false
    	}
    	c, err := base64.StdEncoding.DecodeString(auth[len(prefix):])
    	if err != nil {
    		return "", "", false
    	}
    	cs := string(c)
    	username, password, ok = strings.Cut(cs, ":")
    	if !ok {
    		return "", "", false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  10. cmd/iam-store.go

    		}
    
    		if len(policyBuf) > maxSVCSessionPolicySize {
    			return updatedAt, errSessionPolicyTooLarge
    		}
    
    		// Overwrite session policy claims.
    		m[policy.SessionPolicyName] = base64.StdEncoding.EncodeToString(policyBuf)
    		m[iamPolicyClaimNameSA()] = embeddedPolicyType
    	}
    
    	cr.SessionToken, err = auth.JWTSignWithAccessKey(accessKey, m, cr.SecretKey)
    	if err != nil {
    		return updatedAt, err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 75.8K bytes
    - Viewed (0)
Back to top