Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 45 for CipherSuites (0.37 sec)

  1. src/crypto/tls/common.go

    		t = time.Now
    	}
    	return t()
    }
    
    func (c *Config) cipherSuites() []uint16 {
    	if c.CipherSuites == nil {
    		if needFIPS() {
    			return defaultCipherSuitesFIPS
    		}
    		return defaultCipherSuites()
    	}
    	if needFIPS() {
    		cipherSuites := slices.Clone(c.CipherSuites)
    		return slices.DeleteFunc(cipherSuites, func(id uint16) bool {
    			return !slices.Contains(defaultCipherSuitesFIPS, id)
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/webhook.go

    		return
    	}
    
    	tlsConfig := &tls.Config{
    		GetCertificate: s.getIstiodCertificate,
    		MinVersion:     tls.VersionTLS12,
    		CipherSuites:   args.ServerOptions.TLSOptions.CipherSuits,
    	}
    	// Compliance for control plane validation and injection webhook server.
    	sec_model.EnforceGoCompliance(tlsConfig)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 17:37:53 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server_tls13.go

    		return true
    	}
    	for i := range ch.supportedVersions {
    		if ch.supportedVersions[i] != ch1.supportedVersions[i] {
    			return true
    		}
    	}
    	for i := range ch.cipherSuites {
    		if ch.cipherSuites[i] != ch1.cipherSuites[i] {
    			return true
    		}
    	}
    	for i := range ch.supportedCurves {
    		if ch.supportedCurves[i] != ch1.supportedCurves[i] {
    			return true
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/options.go

    	return nil
    }
    
    func allCiphers() map[string]uint16 {
    	acceptedCiphers := make(map[string]uint16, len(tls.CipherSuites())+len(tls.InsecureCipherSuites()))
    	for _, cipher := range tls.InsecureCipherSuites() {
    		acceptedCiphers[cipher.Name] = cipher.ID
    	}
    	for _, cipher := range tls.CipherSuites() {
    		acceptedCiphers[cipher.Name] = cipher.ID
    	}
    	return acceptedCiphers
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_messages.go

    		!readUint8LengthPrefixed(&s, &m.sessionId) {
    		return false
    	}
    
    	var cipherSuites cryptobyte.String
    	if !s.ReadUint16LengthPrefixed(&cipherSuites) {
    		return false
    	}
    	m.cipherSuites = []uint16{}
    	m.secureRenegotiationSupported = false
    	for !cipherSuites.Empty() {
    		var suite uint16
    		if !cipherSuites.ReadUint16(&suite) {
    			return false
    		}
    		if suite == scsvRenegotiation {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  6. cmd/grid.go

    		Hosts:        hosts,
    		AddAuth:      newCachedAuthToken(),
    		AuthRequest:  storageServerRequestValidate,
    		BlockConnect: globalGridStart,
    		TLSConfig: &tls.Config{
    			RootCAs:          globalRootCAs,
    			CipherSuites:     fips.TLSCiphers(),
    			CurvePreferences: fips.TLSCurveIDs(),
    		},
    		// Record incoming and outgoing bytes.
    		Incoming: globalConnStats.incInternodeInputBytes,
    		Outgoing: globalConnStats.incInternodeOutputBytes,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/crypto/tls/handshake_client_test.go

    		GetConfigForClient: func(chi *ClientHelloInfo) (*Config, error) {
    			if len(chi.CipherSuites) != len(defaultCipherSuitesTLS13NoAES) {
    				t.Errorf("only TLS 1.3 suites should be advertised, got=%x", chi.CipherSuites)
    			} else {
    				for i := range defaultCipherSuitesTLS13NoAES {
    					if want, got := defaultCipherSuitesTLS13NoAES[i], chi.CipherSuites[i]; want != got {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_messages_test.go

    	m.vers = uint16(rand.Intn(65536))
    	m.random = randomBytes(32, rand)
    	m.sessionId = randomBytes(rand.Intn(32), rand)
    	m.cipherSuites = make([]uint16, rand.Intn(63)+1)
    	for i := 0; i < len(m.cipherSuites); i++ {
    		cs := uint16(rand.Int31())
    		if cs == scsvRenegotiation {
    			cs += 1
    		}
    		m.cipherSuites[i] = cs
    	}
    	m.compressionMethods = randomBytes(rand.Intn(63)+1, rand)
    	if rand.Intn(10) > 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. cmd/utils.go

    		tlsConfig.ClientAuth = tls.RequestClientCert
    	}
    
    	if secureCiphers := env.Get(api.EnvAPISecureCiphers, config.EnableOn) == config.EnableOn; secureCiphers {
    		tlsConfig.CipherSuites = fips.TLSCiphers()
    	} else {
    		tlsConfig.CipherSuites = fips.TLSCiphersBackwardCompatible()
    	}
    	tlsConfig.CurvePreferences = fips.TLSCurveIDs()
    	return tlsConfig
    }
    
    /////////// Types and functions for OpenID IAM testing
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_test.go

    type zeroSource struct{}
    
    func (zeroSource) Read(b []byte) (n int, err error) {
    	clear(b)
    	return len(b), nil
    }
    
    func allCipherSuites() []uint16 {
    	ids := make([]uint16, len(cipherSuites))
    	for i, suite := range cipherSuites {
    		ids[i] = suite.id
    	}
    
    	return ids
    }
    
    var testConfig *Config
    
    func TestMain(m *testing.M) {
    	flag.Usage = func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top