/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | ConnectionSpec.java | 67 .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/ |
D | ConnectionSpec.java | 65 .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/ |
D | ConnectionSpec.java | 59 .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/ |
D | StandardNames.java | 337 Set<String> expected, String[] cipherSuites) { in assertValidCipherSuites() argument 338 assertNotNull(cipherSuites); in assertValidCipherSuites() 339 assertTrue(cipherSuites.length != 0); in assertValidCipherSuites() 344 for (String cipherSuite : cipherSuites) { in assertValidCipherSuites() 359 private static void assertSupportedCipherSuites(Set<String> expected, String[] cipherSuites) { in assertSupportedCipherSuites() argument 360 Set<String> remainingCipherSuites = assertValidCipherSuites(expected, cipherSuites); in assertSupportedCipherSuites() 362 assertEquals(expected.size(), cipherSuites.length); in assertSupportedCipherSuites() 409 public static void assertValidCipherSuites(String[] cipherSuites) { in assertValidCipherSuites() argument 410 assertValidCipherSuites(CIPHER_SUITES, cipherSuites); in assertValidCipherSuites() 416 public static void assertSupportedCipherSuites(String[] cipherSuites) { in assertSupportedCipherSuites() argument [all …]
|
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/ |
D | StandardNames.java | 335 Set<String> expected, String[] cipherSuites) { in assertValidCipherSuites() argument 336 assertNotNull(cipherSuites); in assertValidCipherSuites() 337 assertTrue(cipherSuites.length != 0); in assertValidCipherSuites() 342 for (String cipherSuite : cipherSuites) { in assertValidCipherSuites() 357 private static void assertSupportedCipherSuites(Set<String> expected, String[] cipherSuites) { in assertSupportedCipherSuites() argument 358 Set<String> remainingCipherSuites = assertValidCipherSuites(expected, cipherSuites); in assertSupportedCipherSuites() 360 assertEquals(expected.size(), cipherSuites.length); in assertSupportedCipherSuites() 407 public static void assertValidCipherSuites(String[] cipherSuites) { in assertValidCipherSuites() argument 408 assertValidCipherSuites(CIPHER_SUITES, cipherSuites); in assertValidCipherSuites() 414 public static void assertSupportedCipherSuites(String[] cipherSuites) { in assertSupportedCipherSuites() argument [all …]
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | SSLParametersTest.java | 57 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 …]
|
D | SSLSocketTest.java | 169 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() local 170 for (String cipherSuite : cipherSuites) { in test_SSLSocket_getSupportedCipherSuites_connect() 287 String[] cipherSuites = new String[] { in test_SSLSocket_setEnabledCipherSuites_TLS12() local 290 ssl.setEnabledCipherSuites(cipherSuites); in test_SSLSocket_setEnabledCipherSuites_TLS12() 291 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_setEnabledCipherSuites_TLS12() 613 String[] cipherSuites = p.getCipherSuites(); in test_SSLSocket_getSSLParameters() local 614 assertNotSame(cipherSuites, ssl.getEnabledCipherSuites()); in test_SSLSocket_getSSLParameters() 615 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_getSSLParameters() 742 final String[] cipherSuites; in test_SSLSocket_ClientHello_cipherSuites() 751 cipherSuites = new String[clientHello.cipherSuites.size() + 1]; in test_SSLSocket_ClientHello_cipherSuites() [all …]
|
D | SSLServerSocketTest.java | 55 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 68 socket.setEnabledCipherSuites(cipherSuites); in testSetEnabledCipherSuitesAffectsGetter_TLS13() 70 expected.addAll(Arrays.asList(cipherSuites)); in testSetEnabledCipherSuitesAffectsGetter_TLS13()
|
D | SSLEngineTest.java | 200 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() local 201 for (String cipherSuite : cipherSuites) { in test_SSLEngine_getSupportedCipherSuites_connect() 425 String[] cipherSuites = new String[] { in test_SSLEngine_setEnabledCipherSuites_TLS12() local 428 e.setEnabledCipherSuites(cipherSuites); in test_SSLEngine_setEnabledCipherSuites_TLS12() 429 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites())); in test_SSLEngine_setEnabledCipherSuites_TLS12() 767 String[] cipherSuites = p.getCipherSuites(); 768 assertNotSame(cipherSuites, e.getEnabledCipherSuites()); 769 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites()));
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
D | SSLParametersTest.java | 53 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 …]
|
D | SSLSocketTest.java | 165 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() local 166 for (String cipherSuite : cipherSuites) { in test_SSLSocket_getSupportedCipherSuites_connect() 283 String[] cipherSuites = new String[] { in test_SSLSocket_setEnabledCipherSuites_TLS12() local 286 ssl.setEnabledCipherSuites(cipherSuites); in test_SSLSocket_setEnabledCipherSuites_TLS12() 287 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_setEnabledCipherSuites_TLS12() 604 String[] cipherSuites = p.getCipherSuites(); in test_SSLSocket_getSSLParameters() local 605 assertNotSame(cipherSuites, ssl.getEnabledCipherSuites()); in test_SSLSocket_getSSLParameters() 606 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_getSSLParameters() 733 final String[] cipherSuites; in test_SSLSocket_ClientHello_cipherSuites() 742 cipherSuites = new String[clientHello.cipherSuites.size() + 1]; in test_SSLSocket_ClientHello_cipherSuites() [all …]
|
D | SSLServerSocketTest.java | 51 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()
|
D | SSLEngineTest.java | 196 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() local 197 for (String cipherSuite : cipherSuites) { in test_SSLEngine_getSupportedCipherSuites_connect() 421 String[] cipherSuites = new String[] { in test_SSLEngine_setEnabledCipherSuites_TLS12() local 424 e.setEnabledCipherSuites(cipherSuites); in test_SSLEngine_setEnabledCipherSuites_TLS12() 425 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites())); in test_SSLEngine_setEnabledCipherSuites_TLS12() 759 String[] cipherSuites = p.getCipherSuites(); 760 assertNotSame(cipherSuites, e.getEnabledCipherSuites()); 761 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites()));
|
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/ |
D | Utils.java | 76 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/ |
D | ConnectionSpecTest.java | 47 .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/ |
D | UtilsTest.java | 59 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/repackaged/benchmark-base/src/main/java/com/android/org/conscrypt/ |
D | ServerEndpoint.java | 71 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/benchmark-base/src/main/java/org/conscrypt/ |
D | ServerEndpoint.java | 68 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/testing/src/main/java/org/conscrypt/tlswire/handshake/ |
D | ClientHello.java | 36 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/repackaged/testing/src/main/java/com/android/org/conscrypt/tlswire/handshake/ |
D | ClientHello.java | 38 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/common/src/main/java/org/conscrypt/ |
D | SSLParametersImpl.java | 254 void setEnabledCipherSuites(String[] cipherSuites) { in setEnabledCipherSuites() argument 259 filterFromCipherSuites(cipherSuites, in setEnabledCipherSuites() 434 private static String[] filterFromCipherSuites(String[] cipherSuites, Set<String> toRemove) { in filterFromCipherSuites() argument 435 if (cipherSuites == null || cipherSuites.length == 0) { in filterFromCipherSuites() 436 return cipherSuites; in filterFromCipherSuites() 438 ArrayList<String> newCipherSuites = new ArrayList<String>(cipherSuites.length); in filterFromCipherSuites() 439 for (String cipherSuite : cipherSuites) { in filterFromCipherSuites()
|
D | NativeCrypto.java | 1055 static void setEnabledCipherSuites(long ssl, NativeSsl ssl_holder, String[] cipherSuites, in setEnabledCipherSuites() argument 1057 checkEnabledCipherSuites(cipherSuites); in setEnabledCipherSuites() 1060 for (int i = 0; i < cipherSuites.length; i++) { in setEnabledCipherSuites() 1061 String cipherSuite = cipherSuites[i]; in setEnabledCipherSuites() 1079 static String[] checkEnabledCipherSuites(String[] cipherSuites) { in checkEnabledCipherSuites() argument 1080 if (cipherSuites == null) { in checkEnabledCipherSuites() 1084 for (int i = 0; i < cipherSuites.length; i++) { in checkEnabledCipherSuites() 1085 if (cipherSuites[i] == null) { in checkEnabledCipherSuites() 1088 if (cipherSuites[i].equals(TLS_EMPTY_RENEGOTIATION_INFO_SCSV) in checkEnabledCipherSuites() 1089 || cipherSuites[i].equals(TLS_FALLBACK_SCSV)) { in checkEnabledCipherSuites() [all …]
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | SSLParametersImpl.java | 258 void setEnabledCipherSuites(String[] cipherSuites) { in setEnabledCipherSuites() argument 263 filterFromCipherSuites(cipherSuites, in setEnabledCipherSuites() 439 private static String[] filterFromCipherSuites(String[] cipherSuites, Set<String> toRemove) { in filterFromCipherSuites() argument 440 if (cipherSuites == null || cipherSuites.length == 0) { in filterFromCipherSuites() 441 return cipherSuites; in filterFromCipherSuites() 443 ArrayList<String> newCipherSuites = new ArrayList<String>(cipherSuites.length); in filterFromCipherSuites() 444 for (String cipherSuite : cipherSuites) { in filterFromCipherSuites()
|
D | NativeCrypto.java | 1096 long ssl, NativeSsl ssl_holder, String[] cipherSuites, String[] protocols) { in setEnabledCipherSuites() argument 1097 checkEnabledCipherSuites(cipherSuites); in setEnabledCipherSuites() 1100 for (int i = 0; i < cipherSuites.length; i++) { in setEnabledCipherSuites() 1101 String cipherSuite = cipherSuites[i]; in setEnabledCipherSuites() 1119 static String[] checkEnabledCipherSuites(String[] cipherSuites) { in checkEnabledCipherSuites() argument 1120 if (cipherSuites == null) { in checkEnabledCipherSuites() 1124 for (int i = 0; i < cipherSuites.length; i++) { in checkEnabledCipherSuites() 1125 if (cipherSuites[i] == null) { in checkEnabledCipherSuites() 1128 if (cipherSuites[i].equals(TLS_EMPTY_RENEGOTIATION_INFO_SCSV) in checkEnabledCipherSuites() 1129 || cipherSuites[i].equals(TLS_FALLBACK_SCSV)) { in checkEnabledCipherSuites() [all …]
|
/external/boringssl/src/ssl/test/runner/ |
D | handshake_messages.go | 260 cipherSuites []uint16 member 315 eqUint16s(m.cipherSuites, m1.cipherSuites) && 386 cipherSuites := hello.addU16LengthPrefixed() 387 for _, suite := range m.cipherSuites { 388 cipherSuites.addU16(suite) 694 var cipherSuites byteReader 695 if !reader.readU16LengthPrefixed(&cipherSuites) || 700 m.cipherSuites = make([]uint16, 0, len(cipherSuites)/2) 701 for len(cipherSuites) > 0 { 703 if !cipherSuites.readU16(&v) { [all …]
|