Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 63 for StdEncoding (0.17 sec)

  1. src/cmd/go/internal/modfetch/fetch.go

    // bytes written by the truncate operation.
    func isValidSum(data []byte) bool {
    	if bytes.IndexByte(data, '\000') >= 0 {
    		return false
    	}
    
    	if len(data) != len("h1:")+base64.StdEncoding.EncodedLen(sha256.Size) {
    		return false
    	}
    
    	return true
    }
    
    var ErrGoSumDirty = errors.New("updates to go.sum needed, disabled by -mod=readonly")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. src/encoding/json/encode.go

    func encodeByteSlice(e *encodeState, v reflect.Value, _ encOpts) {
    	if v.IsNil() {
    		e.WriteString("null")
    		return
    	}
    
    	s := v.Bytes()
    	b := e.AvailableBuffer()
    	b = append(b, '"')
    	b = base64.StdEncoding.AppendEncode(b, s)
    	b = append(b, '"')
    	e.Write(b)
    }
    
    // sliceEncoder just wraps an arrayEncoder, checking to make sure the value isn't nil.
    type sliceEncoder struct {
    	arrayEnc encoderFunc
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  3. src/net/http/client.go

    // encoded string in the credentials."
    // It is not meant to be urlencoded.
    func basicAuth(username, password string) string {
    	auth := username + ":" + password
    	return base64.StdEncoding.EncodeToString([]byte(auth))
    }
    
    // Get issues a GET to the specified URL. If the response is one of
    // the following redirect codes, Get follows the redirect, up to a
    // maximum of 10 redirects:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 06:06:11 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/config.go

    		hashData, err := b.Bytes()
    		if err != nil {
    			klog.Fatalf("error building hash data for apiserver identity: %v", err)
    		}
    
    		hash := sha256.Sum256(hashData)
    		id = "apiserver-" + strings.ToLower(base32.StdEncoding.WithPadding(base32.NoPadding).EncodeToString(hash[:16]))
    	}
    	lifecycleSignals := newLifecycleSignals()
    
    	return &Config{
    		Serializer:                     codecs,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. cmd/erasure-object.go

    	if opts.EncryptFn != nil {
    		fi.Checksum = opts.EncryptFn("object-checksum", fi.Checksum)
    	}
    	if userDefined[ReplicationSsecChecksumHeader] != "" {
    		if v, err := base64.StdEncoding.DecodeString(userDefined[ReplicationSsecChecksumHeader]); err == nil {
    			fi.Checksum = v
    		}
    	}
    	delete(userDefined, ReplicationSsecChecksumHeader)
    	uniqueID := mustGetUUID()
    	tempObj := uniqueID
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_client_test.go

    func TestHandshakClientSCTs(t *testing.T) {
    	config := testConfig.Clone()
    
    	scts, err := base64.StdEncoding.DecodeString(sctsBase64)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Note that this needs OpenSSL 1.0.2 because that is the first
    	// version that supports the -serverinfo flag.
    	test := &clientTest{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
Back to top