Home
last modified time | relevance | path

Searched refs:cipherSuites (Results 1 – 19 of 19) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnectionSpec.java65 .cipherSuites(APPROVED_CIPHER_SUITES)
81 private final String[] cipherSuites; field in ConnectionSpec
86 this.cipherSuites = builder.cipherSuites; in ConnectionSpec()
99 public List<CipherSuite> cipherSuites() { in cipherSuites() method in ConnectionSpec
100 if (cipherSuites == null) return null; in cipherSuites()
102 CipherSuite[] result = new CipherSuite[cipherSuites.length]; in cipherSuites()
103 for (int i = 0; i < cipherSuites.length; i++) { in cipherSuites()
104 result[i] = CipherSuite.forJavaName(cipherSuites[i]); in cipherSuites()
134 if (specToApply.cipherSuites != null) { in apply()
135 sslSocket.setEnabledCipherSuites(specToApply.cipherSuites); in apply()
[all …]
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DSSLParametersTest.java53 String[] cipherSuites = new String[] {"foo", null, "bar"}; in test_SSLParameters_cipherSuitesConstructor() local
54 SSLParameters p = new SSLParameters(cipherSuites); in test_SSLParameters_cipherSuitesConstructor()
56 assertNotSame(cipherSuites, p.getCipherSuites()); in test_SSLParameters_cipherSuitesConstructor()
57 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cipherSuitesConstructor()
65 String[] cipherSuites = new String[] {"foo", null, "bar"}; in test_SSLParameters_cpherSuitesProtocolsConstructor() local
67 SSLParameters p = new SSLParameters(cipherSuites, protocols); in test_SSLParameters_cpherSuitesProtocolsConstructor()
70 assertNotSame(cipherSuites, p.getCipherSuites()); in test_SSLParameters_cpherSuitesProtocolsConstructor()
72 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cpherSuitesProtocolsConstructor()
84 String[] cipherSuites = new String[] {"fnord"}; in test_SSLParameters_CipherSuites() local
85 String[] copy = cipherSuites.clone(); in test_SSLParameters_CipherSuites()
[all …]
DSSLServerSocketTest.java41 String[] cipherSuites = new String[] {socket.getSupportedCipherSuites()[0]}; in testSetEnabledCipherSuitesAffectsGetter() local
42 socket.setEnabledCipherSuites(cipherSuites); in testSetEnabledCipherSuitesAffectsGetter()
43 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(socket.getEnabledCipherSuites())); in testSetEnabledCipherSuitesAffectsGetter()
DSSLEngineTest.java171 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() local
172 for (String cipherSuite : cipherSuites) { in test_SSLEngine_getSupportedCipherSuites_connect()
360 String[] cipherSuites = new String[] {e.getSupportedCipherSuites()[0]}; in test_SSLEngine_setEnabledCipherSuites() local
361 e.setEnabledCipherSuites(cipherSuites); in test_SSLEngine_setEnabledCipherSuites()
362 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites())); in test_SSLEngine_setEnabledCipherSuites()
753 String[] cipherSuites = p.getCipherSuites();
754 assertNotSame(cipherSuites, e.getEnabledCipherSuites());
755 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites()));
DSSLSocketTest.java208 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() local
209 for (String cipherSuite : cipherSuites) { in test_SSLSocket_getSupportedCipherSuites_connect()
326 String[] cipherSuites = new String[] {ssl.getSupportedCipherSuites()[0]}; in test_SSLSocket_setEnabledCipherSuites() local
327 ssl.setEnabledCipherSuites(cipherSuites); in test_SSLSocket_setEnabledCipherSuites()
328 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_setEnabledCipherSuites()
1302 String[] cipherSuites = p.getCipherSuites(); in test_SSLSocket_getSSLParameters() local
1303 assertNotSame(cipherSuites, ssl.getEnabledCipherSuites()); in test_SSLSocket_getSSLParameters()
1304 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_getSSLParameters()
1833 final String[] cipherSuites; in test_SSLSocket_ClientHello_cipherSuites()
1841 cipherSuites = new String[clientHello.cipherSuites.size() + 1]; in test_SSLSocket_ClientHello_cipherSuites()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DConnectionSpecTest.java47 .cipherSuites(new CipherSuite[0]) in noCipherSuites()
62 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in tlsBuilder_explicitCiphers()
66 assertEquals(Arrays.asList(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA), tlsSpec.cipherSuites()); in tlsBuilder_explicitCiphers()
76 assertNull(tlsSpec.cipherSuites()); in tlsBuilder_defaultCiphers()
142 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in tls_explicitCiphers()
173 .cipherSuites("MAGIC-CIPHER") in tls_stringCiphersAndVersions()
180 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in tls_missingRequiredCipher()
207 assertNull(tlsSpec.cipherSuites()); in allEnabledCipherSuites()
241 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in tls_missingTlsVersion()
294 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in simpleToString()
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DServerEndpoint.java62 private final String[] cipherSuites; field in ServerEndpoint
73 String[] cipherSuites) throws IOException { in ServerEndpoint() argument
79 this.cipherSuites = cipherSuites; in ServerEndpoint()
125 socket.setEnabledCipherSuites(cipherSuites); in run()
/external/conscrypt/libcore-stub/src/main/java/libcore/java/security/
DStandardNames.java927 Set<String> expected, String[] cipherSuites) { in assertValidCipherSuites() argument
928 assertNotNull(cipherSuites); in assertValidCipherSuites()
929 assertTrue(cipherSuites.length != 0); in assertValidCipherSuites()
934 for (String cipherSuite : cipherSuites) { in assertValidCipherSuites()
949 private static void assertSupportedCipherSuites(Set<String> expected, String[] cipherSuites) { in assertSupportedCipherSuites() argument
950 Set<String> remainingCipherSuites = assertValidCipherSuites(expected, cipherSuites); in assertSupportedCipherSuites()
952 assertEquals(expected.size(), cipherSuites.length); in assertSupportedCipherSuites()
999 public static void assertValidCipherSuites(String[] cipherSuites) { in assertValidCipherSuites() argument
1000 assertValidCipherSuites(CIPHER_SUITES, cipherSuites); in assertValidCipherSuites()
1006 public static void assertSupportedCipherSuites(String[] cipherSuites) { in assertSupportedCipherSuites() argument
[all …]
/external/conscrypt/testing/src/main/java/libcore/tlswire/handshake/
DClientHello.java36 public List<CipherSuite> cipherSuites; field in ClientHello
47 cipherSuites = new ArrayList<CipherSuite>(cipherSuiteCodes.length); in parseBody()
49 cipherSuites.add(CipherSuite.valueOf(cipherSuiteCodes[i])); in parseBody()
95 + new BigInteger(1, sessionId).toString(16) + ", cipher suites: " + cipherSuites in toString()
/external/conscrypt/common/src/main/java/org/conscrypt/
DNativeCrypto.java902 static void setEnabledCipherSuites(long ssl, String[] cipherSuites) { in setEnabledCipherSuites() argument
903 checkEnabledCipherSuites(cipherSuites); in setEnabledCipherSuites()
905 for (int i = 0; i < cipherSuites.length; i++) { in setEnabledCipherSuites()
906 String cipherSuite = cipherSuites[i]; in setEnabledCipherSuites()
919 static String[] checkEnabledCipherSuites(String[] cipherSuites) { in checkEnabledCipherSuites() argument
920 if (cipherSuites == null) { in checkEnabledCipherSuites()
924 for (int i = 0; i < cipherSuites.length; i++) { in checkEnabledCipherSuites()
925 if (cipherSuites[i] == null) { in checkEnabledCipherSuites()
928 if (cipherSuites[i].equals(TLS_EMPTY_RENEGOTIATION_INFO_SCSV) in checkEnabledCipherSuites()
929 || cipherSuites[i].equals(TLS_FALLBACK_SCSV)) { in checkEnabledCipherSuites()
[all …]
DSSLParametersImpl.java216 void setEnabledCipherSuites(String[] cipherSuites) { in setEnabledCipherSuites() argument
217 enabledCipherSuites = NativeCrypto.checkEnabledCipherSuites(cipherSuites).clone(); in setEnabledCipherSuites()
/external/boringssl/src/ssl/test/runner/
Dhandshake_client.go201 possibleCipherSuites := c.config.cipherSuites()
202 hello.cipherSuites = make([]uint16, 0, len(possibleCipherSuites))
206 for _, suite := range cipherSuites {
219 hello.cipherSuites = append(hello.cipherSuites, suiteId)
225 hello.cipherSuites = possibleCipherSuites
229 hello.cipherSuites = append(hello.cipherSuites, renegotiationSCSV)
233 hello.cipherSuites = append(hello.cipherSuites, fallbackSCSV)
266 for _, id := range hello.cipherSuites {
347 hello.cipherSuites = c.config.Bugs.SendCipherSuites
368 cipherSuites: hello.cipherSuites,
[all …]
Dhandshake_server.go276 for _, id := range hs.clientHello.cipherSuites {
297 for _, cipherSuite := range hs.clientHello.cipherSuites {
310 if config.Bugs.ExpectGREASE && !containsGREASE(hs.clientHello.cipherSuites) {
353 clientHello.cipherSuites = config.cipherSuites()
392 preferenceList = config.cipherSuites()
393 supportedList = hs.clientHello.cipherSuites
395 preferenceList = hs.clientHello.cipherSuites
396 supportedList = config.cipherSuites()
1150 preferenceList = c.config.cipherSuites()
1151 supportedList = hs.clientHello.cipherSuites
[all …]
Dhandshake_messages.go145 cipherSuites []uint16 member
192 eqUint16s(m.cipherSuites, m1.cipherSuites) &&
244 cipherSuites := hello.addU16LengthPrefixed()
245 for _, suite := range m.cipherSuites {
246 cipherSuites.addU16(suite)
503 m.cipherSuites = make([]uint16, numCipherSuites)
505 m.cipherSuites[i] = uint16(data[2+2*i])<<8 | uint16(data[3+2*i])
506 if m.cipherSuites[i] == scsvRenegotiation {
2195 cipherSuites []uint16 member
2205 length := 1 + 2 + 2 + 2 + 2 + len(m.cipherSuites)*3 + len(m.sessionId) + len(m.challenge)
[all …]
Dcipher_suites.go103 var cipherSuites = []*cipherSuite{ var
441 for _, suite := range cipherSuites {
Dcommon.go1438 func (c *Config) cipherSuites() []uint16 { func
1782 for _, suite := range cipherSuites {
/external/nist-sip/java/gov/nist/javax/sip/
DSipStackImpl.java469 private String[] cipherSuites = { field in SipStackImpl
1411 cipherSuites = newCipherSuites; in setEnabledCipherSuites()
1420 return cipherSuites; in getEnabledCipherSuites()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DNativeCryptoTest.java740 List<String> cipherSuites = new ArrayList<String>(); in beforeHandshake() local
742 cipherSuites.add("ECDHE-RSA-AES128-SHA"); in beforeHandshake()
746 cipherSuites.add(0, "PSK-AES128-CBC-SHA"); in beforeHandshake()
749 cipherSuites.addAll(enabledCipherSuites); in beforeHandshake()
752 s, cipherSuites.toArray(new String[cipherSuites.size()])); in beforeHandshake()
/external/conscrypt/common/src/jni/main/cpp/
DNativeCrypto.cpp6666 jobjectArray cipherSuites) { in NativeCrypto_SSL_set_cipher_lists() argument
6668 JNI_TRACE("ssl=%p NativeCrypto_SSL_set_cipher_lists cipherSuites=%p", ssl, cipherSuites); in NativeCrypto_SSL_set_cipher_lists()
6672 if (cipherSuites == nullptr) { in NativeCrypto_SSL_set_cipher_lists()
6677 int length = env->GetArrayLength(cipherSuites); in NativeCrypto_SSL_set_cipher_lists()
6702 reinterpret_cast<jstring>(env->GetObjectArrayElement(cipherSuites, i))); in NativeCrypto_SSL_set_cipher_lists()
6740 reinterpret_cast<jstring>(env->GetObjectArrayElement(cipherSuites, i))); in NativeCrypto_SSL_set_cipher_lists()