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
RIPEMD160Managed.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020002F1 RID: 753
8 [ComVisible(true)]
10 {
11 // Token: 0x06001943 RID: 6467 RVA: 0x000366F4 File Offset: 0x000348F4
13 {
15 if (160 == 0)
16 {
17 }
19 uint[] stateMD = this._stateMD160;
20 }
21
22 // Token: 0x06001944 RID: 6468 RVA: 0x00036734 File Offset: 0x00034934
23 public override void Initialize()
24 {
25 uint[] stateMD = this._stateMD160;
26 uint[] blockDWords = this._blockDWords;
27 byte[] buffer = this._buffer;
28 }
29
30 // Token: 0x06001945 RID: 6469 RVA: 0x00036758 File Offset: 0x00034958
31 protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
32 {
33 this._HashData(rgb, ibStart, cbSize);
34 }
35
36 // Token: 0x06001946 RID: 6470 RVA: 0x00036770 File Offset: 0x00034970
37 protected override byte[] HashFinal()
38 {
39 return this._EndHash();
40 }
41
42 // Token: 0x06001947 RID: 6471 RVA: 0x00036784 File Offset: 0x00034984
43 private void InitializeState()
44 {
45 uint[] stateMD = this._stateMD160;
46 }
47
48 // Token: 0x06001948 RID: 6472 RVA: 0x00036798 File Offset: 0x00034998
49 private void _HashData(byte[] partIn, int ibStart, int cbSize)
50 {
51 long count = this._count;
52 if (this._stateMD160 != null)
53 {
54 return;
55 }
56 if (this._buffer != null)
57 {
58 return;
59 }
60 if (this._blockDWords != null)
61 {
62 return;
63 }
64 byte[] buffer = this._buffer;
65 byte[] buffer2 = this._buffer;
66 }
67
68 // Token: 0x06001949 RID: 6473 RVA: 0x000367DC File Offset: 0x000349DC
69 private byte[] _EndHash()
70 {
71 /*
72An exception occurred when decompiling this method (06001949)
73
74ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Security.Cryptography.RIPEMD160Managed::_EndHash()
75
76 ---> System.Exception: Basic block has to end with unconditional control flow.
77{
78 Block_0:
79 stloc:int64(var_1_09, ldfld:int64(RIPEMD160Managed::_count, ldloc:RIPEMD160Managed(this)))
80 stloc:int64(var_2_10, ldfld:int64(RIPEMD160Managed::_count, ldloc:RIPEMD160Managed(this)))
81 stloc:uint32[](var_3_17, ldfld:uint32[](RIPEMD160Managed::_stateMD160, ldloc:RIPEMD160Managed(this)))
82}
83
84 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
85 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
86 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
87 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
88 --- End of inner exception stack trace ---
89 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
90 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
91*/;
92 }
93
94 // Token: 0x0600194A RID: 6474 RVA: 0x00036800 File Offset: 0x00034A00
95 private unsafe static void MDTransform(uint* blockDWords, uint* state, byte* block)
96 {
97 int num = 1;
98 uint value = state->m_value;
99 if (num == 0)
100 {
101 }
102 int num2 = 16;
104 uint value2 = blockDWords->m_value;
105 }
106
107 // Token: 0x0600194B RID: 6475 RVA: 0x0000207A File Offset: 0x0000027A
108 private static uint F(uint x, uint y, uint z)
109 {
110 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
111 }
112
113 // Token: 0x0600194C RID: 6476 RVA: 0x0000207A File Offset: 0x0000027A
114 private static uint G(uint x, uint y, uint z)
115 {
116 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
117 }
118
119 // Token: 0x0600194D RID: 6477 RVA: 0x0000207A File Offset: 0x0000027A
120 private static uint H(uint x, uint y, uint z)
121 {
122 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
123 }
124
125 // Token: 0x0600194E RID: 6478 RVA: 0x0000207A File Offset: 0x0000027A
126 private static uint I(uint x, uint y, uint z)
127 {
128 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
129 }
130
131 // Token: 0x0600194F RID: 6479 RVA: 0x0000207A File Offset: 0x0000027A
132 private static uint J(uint x, uint y, uint z)
133 {
134 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
135 }
136
137 // Token: 0x04000CF1 RID: 3313
138 private byte[] _buffer;
139
140 // Token: 0x04000CF2 RID: 3314
141 private long _count;
142
143 // Token: 0x04000CF3 RID: 3315
144 private uint[] _stateMD160;
145
146 // Token: 0x04000CF4 RID: 3316
147 private uint[] _blockDWords;
148 }
149}
class f__AnonymousType0<< Count > j__TPar
static uint G(uint x, uint y, uint z)
override void HashCore(byte[] rgb, int ibStart, int cbSize)
static uint J(uint x, uint y, uint z)
static uint H(uint x, uint y, uint z)
static uint I(uint x, uint y, uint z)
static uint F(uint x, uint y, uint z)
static unsafe void MDTransform(uint *blockDWords, uint *state, byte *block)
void _HashData(byte[] partIn, int ibStart, int cbSize)
static unsafe void DWORDFromLittleEndian(uint *x, int digits, byte *block)
Definition Utils.cs:124