protected void receiveClientKeyExchangeMessage(ByteArrayInputStream buf) throws IOException { keyExchange.processClientKeyExchange(buf); assertEmpty(buf); this.prepareFinishHash = recordStream.prepareToFinish(); this.securityParameters.sessionHash = getCurrentPRFHash(getContext(), prepareFinishHash, null); establishMasterSecret(getContext(), keyExchange); recordStream.setPendingConnectionState(getPeer().getCompression(), getPeer().getCipher()); if (!expectSessionTicket) { sendChangeCipherSpecMessage(); } }
protected void receiveClientKeyExchangeMessage(ByteArrayInputStream buf) throws IOException { keyExchange.processClientKeyExchange(buf); assertEmpty(buf); if (TlsUtils.isSSL(getContext())) { establishMasterSecret(getContext(), keyExchange); } this.prepareFinishHash = recordStream.prepareToFinish(); this.securityParameters.sessionHash = getCurrentPRFHash(getContext(), prepareFinishHash, null); if (!TlsUtils.isSSL(getContext())) { establishMasterSecret(getContext(), keyExchange); } recordStream.setPendingConnectionState(getPeer().getCompression(), getPeer().getCipher()); }
this.recordStream.setPendingConnectionState(getPeer().getCompression(), getPeer().getCipher()); recordStream.setPendingConnectionState(getPeer().getCompression(), getPeer().getCipher());
this.recordStream.setPendingConnectionState(getPeer().getCompression(), getPeer().getCipher()); recordStream.setPendingConnectionState(getPeer().getCompression(), getPeer().getCipher());