Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pHash (0.05 sec)

  1. src/crypto/tls/prf.go

    func splitPreMasterSecret(secret []byte) (s1, s2 []byte) {
    	s1 = secret[0 : (len(secret)+1)/2]
    	s2 = secret[len(secret)/2:]
    	return
    }
    
    // pHash implements the P_hash function, as defined in RFC 4346, Section 5.
    func pHash(result, secret, seed []byte, hash func() hash.Hash) {
    	h := hmac.New(hash, secret)
    	h.Write(seed)
    	a := h.Sum(nil)
    
    	j := 0
    	for j < len(result) {
    		h.Reset()
    		h.Write(a)
    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. cmd/data-usage-cache.go

    	hash := hashPath(path)
    	if d.Cache == nil {
    		d.Cache = make(map[string]dataUsageEntry, 100)
    	}
    	d.Cache[hash.Key()] = e
    	if parent != "" {
    		phash := hashPath(parent)
    		p := d.Cache[phash.Key()]
    		p.addChild(hash)
    		d.Cache[phash.Key()] = p
    	}
    }
    
    // replaceHashed add or replaces an entry to the cache based on its hash.
    // If a parent is specified it will be added to that if not already there.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 10 14:49:50 UTC 2024
    - 42.8K bytes
    - Viewed (0)
Back to top