Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for CipherSuites (0.17 sec)

  1. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

      }
    
      @Test
      fun tlsBuilder_explicitCiphers() {
        val tlsSpec =
          ConnectionSpec.Builder(true)
            .cipherSuites(CipherSuite.TLS_RSA_WITH_RC4_128_MD5)
            .tlsVersions(TlsVersion.TLS_1_2)
            .supportsTlsExtensions(true)
            .build()
        assertThat(tlsSpec.cipherSuites!!.toList())
          .containsExactly(CipherSuite.TLS_RSA_WITH_RC4_128_MD5)
        assertThat(tlsSpec.tlsVersions!!.toList())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

            val strings = cipherSuites.map { it.javaName }.toTypedArray()
            return cipherSuites(*strings)
          }
    
        fun cipherSuites(vararg cipherSuites: String) =
          apply {
            require(tls) { "no cipher suites for cleartext connections" }
            require(cipherSuites.isNotEmpty()) { "At least one cipher suite is required" }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

          platform.newSslSocketFactory(platform.platformTrustManager()).defaultCipherSuites
        val cipherSuites =
          ConnectionSpec.RESTRICTED_TLS.effectiveCipherSuites(platformDefaultCipherSuites)
    
        if (cipherSuites.contains(TLS_CHACHA20_POLY1305_SHA256.javaName)) {
          assertThat(cipherSuites).containsExactly(
            TLS_AES_128_GCM_SHA256.javaName,
            TLS_AES_256_GCM_SHA384.javaName,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. src/crypto/tls/boring_test.go

    			switch sigType {
    			case signaturePKCS1v15, signatureRSAPSS:
    				serverConfig.CipherSuites = []uint16{TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256}
    				serverConfig.Certificates[0].Certificate = [][]byte{testRSA2048Certificate}
    				serverConfig.Certificates[0].PrivateKey = testRSA2048PrivateKey
    			case signatureEd25519:
    				serverConfig.CipherSuites = []uint16{TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_client.go

    		// Reset the list of ciphers when the client only supports TLS 1.3.
    		if len(hello.supportedVersions) == 1 {
    			hello.cipherSuites = nil
    		}
    		if hasAESGCMHardwareSupport {
    			hello.cipherSuites = append(hello.cipherSuites, defaultCipherSuitesTLS13...)
    		} else {
    			hello.cipherSuites = append(hello.cipherSuites, defaultCipherSuitesTLS13NoAES...)
    		}
    
    		curveID := config.curvePreferences(maxVersion)[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/serving.go

    			return err
    		}
    	} else if s.ServerCert.GeneratedCert != nil {
    		c.Cert = s.ServerCert.GeneratedCert
    	}
    
    	if len(s.CipherSuites) != 0 {
    		cipherSuites, err := cliflag.TLSCipherSuites(s.CipherSuites)
    		if err != nil {
    			return err
    		}
    		c.CipherSuites = cipherSuites
    	}
    
    	var err error
    	c.MinTLSVersion, err = cliflag.TLSVersion(s.MinTLSVersion)
    	if err != nil {
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 13:08:18 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/secure_serving.go

    	}
    	if s.MinTLSVersion > 0 {
    		tlsConfig.MinVersion = s.MinTLSVersion
    	}
    	if len(s.CipherSuites) > 0 {
    		tlsConfig.CipherSuites = s.CipherSuites
    		insecureCiphers := flag.InsecureTLSCiphers()
    		for i := 0; i < len(s.CipherSuites); i++ {
    			for cipherName, cipherID := range insecureCiphers {
    				if s.CipherSuites[i] == cipherID {
    					klog.Warningf("Use of insecure cipher '%s' detected.", cipherName)
    				}
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. src/crypto/tls/cipher_suites.go

    // ciphersuites and the id requested by the peer.
    func mutualCipherSuite(have []uint16, want uint16) *cipherSuite {
    	for _, id := range have {
    		if id == want {
    			return cipherSuiteByID(id)
    		}
    	}
    	return nil
    }
    
    func cipherSuiteByID(id uint16) *cipherSuite {
    	for _, cipherSuite := range cipherSuites {
    		if cipherSuite.id == id {
    			return cipherSuite
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_server.go

    	c := hs.c
    
    	preferenceOrder := cipherSuitesPreferenceOrder
    	if !hasAESGCMHardwareSupport || !aesgcmPreferred(hs.clientHello.cipherSuites) {
    		preferenceOrder = cipherSuitesPreferenceOrderNoAES
    	}
    
    	configCipherSuites := c.config.cipherSuites()
    	preferenceList := make([]uint16, 0, len(configCipherSuites))
    	for _, suiteID := range preferenceOrder {
    		for _, id := range configCipherSuites {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. src/crypto/tls/conn_test.go

    	config := testConfig.Clone()
    	config.MaxVersion = VersionTLS12
    	config.CipherSuites = []uint16{TLS_RSA_WITH_RC4_128_SHA}
    	runDynamicRecordSizingTest(t, config)
    }
    
    func TestDynamicRecordSizingWithCBC(t *testing.T) {
    	config := testConfig.Clone()
    	config.MaxVersion = VersionTLS12
    	config.CipherSuites = []uint16{TLS_RSA_WITH_AES_256_CBC_SHA}
    	runDynamicRecordSizingTest(t, config)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:35:01 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top