Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 90 for newDir (0.21 sec)

  1. src/crypto/tls/ticket.go

    		return nil, err
    	}
    	key := ticketKeys[0]
    	block, err := aes.NewCipher(key.aesKey[:])
    	if err != nil {
    		return nil, errors.New("tls: failed to create cipher while encrypting ticket: " + err.Error())
    	}
    	cipher.NewCTR(block, iv).XORKeyStream(ciphertext, state)
    
    	mac := hmac.New(sha256.New, key.hmacKey[:])
    	mac.Write(authenticated)
    	mac.Sum(macBytes[:0])
    
    	return encrypted, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go

    	variablesMap.Append("dict", func(_ *MapValue) ref.Val {
    		evalCounter++
    		v, err := compileAndRun(env, activation, `{"a": "a"}`)
    		if err != nil {
    			return types.NewErr(err.Error())
    		}
    		return v
    	})
    
    	// iterate the map with .all
    	exp = `variables.all(n, n != "")`
    	v, err = compileAndRun(env, activation, exp)
    	if err != nil {
    		t.Fatalf("%q: %v", exp, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/expr.go

    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    	if !t.IsSlice() && !t.IsString() {
    		base.Fatalf("OSPTR of %v", t)
    	}
    	if t.IsString() {
    		n.SetType(types.NewPtr(types.Types[types.TUINT8]))
    	} else {
    		n.SetType(types.NewPtr(t.Elem()))
    	}
    	return n
    }
    
    // tcSlice typechecks an OSLICE or OSLICE3 node.
    func tcSlice(n *ir.SliceExpr) ir.Node {
    	n.X = DefaultLit(Expr(n.X), nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. src/runtime/map.go

    		advanceEvacuationMark(h, t, newbit)
    	}
    }
    
    func advanceEvacuationMark(h *hmap, t *maptype, newbit uintptr) {
    	h.nevacuate++
    	// Experiments suggest that 1024 is overkill by at least an order of magnitude.
    	// Put it in there as a safeguard anyway, to ensure O(1) behavior.
    	stop := h.nevacuate + 1024
    	if stop > newbit {
    		stop = newbit
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/closure.go

    			// we introduce function param &v *T
    			// and v remains PAUTOHEAP with &v heapaddr
    			// (accesses will implicitly deref &v).
    
    			addr := ir.NewNameAt(clofn.Pos(), typecheck.Lookup("&"+v.Sym().Name), types.NewPtr(v.Type()))
    			addr.Curfn = clofn
    			v.Heapaddr = addr
    			v = addr
    		}
    
    		v.Class = ir.PPARAM
    		decls = append(decls, v)
    
    		fld := types.NewField(src.NoXPos, v.Sym(), v.Type())
    		fld.Nname = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	}
    
    	csr, err := parseCSRPEM(pemBlock)
    	if err != nil {
    		return nil, errors.Wrapf(err, "error reading certificate request file %s", file)
    	}
    	return csr, nil
    }
    
    // NewCSR creates a new CSR
    func NewCSR(cfg CertConfig, key crypto.Signer) (*x509.CertificateRequest, error) {
    	RemoveDuplicateAltNames(&cfg.AltNames)
    
    	template := &x509.CertificateRequest{
    		Subject: pkix.Name{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/type.go

    // This allows the backend to run concurrently.
    var NewPtrCacheEnabled = true
    
    // NewPtr returns the pointer type pointing to t.
    func NewPtr(elem *Type) *Type {
    	if elem == nil {
    		base.Fatalf("NewPtr: pointer to elem Type is nil")
    	}
    
    	if t := elem.cache.ptr; t != nil {
    		if t.Elem() != elem {
    			base.Fatalf("NewPtr: elem mismatch")
    		}
    		if elem.HasShape() != t.HasShape() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/func.go

    		base.Fatalf("missing argument to new")
    	}
    	l := n.X
    	l = typecheck(l, ctxType)
    	t := l.Type()
    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    	n.X = l
    	n.SetType(types.NewPtr(t))
    	return n
    }
    
    // tcPanic typechecks an OPANIC node.
    func tcPanic(n *ir.UnaryExpr) ir.Node {
    	n.X = Expr(n.X)
    	n.X = AssignConv(n.X, types.Types[types.TINTER], "argument to panic")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/certs/certs.go

    	if err != nil {
    		return err
    	}
    
    	return writeCertificateAuthorityFilesIfNotExist(
    		cfg.CertificatesDir,
    		certSpec.BaseName,
    		caCert,
    		caKey,
    	)
    }
    
    // NewCSR will generate a new CSR and accompanying key
    func NewCSR(certSpec *KubeadmCert, cfg *kubeadmapi.InitConfiguration) (*x509.CertificateRequest, crypto.Signer, error) {
    	certConfig, err := certSpec.GetConfig(cfg)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 05 10:17:14 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

      for (auto operand : if_op.getOperands()) {
        auto it = data_var_to_size_var.find(operand);
        if (it == data_var_to_size_var.end()) continue;
        new_if_operands.push_back(it->getSecond());
      }
      auto new_if = OpBuilder(if_op).create<TF::IfOp>(
          if_op.getLoc(), then_func.getFunctionType().getResults(), new_if_operands,
          if_op->getAttrs());
      for (auto result : if_op.getResults()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top