Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for addBytes (0.19 sec)

  1. src/crypto/tls/key_schedule.go

    	var hkdfLabel cryptobyte.Builder
    	hkdfLabel.AddUint16(uint16(length))
    	hkdfLabel.AddUint8LengthPrefixed(func(b *cryptobyte.Builder) {
    		b.AddBytes([]byte("tls13 "))
    		b.AddBytes([]byte(label))
    	})
    	hkdfLabel.AddUint8LengthPrefixed(func(b *cryptobyte.Builder) {
    		b.AddBytes(context)
    	})
    	hkdfLabelBytes, err := hkdfLabel.Bytes()
    	if err != nil {
    		// Rather than calling BytesOrPanic, we explicitly handle this error, in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope.go

    		return nil, err
    	}
    	// Append the length of the encrypted DEK as the first 2 bytes.
    	b := cryptobyte.NewBuilder(nil)
    	b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) {
    		b.AddBytes([]byte(encKey))
    	})
    	b.AddBytes(result)
    
    	return b.Bytes()
    }
    
    var _ value.Transformer = &envelopeTransformer{}
    
    // addTransformer inserts a new transformer to the Envelope cache of DEKs for future reads.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 14:23:50 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/seh.go

    			continue
    		}
    		uw := ldr.SEHUnwindSym(s)
    		if uw == 0 {
    			continue
    		}
    		name := ctxt.SymName(uw)
    		off, cached := uwcache[name]
    		if !cached {
    			off = xdata.Size()
    			uwcache[name] = off
    			xdata.AddBytes(ldr.Data(uw))
    			// The SEH unwind data can contain relocations,
    			// make sure those are copied over.
    			rels := ldr.Relocs(uw)
    			for i := 0; i < rels.Count(); i++ {
    				r := rels.At(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. src/crypto/tls/ech.go

    	var b cryptobyte.Builder
    	b.AddUint8(0) // outer
    	b.AddUint16(kdfID)
    	b.AddUint16(aeadID)
    	b.AddUint8(id)
    	b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) { b.AddBytes(encodedKey) })
    	b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) { b.AddBytes(payload) })
    	return b.Bytes()
    }
    
    func computeAndUpdateOuterECHExtension(outer, inner *clientHelloMsg, ech *echContext, useKey bool) error {
    	var encapKey []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/net/unixsock_linux_test.go

    	}
    
    	// Create an abstract socket name whose length is exactly
    	// the maximum RawSockkaddrUnix Path len
    	rsu := syscall.RawSockaddrUnix{}
    	addrBytes := make([]byte, len(rsu.Path))
    	copy(addrBytes, "@abstract_test")
    	addr := string(addrBytes)
    
    	la, err := ResolveUnixAddr("unixgram", addr)
    	if err != nil {
    		t.Fatal(err)
    	}
    	c, err := ListenUnixgram("unixgram", la)
    	if err != nil {
    		t.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 03:00:34 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.cc

      }
    };
    
    }  // namespace
    
    MlrtDialect::MlrtDialect(mlir::MLIRContext *context)
        : mlir::Dialect(/*name=*/"mlrt", context,
                        mlir::TypeID::get<MlrtDialect>()) {
      addTypes<FutureType>();
      addTypes<PromiseType>();
      addTypes<AsyncHandleType>();
      addInterfaces<MlrtInlinerInterface>();
    
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_ops.cpp.inc"
          >();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/debug/dwarf/open.go

    		return nil, err
    	}
    	d.unit = u
    	return d, nil
    }
    
    // AddTypes will add one .debug_types section to the DWARF data. A
    // typical object with DWARF version 4 debug info will have multiple
    // .debug_types sections. The name is used for error reporting only,
    // and serves to distinguish one .debug_types section from another.
    func (d *Data) AddTypes(name string, types []byte) error {
    	return d.parseTypes(name, types)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc

    namespace tfrt {
    namespace fallback {
    
    FallbackDialect::FallbackDialect(MLIRContext *context)
        : Dialect(/*name=*/"tfrt_fallback", context,
                  TypeID::get<FallbackDialect>()) {
      addTypes<TFTensorType, TFAllocatorType>();
    
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cpp.inc"
          >();
    }
    
    /// Parse a type registered to this dialect.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc

          .def(py::init([](mlir::Location loc, std::string name) {
            return mlir::OperationState(loc, llvm::StringRef(name));
          }))
          .def("addTypes",
               [](mlir::OperationState& state, std::vector<mlir::Type> tys) {
                 state.addTypes(mlir::ArrayRef<mlir::Type>(tys));
               })
          .def("addOperands",
               [](mlir::OperationState& os, std::vector<mlir::Value> ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.cc

    };
    
    }  // namespace
    
    TensorflowMlrtDialect::TensorflowMlrtDialect(mlir::MLIRContext *context)
        : mlir::Dialect(/*name=*/"tf_mlrt", context,
                        mlir::TypeID::get<TensorflowMlrtDialect>()) {
      addTypes<TFTensorType, TFDeviceType>();
      addInterfaces<TensorflowMlrtInlinerInterface>();
    
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.cpp.inc"
          >();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top