Exemplo n.º 1
0
    private DigitalSignature method_0(Interface12 A_0, bool A_1)
    {
        int num = 13;

        this.digitalSignature_0 = new DigitalSignature(DigitalSignatureType.XmlDsig);
        this.digitalSignature_0.SignedXmlResult = A_1;
        while (this.class393_0.method_9(BookmarkStart.b("怲尴倶圸娺䤼䨾㍀♂", num)))
        {
            string str = this.class393_0.method_1();
            if (str != null)
            {
                if (str != BookmarkStart.b("怲尴倶圸帺夼瘾⽀╂⩄", num))
                {
                    if (!(str == BookmarkStart.b("砲倴丶瀸唺嬼倾", num)))
                    {
                        if (str == BookmarkStart.b("簲圴崶尸堺䤼", num))
                        {
                            this.method_3();
                        }
                    }
                    else
                    {
                        this.method_1();
                    }
                }
                else
                {
                    this.method_6();
                }
            }
        }
        bool flag = A_1;
        SHA1 sha  = new SHA1CryptoServiceProvider();

        foreach (Class117 class2 in this.digitalSignature_0.References)
        {
            if (class2.method_6())
            {
                Stream stream = A_0.imethod_0(class2);
                foreach (Class1055 class3 in class2.method_5())
                {
                    stream = class3.method_0(stream);
                }
                stream.Position = 0L;
                bool flag2 = Convert.ToBase64String(sha.ComputeHash(stream)) == class2.method_3();
                class2.method_8(flag2);
                flag &= flag2;
            }
            else
            {
                class2.method_8(A_1);
            }
        }
        this.digitalSignature_0.method_2(flag);
        return(this.digitalSignature_0);
    }
Exemplo n.º 2
0
        private void method_8(JsonReader jsonReader_0, Interface11 interface11_0, Interface10 interface10_0, string string_8, XmlNamespaceManager xmlNamespaceManager_0)
        {
            if (string.IsNullOrEmpty(string_8))
            {
                throw new JsonSerializationException("XmlNodeConverter cannot convert JSON with an empty property name to XML.");
            }
            Dictionary <string, string> dictionary = this.method_12(jsonReader_0, xmlNamespaceManager_0);
            string str = Class193.smethod_4(string_8);

            if (string_8.StartsWith("@"))
            {
                string      str2       = string_8.Substring(1);
                string      str3       = jsonReader_0.Object_0.ToString();
                string      str4       = Class193.smethod_4(str2);
                Interface10 interface2 = !string.IsNullOrEmpty(str4) ? interface11_0.imethod_11(str2, xmlNamespaceManager_0.LookupNamespace(str4), str3) : interface11_0.imethod_10(str2, str3);
                ((Interface12)interface10_0).imethod_1(interface2);
            }
            else
            {
                Interface12 interface3 = this.method_14(string_8, interface11_0, str, xmlNamespaceManager_0);
                interface10_0.imethod_0(interface3);
                foreach (KeyValuePair <string, string> pair in dictionary)
                {
                    string      str5       = Class193.smethod_4(pair.Key);
                    Interface10 interface4 = !string.IsNullOrEmpty(str5) ? interface11_0.imethod_11(pair.Key, xmlNamespaceManager_0.LookupNamespace(str5), pair.Value) : interface11_0.imethod_10(pair.Key, pair.Value);
                    interface3.imethod_1(interface4);
                }
                if ((((jsonReader_0.JsonToken_0 != JsonToken.String) && (jsonReader_0.JsonToken_0 != JsonToken.Integer)) && ((jsonReader_0.JsonToken_0 != JsonToken.Float) && (jsonReader_0.JsonToken_0 != JsonToken.Boolean))) && (jsonReader_0.JsonToken_0 != JsonToken.Date))
                {
                    if ((jsonReader_0.JsonToken_0 != JsonToken.Null) && (jsonReader_0.JsonToken_0 != JsonToken.EndObject))
                    {
                        xmlNamespaceManager_0.PushScope();
                        this.method_15(jsonReader_0, interface11_0, xmlNamespaceManager_0, interface3);
                        xmlNamespaceManager_0.PopScope();
                    }
                }
                else
                {
                    interface3.imethod_0(interface11_0.imethod_2(this.method_9(jsonReader_0)));
                }
            }
        }