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
MACTripleDES.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020002E3 RID: 739
7 [ComVisible(true)]
9 {
10 // Token: 0x060018C8 RID: 6344 RVA: 0x00035100 File Offset: 0x00033300
28
29 // Token: 0x060018C9 RID: 6345 RVA: 0x00035168 File Offset: 0x00033368
30 public MACTripleDES(byte[] rgbKey)
31 {
32 }
33
34 // Token: 0x060018CA RID: 6346 RVA: 0x00035178 File Offset: 0x00033378
35 public MACTripleDES(string strTripleDES, byte[] rgbKey)
36 {
37 do
38 {
39 base..ctor();
40 }
41 while (rgbKey == null);
42 if (strTripleDES != null)
43 {
45 return;
46 }
50 object obj;
51 if (obj != null)
52 {
53 if (obj != null)
54 {
56 if (obj != null)
57 {
58 goto IL_0043;
59 }
60 }
61 throw new InvalidCastException();
62 }
63 IL_0043:
67 }
68
69 // Token: 0x060018CB RID: 6347 RVA: 0x000351E0 File Offset: 0x000333E0
70 public override void Initialize()
71 {
72 }
73
74 // Token: 0x170002A5 RID: 677
75 // (get) Token: 0x060018CC RID: 6348 RVA: 0x000351F0 File Offset: 0x000333F0
76 // (set) Token: 0x060018CD RID: 6349 RVA: 0x00035204 File Offset: 0x00033404
77 [ComVisible(false)]
79 {
80 get
81 {
82 /*
83An exception occurred when decompiling this method (060018CC)
84
85ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Cryptography.PaddingMode System.Security.Cryptography.MACTripleDES::get_Padding()
86
87 ---> System.Exception: Basic block has to end with unconditional control flow.
88{
89 Block_0:
90 stloc:TripleDES(var_0_06, ldfld:TripleDES(MACTripleDES::des, ldloc:MACTripleDES(this)))
91}
92
93 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
94 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
95 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
96 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
97 --- End of inner exception stack trace ---
98 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
99 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
100*/;
101 }
102 set
103 {
104 TripleDES tripleDES = this.des;
105 }
106 }
107
108 // Token: 0x060018CE RID: 6350 RVA: 0x00035224 File Offset: 0x00033424
109 protected override void HashCore(byte[] rgbData, int ibStart, int cbSize)
110 {
111 if (this.m_encryptor != null)
112 {
113 CryptoStream cs = this._cs;
114 return;
115 }
116 TripleDES tripleDES = this.des;
117 TripleDES tripleDES2 = this.des;
118 TripleDES tripleDES3 = this.des;
121 }
122
123 // Token: 0x060018CF RID: 6351 RVA: 0x00035268 File Offset: 0x00033468
124 protected override byte[] HashFinal()
125 {
126 if (this.m_encryptor != null)
127 {
128 CryptoStream cs = this._cs;
129 }
130 TripleDES tripleDES = this.des;
131 TripleDES tripleDES2 = this.des;
132 TripleDES tripleDES3 = this.des;
135 return this._ts.Buffer;
136 }
137
138 // Token: 0x060018D0 RID: 6352 RVA: 0x000352B4 File Offset: 0x000334B4
139 protected override void Dispose(bool disposing)
140 {
141 TripleDES tripleDES = this.des;
142 if (tripleDES != null)
143 {
145 }
146 long num;
147 if (this.m_encryptor != null)
148 {
149 num = 0L;
150 return;
151 }
152 CryptoStream cs = this._cs;
153 if (cs != null)
154 {
155 cs.Clear();
156 }
157 if (this._ts != null)
158 {
159 }
160 byte[] keyValue = this.KeyValue;
161 if (keyValue != null)
162 {
163 long num2 = 0L;
164 Array.Clear(keyValue, (int)num2, (int)num);
165 }
166 int num3 = 1;
167 this._disposed = num3 != 0;
168 }
169
170 // Token: 0x04000CBB RID: 3259
172
173 // Token: 0x04000CBC RID: 3260
175
176 // Token: 0x04000CBD RID: 3261
178
179 // Token: 0x04000CBE RID: 3262
180 private const int m_bitsPerByte = 8;
181
182 // Token: 0x04000CBF RID: 3263
183 private int m_bytesPerBlock;
184
185 // Token: 0x04000CC0 RID: 3264
186 private TripleDES des;
187 }
188}
class f__AnonymousType0<< Count > j__TPar
void IList. Clear()
Definition Array.cs:99
MACTripleDES(string strTripleDES, byte[] rgbKey)
override void Dispose(bool disposing)
override void HashCore(byte[] rgbData, int ibStart, int cbSize)
static new TripleDES Create()
Definition TripleDES.cs:63
static RNGCryptoServiceProvider StaticRandomNumberGenerator
Definition Utils.cs:18