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
RC2CryptoServiceProvider.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020002EB RID: 747
7 [ComVisible(true)]
8 public sealed class RC2CryptoServiceProvider : RC2
9 {
10 // Token: 0x06001914 RID: 6420 RVA: 0x00035B88 File Offset: 0x00033D88
12 {
13 if (!true)
14 {
15 }
16 base..ctor();
17 if (!true)
18 {
19 }
21 long num = 0L;
22 bool flag = Utils.HasAlgorithm(26114, (int)num);
24 }
25
26 // Token: 0x170002B2 RID: 690
27 // (get) Token: 0x06001915 RID: 6421 RVA: 0x00035BD8 File Offset: 0x00033DD8
28 // (set) Token: 0x06001916 RID: 6422 RVA: 0x00035BEC File Offset: 0x00033DEC
29 public override int EffectiveKeySize
30 {
31 get
32 {
33 return this.KeySizeValue;
34 }
35 set
36 {
37 int keySizeValue = this.KeySizeValue;
38 }
39 }
40
41 // Token: 0x170002B3 RID: 691
42 // (get) Token: 0x06001917 RID: 6423 RVA: 0x00035C0C File Offset: 0x00033E0C
43 // (set) Token: 0x06001918 RID: 6424 RVA: 0x00035C20 File Offset: 0x00033E20
44 [ComVisible(false)]
45 public bool UseSalt
46 {
47 get
48 {
49 return this.m_use40bitSalt;
50 }
51 set
52 {
53 }
54 }
55
56 // Token: 0x06001919 RID: 6425 RVA: 0x00035C30 File Offset: 0x00033E30
57 public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
58 {
59 /*
60An exception occurred when decompiling this method (06001919)
61
62ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.RC2CryptoServiceProvider::CreateEncryptor(System.Byte[],System.Byte[])
63
64 ---> System.Exception: Basic block has to end with unconditional control flow.
65{
66 IL_0000:
67 brtrue(IL_0000, ldfld:bool(RC2CryptoServiceProvider::m_use40bitSalt, ldloc:RC2CryptoServiceProvider(this)))
68}
69
70 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
71 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
72 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
73 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
74 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
75 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
76 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
77 --- End of inner exception stack trace ---
78 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
79 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
80*/;
81 }
82
83 // Token: 0x0600191A RID: 6426 RVA: 0x00035C44 File Offset: 0x00033E44
84 public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
85 {
86 while (this.m_use40bitSalt)
87 {
88 }
89 }
90
91 // Token: 0x0600191B RID: 6427 RVA: 0x00035C5C File Offset: 0x00033E5C
92 public override void GenerateKey()
93 {
94 if (this.KeySizeValue == 0)
95 {
96 }
98 }
99
100 // Token: 0x0600191C RID: 6428 RVA: 0x00035C7C File Offset: 0x00033E7C
101 public override void GenerateIV()
102 {
103 if (!true)
104 {
105 }
107 byte[] ivvalue = this.IVValue;
108 }
109
110 // Token: 0x0600191D RID: 6429 RVA: 0x00035C9C File Offset: 0x00033E9C
111 // Note: this type is marked as 'beforefieldinit'.
113 {
114 }
115
116 // Token: 0x04000CD2 RID: 3282
117 private bool m_use40bitSalt;
118
119 // Token: 0x04000CD3 RID: 3283
120 private static KeySizes[] s_legalKeySizes;
121 }
122}
class f__AnonymousType0<< Count > j__TPar
override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
static bool HasAlgorithm(int dwCalg, int dwKeySize)
Definition Utils.cs:71
static RNGCryptoServiceProvider StaticRandomNumberGenerator
Definition Utils.cs:18