- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 124 for newBar (0.1 sec)
-
src/crypto/cipher/ctr_aes_test.go
in := tt.in[0 : len(tt.in)-j] ctr := cipher.NewCTR(c, tt.iv) encrypted := make([]byte, len(in)) ctr.XORKeyStream(encrypted, in) if out := tt.out[0:len(in)]; !bytes.Equal(out, encrypted) { t.Errorf("%s/%d: CTR\ninpt %x\nhave %x\nwant %x", test, len(in), in, encrypted, out) } } for j := 0; j <= 7; j += 7 { in := tt.out[0 : len(tt.out)-j] ctr := cipher.NewCTR(c, tt.iv) plain := make([]byte, len(in))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 3K bytes - Viewed (0) -
src/crypto/cipher/ctr_test.go
} } } func xor(a, b []byte) { for i := range a { a[i] ^= b[i] } } func TestCTR(t *testing.T) { for size := 64; size <= 1024; size *= 2 { iv := make([]byte, size) ctr := cipher.NewCTR(noopBlock(size), iv) src := make([]byte, 1024) for i := range src { src[i] = 0xff } want := make([]byte, 1024) copy(want, src) counter := make([]byte, size) for i := 1; i < len(want)/size; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 21:38:36 UTC 2015 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
{ Block &entry_block = outlined_func.getBody().front(); auto loc = outlined_func.getLoc(); for (Value operand : operands) { BlockArgument newArg = entry_block.addArgument(operand.getType(), loc); replaceAllUsesInRegionWith(operand, newArg, outlined_func.getBody()); } } // The function is in place in the nested module, create a call and yield in // the original island.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/counter/countertest/countertest.go
// golang.org/x/telemetry/counter.Open. func Open(telemetryDir string) { openedMu.Lock() defer openedMu.Unlock() if opened { panic("Open was called more than once") } telemetry.Default = telemetry.NewDir(telemetryDir) counter.Open() opened = true } // ReadCounter reads the given counter. func ReadCounter(c *counter.Counter) (count uint64, _ error) { return ic.Read(c) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:13:09 UTC 2024 - 1.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
auto quantize_output = quantize_op.getOutput(); auto quantize_type = quantize_output.getType(); input_types.push_back(quantize_type); auto new_arg = bb.addArgument(quantize_type, loc); quantize_output.replaceAllUsesWith(new_arg); quantize_op.erase(); arg.dropAllUses(); bb.eraseArgument(0); }; // This is looking for a pattern: arg -> tfl.quantize
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy.go
func (m *MapValue) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case m.typeValue: return m case types.TypeType: return m.typeValue } return types.NewErr("disallowed conversion from %q to %q", m.typeValue.TypeName(), typeVal.TypeName()) } // Equal returns true if the other object is the same pointer-wise. func (m *MapValue) Equal(other ref.Val) ref.Val {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
fn.Pkg().Path(), fn.Name()) } } }) return nil, nil } // func() string var sigNoArgsStringResult = types.NewSignature(nil, nil, types.NewTuple(types.NewVar(token.NoPos, nil, "", types.Typ[types.String])), false) type stringSetFlag map[string]bool func (ss *stringSetFlag) String() string { var items []string for item := range *ss {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 4.5K bytes - Viewed (0) -
pkg/registry/certificates/certificates/storage/metrics.go
return } if oldCSR.Spec.ExpirationSeconds == nil { return // ignore CSRs that are not using the CSR duration feature } newCSR, ok := obj.(*certificates.CertificateSigningRequest) if !ok { return } issuedCert := newCSR.Status.Certificate // new CSR has no issued certificate yet so do not count it. // note that this means that we will ignore CSRs that set a duration
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 21:41:43 UTC 2022 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/authz.go
} if errors := apimachineryvalidation.ValidateServiceAccountName(name, false); len(errors) > 0 { return types.NewErr("Invalid service account name") } if errors := apimachineryvalidation.ValidateNamespaceName(namespace, false); len(errors) > 0 { return types.NewErr("Invalid service account namespace") } return authz.serviceAccount(namespace, name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
if m := check.Types; m != nil { for { tv := m[x] assert(tv.Type != nil) // should have been recorded already pos := x.Pos() tv.Type = NewTuple( NewVar(pos, check.pkg, "", t0), NewVar(pos, check.pkg, "", t1), ) m[x] = tv // if x is a parenthesized expression (p.X), update p.X p, _ := x.(*syntax.ParenExpr) if p == nil { break } x = p.X
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.3K bytes - Viewed (0)