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