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
RSAOAEPKeyExchangeFormatter.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020002F6 RID: 758
8 [ComVisible(true)]
10 {
11 // Token: 0x060019AD RID: 6573 RVA: 0x000373F0 File Offset: 0x000355F0
13 {
14 }
15
16 // Token: 0x060019AE RID: 6574 RVA: 0x00037404 File Offset: 0x00035604
18 {
19 do
20 {
21 base..ctor();
22 }
23 while (key == null);
25 }
26
27 // Token: 0x170002C4 RID: 708
28 // (get) Token: 0x060019AF RID: 6575 RVA: 0x00037428 File Offset: 0x00035628
29 // (set) Token: 0x060019B0 RID: 6576 RVA: 0x00037448 File Offset: 0x00035648
30 public byte[] Parameter
31 {
32 get
33 {
34 object obj;
35 if (this.ParameterValue == null || obj == null || obj != null)
36 {
37 }
38 throw new InvalidCastException();
39 }
40 set
41 {
42 object obj;
43 if (value != null && obj != null)
44 {
45 if (obj == null)
46 {
47 throw new InvalidCastException();
48 }
50 if (obj == null)
51 {
52 throw new InvalidCastException();
53 }
54 }
55 }
56 }
57
58 // Token: 0x170002C5 RID: 709
59 // (get) Token: 0x060019B1 RID: 6577 RVA: 0x00037474 File Offset: 0x00035674
60 public override string Parameters
61 {
62 get
63 {
64 }
65 }
66
67 // Token: 0x170002C6 RID: 710
68 // (get) Token: 0x060019B2 RID: 6578 RVA: 0x00037484 File Offset: 0x00035684
69 // (set) Token: 0x060019B3 RID: 6579 RVA: 0x00037498 File Offset: 0x00035698
71 {
72 get
73 {
74 return this.RngValue;
75 }
76 set
77 {
79 }
80 }
81
82 // Token: 0x060019B4 RID: 6580 RVA: 0x000374AC File Offset: 0x000356AC
83 public override void SetKey(AsymmetricAlgorithm key)
84 {
85 while (key == null)
86 {
87 }
89 }
90
91 // Token: 0x060019B5 RID: 6581 RVA: 0x000374CC File Offset: 0x000356CC
92 public override byte[] CreateKeyExchange(byte[] rgbData)
93 {
94 /*
95An exception occurred when decompiling this method (060019B5)
96
97ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Security.Cryptography.RSAOAEPKeyExchangeFormatter::CreateKeyExchange(System.Byte[])
98
99 ---> System.Exception: Basic block has to end with unconditional control flow.
100{
101 IL_0031:
102 stloc:string(var_7_3B, call:string(Environment::GetResourceString, ldstr:string("No asymmetric key object has been associated with this formatter object.")))
103}
104
105 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
106 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
107 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
108 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
109 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
110 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
111 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
112 --- End of inner exception stack trace ---
113 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
114 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
115*/;
116 }
117
118 // Token: 0x060019B6 RID: 6582 RVA: 0x0000207A File Offset: 0x0000027A
119 public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
120 {
121 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
122 }
123
124 // Token: 0x170002C7 RID: 711
125 // (get) Token: 0x060019B7 RID: 6583 RVA: 0x00037518 File Offset: 0x00035718
126 private bool OverridesEncrypt
127 {
128 get
129 {
130 if (this._rsaOverridesEncrypt == null)
131 {
132 RSA rsaKey = this._rsaKey;
133 Type type;
134 if (type != null)
135 {
136 }
137 Type type2;
138 if (type2 == null || type2 != null)
139 {
140 }
141 }
142 throw new ArrayTypeMismatchException();
143 }
144 }
145
146 // Token: 0x04000D09 RID: 3337
147 private byte[] ParameterValue;
148
149 // Token: 0x04000D0A RID: 3338
150 private RSA _rsaKey;
151
152 // Token: 0x04000D0B RID: 3339
153 private bool? _rsaOverridesEncrypt;
154
155 // Token: 0x04000D0C RID: 3340
157 }
158}
class f__AnonymousType0<< Count > j__TPar
override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)