예제 #1
0
        public int SignData(IntPtr intptr_0, string string_0, string string_1, out string string_2)
        {
            string_2 = "";
            if (intptr_0 == IntPtr.Zero)
            {
                return(0x25);
            }
            int num = Crypt_Login(intptr_0, string_1);

            if (num != 0)
            {
                Class20.smethod_2(string.Format("签名时登录密码:{0}", string_1));
                return(num);
            }
            byte[]    bytes     = Encoding.GetEncoding("GBK").GetBytes(string_0);
            byte[]    buffer    = new byte[0x400];
            uint      num2      = 0x400;
            DATE_TIME date_time = new DATE_TIME();
            int       num3      = Crypt_SignData(intptr_0, bytes, (uint)bytes.Length, 6, ref date_time, 0, buffer, ref num2);

            if (num3 != 0)
            {
                Class20.smethod_1("=============================SignData:返回值=============================" + num3);
                return(num3);
            }
            string_2 = Convert.ToBase64String(buffer, 0, (int)num2);
            return(num3);
        }
예제 #2
0
 public static extern int Crypt_SignData(IntPtr intptr_0, byte[] byte_0, uint uint_0, uint uint_1, ref DATE_TIME date_TIME_0, uint uint_2, byte[] byte_1, ref uint uint_3);