Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 88 for strhash (0.16 sec)

  1. pkg/config/schema/codegen/collections.go

    	e := len(p) - 1
    	if strings.Contains(protoPackage, "sigs.k8s.io/gateway-api") {
    		// Gateway has one level of nesting with custom name
    		return "Gateway" + strcase.UpperCamelCase(p[e])
    	}
    	// rest have two levels of nesting
    	return strcase.UpperCamelCase(p[e-1]) + strcase.UpperCamelCase(p[e])
    }
    
    type packageImport struct {
    	PackageName string
    	ImportName  string
    }
    
    func toImport(p string) string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 07:19:43 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. src/crypto/tls/boring_test.go

    	}()
    
    	for _, sigHash := range defaultSupportedSignatureAlgorithms {
    		t.Run(fmt.Sprintf("%v", sigHash), func(t *testing.T) {
    			serverConfig := testConfig.Clone()
    			serverConfig.Certificates = make([]Certificate, 1)
    
    			testingOnlyForceClientHelloSignatureAlgorithms = []SignatureScheme{sigHash}
    
    			sigType, _, _ := typeAndHashFromSignatureScheme(sigHash)
    			switch sigType {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. pkg/util/hash/hash.go

    // 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. pkg/config/schema/ast/ast.go

    	"fmt"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/config/validation"
    	// Force-import a function.
    	_ "istio.io/istio/pkg/config/validation/envoyfilter"
    	"istio.io/istio/pkg/util/sets"
    	"istio.io/istio/pkg/util/strcase"
    )
    
    // Metadata is the top-level container.
    type Metadata struct {
    	Resources []*Resource `json:"resources"`
    }
    
    var _ json.Unmarshaler = &Metadata{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/LineEndingNormalizingResourceHasher.java

            hasher.putString(getClass().getName());
        }
    
        @Override
        Optional<HashCode> tryHash(RegularFileSnapshotContext snapshotContext) {
            return Optional.of(snapshotContext)
                .flatMap(IoFunction.wrap(this::hashContent));
        }
    
        @Override
        Optional<HashCode> tryHash(ZipEntryContext zipEntryContext) {
            return Optional.of(zipEntryContext)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/sumdb/dirhash/hash.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package dirhash defines hashes over directory trees.
    // These hashes are recorded in go.sum files and in the Go checksum database,
    // to allow verifying that a newly-downloaded module has the expected content.
    package dirhash
    
    import (
    	"archive/zip"
    	"crypto/sha256"
    	"encoding/base64"
    	"errors"
    	"fmt"
    	"io"
    	"os"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. cmd/erasure-sets_test.go

    	// Tests hashing order to be consistent.
    	for i, testCase := range testCases {
    		if sipHashElement := hashKey("SIPMOD", testCase.objectName, 200, testUUID); sipHashElement != testCase.sipHash {
    			t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.sipHash, sipHashElement)
    		}
    	}
    
    	if sipHashElement := hashKey("SIPMOD", "This will fail", -1, testUUID); sipHashElement != -1 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/PropertiesFileAwareClasspathResourceHasher.java

        @Override
        boolean filter(ZipEntryContext context) {
            return !context.getEntry().isDirectory() && matchesAnyFilters(context.getRelativePathSegments());
        }
    
        @Override
        public Optional<HashCode> tryHash(RegularFileSnapshotContext snapshotContext) {
            return Optional.ofNullable(matchingFiltersFor(snapshotContext.getRelativePathSegments()))
                .map(resourceEntryFilter -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_server_tls13.go

    	sigType, sigHash, err := typeAndHashFromSignatureScheme(hs.sigAlg)
    	if err != nil {
    		return c.sendAlert(alertInternalError)
    	}
    
    	signed := signedMessage(sigHash, serverSignatureContext, hs.transcript)
    	signOpts := crypto.SignerOpts(sigHash)
    	if sigType == signatureRSAPSS {
    		signOpts = &rsa.PSSOptions{SaltLength: rsa.PSSSaltLengthEqualsHash, Hash: sigHash}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_client_tls13.go

    	}
    	sigType, sigHash, err := typeAndHashFromSignatureScheme(certVerify.signatureAlgorithm)
    	if err != nil {
    		return c.sendAlert(alertInternalError)
    	}
    	if sigType == signaturePKCS1v15 || sigHash == crypto.SHA1 {
    		c.sendAlert(alertIllegalParameter)
    		return errors.New("tls: certificate used with invalid signature algorithm")
    	}
    	signed := signedMessage(sigHash, serverSignatureContext, hs.transcript)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top