/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | ProtocolVersion.java | 48 public final class ProtocolVersion implements Comparable<ProtocolVersion> { class 57 final static ProtocolVersion NONE = new ProtocolVersion(-1, "NONE"); 60 final static ProtocolVersion SSL20Hello = new ProtocolVersion(0x0002, 64 final static ProtocolVersion SSL30 = new ProtocolVersion(0x0300, "SSLv3"); 67 final static ProtocolVersion TLS10 = new ProtocolVersion(0x0301, "TLSv1"); 70 final static ProtocolVersion TLS11 = new ProtocolVersion(0x0302, "TLSv1.1"); 73 final static ProtocolVersion TLS12 = new ProtocolVersion(0x0303, "TLSv1.2"); 78 final static ProtocolVersion MIN = FIPS ? TLS10 : SSL30; 81 final static ProtocolVersion MAX = TLS12; 84 final static ProtocolVersion DEFAULT = TLS10; [all …]
|
D | ProtocolList.java | 41 private final ArrayList<ProtocolVersion> protocols; 46 final ProtocolVersion min, max; 49 final ProtocolVersion helloVersion; 55 ProtocolList(ArrayList<ProtocolVersion> versions) { in ProtocolList() 59 protocols.contains(ProtocolVersion.SSL20Hello)) { in ProtocolList() 71 min = ProtocolVersion.NONE; in ProtocolList() 72 max = ProtocolVersion.NONE; in ProtocolList() 73 helloVersion = ProtocolVersion.NONE; in ProtocolList() 77 private static ArrayList<ProtocolVersion> convert(String[] names) { in convert() 82 ArrayList<ProtocolVersion> versions = new ArrayList<>(3); in convert() [all …]
|
D | RSAClientKeyExchange.java | 75 private ProtocolVersion protocolVersion; // preMaster [0,1] 85 RSAClientKeyExchange(ProtocolVersion protocolVersion, in RSAClientKeyExchange() 86 ProtocolVersion maxVersion, in RSAClientKeyExchange() 95 if (rsaPreMasterSecretFix || maxVersion.v >= ProtocolVersion.TLS11.v) { in RSAClientKeyExchange() 104 String s = ((protocolVersion.v >= ProtocolVersion.TLS12.v) ? in RSAClientKeyExchange() 124 RSAClientKeyExchange(ProtocolVersion currentVersion, in RSAClientKeyExchange() 125 ProtocolVersion maxVersion, in RSAClientKeyExchange() 133 if (currentVersion.v >= ProtocolVersion.TLS10.v) { in RSAClientKeyExchange() 181 private SecretKey polishPreMasterSecretKey(ProtocolVersion currentVersion, in polishPreMasterSecretKey() 182 ProtocolVersion clientHelloVersion, SecureRandom generator, in polishPreMasterSecretKey() [all …]
|
D | SSLContextImpl.java | 336 protocols.min.v != ProtocolVersion.NONE.v) { in getApplicableCipherSuiteList() 434 ProtocolVersion.TLS10.name, in supportedSSLParams.setProtocols() 435 ProtocolVersion.TLS11.name, in supportedSSLParams.setProtocols() 436 ProtocolVersion.TLS12.name in supportedSSLParams.setProtocols() 443 ProtocolVersion.TLS10.name in defaultClientSSLParams.setProtocols() 449 ProtocolVersion.SSL20Hello.name, in supportedSSLParams.setProtocols() 450 ProtocolVersion.SSL30.name, in supportedSSLParams.setProtocols() 451 ProtocolVersion.TLS10.name, in supportedSSLParams.setProtocols() 452 ProtocolVersion.TLS11.name, in supportedSSLParams.setProtocols() 453 ProtocolVersion.TLS12.name in supportedSSLParams.setProtocols() [all …]
|
D | EngineInputRecord.java | 108 ProtocolVersion recordVersion = in bytesInCompletePacket() 109 ProtocolVersion.valueOf(buf.get(pos + 1), buf.get(pos + 2)); in bytesInCompletePacket() 114 if ((recordVersion.v < ProtocolVersion.MIN.v) in bytesInCompletePacket() 115 || (recordVersion.major > ProtocolVersion.MAX.major)) { in bytesInCompletePacket() 146 ProtocolVersion recordVersion = in bytesInCompletePacket() 147 ProtocolVersion.valueOf(buf.get(pos + 3), buf.get(pos + 4)); in bytesInCompletePacket() 152 if ((recordVersion.v < ProtocolVersion.MIN.v) in bytesInCompletePacket() 153 || (recordVersion.major > ProtocolVersion.MAX.major)) { in bytesInCompletePacket() 156 if (recordVersion.v != ProtocolVersion.SSL20Hello.v) { in bytesInCompletePacket() 396 ProtocolVersion recordVersion = ProtocolVersion.valueOf( in read() [all …]
|
D | KerberosClientKeyExchange.java | 76 AccessControlContext acc, ProtocolVersion protocolVersion, in KerberosClientKeyExchange() 86 public KerberosClientKeyExchange(ProtocolVersion protocolVersion, in KerberosClientKeyExchange() 87 ProtocolVersion clientVersion, SecureRandom rand, in KerberosClientKeyExchange() 118 AccessControlContext acc, ProtocolVersion protocolVersion, in init() 126 public void init(ProtocolVersion protocolVersion, in init() 127 ProtocolVersion clientVersion, SecureRandom rand, in init()
|
D | HandshakeMessage.java | 212 ProtocolVersion protocolVersion; 222 ClientHello(SecureRandom generator, ProtocolVersion protocolVersion, in ClientHello() 239 protocolVersion = ProtocolVersion.valueOf(s.getInt8(), s.getInt8()); in ClientHello() 340 ProtocolVersion protocolVersion; 353 protocolVersion = ProtocolVersion.valueOf(input.getInt8(), in ServerHello() 694 ProtocolVersion protocolVersion; 703 DH_ServerKeyExchange(DHCrypt obj, ProtocolVersion protocolVersion) { in DH_ServerKeyExchange() 720 ProtocolVersion protocolVersion) throws GeneralSecurityException { in DH_ServerKeyExchange() 728 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in DH_ServerKeyExchange() 751 ProtocolVersion protocolVersion) in DH_ServerKeyExchange() [all …]
|
D | HandshakeOutStream.java | 51 HandshakeOutStream(ProtocolVersion protocolVersion, in HandshakeOutStream() 52 ProtocolVersion helloVersion, HandshakeHash handshakeHash, in HandshakeOutStream() 59 HandshakeOutStream(ProtocolVersion protocolVersion, in HandshakeOutStream() 60 ProtocolVersion helloVersion, HandshakeHash handshakeHash, in HandshakeOutStream() 67 private void init(ProtocolVersion protocolVersion, in init() 68 ProtocolVersion helloVersion, HandshakeHash handshakeHash) { in init()
|
D | Handshaker.java | 65 ProtocolVersion protocolVersion; 68 ProtocolVersion activeProtocolVersion; 187 boolean isClient, ProtocolVersion activeProtocolVersion, in Handshaker() 198 boolean isClient, ProtocolVersion activeProtocolVersion, in Handshaker() 209 ProtocolVersion activeProtocolVersion, in init() 351 private void setVersionSE(ProtocolVersion protocolVersion) { in setVersionSE() 364 void setVersion(ProtocolVersion protocolVersion) { in setVersion() 442 void activate(ProtocolVersion helloVersion) throws IOException { in activate() 448 activeProtocols.max.v == ProtocolVersion.NONE.v) { in activate() 469 if (helloVersion == null || helloVersion.v == ProtocolVersion.NONE.v) { in activate() [all …]
|
D | CipherBox.java | 100 private final ProtocolVersion protocolVersion; 134 this.protocolVersion = ProtocolVersion.DEFAULT; in CipherBox() 145 private CipherBox(ProtocolVersion protocolVersion, BulkCipher bulkCipher, in CipherBox() 171 protocolVersion.v >= ProtocolVersion.TLS11.v) { in CipherBox() 198 static CipherBox newCipherBox(ProtocolVersion version, BulkCipher cipher, in newCipherBox() 241 if (protocolVersion.v >= ProtocolVersion.TLS11.v) { in encrypt() 306 if (protocolVersion.v >= ProtocolVersion.TLS11.v) { in encrypt() 426 if (protocolVersion.v >= ProtocolVersion.TLS11.v) { in decrypt() 497 if (protocolVersion.v >= ProtocolVersion.TLS11.v) { in decrypt() 669 ProtocolVersion protocolVersion) throws BadPaddingException { in removePadding() [all …]
|
D | InputRecord.java | 68 private ProtocolVersion helloVersion; 85 setHelloVersion(ProtocolVersion.DEFAULT_HELLO); in InputRecord() 93 void setHelloVersion(ProtocolVersion helloVersion) { in setHelloVersion() 97 ProtocolVersion getHelloVersion() { in getHelloVersion() 518 ProtocolVersion recordVersion = ProtocolVersion.valueOf(buf[1], buf[2]); in readV3Record() 522 if ((recordVersion.v < ProtocolVersion.MIN.v) in readV3Record() 523 || (recordVersion.major > ProtocolVersion.MAX.major)) { in readV3Record() 597 if (helloVersion != ProtocolVersion.SSL20Hello) { in handleUnknownRecord() 601 ProtocolVersion recordVersion = in handleUnknownRecord() 602 ProtocolVersion.valueOf(buf[3], buf[4]); in handleUnknownRecord() [all …]
|
D | OutputRecord.java | 59 ProtocolVersion protocolVersion; 64 private ProtocolVersion helloVersion; 77 this.protocolVersion = ProtocolVersion.DEFAULT; in OutputRecord() 78 this.helloVersion = ProtocolVersion.DEFAULT_HELLO; in OutputRecord() 104 synchronized void setVersion(ProtocolVersion protocolVersion) { in setVersion() 111 synchronized void setHelloVersion(ProtocolVersion helloVersion) { in setHelloVersion() 400 && (helloVersion == ProtocolVersion.SSL20Hello) in useV2Hello()
|
D | ServerHandshaker.java | 90 private ProtocolVersion clientRequestedVersion; 102 ProtocolVersion activeProtocolVersion, boolean isInitialHandshake, in ServerHandshaker() 118 ProtocolVersion activeProtocolVersion, in ServerHandshaker() 358 if (activeProtocolVersion.v >= ProtocolVersion.TLS10.v) { in clientHello() 420 ProtocolVersion selectedVersion = in clientHello() 423 selectedVersion.v == ProtocolVersion.SSL20Hello.v) { in clientHello() 472 ProtocolVersion oldVersion = previous.getProtocolVersion(); in clientHello() 579 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in clientHello() 610 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in clientHello() 633 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in clientHello() [all …]
|
D | X509TrustManagerImpl.java | 207 ProtocolVersion protocolVersion = in checkTrusted() 208 ProtocolVersion.valueOf(session.getProtocol()); in checkTrusted() 209 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in checkTrusted() 259 ProtocolVersion protocolVersion = in checkTrusted() 260 ProtocolVersion.valueOf(session.getProtocol()); in checkTrusted() 261 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in checkTrusted()
|
D | ClientHandshaker.java | 89 private ProtocolVersion maxProtocolVersion; 100 ProtocolVersion activeProtocolVersion, in ClientHandshaker() 111 ProtocolVersion activeProtocolVersion, in ClientHandshaker() 261 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in processMessage() 325 if (activeProtocolVersion.v >= ProtocolVersion.TLS10.v) { in serverHelloRequest() 380 ProtocolVersion mesgVersion = mesg.protocolVersion; in serverHello() 469 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in serverHello() 495 ProtocolVersion sessionVersion = session.getProtocolVersion(); in serverHello() 561 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in serverHello() 745 if (protocolVersion.v >= ProtocolVersion.TLS10.v) { in serverHelloDone() [all …]
|
D | CipherSuite.java | 176 this.obsoleted = ProtocolVersion.LIMIT_MAX_VALUE; in CipherSuite() 177 this.supported = ProtocolVersion.LIMIT_MIN_VALUE; in CipherSuite() 296 if (obsoleted < ProtocolVersion.TLS12.v) { in add() 301 ProtocolVersion.LIMIT_MIN_VALUE, prf); in add() 311 cipher, allowed, ProtocolVersion.LIMIT_MAX_VALUE); in add() 464 CipherBox newCipher(ProtocolVersion version, SecretKey key, in newCipher() 507 cipher.newCipher(ProtocolVersion.DEFAULT, in isAvailable() 557 MAC newMac(ProtocolVersion protocolVersion, SecretKey secret) in newMac() 900 int max = ProtocolVersion.LIMIT_MAX_VALUE; 901 int tls11 = ProtocolVersion.TLS11.v; [all …]
|
D | MAC.java | 96 MAC(MacAlg macAlg, ProtocolVersion protocolVersion, SecretKey key) in MAC() 102 boolean tls = (protocolVersion.v >= ProtocolVersion.TLS10.v); in MAC()
|
D | SSLSessionImpl.java | 92 private final ProtocolVersion protocolVersion; 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() 329 ProtocolVersion getProtocolVersion() { in getProtocolVersion()
|
D | X509KeyManagerImpl.java | 159 ProtocolVersion protocolVersion = in getAlgorithmConstraints() 160 ProtocolVersion.valueOf(session.getProtocol()); in getAlgorithmConstraints() 161 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in getAlgorithmConstraints() 187 ProtocolVersion protocolVersion = in getAlgorithmConstraints() 188 ProtocolVersion.valueOf(session.getProtocol()); in getAlgorithmConstraints() 189 if (protocolVersion.v >= ProtocolVersion.TLS12.v) { in getAlgorithmConstraints()
|
D | HandshakeHash.java | 165 void protocolDetermined(ProtocolVersion pv) { in protocolDetermined() 170 version = pv.compareTo(ProtocolVersion.TLS12) >= 0 ? 2 : 1; in protocolDetermined()
|
D | SSLEngineImpl.java | 275 private ProtocolVersion protocolVersion = ProtocolVersion.DEFAULT; 634 synchronized void setVersion(ProtocolVersion protocolVersion) { in setVersion() 1309 boolean needToSplitPayload(CipherBox cipher, ProtocolVersion protocol) { in needToSplitPayload() 1310 return (protocol.v <= ProtocolVersion.TLS10.v) && in needToSplitPayload()
|
D | SSLSocketImpl.java | 369 private ProtocolVersion protocolVersion = ProtocolVersion.DEFAULT; 868 return (protocolVersion.v <= ProtocolVersion.TLS10.v) && in needToSplitPayload() 2094 synchronized void setVersion(ProtocolVersion protocolVersion) { in setVersion()
|
/libcore/ |
D | openjdk_java_files.mk | 1345 ojluni/src/main/java/sun/security/ssl/ProtocolVersion.java \
|