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; }
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; }
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); }
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); }