Home
last modified time | relevance | path

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

12

/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DConnectionSpec.java67 .cipherSuites(APPROVED_CIPHER_SUITES)
83 private final String[] cipherSuites; field in ConnectionSpec
88 this.cipherSuites = builder.cipherSuites; in ConnectionSpec()
101 public List<CipherSuite> cipherSuites() { in cipherSuites() method in ConnectionSpec
102 if (cipherSuites == null) return null; in cipherSuites()
104 CipherSuite[] result = new CipherSuite[cipherSuites.length]; in cipherSuites()
105 for (int i = 0; i < cipherSuites.length; i++) { in cipherSuites()
106 result[i] = CipherSuite.forJavaName(cipherSuites[i]); in cipherSuites()
136 if (specToApply.cipherSuites != null) { in apply()
137 sslSocket.setEnabledCipherSuites(specToApply.cipherSuites); in apply()
[all …]
/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/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/
DConnectionSpec.java59 .cipherSuites(APPROVED_CIPHER_SUITES)
79 private final String[] cipherSuites; field in ConnectionSpec
88 this.cipherSuites = builder.cipherSuites; in ConnectionSpec()
101 public List<CipherSuite> cipherSuites() { in cipherSuites() method in ConnectionSpec
102 if (cipherSuites == null) { in cipherSuites()
105 CipherSuite[] result = new CipherSuite[cipherSuites.length]; in cipherSuites()
106 for (int i = 0; i < cipherSuites.length; i++) { in cipherSuites()
107 result[i] = CipherSuite.forJavaName(cipherSuites[i]); in cipherSuites()
130 String[] cipherSuitesToEnable = specToApply.cipherSuites; in apply()
143 if (cipherSuites != null) { in supportedSpec()
[all …]
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/
DStandardNames.java358 Set<String> expected, String[] cipherSuites) { in assertValidCipherSuites() argument
359 assertNotNull(cipherSuites); in assertValidCipherSuites()
360 assertTrue(cipherSuites.length != 0); in assertValidCipherSuites()
365 for (String cipherSuite : cipherSuites) { in assertValidCipherSuites()
380 private static void assertSupportedCipherSuites(Set<String> expected, String[] cipherSuites) { in assertSupportedCipherSuites() argument
381 Set<String> remainingCipherSuites = assertValidCipherSuites(expected, cipherSuites); in assertSupportedCipherSuites()
383 assertEquals(expected.size(), cipherSuites.length); in assertSupportedCipherSuites()
430 public static void assertValidCipherSuites(String[] cipherSuites) { in assertValidCipherSuites() argument
431 assertValidCipherSuites(CIPHER_SUITES, cipherSuites); in assertValidCipherSuites()
437 public static void assertSupportedCipherSuites(String[] cipherSuites) { in assertSupportedCipherSuites() argument
[all …]
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/
DStandardNames.java356 Set<String> expected, String[] cipherSuites) { in assertValidCipherSuites() argument
357 assertNotNull(cipherSuites); in assertValidCipherSuites()
358 assertTrue(cipherSuites.length != 0); in assertValidCipherSuites()
363 for (String cipherSuite : cipherSuites) { in assertValidCipherSuites()
378 private static void assertSupportedCipherSuites(Set<String> expected, String[] cipherSuites) { in assertSupportedCipherSuites() argument
379 Set<String> remainingCipherSuites = assertValidCipherSuites(expected, cipherSuites); in assertSupportedCipherSuites()
381 assertEquals(expected.size(), cipherSuites.length); in assertSupportedCipherSuites()
428 public static void assertValidCipherSuites(String[] cipherSuites) { in assertValidCipherSuites() argument
429 assertValidCipherSuites(CIPHER_SUITES, cipherSuites); in assertValidCipherSuites()
435 public static void assertSupportedCipherSuites(String[] cipherSuites) { in assertSupportedCipherSuites() argument
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/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.java51 String[] cipherSuites = new String[] { in testSetEnabledCipherSuitesAffectsGetter_TLS12() local
54 socket.setEnabledCipherSuites(cipherSuites); in testSetEnabledCipherSuitesAffectsGetter_TLS12()
55 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(socket.getEnabledCipherSuites())); in testSetEnabledCipherSuitesAffectsGetter_TLS12()
62 String[] cipherSuites = new String[] { in testSetEnabledCipherSuitesAffectsGetter_TLS13() local
65 socket.setEnabledCipherSuites(cipherSuites); in testSetEnabledCipherSuitesAffectsGetter_TLS13()
67 expected.addAll(Arrays.asList(cipherSuites)); in testSetEnabledCipherSuitesAffectsGetter_TLS13()
DSSLSocketTest.java165 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() local
166 for (String cipherSuite : cipherSuites) { in test_SSLSocket_getSupportedCipherSuites_connect()
318 String[] cipherSuites = new String[] { in test_SSLSocket_setEnabledCipherSuites_TLS12() local
321 ssl.setEnabledCipherSuites(cipherSuites); in test_SSLSocket_setEnabledCipherSuites_TLS12()
322 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_setEnabledCipherSuites_TLS12()
749 String[] cipherSuites = p.getCipherSuites(); in test_SSLSocket_getSSLParameters() local
750 assertNotSame(cipherSuites, ssl.getEnabledCipherSuites()); in test_SSLSocket_getSSLParameters()
751 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_getSSLParameters()
878 final String[] cipherSuites; in test_SSLSocket_ClientHello_cipherSuites()
887 cipherSuites = new String[clientHello.cipherSuites.size() + 1]; in test_SSLSocket_ClientHello_cipherSuites()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLParametersTest.java57 String[] cipherSuites = new String[] {"foo", null, "bar"}; in test_SSLParameters_cipherSuitesConstructor() local
58 SSLParameters p = new SSLParameters(cipherSuites); in test_SSLParameters_cipherSuitesConstructor()
60 assertNotSame(cipherSuites, p.getCipherSuites()); in test_SSLParameters_cipherSuitesConstructor()
61 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cipherSuitesConstructor()
69 String[] cipherSuites = new String[] {"foo", null, "bar"}; in test_SSLParameters_cpherSuitesProtocolsConstructor() local
71 SSLParameters p = new SSLParameters(cipherSuites, protocols); in test_SSLParameters_cpherSuitesProtocolsConstructor()
74 assertNotSame(cipherSuites, p.getCipherSuites()); in test_SSLParameters_cpherSuitesProtocolsConstructor()
76 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cpherSuitesProtocolsConstructor()
88 String[] cipherSuites = new String[] {"fnord"}; in test_SSLParameters_CipherSuites() local
89 String[] copy = cipherSuites.clone(); in test_SSLParameters_CipherSuites()
[all …]
DSSLServerSocketTest.java55 String[] cipherSuites = new String[] { in testSetEnabledCipherSuitesAffectsGetter_TLS12() local
58 socket.setEnabledCipherSuites(cipherSuites); in testSetEnabledCipherSuitesAffectsGetter_TLS12()
59 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(socket.getEnabledCipherSuites())); in testSetEnabledCipherSuitesAffectsGetter_TLS12()
66 String[] cipherSuites = new String[] { in testSetEnabledCipherSuitesAffectsGetter_TLS13() local
69 socket.setEnabledCipherSuites(cipherSuites); in testSetEnabledCipherSuitesAffectsGetter_TLS13()
71 expected.addAll(Arrays.asList(cipherSuites)); in testSetEnabledCipherSuitesAffectsGetter_TLS13()
DSSLSocketTest.java169 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() local
170 for (String cipherSuite : cipherSuites) { in test_SSLSocket_getSupportedCipherSuites_connect()
322 String[] cipherSuites = new String[] { in test_SSLSocket_setEnabledCipherSuites_TLS12() local
325 ssl.setEnabledCipherSuites(cipherSuites); in test_SSLSocket_setEnabledCipherSuites_TLS12()
326 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_setEnabledCipherSuites_TLS12()
753 String[] cipherSuites = p.getCipherSuites(); in test_SSLSocket_getSSLParameters() local
754 assertNotSame(cipherSuites, ssl.getEnabledCipherSuites()); in test_SSLSocket_getSSLParameters()
755 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_getSSLParameters()
882 final String[] cipherSuites; in test_SSLSocket_ClientHello_cipherSuites()
891 cipherSuites = new String[clientHello.cipherSuites.size() + 1]; in test_SSLSocket_ClientHello_cipherSuites()
[all …]
DSSLEngineTest.java205 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() local
206 for (String cipherSuite : cipherSuites) { in test_SSLEngine_getSupportedCipherSuites_connect()
427 String[] cipherSuites = new String[] { in test_SSLEngine_setEnabledCipherSuites_TLS12() local
430 e.setEnabledCipherSuites(cipherSuites); in test_SSLEngine_setEnabledCipherSuites_TLS12()
431 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites())); in test_SSLEngine_setEnabledCipherSuites_TLS12()
864 String[] cipherSuites = p.getCipherSuites();
865 assertNotSame(cipherSuites, e.getEnabledCipherSuites());
866 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites()));
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DUtils.java76 List<com.squareup.okhttp.CipherSuite> cipherSuiteList = spec.cipherSuites(); in convertSpec()
77 CipherSuite[] cipherSuites = new CipherSuite[cipherSuiteList.size()]; in convertSpec() local
78 for (int i = 0; i < cipherSuites.length; i++) { in convertSpec()
79 cipherSuites[i] = CipherSuite.valueOf(cipherSuiteList.get(i).name()); in convertSpec()
85 .cipherSuites(cipherSuites) in convertSpec()
/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()
146 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in tls_explicitCiphers()
178 .cipherSuites("MAGIC-CIPHER") in tls_stringCiphersAndVersions()
185 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in tls_missingRequiredCipher()
214 assertNull(tlsSpec.cipherSuites()); in allEnabledCipherSuites()
250 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in tls_missingTlsVersion()
303 .cipherSuites(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA) in simpleToString()
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DUtilsTest.java59 List<com.squareup.okhttp.CipherSuite> squareCipherSuites = squareSpec.cipherSuites(); in convertSpecKeepsAllData()
60 List<CipherSuite> cipherSuites = spec.cipherSuites(); in convertSpecKeepsAllData() local
69 assertEquals(cipherSuitesSize, cipherSuites.size()); in convertSpecKeepsAllData()
71 assertEquals(CipherSuite.forJavaName(squareCipherSuites.get(i).name()), cipherSuites.get(i)); in convertSpecKeepsAllData()
/external/conscrypt/testing/src/main/java/org/conscrypt/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/benchmark-base/src/main/java/org/conscrypt/
DServerEndpoint.java68 private final String[] cipherSuites; field in ServerEndpoint
80 String[] cipherSuites) throws IOException { in ServerEndpoint() argument
86 this.cipherSuites = cipherSuites; in ServerEndpoint()
137 socket.setEnabledCipherSuites(cipherSuites); in run()
/external/conscrypt/repackaged/benchmark-base/src/main/java/com/android/org/conscrypt/
DServerEndpoint.java71 private final String[] cipherSuites; field in ServerEndpoint
83 String[] cipherSuites) throws IOException { in ServerEndpoint() argument
89 this.cipherSuites = cipherSuites; in ServerEndpoint()
140 socket.setEnabledCipherSuites(cipherSuites); in run()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/tlswire/handshake/
DClientHello.java38 public List<CipherSuite> cipherSuites; field in ClientHello
49 cipherSuites = new ArrayList<CipherSuite>(cipherSuiteCodes.length); in parseBody()
51 cipherSuites.add(CipherSuite.valueOf(cipherSuiteCodes[i])); in parseBody()
97 + new BigInteger(1, sessionId).toString(16) + ", cipher suites: " + cipherSuites in toString()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DSSLParametersImpl.java263 void setEnabledCipherSuites(String[] cipherSuites) { in setEnabledCipherSuites() argument
268 filterFromCipherSuites(cipherSuites, in setEnabledCipherSuites()
451 private static String[] filterFromCipherSuites(String[] cipherSuites, Set<String> toRemove) { in filterFromCipherSuites() argument
452 if (cipherSuites == null || cipherSuites.length == 0) { in filterFromCipherSuites()
453 return cipherSuites; in filterFromCipherSuites()
455 ArrayList<String> newCipherSuites = new ArrayList<String>(cipherSuites.length); in filterFromCipherSuites()
456 for (String cipherSuite : cipherSuites) { in filterFromCipherSuites()
DNativeCrypto.java1122 long ssl, NativeSsl ssl_holder, String[] cipherSuites, String[] protocols) { in setEnabledCipherSuites() argument
1123 checkEnabledCipherSuites(cipherSuites); in setEnabledCipherSuites()
1126 for (int i = 0; i < cipherSuites.length; i++) { in setEnabledCipherSuites()
1127 String cipherSuite = cipherSuites[i]; in setEnabledCipherSuites()
1145 static String[] checkEnabledCipherSuites(String[] cipherSuites) { in checkEnabledCipherSuites() argument
1146 if (cipherSuites == null) { in checkEnabledCipherSuites()
1150 for (int i = 0; i < cipherSuites.length; i++) { in checkEnabledCipherSuites()
1151 if (cipherSuites[i] == null) { in checkEnabledCipherSuites()
1154 if (cipherSuites[i].equals(TLS_EMPTY_RENEGOTIATION_INFO_SCSV) in checkEnabledCipherSuites()
1155 || cipherSuites[i].equals(TLS_FALLBACK_SCSV)) { in checkEnabledCipherSuites()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DSSLParametersImpl.java260 void setEnabledCipherSuites(String[] cipherSuites) { in setEnabledCipherSuites() argument
265 filterFromCipherSuites(cipherSuites, in setEnabledCipherSuites()
447 private static String[] filterFromCipherSuites(String[] cipherSuites, Set<String> toRemove) { in filterFromCipherSuites() argument
448 if (cipherSuites == null || cipherSuites.length == 0) { in filterFromCipherSuites()
449 return cipherSuites; in filterFromCipherSuites()
451 ArrayList<String> newCipherSuites = new ArrayList<String>(cipherSuites.length); in filterFromCipherSuites()
452 for (String cipherSuite : cipherSuites) { in filterFromCipherSuites()
DNativeCrypto.java1088 static void setEnabledCipherSuites(long ssl, NativeSsl ssl_holder, String[] cipherSuites, in setEnabledCipherSuites() argument
1090 checkEnabledCipherSuites(cipherSuites); in setEnabledCipherSuites()
1093 for (int i = 0; i < cipherSuites.length; i++) { in setEnabledCipherSuites()
1094 String cipherSuite = cipherSuites[i]; in setEnabledCipherSuites()
1112 static String[] checkEnabledCipherSuites(String[] cipherSuites) { in checkEnabledCipherSuites() argument
1113 if (cipherSuites == null) { in checkEnabledCipherSuites()
1117 for (int i = 0; i < cipherSuites.length; i++) { in checkEnabledCipherSuites()
1118 if (cipherSuites[i] == null) { in checkEnabledCipherSuites()
1121 if (cipherSuites[i].equals(TLS_EMPTY_RENEGOTIATION_INFO_SCSV) in checkEnabledCipherSuites()
1122 || cipherSuites[i].equals(TLS_FALLBACK_SCSV)) { in checkEnabledCipherSuites()
[all …]
/external/boringssl/src/ssl/test/runner/
Dhandshake_messages.go274 cipherSuites := contents.addU16LengthPrefixed()
276 cipherSuites.addU16(suite.KDF)
277 cipherSuites.addU16(suite.AEAD)
301 cipherSuites []uint16 member
375 cipherSuites := hello.addU16LengthPrefixed()
376 for _, suite := range m.cipherSuites {
377 cipherSuites.addU16(suite)
783 var cipherSuites byteReader
784 if !reader.readU16LengthPrefixed(&cipherSuites) ||
789 m.cipherSuites = make([]uint16, 0, len(cipherSuites)/2)
[all …]
Dhandshake_server.go285 for _, id := range hs.clientHello.cipherSuites {
309 for _, cipherSuite := range hs.clientHello.cipherSuites {
322 if config.Bugs.ExpectGREASE && !containsGREASE(hs.clientHello.cipherSuites) {
365 clientHello.cipherSuites = config.cipherSuites()
417 preferenceList = config.cipherSuites()
418 supportedList = hs.clientHello.cipherSuites
420 preferenceList = hs.clientHello.cipherSuites
421 supportedList = config.cipherSuites()
1322 preferenceList = c.config.cipherSuites()
1323 supportedList = hs.clientHello.cipherSuites
[all …]

12