internal RecordStream(TlsProtocolHandler handler, Stream inStr, Stream outStr) { _handler = handler; _inStr = inStr; _outStr = outStr; _hash = new CombinedHash(); _readCompression = new TlsNullCompression(); _writeCompression = _readCompression; _readCipher = new TlsNullCipher(); _writeCipher = _readCipher; }
internal void ServerClientSpecReceived() { _readCompression = _writeCompression; _readCipher = _writeCipher; }
internal void ClientCipherSpecDecided(ITlsCompression tlsCompression, TlsCipher tlsCipher) { _writeCompression = tlsCompression; _writeCipher = tlsCipher; }