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
HMACSHA512.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020002E0 RID: 736
7 [ComVisible(true)]
8 public class HMACSHA512 : HMAC
9 {
10 // Token: 0x060018B7 RID: 6327 RVA: 0x00034F94 File Offset: 0x00033194
11 public HMACSHA512()
12 {
13 if (!true)
14 {
15 }
16 byte[] array = Utils.GenerateRandom(128);
17 }
18
19 // Token: 0x060018B8 RID: 6328 RVA: 0x00034FB0 File Offset: 0x000331B0
20 public HMACSHA512(byte[] key)
21 {
22 if (!true)
23 {
24 }
25 bool flag = Utils._ProduceLegacyHmacValues();
28 base..ctor();
29 this.m_hashName = "SHA512";
33 base.InitializeKey(key);
34 }
35
36 // Token: 0x1700029E RID: 670
37 // (get) Token: 0x060018B9 RID: 6329 RVA: 0x0003500C File Offset: 0x0003320C
38 private int BlockSize
39 {
40 get
41 {
42 /*
43An exception occurred when decompiling this method (060018B9)
44
45ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Security.Cryptography.HMACSHA512::get_BlockSize()
46
47 ---> System.Exception: Basic block has to end with unconditional control flow.
48{
49 Block_0:
50 stloc:bool(var_0_06, ldfld:bool(HMACSHA512::m_useLegacyBlockSize, ldloc:HMACSHA512(this)))
51}
52
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62 }
63
64 // Token: 0x1700029F RID: 671
65 // (get) Token: 0x060018BA RID: 6330 RVA: 0x00035020 File Offset: 0x00033220
66 // (set) Token: 0x060018BB RID: 6331 RVA: 0x00035034 File Offset: 0x00033234
68 {
69 get
70 {
71 return this.m_useLegacyBlockSize;
72 }
73 set
74 {
75 byte[] keyValue = this.KeyValue;
77 base.InitializeKey(keyValue);
78 }
79 }
80
81 // Token: 0x04000CB9 RID: 3257
83 }
84}
class f__AnonymousType0<< Count > j__TPar
static byte[] GenerateRandom(int keySize)
Definition Utils.cs:47
static bool _ProduceLegacyHmacValues()
Definition Utils.cs:254