public override void WriteByte(byte b)
 {
     if (outCipher == null)
     {
         stream.WriteByte(b);
         return;
     }
     byte[] array = outCipher.ProcessByte(b);
     if (array != null)
     {
         stream.Write(array, 0, array.Length);
     }
 }
Exemple #2
0
    public override void WriteByte(byte b)
    {
        if (WriteCipher == null)
        {
            stream.WriteByte(b);
            return;
        }

        byte[] data = WriteCipher.ProcessByte(b);
        if (data != null)
        {
            stream.Write(data, 0, data.Length);
        }
    }