Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newConstantTimeHash (1.09 sec)

  1. src/crypto/tls/cipher_suites.go

    func macSHA1(key []byte) hash.Hash {
    	h := sha1.New
    	// The BoringCrypto SHA1 does not have a constant-time
    	// checksum function, so don't try to use it.
    	if !boring.Enabled {
    		h = newConstantTimeHash(h)
    	}
    	return hmac.New(h, key)
    }
    
    // macSHA256 returns a SHA-256 based MAC. This is only supported in TLS 1.2 and
    // is currently only used in disabled-by-default cipher suites.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top