public void ColumnRoundCorrect2() { uint[] s = { 0x08521bd6, 0x1fe88837, 0xbb2aa576, 0x3aa26365, 0xc54c6a5b, 0x2fc74c2f, 0x6dd39cc3, 0xda0a64f6, 0x90a2f23d, 0x067f95a6, 0x06b35f61, 0x41e4732e, 0xe859c100, 0xea4d84b7, 0x0f619bff, 0xbc6e965a }; Salsa20Transformation.ColumnRound(s); Assert.Equal(s[0], (uint)0x8c9d190a); Assert.Equal(s[1], (uint)0xce8e4c90); Assert.Equal(s[2], (uint)0x1ef8e9d3); Assert.Equal(s[3], (uint)0x1326a71a); Assert.Equal(s[4], (uint)0x90a20123); Assert.Equal(s[5], (uint)0xead3c4f3); Assert.Equal(s[6], (uint)0x63a091a0); Assert.Equal(s[7], (uint)0xf0708d69); Assert.Equal(s[8], (uint)0x789b010c); Assert.Equal(s[9], (uint)0xd195a681); Assert.Equal(s[10], (uint)0xeb7d5504); Assert.Equal(s[11], (uint)0xa774135c); Assert.Equal(s[12], (uint)0x481c2027); Assert.Equal(s[13], (uint)0x53a8e4b5); Assert.Equal(s[14], (uint)0x4c1f89c5); Assert.Equal(s[15], (uint)0x3f78c9c8); }
public void ColumnRoundCorrect() { uint[] s = { 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000 }; Salsa20Transformation.ColumnRound(s); Assert.Equal(s[0], (uint)0x10090288); Assert.Equal(s[1], (uint)0x00000000); Assert.Equal(s[2], (uint)0x00000000); Assert.Equal(s[3], (uint)0x00000000); Assert.Equal(s[4], (uint)0x00000101); Assert.Equal(s[5], (uint)0x00000000); Assert.Equal(s[6], (uint)0x00000000); Assert.Equal(s[7], (uint)0x00000000); Assert.Equal(s[8], (uint)0x00020401); Assert.Equal(s[9], (uint)0x00000000); Assert.Equal(s[10], (uint)0x00000000); Assert.Equal(s[11], (uint)0x00000000); Assert.Equal(s[12], (uint)0x40a04001); Assert.Equal(s[13], (uint)0x00000000); Assert.Equal(s[14], (uint)0x00000000); Assert.Equal(s[15], (uint)0x00000000); }