Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for new384 (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_striped.go

    	c.caches[c.hashFunc(key)%c.stripeCount].set(key, value, ttl)
    }
    func (c *stripedCache) remove(key string) {
    	c.caches[c.hashFunc(key)%c.stripeCount].remove(key)
    }
    
    func fnvHashFunc(key string) uint32 {
    	f := fnv.New32()
    	f.Write([]byte(key))
    	return f.Sum32()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 22 17:16:59 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/state/checkpoint.go

    		return nil
    	}
    
    	ck := cp.Checksum
    	cp.Checksum = 0
    	object := dump.ForHash(cp)
    	object = strings.Replace(object, "CPUManagerCheckpointV1", "CPUManagerCheckpoint", 1)
    	cp.Checksum = ck
    
    	hash := fnv.New32a()
    	fmt.Fprintf(hash, "%v", object)
    	if cp.Checksum != checksum.Checksum(hash.Sum32()) {
    		return errors.ErrCorruptCheckpoint
    	}
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. tests/named_argument_test.go

    		t.Errorf("failed to update with named arg")
    	}
    
    	AssertEqual(t, result6, namedUser)
    
    	var result7 NamedUser
    	if err := DB.Where("name1 = @name OR name2 = @name", sql.Named("name", "jinzhu-new")).Where("name3 = 'jinzhu-new3'").First(&result7).Error; err == nil || !errors.Is(err, gorm.ErrRecordNotFound) {
    		t.Errorf("should return record not found error, but got %v", err)
    	}
    
    	DB.Delete(&namedUser)
    
    	var result8 NamedUser
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Dec 21 11:50:00 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  4. pkg/ledger/ledger_test.go

    	assert.Equal(t, firstHash != secondHash, true)
    	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
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 12 16:12:59 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. 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
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. pkg/registry/rbac/validation/rule_test.go

    	"k8s.io/apiserver/pkg/authentication/user"
    )
    
    // compute a hash of a policy rule so we can sort in a deterministic order
    func hashOf(p rbacv1.PolicyRule) string {
    	hash := fnv.New32()
    	writeStrings := func(slis ...[]string) {
    		for _, sli := range slis {
    			for _, s := range sli {
    				io.WriteString(hash, s)
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. tensorflow/cc/gradients/math_grad_test.cc

        EXPECT_LT(max_error, 1e-3f);
      }
    
      float RV(const std::vector<float>& v) {
        return v[random::New64() % v.size()];
      }
    
      complex64 CRV(const std::vector<complex64>& v) {
        return v[random::New64() % v.size()];
      }
    
      complex64 conjugate(const complex64& val) {
        return complex64(val.real(), -val.imag());
      }
    
      Scope scope_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  8. src/crypto/sha256/sha256_test.go

    	}
    }
    
    func TestSize(t *testing.T) {
    	c := New()
    	if got := c.Size(); got != Size {
    		t.Errorf("Size = %d; want %d", got, Size)
    	}
    	c = New224()
    	if got := c.Size(); got != Size224 {
    		t.Errorf("New224.Size = %d; want %d", got, Size224)
    	}
    }
    
    func TestBlockSize(t *testing.T) {
    	c := New()
    	if got := c.BlockSize(); got != BlockSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:21:42 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  9. internal/config/identity/openid/jwt.go

    func (r *Config) Validate(ctx context.Context, arn arn.ARN, token, accessToken, dsecs string, claims map[string]interface{}) error {
    	jp := new(jwtgo.Parser)
    	jp.ValidMethods = []string{
    		"RS256", "RS384", "RS512",
    		"ES256", "ES384", "ES512",
    		"HS256", "HS384", "HS512",
    		"RS3256", "RS3384", "RS3512",
    		"ES3256", "ES3384", "ES3512",
    	}
    
    	keyFuncCallback := func(jwtToken *jwtgo.Token) (interface{}, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. pkg/serviceaccount/openidmetadata.go

    		return jose.RS256, nil
    	case *ecdsa.PublicKey:
    		switch pk.Curve {
    		case elliptic.P256():
    			return jose.ES256, nil
    		case elliptic.P384():
    			return jose.ES384, nil
    		case elliptic.P521():
    			return jose.ES512, nil
    		default:
    			return "", fmt.Errorf("unknown private key curve, must be 256, 384, or 521")
    		}
    	case jose.OpaqueSigner:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 12 00:23:31 UTC 2020
    - 9.4K bytes
    - Viewed (0)
Back to top