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;
 }
Beispiel #2
0
 internal CombinedHash(CombinedHash t)
 {
     this.md5  = new MD5Digest(t.md5);
     this.sha1 = new Sha1Digest(t.sha1);
 }
		internal CombinedHash(CombinedHash t)
		{
			this.md5 = new MD5Digest(t.md5);
			this.sha1 = new Sha1Digest(t.sha1);
		}
 private static byte[] DoFinal(CombinedHash ch)
 {
     var bs = new byte[ch.GetDigestSize()];
     ch.DoFinal(bs, 0);
     return bs;
 }