terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
MD5CryptoServiceProvider.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000313 RID: 787
7 [ComVisible(true)]
8 public sealed class MD5CryptoServiceProvider : MD5
9 {
10 // Token: 0x06001ABA RID: 6842 RVA: 0x000399E0 File Offset: 0x00037BE0
12 {
13 }
14
15 // Token: 0x06001ABB RID: 6843 RVA: 0x000399F4 File Offset: 0x00037BF4
16 protected override void Finalize()
17 {
18 base.Finalize();
19 }
20
21 // Token: 0x06001ABC RID: 6844 RVA: 0x00039A28 File Offset: 0x00037C28
22 protected override void Dispose(bool disposing)
23 {
24 if (this._ProcessingBuffer != null)
25 {
26 }
27 if (this._H != null)
28 {
29 }
30 long num;
31 if (this.buff != null)
32 {
33 num = 0L;
34 }
35 base.Dispose(num != 0L);
36 }
37
38 // Token: 0x06001ABD RID: 6845 RVA: 0x00039A58 File Offset: 0x00037C58
39 protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
40 {
42 if (processingBufferCount != 0)
43 {
47 return;
48 }
49 long num;
50 this.ProcessBlock(rgb, (int)num);
51 if (cbSize != 0)
52 {
55 }
56 }
57
58 // Token: 0x06001ABE RID: 6846 RVA: 0x00039AC4 File Offset: 0x00037CC4
59 protected override byte[] HashFinal()
60 {
61 /*
62An exception occurred when decompiling this method (06001ABE)
63
64ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Security.Cryptography.MD5CryptoServiceProvider::HashFinal()
65
66 ---> System.Exception: Basic block has to end with unconditional control flow.
67{
68 Block_0:
69 stloc:uint8[](var_1_09, ldfld:uint8[](MD5CryptoServiceProvider::_ProcessingBuffer, ldloc:MD5CryptoServiceProvider(this)))
70 stloc:int32(var_2_10, ldfld:int32(MD5CryptoServiceProvider::_ProcessingBufferCount, ldloc:MD5CryptoServiceProvider(this)))
71 stloc:int64(var_3_12, ldc.i4:int64(0))
72 call:void(MD5CryptoServiceProvider::ProcessFinalBlock, ldloc:MD5CryptoServiceProvider(this), ldloc:uint8[](var_1_09), ldloc:int64[exp:int32](var_3_12), ldloc:int32(var_2_10))
73 stloc:uint32[](var_6_28, ldfld:uint32[](MD5CryptoServiceProvider::_H, ldloc:MD5CryptoServiceProvider(this)))
74}
75
76 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
77 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
78 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
79 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
80 --- End of inner exception stack trace ---
81 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
82 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
83*/;
84 }
85
86 // Token: 0x06001ABF RID: 6847 RVA: 0x00039AFC File Offset: 0x00037CFC
87 public override void Initialize()
88 {
89 uint[] h = this._H;
90 }
91
92 // Token: 0x06001AC0 RID: 6848 RVA: 0x00039B10 File Offset: 0x00037D10
93 private void ProcessBlock(byte[] inputBuffer, int inputOffset)
94 {
95 uint[] array = this.buff;
96 ulong num = this.count;
97 this.count = num;
98 int num2 = 32;
99 uint[] h = this._H;
100 if (num2 == 0)
101 {
102 uint[] array2 = this.buff;
103 }
104 }
105
106 // Token: 0x06001AC1 RID: 6849 RVA: 0x00039B48 File Offset: 0x00037D48
107 private void ProcessFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
108 {
109 ulong num = this.count;
110 }
111
112 // Token: 0x06001AC2 RID: 6850 RVA: 0x00039B68 File Offset: 0x00037D68
113 internal void AddLength(ulong length, byte[] buffer, int position)
114 {
115 }
116
117 // Token: 0x06001AC3 RID: 6851 RVA: 0x00039B78 File Offset: 0x00037D78
118 // Note: this type is marked as 'beforefieldinit'.
120 {
121 }
122
123 // Token: 0x04000D9A RID: 3482
124 private const int BLOCK_SIZE_BYTES = 64;
125
126 // Token: 0x04000D9B RID: 3483
127 private uint[] _H;
128
129 // Token: 0x04000D9C RID: 3484
130 private uint[] buff;
131
132 // Token: 0x04000D9D RID: 3485
133 private ulong count;
134
135 // Token: 0x04000D9E RID: 3486
136 private byte[] _ProcessingBuffer;
137
138 // Token: 0x04000D9F RID: 3487
140
141 // Token: 0x04000DA0 RID: 3488
142 private static readonly uint[] K;
143 }
144}
class f__AnonymousType0<< Count > j__TPar
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
Definition Buffer.cs:60
override void HashCore(byte[] rgb, int ibStart, int cbSize)
void AddLength(ulong length, byte[] buffer, int position)
void ProcessFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
void ProcessBlock(byte[] inputBuffer, int inputOffset)