Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for length$extension (0.18 sec)

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

    	cache cache
    	group singleflight.Group
    
    	// hashPool is a per authenticator pool of hash.Hash (to avoid allocations from building the Hash)
    	// HMAC with SHA-256 and a random key is used to prevent precomputation and length extension attacks
    	// It also mitigates hash map DOS attacks via collisions (the inputs are supplied by untrusted users)
    	hashPool *sync.Pool
    }
    
    type cache interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/staticdata/data.go

    	var symname string
    	if len(s) > 100 {
    		// Huge strings are hashed to avoid long names in object files.
    		// Indulge in some paranoia by writing the length of s, too,
    		// as protection against length extension attacks.
    		// Same pattern is known to fileStringSym below.
    		h := notsha256.New()
    		io.WriteString(h, s)
    		symname = fmt.Sprintf(stringSymPattern, len(s), shortHashString(h.Sum(nil)))
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:08:50 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top