Esempio n. 1
0
 // Token: 0x060001C2 RID: 450 RVA: 0x0000C0F0 File Offset: 0x0000A2F0
 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: 0x060001C3 RID: 451 RVA: 0x0000C16C File Offset: 0x0000A36C
        internal static void MultiplyP(uint[] x)
        {
            bool flag = (x[3] & 1U) > 0U;

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