Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for supportsECDHE (0.23 sec)

  1. src/crypto/tls/handshake_server.go

    	if http11fallback {
    		return "", nil
    	}
    	return "", fmt.Errorf("tls: client requested unsupported application protocols (%s)", clientProtos)
    }
    
    // supportsECDHE returns whether ECDHE key exchanges can be used with this
    // pre-TLS 1.3 client.
    func supportsECDHE(c *Config, version uint16, supportedCurves []CurveID, supportedPoints []uint8) bool {
    	supportsCurve := false
    	for _, curve := range supportedCurves {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. src/crypto/tls/common.go

    	// only relevant to the AEAD choice, and static RSA does not exist.
    	if vers == VersionTLS13 {
    		return nil
    	}
    
    	// The only signed key exchange we support is ECDHE.
    	if !supportsECDHE(config, vers, chi.SupportedCurves, chi.SupportedPoints) {
    		return supportsRSAFallback(errors.New("client doesn't support ECDHE, can only use legacy RSA key exchange"))
    	}
    
    	var ecdsaCipherSuite bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
Back to top