Exemple #1
0
		private uint[] RunCipher(uint[] data, CipherFunc f) {
			var result = new uint[data.Length];

			int size = data.Length/2;
			int i = 0;
			while (size-- > 0) {
				uint a = SwapBytes(data[i]);
				uint b = SwapBytes(data[i + 1]);

				f(ref a, ref b);

				result[i++] = SwapBytes(a);
				result[i++] = SwapBytes(b);
			}

			return result;
		}
Exemple #2
0
		static uint[] RunCipher(uint[] data, CipherFunc f)
		{
			var result = new uint[data.Length];

			var size = data.Length / 2;
			var i = 0;
			while (size-- > 0)
			{
				var a = SwapBytes(data[i]);
				var b = SwapBytes(data[i+1]);

				f(ref a, ref b);

				result[i++] = SwapBytes(a);
				result[i++] = SwapBytes(b);
			}

			return result;
		}
Exemple #3
0
        static uint[] RunCipher(uint[] data, CipherFunc f)
        {
            var result = new uint[data.Length];

            var size = data.Length / 2;
            var i    = 0;

            while (size-- > 0)
            {
                var a = SwapBytes(data[i]);
                var b = SwapBytes(data[i + 1]);

                f(ref a, ref b);

                result[i++] = SwapBytes(a);
                result[i++] = SwapBytes(b);
            }

            return(result);
        }
Exemple #4
0
        private uint[] RunCipher(uint[] data, CipherFunc f)
        {
            var result = new uint[data.Length];

            int size = data.Length / 2;
            int i    = 0;

            while (size-- > 0)
            {
                uint a = SwapBytes(data[i]);
                uint b = SwapBytes(data[i + 1]);

                f(ref a, ref b);

                result[i++] = SwapBytes(a);
                result[i++] = SwapBytes(b);
            }

            return(result);
        }