public override void WriteByte(byte b) { byte[] output = new byte[cipher.GetUpdateOutputSize(1)]; int encrypted = cipher.ProcessByte(b, output, 0); base.Write(output, 0, encrypted); }