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
DSASignatureDeformatter.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020002D8 RID: 728
7 [ComVisible(true)]
9 {
10 // Token: 0x0600188F RID: 6287 RVA: 0x00034890 File Offset: 0x00032A90
12 {
13 if (!true)
14 {
15 }
16 string text = CryptoConfig.MapNameToOID("SHA1");
18 }
19
20 // Token: 0x06001890 RID: 6288 RVA: 0x000348B8 File Offset: 0x00032AB8
22 {
23 while (key == null)
24 {
25 }
27 }
28
29 // Token: 0x06001891 RID: 6289 RVA: 0x000348D8 File Offset: 0x00032AD8
30 public override void SetKey(AsymmetricAlgorithm key)
31 {
32 }
33
34 // Token: 0x06001892 RID: 6290 RVA: 0x000348EC File Offset: 0x00032AEC
35 public override void SetHashAlgorithm(string strName)
36 {
37 if (!true)
38 {
39 }
41 string oid = this._oid;
42 bool flag = text != oid;
43 }
44
45 // Token: 0x06001893 RID: 6291 RVA: 0x00034920 File Offset: 0x00032B20
46 public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
47 {
48 /*
49An exception occurred when decompiling this method (06001893)
50
51ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Security.Cryptography.DSASignatureDeformatter::VerifySignature(System.Byte[],System.Byte[])
52
53 ---> System.Exception: Basic block has to end with unconditional control flow.
54{
55 IL_0014:
56 stloc:string(var_0_1E, call:string(Environment::GetResourceString, ldstr:string("No asymmetric key object has been associated with this formatter object.")))
57}
58
59 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
60 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
61 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
62 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
63 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
64 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
65 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
66 --- End of inner exception stack trace ---
67 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
68 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
69*/;
70 }
71
72 // Token: 0x04000CAD RID: 3245
73 private DSA _dsaKey;
74
75 // Token: 0x04000CAE RID: 3246
76 private string _oid;
77 }
78}
class f__AnonymousType0<< Count > j__TPar
static string MapNameToOID(string name, object arg)
override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)