Example #1
0
        private void method_1(Class68 options)
        {
            byte[]  hash    = Md5Helper.ComputeHash(Class69.smethod_1(options.OwnerPassword ?? options.UserPassword));
            byte[]  dataIn  = Class69.smethod_1(options.UserPassword);
            Class44 class44 = new Class44(hash, 0, 5);

            this.byte_1 = new byte[32];
            class44.method_1(dataIn, this.byte_1);
        }
Example #2
0
 internal static bool smethod_2(
     string password,
     byte[] userEntry,
     byte[] ownerEntry,
     int permissions,
     byte[] fileId)
 {
     return(Class69.smethod_3(Class69.smethod_1(password), userEntry, ownerEntry, permissions, fileId));
 }
Example #3
0
        internal static bool smethod_4(
            string password,
            byte[] userEntry,
            byte[] ownerEntry,
            int permissions,
            byte[] fileId)
        {
            Class44 class44 = new Class44(Md5Helper.ComputeHash(Class69.smethod_1(password)), 0, 5);

            byte[] numArray = new byte[32];
            class44.method_1(ownerEntry, numArray);
            return(Class69.smethod_3(numArray, userEntry, ownerEntry, permissions, fileId));
        }
Example #4
0
 private void method_0(Class68 options, PdfFileIdentifier fileId)
 {
     this.byte_3 = Class69.smethod_0(Class69.smethod_1(options.UserPassword), this.byte_1, options.Permissions, fileId.CreatedPart);
 }
Example #5
0
        public static void smethod_0(float[] float_1, int[] int_0, int int_1, int int_2, float[] float_2, int int_3, float float_3, float float_4)
        {
            float num = Class77.float_0 / (float)int_2;
            int   i;

            for (i = 0; i < int_3; i++)
            {
                float_2[i] = Class69.smethod_0(float_2[i]);
            }
            int num2 = int_3 / 2 * 2;

            i = 0;
            while (i < int_1)
            {
                Class77.Struct15 @struct = default(Class77.Struct15);
                int   num3 = int_0[i];
                float num4 = 0.707106769f;
                float num5 = 0.707106769f;
                float num6 = Class69.smethod_0(num * (float)num3);
                for (int j = 0; j < num2; j += 2)
                {
                    num5 *= float_2[j] - num6;
                    num4 *= float_2[j + 1] - num6;
                }
                if ((int_3 & 1) != 0)
                {
                    num5 *= float_2[int_3 - 1] - num6;
                    num5 *= num5;
                    num4 *= num4 * (1f - num6 * num6);
                }
                else
                {
                    num5 *= num5 * (1f + num6);
                    num4 *= num4 * (1f - num6);
                }
                num5            = num4 + num5;
                @struct.float_0 = num5;
                int num7 = @struct.int_0;
                int num8 = 2147483647 & num7;
                int num9 = 0;
                if (num8 < 2139095040 && num8 != 0)
                {
                    if (num8 < 8388608)
                    {
                        num5           *= 33554432f;
                        @struct.float_0 = num5;
                        num7            = @struct.int_0;
                        num8            = (2147483647 & num7);
                        num9            = -25;
                    }
                    num9         += (int)(((uint)num8 >> 23) - 126u);
                    num7          = (int)(((long)num7 & 2155872255L) | 1056964608L);
                    @struct.int_0 = num7;
                    num5          = @struct.float_0;
                }
                num5 = Class69.smethod_3(float_3 * Class69.smethod_1(num5) * Class69.smethod_2(num9 + int_3) - float_4);
                do
                {
                    float_1[i] *= num5;
                    i++;
                    if (i >= int_1)
                    {
                        break;
                    }
                }while (int_0[i] == num3);
            }
        }