/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 29 CipherSuite c1 = new CipherSuite("CipherSuite1", false, 0, "", "", 31 CipherSuite c2 = new CipherSuite("CipherSuite2", false, 0, "", "", 33 CipherSuite c3 = new CipherSuite("CipherSuite3", false, 0, "", "", 35 CipherSuite c4 = new CipherSuite("CipherSuite4", false, 0, "", "", 43 CipherSuite c1 = new CipherSuite("CipherSuite1", false, 0, "", "" [all...] |
DigitalSignatureTest.java | 57 CipherSuite.KeyExchange_RSA_EXPORT); 59 CipherSuite.KeyExchange_RSA_EXPORT); 85 CipherSuite.KeyExchange_RSA_EXPORT); 87 CipherSuite.KeyExchange_RSA_EXPORT);
|
ClientHelloTest.java | 34 * Test for ClientHello(SecureRandom, byte[], byte[], CipherSuite[]), 41 CipherSuite[] cipher_suite = new CipherSuite[] { 42 CipherSuite.TLS_RSA_WITH_RC4_128_MD5};
|
SSLSessionContextImplTest.java | 36 CipherSuite.TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA, sr); 38 CipherSuite.TLS_DH_anon_WITH_3DES_EDE_CBC_SHA, sr); 40 CipherSuite.TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5, sr);
|
SSLSessionImplTest.java | 34 * Class under test for void SSLSessionImpl(CipherSuite, SecureRandom) 39 CipherSuite.TLS_NULL_WITH_NULL_NULL.getName()); 41 session = new SSLSessionImpl(CipherSuite.TLS_RSA_WITH_NULL_MD5, 46 CipherSuite.TLS_RSA_WITH_NULL_MD5.getName()); 90 CipherSuite.TLS_RSA_WITH_NULL_MD5, new SecureRandom()); 146 CipherSuite.TLS_RSA_WITH_NULL_MD5, new SecureRandom());
|
ServerHandshakeImplTest.java | 69 CipherSuite[] cipher_suite = new CipherSuite[] { 70 CipherSuite.TLS_RSA_WITH_RC4_128_MD5 }; 107 CipherSuite.TLS_RSA_WITH_RC4_128_MD5, new SecureRandom());
|
ServerKeyExchangeTest.java | 59 .length(), CipherSuite.KeyExchange_RSA_EXPORT); 72 CipherSuite.KeyExchange_RSA_EXPORT); 81 CipherSuite.KeyExchange_RSA_EXPORT); 113 .length(), CipherSuite.KeyExchange_DHE_DSS); 124 CipherSuite.KeyExchange_DHE_DSS); 133 CipherSuite.KeyExchange_DHE_DSS); 162 .length(), CipherSuite.KeyExchange_DH_anon); 172 CipherSuite.KeyExchange_DH_anon); 181 CipherSuite.KeyExchange_DH_anon);
|
ServerHelloTest.java | 34 CipherSuite cipher_suite = CipherSuite.TLS_DH_DSS_WITH_DES_CBC_SHA;
|
HandshakeProtocolTest.java | 114 new CipherSuite[] { CipherSuite.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA }); 117 CipherSuite.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA, (byte) 0); 158 new CipherSuite[] { CipherSuite.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA }); 161 CipherSuite.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA, (byte) 0);
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
CipherSuite.java | 26 * A.5. The CipherSuite; 27 * C. CipherSuite definitions. 31 public class CipherSuite { 182 static final CipherSuite SSL_NULL_WITH_NULL_NULL = new CipherSuite( 186 static final CipherSuite SSL_RSA_WITH_NULL_MD5 = new CipherSuite( 190 static final CipherSuite SSL_RSA_WITH_NULL_SHA = new CipherSuite( 194 static final CipherSuite SSL_RSA_EXPORT_WITH_RC4_40_MD5 = new CipherSuite [all...] |
OpenSSLServerSocketImpl.java | 212 String keyType = CipherSuite.getByName(enabledCipherSuite).getServerKeyType(); 217 if (keyType.equals(CipherSuite.KEY_TYPE_RSA) 218 || keyType.equals(CipherSuite.KEY_TYPE_DH_RSA)) { 224 if (keyType.equals(CipherSuite.KEY_TYPE_DSA) 225 || keyType.equals(CipherSuite.KEY_TYPE_DH_DSA)) { 231 if (keyType.equals(CipherSuite.KEY_TYPE_EC) 232 || keyType.equals(CipherSuite.KEY_TYPE_EC_RSA) 233 || keyType.equals(CipherSuite.KEY_TYPE_EC_EC)) {
|
ClientHello.java | 52 final CipherSuite[] cipher_suites; 67 CipherSuite[] cipher_suite) { 102 cipher_suites = new CipherSuite[size]; 106 cipher_suites[i] = CipherSuite.getByCode(b0, b1); 147 cipher_suites = new CipherSuite[cipher_spec_length/3]; 152 cipher_suites[i] = CipherSuite.getByCode(b0, b1, b2);
|
ServerHello.java | 50 CipherSuite cipher_suite; 66 byte[] session_id, CipherSuite cipher_suite, byte compression_method) { 96 cipher_suite = CipherSuite.getByCode(b0, b1);
|
ServerHandshakeImpl.java | 200 if (session.cipherSuite.keyExchange == CipherSuite.KEY_EXCHANGE_RSA 201 || session.cipherSuite.keyExchange == CipherSuite.KEY_EXCHANGE_RSA_EXPORT) { 320 CipherSuite cipher_suite; 379 cipher_suite = session.cipherSuite; 471 if (cipher_suite.keyExchange == CipherSuite.KEY_EXCHANGE_RSA_EXPORT) { 478 } else if (cipher_suite.keyExchange == CipherSuite.KEY_EXCHANGE_DHE_DSS 479 || cipher_suite.keyExchange == CipherSuite.KEY_EXCHANGE_DHE_DSS_EXPORT 480 || cipher_suite.keyExchange == CipherSuite.KEY_EXCHANGE_DHE_RS [all...] |
SSLParametersImpl.java | 67 private CipherSuite[] enabledCipherSuites; 83 protected CipherSuite[] getEnabledCipherSuitesMember() { 85 this.enabledCipherSuites = CipherSuite.DEFAULT_CIPHER_SUITES; 217 CipherSuite[] enabledCipherSuites = getEnabledCipherSuitesMember(); 235 CipherSuite[] cipherSuites = new CipherSuite[suites.length]; 241 cipherSuites[i] = CipherSuite.getByName(suite);
|
ServerKeyExchange.java | 119 if (keyExchange != CipherSuite.KEY_EXCHANGE_RSA_EXPORT) { 128 if (keyExchange != CipherSuite.KEY_EXCHANGE_DH_anon_EXPORT 129 && keyExchange != CipherSuite.KEY_EXCHANGE_DH_anon) {
|
SSLServerSocketFactoryImpl.java | 76 return CipherSuite.getSupportedCipherSuiteNames();
|
ClientHandshakeImpl.java | 128 CipherSuite[] cipher_suites; 130 cipher_suites = new CipherSuite[] { session.cipherSuite }; 212 CipherSuite[] enabledSuites = parameters.getEnabledCipherSuitesMember(); 233 } else if (!session.cipherSuite.equals(serverHello.cipher_suite)) { 245 session.cipherSuite = serverHello.cipher_suite; 264 length, session.cipherSuite.keyExchange); 268 || session.cipherSuite.isAnonymous() || isResuming) { 369 if (session.cipherSuite.isAnonymous()) { 375 if (!session.cipherSuite.isAnonymous()) [all...] |
SSLServerSocketImpl.java | 101 return CipherSuite.getSupportedCipherSuiteNames();
|
SSLSessionImpl.java | 46 CipherSuite cipherSuite; 57 public SSLSessionImpl(CipherSuite cipher_suite, SecureRandom secureRandom) { 61 this.cipherSuite = CipherSuite.SSL_NULL_WITH_NULL_NULL; 66 this.cipherSuite = cipher_suite; 88 return cipherSuite.getName();
|
CertificateRequest.java | 150 String type = CipherSuite.getClientKeyType(certificate_types[i]);
|
SSLSocketFactoryImpl.java | 79 return CipherSuite.getSupportedCipherSuiteNames();
|
OpenSSLSocketImpl.java | 221 String cipherSuite = session.getCipherSuite(); 224 if (cipherSuite.equals(enabledCipherSuite)) { 310 String keyType = CipherSuite.getByName(enabledCipherSuite).getServerKeyType(); 517 keyTypes[i] = CipherSuite.getClientKeyType(keyTypeBytes[i]); [all...] |
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/ |
CipherSuiteTest.java | 27 import org.apache.harmony.xnet.provider.jsse.CipherSuite; 33 assertNull(CipherSuite.getByName(name)); 39 assertNull(CipherSuite.getByName("bogus")); 41 CipherSuite.getByName(null); 48 CipherSuite cs = CipherSuite.getByName(name); 54 private void test_CipherSuite(CipherSuite cs) throws Exception { 59 assertSame(name, cs, CipherSuite.getByName(name)); 69 assertSame(name, cs, CipherSuite.getByCode(bytes[0], bytes[1])); 70 assertSame(name, cs, CipherSuite.getByCode((byte) 0, bytes[0], bytes[1])) [all...] |
/external/chromium/net/base/ |
ssl_cipher_suite_names.cc | 26 struct CipherSuite { 30 static const struct CipherSuite kCipherSuites[] = { 301 const CipherSuite* a = static_cast<const CipherSuite*>(ia); 302 const CipherSuite* b = static_cast<const CipherSuite*>(ib); 318 struct CipherSuite desired = {0}; 328 const CipherSuite* cs = static_cast<CipherSuite*>(r);
|