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
HMACSHA384.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020002DF RID: 735
7 [ComVisible(true)]
8 public class HMACSHA384 : HMAC
9 {
10 // Token: 0x060018B2 RID: 6322 RVA: 0x00034ECC File Offset: 0x000330CC
11 public HMACSHA384()
12 {
13 if (!true)
14 {
15 }
16 byte[] array = Utils.GenerateRandom(128);
17 }
18
19 // Token: 0x060018B3 RID: 6323 RVA: 0x00034EE8 File Offset: 0x000330E8
20 public HMACSHA384(byte[] key)
21 {
22 if (!true)
23 {
24 }
25 bool flag = Utils._ProduceLegacyHmacValues();
28 base..ctor();
29 this.m_hashName = "SHA384";
33 base.InitializeKey(key);
34 }
35
36 // Token: 0x1700029C RID: 668
37 // (get) Token: 0x060018B4 RID: 6324 RVA: 0x00034F44 File Offset: 0x00033144
38 private int BlockSize
39 {
40 get
41 {
42 /*
43An exception occurred when decompiling this method (060018B4)
44
45ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Security.Cryptography.HMACSHA384::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(HMACSHA384::m_useLegacyBlockSize, ldloc:HMACSHA384(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: 0x1700029D RID: 669
65 // (get) Token: 0x060018B5 RID: 6325 RVA: 0x00034F58 File Offset: 0x00033158
66 // (set) Token: 0x060018B6 RID: 6326 RVA: 0x00034F6C File Offset: 0x0003316C
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: 0x04000CB8 RID: 3256
83 }
84}
class f__AnonymousType0<< Count > j__TPar
static byte[] GenerateRandom(int keySize)
Definition Utils.cs:47
static bool _ProduceLegacyHmacValues()
Definition Utils.cs:254