Beispiel #1
0
        public void Finish(string data)
        {
            byte[] array = HmacHash.smethod_3(HmacHash.smethod_2(), data);
            while (true)
            {
IL_50:
                uint arg_38_0 = 3982832027u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_38_0 ^ 3859150612u)) % 3u)
                    {
                    case 1u:
                        this.method_1(array, 0, array.Length);
                        this.Digest = HmacHash.smethod_4(this);
                        arg_38_0    = (num * 2414475336u ^ 1000737194u);
                        continue;

                    case 2u:
                        goto IL_50;
                    }
                    return;
                }
            }
        }
Beispiel #2
0
        public HmacHash(byte[] key) : base(key, true)
        {
            while (true)
            {
IL_3A:
                uint arg_22_0 = 3010620136u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_22_0 ^ 2699801612u)) % 3u)
                    {
                    case 0u:
                        goto IL_3A;

                    case 1u:
                        HmacHash.smethod_0(this);
                        arg_22_0 = (num * 3559114196u ^ 1693912905u);
                        continue;
                    }
                    return;
                }
            }
        }
Beispiel #3
0
        public void Finish(byte[] data, int length)
        {
            this.method_1(data, 0, length);
            while (true)
            {
IL_42:
                uint arg_2A_0 = 2162501635u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_2A_0 ^ 2449147266u)) % 3u)
                    {
                    case 0u:
                        goto IL_42;

                    case 2u:
                        this.Digest = HmacHash.smethod_4(this);
                        arg_2A_0    = (num * 1577460123u ^ 632273006u);
                        continue;
                    }
                    return;
                }
            }
        }
Beispiel #4
0
        public void Write(PacketWriter pw)
        {
            byte[] data = ConnectTo.smethod_2((ushort)ConnectTo.smethod_1(this.Payload.Where));
            while (true)
            {
IL_378:
                uint arg_316_0 = 2359871361u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_316_0 ^ 3640945304u)) % 21u)
                    {
                    case 0u:
                    {
                        byte[] array;
                        ConnectTo.smethod_6(ConnectTo.smethod_5(ConnectTo.smethod_4(this.Payload.Where)), 0, array, 0, 4);
                        arg_316_0 = (num * 1857866438u ^ 170169674u);
                        continue;
                    }

                    case 1u:
                    {
                        HmacHash hmacHash;
                        hmacHash.Process(this.Payload.PanamaKey, 32);
                        hmacHash.Process(this.PiDigits, 108);
                        arg_316_0 = (num * 2969400312u ^ 2067020106u);
                        continue;
                    }

                    case 2u:
                    {
                        byte b = 3;
                        arg_316_0 = (num * 3485038105u ^ 1438866377u);
                        continue;
                    }

                    case 3u:
                        pw.WriteUInt32(14u);
                        arg_316_0 = (num * 3418873817u ^ 174626620u);
                        continue;

                    case 4u:
                        goto IL_378;

                    case 5u:
                    {
                        byte[] array = new byte[16];
                        arg_316_0 = (num * 2999318491u ^ 2160708345u);
                        continue;
                    }

                    case 6u:
                        pw.WriteUInt8(this.Con);
                        arg_316_0 = (num * 1188346892u ^ 2799591750u);
                        continue;

                    case 7u:
                    {
                        ByteBuffer byteBuffer;
                        byteBuffer.WriteBytes(this.Payload.PanamaKey, 32u);
                        byteBuffer.WriteBytes(this.PiDigits, 108u);
                        arg_316_0 = (num * 1445783088u ^ 3500704478u);
                        continue;
                    }

                    case 8u:
                    {
                        byte[]     array;
                        ByteBuffer byteBuffer;
                        byteBuffer.WriteBytes(array, 16u);
                        byteBuffer.WriteUInt16 <int>(ConnectTo.smethod_1(this.Payload.Where));
                        byteBuffer.WriteString(this.Haiku);
                        arg_316_0 = (num * 4257467946u ^ 1043571886u);
                        continue;
                    }

                    case 9u:
                    {
                        ByteBuffer byteBuffer = new ByteBuffer();
                        byteBuffer.WriteUInt32 <uint>(this.Payload.Adler32);
                        byte b;
                        byteBuffer.WriteUInt8 <byte>(b);
                        arg_316_0 = (num * 288980273u ^ 1507575052u);
                        continue;
                    }

                    case 10u:
                    {
                        ByteBuffer byteBuffer;
                        pw.WriteBytes(this.Crypt.Encrypt <byte[]>(byteBuffer.GetData(), false), 256);
                        arg_316_0 = (num * 627861161u ^ 4032287512u);
                        continue;
                    }

                    case 11u:
                    {
                        HmacHash hmacHash;
                        hmacHash.Finish(ConnectTo.smethod_7((short)this.Payload.XorMagic), 1);
                        arg_316_0 = (num * 2043331364u ^ 2720859288u);
                        continue;
                    }

                    case 12u:
                    {
                        HmacHash hmacHash = new HmacHash(RsaStore.WherePacketHmac);
                        byte[]   array;
                        hmacHash.Process(array, 16);
                        byte b;
                        hmacHash.Process(ConnectTo.smethod_7((short)b), 1);
                        hmacHash.Process(data, 2);
                        arg_316_0 = 3742919601u;
                        continue;
                    }

                    case 13u:
                    {
                        ByteBuffer byteBuffer;
                        byteBuffer.WriteUInt8 <byte>(this.Payload.XorMagic);
                        HmacHash hmacHash;
                        byteBuffer.WriteBytes(hmacHash.Digest);
                        arg_316_0 = (num * 1057531190u ^ 2240896363u);
                        continue;
                    }

                    case 14u:
                    {
                        byte[] array;
                        ConnectTo.smethod_6(ConnectTo.smethod_5(ConnectTo.smethod_4(this.Payload.Where)), 0, array, 0, 16);
                        arg_316_0 = 3211391060u;
                        continue;
                    }

                    case 15u:
                    {
                        byte b = 1;
                        arg_316_0 = (num * 3213198913u ^ 1313716735u);
                        continue;
                    }

                    case 16u:
                    {
                        HmacHash hmacHash;
                        hmacHash.Process(this.Haiku);
                        arg_316_0 = (num * 3305604985u ^ 3353461720u);
                        continue;
                    }

                    case 18u:
                        pw.WriteUInt64(this.Key);
                        arg_316_0 = (num * 1780680709u ^ 1529831126u);
                        continue;

                    case 19u:
                        arg_316_0 = (((ConnectTo.smethod_3(this.Payload.Where) != AddressFamily.InterNetwork) ? 2333103828u : 3804062715u) ^ num * 2627924325u);
                        continue;

                    case 20u:
                    {
                        byte b = 2;
                        arg_316_0 = (num * 326661819u ^ 2495054369u);
                        continue;
                    }
                    }
                    return;
                }
            }
        }
Beispiel #5
0
 public void Process(string data)
 {
     byte[] array = HmacHash.smethod_3(HmacHash.smethod_2(), data);
     this.method_0(array, 0, array.Length, array, 0);
 }
Beispiel #6
0
 public void Process(uint data)
 {
     byte[] array = HmacHash.smethod_1(data);
     this.method_0(array, 0, array.Length, array, 0);
 }