Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 231 for hashss (0.43 sec)

  1. src/internal/bytealg/bytealg.go

    var MaxLen int
    
    // PrimeRK is the prime base used in Rabin-Karp algorithm.
    const PrimeRK = 16777619
    
    // HashStr returns the hash and the appropriate multiplicative
    // factor for use in Rabin-Karp algorithm.
    func HashStr[T string | []byte](sep T) (uint32, uint32) {
    	hash := uint32(0)
    	for i := 0; i < len(sep); i++ {
    		hash = hash*PrimeRK + uint32(sep[i])
    	}
    	var pow, sq uint32 = 1, PrimeRK
    	for i := len(sep); i > 0; i >>= 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/strings/strings.go

    	hashss, pow := bytealg.HashStrRev(substr)
    	last := len(s) - n
    	var h uint32
    	for i := len(s) - 1; i >= last; i-- {
    		h = h*bytealg.PrimeRK + uint32(s[i])
    	}
    	if h == hashss && s[last:] == substr {
    		return last
    	}
    	for i := last - 1; i >= 0; i-- {
    		h *= bytealg.PrimeRK
    		h += uint32(s[i])
    		h -= pow * uint32(s[i+n])
    		if h == hashss && s[i:i+n] == substr {
    			return i
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/crypto/sha3/hashes.go

    // and SHAKE hash functions, as well as utility functions for hashing
    // bytes.
    
    import (
    	"hash"
    )
    
    // New224 creates a new SHA3-224 hash.
    // Its generic security strength is 224 bits against preimage attacks,
    // and 112 bits against collision attacks.
    func New224() hash.Hash {
    	return new224()
    }
    
    // New256 creates a new SHA3-256 hash.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    }
    
    // MakeHasher returns a new Hasher instance.
    func MakeHasher() Hasher {
    	return Hasher{
    		memo:       make(map[types.Type]uint32),
    		ptrMap:     make(map[any]uint32),
    		sigTParams: nil,
    	}
    }
    
    // Hash computes a hash value for the given type t such that
    // Identical(t, t') => Hash(t) == Hash(t').
    func (h Hasher) Hash(t types.Type) uint32 {
    	hash, ok := h.memo[t]
    	if !ok {
    		hash = h.hashFor(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. src/runtime/hash64.go

    Keith Randall <******@****.***> 1713474355 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:39:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/internal/goobj/objfile.go

    }
    
    // Hash64 returns the i-th short hashed symbol's hash.
    // Note: here i is the index of short hashed symbols, not all symbols
    // (unlike other accessors).
    func (r *Reader) Hash64(i uint32) uint64 {
    	off := r.h.Offsets[BlkHash64] + uint32(i*Hash64Size)
    	return r.uint64At(off)
    }
    
    // Hash returns a pointer to the i-th hashed symbol's hash.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/security/oauth2-jwt.md

        Und mit allen gleichzeitig kompatibel sein.
    
    Erstellen Sie eine Hilfsfunktion, um ein vom Benutzer stammendes Passwort zu hashen.
    
    Und eine weitere, um zu überprüfen, ob ein empfangenes Passwort mit dem gespeicherten Hash übereinstimmt.
    
    Und noch eine, um einen Benutzer zu authentifizieren und zurückzugeben.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:27:06 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheReport.kt

        }
    
        /**
         * A heuristic to get the same hash for different instances of an exception
         * occurring at the same location.
         */
        private
        fun Failure.hashWithoutMessages(): HashCode {
            val root = this@hashWithoutMessages
            val hasher = Hashing.newHasher()
            for (failure in sequence { visitFailures(root) }) {
                hasher.putString(failure.exceptionType.name)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/macho_update_uuid.go

    // final executable generated by the external linker.
    
    import (
    	"cmd/internal/notsha256"
    	"debug/macho"
    	"io"
    	"os"
    	"unsafe"
    )
    
    // uuidFromGoBuildId hashes the Go build ID and returns a slice of 16
    // bytes suitable for use as the payload in a Macho LC_UUID load
    // command.
    func uuidFromGoBuildId(buildID string) []byte {
    	if buildID == "" {
    		return make([]byte, 16)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/instantiate.go

    	}
    	if ctxt != nil {
    		ctxts = append(ctxts, ctxt)
    	}
    	assert(len(ctxts) > 0)
    
    	// Compute all hashes; hashes may differ across contexts due to different
    	// unique IDs for Named types within the hasher.
    	hashes := make([]string, len(ctxts))
    	for i, ctxt := range ctxts {
    		hashes[i] = ctxt.instanceHash(orig, targs)
    	}
    
    	// Record the result in all contexts.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top