/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...] |
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
MockSessionBuilder.java | 33 private String cipherSuite = DEFAULT_CIPHER_SUITE; 56 MockSessionBuilder cipherSuite(String cipherSuite) { 57 this.cipherSuite = cipherSuite; 74 when(session.getCipherSuite()).thenReturn(cipherSuite);
|
/external/conscrypt/libcore-stub/src/main/java/libcore/java/security/ |
StandardNames.java | 657 private static final void addRi(String cipherSuite) { 658 CIPHER_SUITES_RI.add(cipherSuite); 661 private static final void addOpenSsl(String cipherSuite) { 662 CIPHER_SUITES_OPENSSL.add(cipherSuite); 665 private static final void addBoth(String cipherSuite) { 666 addRi(cipherSuite); 667 addOpenSsl(cipherSuite); 670 private static final void addNeither(String cipherSuite) { 671 CIPHER_SUITES_NEITHER.add(cipherSuite); [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])
|
prf.go | 121 func prfAndHashForVersion(version uint16, suite *cipherSuite) (func(result, secret, label, seed []byte), crypto.Hash) { 137 func prfForVersion(version uint16, suite *cipherSuite) func(result, secret, label, seed []byte) { 144 func masterFromPreMasterSecret(version uint16, suite *cipherSuite, preMasterSecret, clientRandom, serverRandom []byte) []byte { 157 func keysFromMasterSecret(version uint16, suite *cipherSuite, masterSecret, clientRandom, serverRandom []byte, macLen, keyLen, ivLen int) (clientMAC, serverMAC, clientKey, serverKey, clientIV, serverIV []byte) { 196 func newFinishedHash(version uint16, cipherSuite *cipherSuite) finishedHash { 202 prf, hash := prfAndHashForVersion(version, cipherSuite)
|
/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])
|
prf.go | 121 func prfAndHashForVersion(version uint16, suite *cipherSuite) (func(result, secret, label, seed []byte), crypto.Hash) { 137 func prfForVersion(version uint16, suite *cipherSuite) func(result, secret, label, seed []byte) { 144 func masterFromPreMasterSecret(version uint16, suite *cipherSuite, preMasterSecret, clientRandom, serverRandom []byte) []byte { 157 func keysFromMasterSecret(version uint16, suite *cipherSuite, masterSecret, clientRandom, serverRandom []byte, macLen, keyLen, ivLen int) (clientMAC, serverMAC, clientKey, serverKey, clientIV, serverIV []byte) { 196 func newFinishedHash(version uint16, cipherSuite *cipherSuite) finishedHash { 202 prf, hash := prfAndHashForVersion(version, cipherSuite)
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
SessionSnapshot.java | 39 private final String cipherSuite; 52 cipherSuite = session.getCipherSuite(); 159 return cipherSuite;
|
ClientSessionContext.java | 77 String cipherSuite = session.getCipherSuite(); 80 if (cipherSuite.equals(enabledCipherSuite)) {
|
NativeCrypto.java | 739 static String cipherSuiteToJava(String cipherSuite) { 741 if ("TLS_RSA_WITH_3DES_EDE_CBC_SHA".equals(cipherSuite)) { 744 return cipherSuite; 774 String cipherSuite = cipherSuiteToJava(allCipherSuites[i]); 775 SUPPORTED_CIPHER_SUITES[i / 2] = cipherSuite; 776 SUPPORTED_CIPHER_SUITES_SET.add(cipherSuite); [all...] |
NativeSslSession.java | 220 private final String cipherSuite; 235 this.cipherSuite = 267 return cipherSuite;
|
/libcore/support/src/test/java/libcore/java/security/ |
StandardNames.java | [all...] |
/external/conscrypt/testing/src/main/java/libcore/tlswire/handshake/ |
CipherSuite.java | 20 * {@code CipherSuite} enum from TLS 1.2 RFC 5246. 22 public class CipherSuite { 25 private static final CipherSuite[] CIPHER_SUITES = new CipherSuite[] { 26 new CipherSuite(0x0000, "TLS_NULL_WITH_NULL_NULL"), 27 new CipherSuite(0x0001, "TLS_RSA_WITH_NULL_MD5", "SSL_RSA_WITH_NULL_MD5"), 28 new CipherSuite(0x0002, "TLS_RSA_WITH_NULL_SHA", "SSL_RSA_WITH_NULL_SHA"), 29 new CipherSuite(0x0003, "TLS_RSA_EXPORT_WITH_RC4_40_MD5", "SSL_RSA_EXPORT_WITH_RC4_40_MD5"), 30 new CipherSuite(0x0004, "TLS_RSA_WITH_RC4_128_MD5", "SSL_RSA_WITH_RC4_128_MD5"), 31 new CipherSuite(0x0005, "TLS_RSA_WITH_RC4_128_SHA", "SSL_RSA_WITH_RC4_128_SHA") [all...] |
/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...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLSocketFactoryWrapper.java | 85 for (String cipherSuite : DEPRECATED_CIPHER_SUITES_TO_ENABLE) { 86 if (baseSupportedCipherSuiteSet.contains(cipherSuite) && 87 !baseDefaultCipherSuiteSet.contains(cipherSuite)) { 88 fullCipherSuiteList.add(cipherSuite); 240 LogUtils.d(LogUtils.TAG, "using cipherSuite %s", session.getCipherSuite());
|
/external/boringssl/src/ssl/test/runner/ |
prf.go | 126 func prfForVersion(version uint16, suite *cipherSuite) func(result, secret, label, seed []byte) { 140 func masterFromPreMasterSecret(version uint16, suite *cipherSuite, preMasterSecret, clientRandom, serverRandom []byte) []byte { 152 func extendedMasterFromPreMasterSecret(version uint16, suite *cipherSuite, preMasterSecret []byte, h finishedHash) []byte { 161 func keysFromMasterSecret(version uint16, suite *cipherSuite, masterSecret, clientRandom, serverRandom []byte, macLen, keyLen, ivLen int) (clientMAC, serverMAC, clientKey, serverKey, clientIV, serverIV []byte) { 183 func newFinishedHash(wireVersion uint16, isDTLS bool, cipherSuite *cipherSuite) finishedHash { 192 ret.hash = cipherSuite.hash() 490 func deriveTrafficAEAD(version uint16, suite *cipherSuite, secret []byte, side trafficDirection) interface{} { 501 func computePSKBinder(psk []byte, version uint16, label []byte, cipherSuite *cipherSuite, clientHello, helloRetryRequest, truncatedHello []byte) []byte [all...] |
ticket.go | 23 cipherSuite uint16 38 msg.addU16(s.cipherSuite) 74 s.cipherSuite = uint16(data[2])<<8 | uint16(data[3])
|
conn.go | 46 cipherSuite *cipherSuite 47 earlyCipherSuite *cipherSuite 234 func (hc *halfConn) useTrafficSecret(version uint16, suite *cipherSuite, secret []byte, side trafficDirection) { 742 func (c *Conn) useInTrafficSecret(version uint16, suite *cipherSuite, secret []byte) error { 754 func (c *Conn) useOutTrafficSecret(version uint16, suite *cipherSuite, secret []byte) { [all...] |
shim_ticket.go | 240 tag, cipherSuite, _, ok := parseDERElement(session) 241 if !ok || tag != asn1.TagOctetString || len(cipherSuite) != 2 { 245 cipherSuite[0] = byte(id >> 8) 246 cipherSuite[1] = byte(id)
|
cipher_suites.go | 74 // A cipherSuite is a specific combination of key agreement, cipher and MAC 76 type cipherSuite struct { 90 func (cs cipherSuite) hash() crypto.Hash { 97 var cipherSuites = []*cipherSuite{ 411 // mutualCipherSuite returns a cipherSuite given a list of supported 413 func mutualCipherSuite(have []uint16, want uint16) *cipherSuite { 422 func cipherSuiteFromID(id uint16) *cipherSuite {
|
handshake_server.go | 30 suite *cipherSuite 297 for _, cipherSuite := range hs.clientHello.cipherSuites { 298 if cipherSuite == fallbackSCSV { 418 hs.hello.cipherSuite = hs.suite.id 420 hs.hello.cipherSuite = c.config.Bugs.SendCipherSuite 474 sessionCipher := cipherSuiteFromID(sessionState.cipherSuite) 531 cipherSuite := hs.suite.id 533 cipherSuite = config.Bugs.SendHelloRetryRequestCipherSuite 538 cipherSuite: cipherSuite, [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
SSLSessionContextTest.java | 172 String cipherSuite = i.next(); 175 if (cipherSuite.startsWith("SSL_RSA_EXPORT_")) { 180 if (cipherSuite.startsWith("SSL_RSA_")) { 183 if (cipherSuite.startsWith("TLS_RSA_")) { 186 if (cipherSuite.startsWith("TLS_DHE_RSA_")) { 189 if (cipherSuite.startsWith("SSL_DHE_RSA_")) {
|
SSLEngineTest.java | 177 for (String cipherSuite : cipherSuites) { 181 && StandardNames.CIPHER_SUITES_OBSOLETE_TLS12.contains(cipherSuite)) { 188 if (cipherSuite.equals(StandardNames.CIPHER_SUITE_SECURE_RENEGOTIATION) 189 || cipherSuite.equals(StandardNames.CIPHER_SUITE_FALLBACK)) { 197 if (cipherSuite.startsWith("TLS_KRB5_")) { 202 ? new String[] {cipherSuite, 204 : new String[] {cipherSuite}); 219 && cipherSuite.contains("_CBC_"); 236 if (cipherSuite.contains("_anon_")) { 238 } else if ((cipherSuite.startsWith("TLS_PSK_") [all...] |