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
SHA1Internal.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x02000318 RID: 792
6 internal class SHA1Internal
7 {
8 // Token: 0x06001AE0 RID: 6880 RVA: 0x0003A048 File Offset: 0x00038248
9 public SHA1Internal()
10 {
11 uint[] h = this._H;
12 }
13
14 // Token: 0x06001AE1 RID: 6881 RVA: 0x0003A064 File Offset: 0x00038264
15 public void HashCore(byte[] rgb, int ibStart, int cbSize)
16 {
18 if (processingBufferCount != 0)
19 {
23 return;
24 }
25 long num;
26 this.ProcessBlock(rgb, (uint)num);
27 if (cbSize != 0)
28 {
31 }
32 }
33
34 // Token: 0x06001AE2 RID: 6882 RVA: 0x0003A0D0 File Offset: 0x000382D0
35 public byte[] HashFinal()
36 {
37 /*
38An exception occurred when decompiling this method (06001AE2)
39
40ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Security.Cryptography.SHA1Internal::HashFinal()
41
42 ---> System.Exception: Basic block has to end with unconditional control flow.
43{
44 Block_0:
45 stloc:uint8[](var_1_09, ldfld:uint8[](SHA1Internal::_ProcessingBuffer, ldloc:SHA1Internal(this)))
46 stloc:int32(var_2_10, ldfld:int32(SHA1Internal::_ProcessingBufferCount, ldloc:SHA1Internal(this)))
47 stloc:int64(var_3_12, ldc.i4:int64(0))
48 call:void(SHA1Internal::ProcessFinalBlock, ldloc:SHA1Internal(this), ldloc:uint8[](var_1_09), ldloc:int64[exp:int32](var_3_12), ldloc:int32(var_2_10))
49 stloc:uint32[](var_5_25, ldfld:uint32[](SHA1Internal::_H, ldloc:SHA1Internal(this)))
50}
51
52 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
53 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
54 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
55 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
56 --- End of inner exception stack trace ---
57 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
58 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
59*/;
60 }
61
62 // Token: 0x06001AE3 RID: 6883 RVA: 0x0003A104 File Offset: 0x00038304
63 public void Initialize()
64 {
65 uint[] h = this._H;
66 }
67
68 // Token: 0x06001AE4 RID: 6884 RVA: 0x0003A118 File Offset: 0x00038318
69 private void ProcessBlock(byte[] inputBuffer, uint inputOffset)
70 {
71 uint[] h = this._H;
72 ulong num = this.count;
73 uint[] array = this.buff;
74 this.count = num;
77 }
78
79 // Token: 0x06001AE5 RID: 6885 RVA: 0x0003A15C File Offset: 0x0003835C
80 private static void InitialiseBuff(uint[] buff, byte[] input, uint inputOffset)
81 {
82 }
83
84 // Token: 0x06001AE6 RID: 6886 RVA: 0x0003A16C File Offset: 0x0003836C
85 private static void FillBuff(uint[] buff)
86 {
87 uint value = buff.m_value;
88 uint value2 = buff.m_value;
89 uint value3 = buff.m_value;
90 }
91
92 // Token: 0x06001AE7 RID: 6887 RVA: 0x0003A194 File Offset: 0x00038394
93 private void ProcessFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
94 {
95 ulong num = this.count;
97 }
98
99 // Token: 0x06001AE8 RID: 6888 RVA: 0x0003A1B8 File Offset: 0x000383B8
100 internal void AddLength(ulong length, byte[] buffer, int position)
101 {
102 }
103
104 // Token: 0x04000DAE RID: 3502
105 private const int BLOCK_SIZE_BYTES = 64;
106
107 // Token: 0x04000DAF RID: 3503
108 private uint[] _H;
109
110 // Token: 0x04000DB0 RID: 3504
111 private ulong count;
112
113 // Token: 0x04000DB1 RID: 3505
114 private byte[] _ProcessingBuffer;
115
116 // Token: 0x04000DB2 RID: 3506
118
119 // Token: 0x04000DB3 RID: 3507
120 private uint[] buff;
121 }
122}
class f__AnonymousType0<< Count > j__TPar
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
Definition Buffer.cs:60
void ProcessBlock(byte[] inputBuffer, uint inputOffset)
void AddLength(ulong length, byte[] buffer, int position)
void ProcessFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
static void InitialiseBuff(uint[] buff, byte[] input, uint inputOffset)
void HashCore(byte[] rgb, int ibStart, int cbSize)