Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 269 for hamster (0.11 sec)

  1. src/crypto/tls/prf.go

    		pHash(result, secret, labelAndSeed, hashFunc)
    	}
    }
    
    const (
    	masterSecretLength   = 48 // Length of a master secret in TLS 1.1.
    	finishedVerifyLength = 12 // Length of verify_data in a Finished message.
    )
    
    var masterSecretLabel = []byte("master secret")
    var extendedMasterSecretLabel = []byte("extended master secret")
    var keyExpansionLabel = []byte("key expansion")
    var clientFinishedLabel = []byte("client finished")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 16:29:49 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  2. pkg/ledger/ledger_test.go

    	lastHash, err := l.Put("foo", "bar")
    	assert.NoError(t, err)
    	assert.Equal(t, firstHash, lastHash)
    }
    
    func MyHasher(data ...[]byte) (result []byte) {
    	hasher := murmur3.New64()
    	for i := 0; i < len(data); i++ {
    		hasher.Write(data[i])
    	}
    	result = hasher.Sum(nil)
    	hasher.Reset()
    	return
    }
    
    func TestCollision(t *testing.T) {
    	hit := false
    	HashCollider := func(data ...[]byte) []byte {
    		if hit {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 12 16:12:59 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. pkg/util/hash/hash.go

    // which follows pointers and prints actual values of the nested objects
    // ensuring the hash does not change when a pointer changes.
    func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) {
    	hasher.Reset()
    	fmt.Fprintf(hasher, "%v", dump.ForHash(objectToWrite))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 998 bytes
    - Viewed (0)
  4. src/crypto/elliptic/params.go

    // where x = x1/z1² and y = y1/z1³. The greatest speedups come when the whole
    // calculation can be performed within the transform (as in ScalarMult and
    // ScalarBaseMult). But even for Add and Double, it's faster to apply and
    // reverse the transform than to operate in affine coordinates.
    
    // polynomial returns x³ - 3x + b.
    func (curve *CurveParams) polynomial(x *big.Int) *big.Int {
    	x3 := new(big.Int).Mul(x, x)
    	x3.Mul(x3, x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. pkg/apis/rbac/validation/validation_test.go

    				ObjectMeta: metav1.ObjectMeta{Name: "master"},
    				RoleRef:    rbac.RoleRef{APIGroup: rbac.GroupName, Kind: "ClusterRole", Name: "valid"},
    				Subjects:   []rbac.Subject{{Name: "subject"}},
    			},
    			T: field.ErrorTypeNotSupported,
    			F: "subjects[0].kind",
    		},
    		"bad subject name": {
    			A: rbac.ClusterRoleBinding{
    				ObjectMeta: metav1.ObjectMeta{Name: "master"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  6. src/sort/slice.go

    //
    // The less function must satisfy the same requirements as
    // the Interface type's Less method.
    //
    // Note: in many situations, the newer [slices.SortFunc] function is more
    // ergonomic and runs faster.
    func Slice(x any, less func(i, j int) bool) {
    	rv := reflectlite.ValueOf(x)
    	swap := reflectlite.Swapper(x)
    	length := rv.Len()
    	limit := bits.Len(uint(length))
    	pdqsort_func(lessSwap{less, swap}, 0, length, limit)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. src/internal/concurrent/hashtriemap.go

    func NewHashTrieMap[K, V comparable]() *HashTrieMap[K, V] {
    	var m map[K]V
    	mapType := abi.TypeOf(m).MapType()
    	ht := &HashTrieMap[K, V]{
    		root:     newIndirectNode[K, V](nil),
    		keyHash:  mapType.Hasher,
    		keyEqual: mapType.Key.Equal,
    		valEqual: mapType.Elem.Equal,
    		seed:     uintptr(rand.Uint64()),
    	}
    	return ht
    }
    
    type hashFunc func(unsafe.Pointer, uintptr) uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. pkg/controller/certificates/signer/signer_test.go

    			ctx := context.TODO()
    			if err := s.handle(ctx, csr); err != nil && !c.err {
    				t.Errorf("unexpected err: %v", err)
    			}
    			c.verify(t, client.Actions())
    		})
    	}
    }
    
    // noncryptographic for faster testing
    // DO NOT COPY THIS CODE
    var insecureRand = rand.New(rand.NewSource(0))
    
    type csrBuilder struct {
    	cn         string
    	dnsNames   []string
    	org        []string
    	signerName string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 15K bytes
    - Viewed (0)
  9. operator/pkg/translate/translate_value_test.go

    		want      string
    		wantErr   string
    	}{
    		{
    			desc: "pilot env k8s setting with values",
    			inIOPSpec: `
    spec:
      components:
        pilot:
          k8s:
            nodeSelector:
              master: "true"
            env:
            - name: EXTERNAL_CA
              value: ISTIOD_RA_KUBERNETES_API
            - name: K8S_SIGNER
              value: kubernetes.io/legacy-unknown
      values:
        pilot:
          enabled: true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 06 02:56:54 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  10. pkg/ledger/ledger.go

    func (s smtLedger) RootHash() string {
    	return base64.StdEncoding.EncodeToString(s.tree.Root())
    }
    
    func coerceKeyToHashLen(val string) []byte {
    	hasher := murmur3.New64()
    	_, _ = hasher.Write([]byte(val))
    	return hasher.Sum(nil)
    }
    
    func coerceToHashLen(val string) []byte {
    	// hash length is fixed at 64 bits until generic support is added
    	const hashLen = 64
    	byteVal := []byte(val)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top