/libcore/support/src/test/java/libcore/tlswire/handshake/ |
CipherSuite.java | 23 * {@code CipherSuite} enum from TLS 1.2 RFC 5246. 25 public class CipherSuite { 28 private static final CipherSuite[] CIPHER_SUITES = new CipherSuite[] { 29 new CipherSuite(0x0000, "TLS_NULL_WITH_NULL_NULL"), 30 new CipherSuite(0x0001, "TLS_RSA_WITH_NULL_MD5", "SSL_RSA_WITH_NULL_MD5"), 31 new CipherSuite(0x0002, "TLS_RSA_WITH_NULL_SHA", "SSL_RSA_WITH_NULL_SHA"), 32 new CipherSuite(0x0003, "TLS_RSA_EXPORT_WITH_RC4_40_MD5", "SSL_RSA_EXPORT_WITH_RC4_40_MD5"), 33 new CipherSuite(0x0004, "TLS_RSA_WITH_RC4_128_MD5", "SSL_RSA_WITH_RC4_128_MD5"), 34 new CipherSuite(0x0005, "TLS_RSA_WITH_RC4_128_SHA", "SSL_RSA_WITH_RC4_128_SHA") [all...] |
ClientHello.java | 37 public List<CipherSuite> cipherSuites; 50 cipherSuites = new ArrayList<CipherSuite>(cipherSuiteCodes.length); 52 cipherSuites.add(CipherSuite.valueOf(cipherSuiteCodes[i]));
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
CipherSuiteTest.java | 23 * Tests for <code>CipherSuite</code> constructor and methods 28 CipherSuite c1 = new CipherSuite("CipherSuite1", false, 0, "", "", 30 CipherSuite c2 = new CipherSuite("CipherSuite2", false, 0, "", "", 32 CipherSuite c3 = new CipherSuite("CipherSuite3", false, 0, "", "", 34 CipherSuite c4 = new CipherSuite("CipherSuite4", false, 0, "", "", 42 CipherSuite c1 = new CipherSuite("CipherSuite1", false, 0, "", "" [all...] |
SSLSessionImplTest.java | 33 * Class under test for void SSLSessionImpl(CipherSuite, SecureRandom) 38 CipherSuite.TLS_NULL_WITH_NULL_NULL.getName()); 40 session = new SSLSessionImpl(CipherSuite.TLS_RSA_WITH_NULL_MD5, 45 CipherSuite.TLS_RSA_WITH_NULL_MD5.getName()); 89 CipherSuite.TLS_RSA_WITH_NULL_MD5, new SecureRandom()); 145 CipherSuite.TLS_RSA_WITH_NULL_MD5, new SecureRandom());
|
ClientHelloTest.java | 33 * Test for ClientHello(SecureRandom, byte[], byte[], CipherSuite[]), 40 CipherSuite[] cipher_suite = new CipherSuite[] { 41 CipherSuite.TLS_RSA_WITH_RC4_128_MD5 };
|
ServerKeyExchangeTest.java | 58 .length(), CipherSuite.KeyExchange_RSA_EXPORT); 71 CipherSuite.KeyExchange_RSA_EXPORT); 80 CipherSuite.KeyExchange_RSA_EXPORT); 112 .length(), CipherSuite.KeyExchange_DHE_DSS); 123 CipherSuite.KeyExchange_DHE_DSS); 132 CipherSuite.KeyExchange_DHE_DSS); 161 .length(), CipherSuite.KeyExchange_DH_anon); 171 CipherSuite.KeyExchange_DH_anon); 180 CipherSuite.KeyExchange_DH_anon);
|
SSLSessionContextImplTest.java | 35 CipherSuite.TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA, sr); 37 CipherSuite.TLS_DH_anon_WITH_3DES_EDE_CBC_SHA, sr); 39 CipherSuite.TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5, sr);
|
DigitalSignatureTest.java | 56 CipherSuite.KeyExchange_RSA_EXPORT); 58 CipherSuite.KeyExchange_RSA_EXPORT); 84 CipherSuite.KeyExchange_RSA_EXPORT); 86 CipherSuite.KeyExchange_RSA_EXPORT);
|
HandshakeProtocolTest.java | 113 new CipherSuite[] { CipherSuite.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA }); 116 CipherSuite.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA, (byte) 0); 157 new CipherSuite[] { CipherSuite.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA }); 160 CipherSuite.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA, (byte) 0);
|
ServerHelloTest.java | 33 CipherSuite cipher_suite = CipherSuite.TLS_DH_DSS_WITH_DES_CBC_SHA;
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Handshake.java | 36 private final String cipherSuite; 41 String cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) { 42 this.cipherSuite = cipherSuite; 48 String cipherSuite = session.getCipherSuite(); 49 if (cipherSuite == null) throw new IllegalStateException("cipherSuite == null"); 66 return new Handshake(cipherSuite, peerCertificatesList, localCertificatesList); 70 String cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) { 71 if (cipherSuite == null) throw new IllegalArgumentException("cipherSuite == null") [all...] |
ConnectionSpec.java | 33 private static final CipherSuite[] APPROVED_CIPHER_SUITES = new CipherSuite[] { 34 CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, 35 CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, 36 CipherSuite.TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, 41 CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, 42 CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, 43 CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, 44 CipherSuite.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, 45 CipherSuite.TLS_DHE_RSA_WITH_AES_128_CBC_SHA [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
ConnectionSpecTest.java | 42 .cipherSuites(CipherSuite.TLS_RSA_WITH_RC4_128_MD5) 46 assertEquals(Arrays.asList(CipherSuite.TLS_RSA_WITH_RC4_128_MD5), tlsSpec.cipherSuites()); 71 CipherSuite.TLS_RSA_WITH_RC4_128_MD5.javaName, 72 CipherSuite.TLS_RSA_WITH_RC4_128_SHA.javaName, 86 CipherSuite.TLS_RSA_WITH_RC4_128_MD5.javaName, 87 CipherSuite.TLS_RSA_WITH_RC4_128_SHA.javaName); 100 CipherSuite.TLS_RSA_WITH_RC4_128_MD5.javaName, 101 CipherSuite.TLS_RSA_WITH_RC4_128_SHA.javaName, 115 CipherSuite.TLS_RSA_WITH_RC4_128_MD5.javaName, 116 CipherSuite.TLS_RSA_WITH_RC4_128_SHA.javaName) [all...] |
/libcore/ojluni/src/main/java/sun/security/ssl/ |
CipherSuiteList.java | 43 private final Collection<CipherSuite> cipherSuites; 52 CipherSuiteList(Collection<CipherSuite> cipherSuites) { 59 CipherSuiteList(CipherSuite suite) { 60 cipherSuites = new ArrayList<CipherSuite>(1); 69 * is null or if the ciphersuite name is unrecognized or unsupported 76 cipherSuites = new ArrayList<CipherSuite>(names.length); 77 // refresh available cache once if a CipherSuite is not available 82 CipherSuite suite = CipherSuite.valueOf(suiteName); 110 cipherSuites = new ArrayList<CipherSuite>(bytes.length >> 1) [all...] |
SSLAlgorithmConstraints.java | 40 import sun.security.ssl.CipherSuite.*; 371 if (macAlg == CipherSuite.M_MD5) { 374 } else if (macAlg == CipherSuite.M_SHA) { 378 } else if (macAlg == CipherSuite.M_SHA256) { 382 } else if (macAlg == CipherSuite.M_SHA384) { 402 CipherSuite cipherSuite = null; 404 cipherSuite = CipherSuite.valueOf(algorithm); 406 // ignore: unknown or unsupported ciphersuite [all...] |
CipherSuite.java | 39 import sun.security.ssl.CipherSuite.*; 40 import static sun.security.ssl.CipherSuite.KeyExchange.*; 41 import static sun.security.ssl.CipherSuite.PRF.*; 45 * An SSL/TLS CipherSuite. Constants for the standard key exchange, cipher, 48 * The CipherSuite class and the inner classes defined in this file roughly 54 * instances representing the same CipherSuite, etc. This means equality 68 final class CipherSuite implements Comparable { 76 // Flag indicating if CipherSuite availability can change dynamically. 85 // Map Integer(id) -> CipherSuite 87 private final static Map<Integer,CipherSuite> idMap [all...] |
SSLSessionImpl.java | 57 import static sun.security.ssl.CipherSuite.*; 58 import static sun.security.ssl.CipherSuite.KeyExchange.*; 96 private CipherSuite cipherSuite; 141 this(ProtocolVersion.NONE, CipherSuite.C_NULL, null, 150 SSLSessionImpl(ProtocolVersion protocolVersion, CipherSuite cipherSuite, 153 this(protocolVersion, cipherSuite, algorithms, 160 SSLSessionImpl(ProtocolVersion protocolVersion, CipherSuite cipherSuite, [all...] |
/external/jetty/src/java/org/eclipse/jetty/server/ssl/ |
ServletSSL.java | 43 * Version 1.0, Appendix C. CipherSuite definitions: 59 * @param cipherSuite String name of the TLS cipher suite. 62 public static int deduceKeyLength(String cipherSuite) 65 if (cipherSuite == null) 67 else if (cipherSuite.indexOf("WITH_AES_256_") >= 0) 69 else if (cipherSuite.indexOf("WITH_RC4_128_") >= 0) 71 else if (cipherSuite.indexOf("WITH_AES_128_") >= 0) 73 else if (cipherSuite.indexOf("WITH_RC4_40_") >= 0) 75 else if (cipherSuite.indexOf("WITH_3DES_EDE_CBC_") >= 0) 77 else if (cipherSuite.indexOf("WITH_IDEA_CBC_") >= 0 [all...] |
/prebuilts/go/darwin-x86/src/crypto/tls/ |
prf_test.go | 38 suite *cipherSuite 73 func cipherSuiteById(id uint16) *cipherSuite { 74 for _, cipherSuite := range cipherSuites { 75 if cipherSuite.id == id { 76 return cipherSuite 79 panic("ciphersuite not found")
|
ticket.go | 22 cipherSuite uint16 37 s.cipherSuite != s1.cipherSuite || 65 x[2] = byte(s.cipherSuite >> 8) 66 x[3] = byte(s.cipherSuite) 95 s.cipherSuite = uint16(data[2])<<8 | uint16(data[3])
|
/prebuilts/go/linux-x86/src/crypto/tls/ |
prf_test.go | 38 suite *cipherSuite 73 func cipherSuiteById(id uint16) *cipherSuite { 74 for _, cipherSuite := range cipherSuites { 75 if cipherSuite.id == id { 76 return cipherSuite 79 panic("ciphersuite not found")
|
ticket.go | 22 cipherSuite uint16 37 s.cipherSuite != s1.cipherSuite || 65 x[2] = byte(s.cipherSuite >> 8) 66 x[3] = byte(s.cipherSuite) 95 s.cipherSuite = uint16(data[2])<<8 | uint16(data[3])
|
/external/boringssl/src/ssl/test/runner/ |
ticket.go | 22 cipherSuite uint16 36 s.cipherSuite != s1.cipherSuite || 67 x[2] = byte(s.cipherSuite >> 8) 68 x[3] = byte(s.cipherSuite) 108 s.cipherSuite = uint16(data[2])<<8 | uint16(data[3])
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLSessionContextTest.java | 177 String cipherSuite = i.next(); 180 if (cipherSuite.startsWith("SSL_RSA_EXPORT_")) { 185 if (cipherSuite.startsWith("SSL_RSA_")) { 188 if (cipherSuite.startsWith("TLS_RSA_")) { 191 if (cipherSuite.startsWith("TLS_DHE_RSA_")) { 194 if (cipherSuite.startsWith("SSL_DHE_RSA_")) {
|
/libcore/support/src/test/java/libcore/java/security/ |
StandardNames.java | 710 private static final void addRi(String cipherSuite) { 711 CIPHER_SUITES_RI.add(cipherSuite); 714 private static final void addOpenSsl(String cipherSuite) { 715 CIPHER_SUITES_OPENSSL.add(cipherSuite); 718 private static final void addBoth(String cipherSuite) { 719 addRi(cipherSuite); 720 addOpenSsl(cipherSuite); 723 private static final void addNeither(String cipherSuite) { 724 CIPHER_SUITES_NEITHER.add(cipherSuite); [all...] |