Home
last modified time | relevance | path

Searched refs:CipherSuite (Results 1 – 15 of 15) sorted by relevance

/libcore/support/src/test/java/libcore/tlswire/handshake/
DCipherSuite.java25 public class CipherSuite { class
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"),
35 new CipherSuite(0x0006, "TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5"),
36 new CipherSuite(0x0007, "TLS_RSA_WITH_IDEA_CBC_SHA"),
[all …]
DClientHello.java37 public List<CipherSuite> cipherSuites;
50 cipherSuites = new ArrayList<CipherSuite>(cipherSuiteCodes.length); in parseBody()
52 cipherSuites.add(CipherSuite.valueOf(cipherSuiteCodes[i])); in parseBody()
/libcore/ojluni/src/main/java/sun/security/ssl/
DCipherSuiteList.java43 private final Collection<CipherSuite> cipherSuites;
52 CipherSuiteList(Collection<CipherSuite> cipherSuites) { in CipherSuiteList()
59 CipherSuiteList(CipherSuite suite) { in CipherSuiteList()
60 cipherSuites = new ArrayList<CipherSuite>(1); in CipherSuiteList()
76 cipherSuites = new ArrayList<CipherSuite>(names.length); in CipherSuiteList()
82 CipherSuite suite = CipherSuite.valueOf(suiteName); in CipherSuiteList()
110 cipherSuites = new ArrayList<CipherSuite>(bytes.length >> 1); in CipherSuiteList()
112 cipherSuites.add(CipherSuite.valueOf(bytes[i], bytes[i+1])); in CipherSuiteList()
119 boolean contains(CipherSuite suite) { in contains()
126 for (CipherSuite c : cipherSuites) { in containsEC()
[all …]
DCipherSuite.java39 import sun.security.ssl.CipherSuite.*;
40 import static sun.security.ssl.CipherSuite.KeyExchange.*;
41 import static sun.security.ssl.CipherSuite.PRF.*;
68 final class CipherSuite implements Comparable { class
87 private final static Map<Integer,CipherSuite> idMap;
91 private final static Map<String,CipherSuite> nameMap;
129 private CipherSuite(String name, int id, int priority, in CipherSuite() method in CipherSuite
166 private CipherSuite(String name, int id) { in CipherSuite() method in CipherSuite
206 return ((CipherSuite)o).priority - priority; in compareTo()
224 static CipherSuite valueOf(String s) { in valueOf()
[all …]
DSSLAlgorithmConstraints.java40 import sun.security.ssl.CipherSuite.*;
371 if (macAlg == CipherSuite.M_MD5) { in decomposes()
374 } else if (macAlg == CipherSuite.M_SHA) { in decomposes()
378 } else if (macAlg == CipherSuite.M_SHA256) { in decomposes()
382 } else if (macAlg == CipherSuite.M_SHA384) { in decomposes()
402 CipherSuite cipherSuite = null; in decomposes()
404 cipherSuite = CipherSuite.valueOf(algorithm); in decomposes()
443 CipherSuite cipherSuite = null; in decomposes()
445 cipherSuite = CipherSuite.valueOf(algorithm); in decomposes()
DSSLSessionImpl.java57 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, in SSLSessionImpl()
150 SSLSessionImpl(ProtocolVersion protocolVersion, CipherSuite cipherSuite, in SSLSessionImpl()
160 SSLSessionImpl(ProtocolVersion protocolVersion, CipherSuite cipherSuite, in SSLSessionImpl()
307 CipherSuite getSuite() { in getSuite()
314 void setSuite(CipherSuite suite) { in setSuite()
DClientHandshaker.java48 import sun.security.ssl.CipherSuite.*;
49 import static sun.security.ssl.CipherSuite.KeyExchange.*;
488 CipherSuite sessionSuite = session.getSuite(); in serverHello()
1139 CipherSuite sessionSuite = session.getSuite(); in getKickstartMessage()
1182 Collection<CipherSuite> cipherList = new ArrayList<>(2); in getKickstartMessage()
1185 cipherSuites.contains(CipherSuite.C_SCSV)) { in getKickstartMessage()
1186 cipherList.add(CipherSuite.C_SCSV); in getKickstartMessage()
1198 if (secureRenegotiation && cipherSuites.contains(CipherSuite.C_SCSV)) { in getKickstartMessage()
1199 Collection<CipherSuite> cipherList = in getKickstartMessage()
1201 for (CipherSuite suite : cipherSuites.collection()) { in getKickstartMessage()
[all …]
DMAC.java37 import sun.security.ssl.CipherSuite.MacAlg;
38 import static sun.security.ssl.CipherSuite.*;
DHandshaker.java49 import sun.security.ssl.CipherSuite.*;
51 import static sun.security.ssl.CipherSuite.PRF.*;
130 CipherSuite cipherSuite;
232 setCipherSuite(CipherSuite.C_NULL); in init()
507 void setCipherSuite(CipherSuite s) { in setCipherSuite()
516 boolean isNegotiable(CipherSuite s) { in isNegotiable()
572 ArrayList<CipherSuite> suites = new ArrayList<>(); in getActiveCipherSuites()
575 for (CipherSuite suite : enabledCipherSuites.collection()) { in getActiveCipherSuites()
620 for (CipherSuite suite : enabledCipherSuites.collection()) { in getActiveProtocols()
DSSLContextImpl.java326 int minPriority = CipherSuite.SUPPORTED_SUITES_PRIORITY; in getApplicableCipherSuiteList()
328 minPriority = CipherSuite.DEFAULT_SUITES_PRIORITY; in getApplicableCipherSuiteList()
331 Collection<CipherSuite> allowedCipherSuites = in getApplicableCipherSuiteList()
332 CipherSuite.allowedCipherSuites(); in getApplicableCipherSuiteList()
334 TreeSet<CipherSuite> suites = new TreeSet<>(); in getApplicableCipherSuiteList()
337 for (CipherSuite suite : allowedCipherSuites) { in getApplicableCipherSuiteList()
378 if (CipherSuite.DYNAMIC_AVAILABILITY) { in clearAvailableCache()
382 CipherSuite.BulkCipher.clearAvailableCache(); in clearAvailableCache()
DServerHandshaker.java44 import sun.security.ssl.CipherSuite.*;
46 import static sun.security.ssl.CipherSuite.*;
47 import static sun.security.ssl.CipherSuite.KeyExchange.*;
286 if (cipherSuites.contains(CipherSuite.C_SCSV)) { in clientHello()
490 CipherSuite suite = previous.getSuite(); in clientHello()
539 CipherSuite suite = previous.getSuite(); in clientHello()
605 session = new SSLSessionImpl(protocolVersion, CipherSuite.C_NULL, in clientHello()
878 for (CipherSuite suite : mesg.getCipherSuites().collection()) { in chooseCipherSuite()
911 boolean trySetCipherSuite(CipherSuite suite) { in trySetCipherSuite()
DHandshakeMessage.java49 import sun.security.ssl.CipherSuite.*;
50 import static sun.security.ssl.CipherSuite.PRF.*;
343 CipherSuite cipherSuite;
357 cipherSuite = CipherSuite.valueOf(input.getInt8(), input.getInt8()); in ServerHello()
1852 private CipherSuite cipherSuite;
1858 int sender, SecretKey master, CipherSuite cipherSuite) { in Finished()
1868 CipherSuite cipherSuite) throws IOException { in Finished()
DCipherBox.java40 import sun.security.ssl.CipherSuite.*;
41 import static sun.security.ssl.CipherSuite.*;
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java80 import libcore.tlswire.handshake.CipherSuite;
1688 CipherSuite cipherSuite = clientHello.cipherSuites.get(i); in test_SSLSocket_ClientHello_cipherSuites()
/libcore/
Dopenjdk_java_files.mk1318 ojluni/src/main/java/sun/security/ssl/CipherSuite.java \