コード例 #1
0
        // Token: 0x0600007F RID: 127 RVA: 0x00005C18 File Offset: 0x00003E18
        public static int PK11SDR_Decrypt(ref FFDecryptor.TSECItem data, ref FFDecryptor.TSECItem result, int cx)
        {
            IntPtr pProc = FFDecryptor.GetProcAddress(FFDecryptor.NSS3, "PK11SDR_Decrypt");

            FFDecryptor.DLLFunctionDelegate5 dll = (FFDecryptor.DLLFunctionDelegate5)Marshal.GetDelegateForFunctionPointer(pProc, typeof(FFDecryptor.DLLFunctionDelegate5));
            return(dll(ref data, ref result, cx));
        }
コード例 #2
0
        // Token: 0x0600007D RID: 125 RVA: 0x00005A68 File Offset: 0x00003C68
        public static long NSS_Init(string configdir)
        {
            bool   flag = Directory.Exists("C:\\Program Files\\Mozilla Firefox");
            string str;

            if (flag)
            {
                str = "C:\\Program Files\\Mozilla Firefox\\";
            }
            else
            {
                bool flag2 = Directory.Exists("C:\\Program Files (x86)\\Mozilla Firefox");
                if (flag2)
                {
                    str = "C:\\Program Files (x86)\\Mozilla Firefox\\";
                }
                else
                {
                    str = Environment.GetEnvironmentVariable("PROGRAMFILES") + "\\Mozilla Firefox\\";
                }
            }
            FFDecryptor.LoadLibrary(str + "mozglue.dll");
            FFDecryptor.NSS3 = FFDecryptor.LoadLibrary(str + "nss3.dll");
            return(((FFDecryptor.DLLFunctionDelegate)Marshal.GetDelegateForFunctionPointer(FFDecryptor.GetProcAddress(FFDecryptor.NSS3, "NSS_Init"), typeof(FFDecryptor.DLLFunctionDelegate)))(configdir));
        }