FFmulX() private static method

private static FFmulX ( uint x ) : uint
x uint
return uint
Example #1
0
        private static uint Inv_Mcol(uint x)
        {
            uint num  = AesLightEngine.FFmulX(x);
            uint num2 = AesLightEngine.FFmulX(num);
            uint num3 = AesLightEngine.FFmulX(num2);
            uint num4 = x ^ num3;

            return(num ^ num2 ^ num3 ^ AesLightEngine.Shift(num ^ num4, 8) ^ AesLightEngine.Shift(num2 ^ num4, 16) ^ AesLightEngine.Shift(num4, 24));
        }
Example #2
0
        private static uint Mcol(uint x)
        {
            uint num = AesLightEngine.FFmulX(x);

            return(num ^ AesLightEngine.Shift(x ^ num, 8) ^ AesLightEngine.Shift(x, 16) ^ AesLightEngine.Shift(x, 24));
        }