Example #1
0
        private void PrepareMessageToSend(OutputMessage message)
        {
            message.WriteMessageLength();

            if (IsEncryptionEnabled)
            {
                Tools.EncryptXtea(message, XteaKey);
                message.AddCryptoHeader(IsChecksumEnabled);
            }
        }