Esempio n. 1
0
 // Token: 0x06000030 RID: 48 RVA: 0x00002C54 File Offset: 0x00000E54
 internal static void Multiply(byte[] block, byte[] val)
 {
     byte[] array  = Arrays.Clone(block);
     byte[] array2 = new byte[16];
     for (int i = 0; i < 16; i++)
     {
         byte b = val[i];
         for (int j = 7; j >= 0; j--)
         {
             if (((int)b & 1 << j) != 0)
             {
                 GcmUtilities.Xor(array2, array);
             }
             bool flag = (array[15] & 1) != 0;
             GcmUtilities.ShiftRight(array);
             if (flag)
             {
                 byte[] array3 = array;
                 int    num    = 0;
                 array3[num] ^= 225;
             }
         }
     }
     Array.Copy(array2, 0, block, 0, 16);
 }
Esempio n. 2
0
        // Token: 0x06000031 RID: 49 RVA: 0x00002CE0 File Offset: 0x00000EE0
        internal static void MultiplyP(uint[] x)
        {
            bool flag = (x[3] & 1U) != 0U;

            GcmUtilities.ShiftRight(x);
            if (flag)
            {
                x[0] ^= 3774873600U;
            }
        }