Exemplo n.º 1
0
 /*
  * Set the new decryption engine. This is possible only if the
  * end of the current record was reached.
  */
 internal void SetDecryption(RecordDecrypt rdec)
 {
     if (recordPtr != recordEnd)
     {
         throw new SSLException(
                   "Cannot switch encryption: buffered data");
     }
     this.rdec = rdec;
 }
Exemplo n.º 2
0
 internal InputRecord(Stream sub)
 {
     this.sub        = sub;
     buffer          = new byte[16384 + 500];
     recordPtr       = 0;
     recordEnd       = 0;
     recordType      = -1;
     recordVersion   = -1;
     expectedVersion = -1;
     rdec            = new RecordDecryptPlain();
 }