Beispiel #1
0
    internal Class517 method_6(byte[] A_0, bool A_1)
    {
        int length = A_0.Length;

        if (!A_1)
        {
            A_0 = this.method_8(A_0);
        }
        HMACSHA1 hmacsha = new HMACSHA1 {
            Key = Class517.byte_0
        };
        Class299 class3 = new Class299();
        Class517 class2 = null;

        using (Dictionary <int, Class517> .ValueCollection.Enumerator enumerator = this.dictionary_0.Values.GetEnumerator())
        {
            Class517 current;
            while (enumerator.MoveNext())
            {
                current = enumerator.Current;
                if ((current.method_7() && (current.byte_1.Length == A_0.Length)) && class3.method_15(current.method_4(), hmacsha.ComputeHash(A_0)))
                {
                    goto Label_007F;
                }
            }
            goto Label_0092;
Label_007F:
            class2 = current;
        }
Label_0092:
        if (class2 == null)
        {
            class2 = new Class517(this.document_0, A_0);
            this.method_2(class2);
            if (!A_1)
            {
                class2.method_14(length);
            }
        }
        A_0 = null;
        class2.method_6(class2.method_5() + 1);
        class2.method_8(true);
        return(class2);
    }
Beispiel #2
0
    internal Class517 method_5(byte[] A_0)
    {
        HMACSHA1 hmacsha = new HMACSHA1 {
            Key = Class517.byte_0
        };
        Class299 class2 = new Class299();
        Class517 class3 = null;

        using (Dictionary <int, Class517> .ValueCollection.Enumerator enumerator = this.dictionary_0.Values.GetEnumerator())
        {
            Class517 current;
            while (enumerator.MoveNext())
            {
                current = enumerator.Current;
                if ((!current.method_7() && (current.byte_1 != null)) && ((current.byte_1.Length == A_0.Length) && class2.method_15(current.method_4(), hmacsha.ComputeHash(A_0))))
                {
                    goto Label_0077;
                }
            }
            goto Label_008A;
Label_0077:
            class3 = current;
        }
Label_008A:
        if (class3 == null)
        {
            class3 = new Class517(this.document_0, A_0);
            this.method_2(class3);
        }
        A_0 = null;
        class3.method_6(class3.method_5() + 1);
        return(class3);
    }