459 lines
21 KiB
C#
459 lines
21 KiB
C#
using System;
|
|
using System.Runtime.Serialization.Formatters.Binary;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs
|
|
{
|
|
// Token: 0x02001C53 RID: 7251
|
|
[Token(Token = "0x2001C53")]
|
|
public class Poly1305 : IMac
|
|
{
|
|
// Token: 0x0600B587 RID: 46471 RVA: 0x0027AB60 File Offset: 0x00278D60
|
|
[Token(Token = "0x600B587")]
|
|
[Address(RVA = "0x1C2DD00", Offset = "0x1C2CB00", VA = "0x181C2DD00")]
|
|
public Poly1305()
|
|
{
|
|
byte[] array = new byte[1];
|
|
this.singleByte = array;
|
|
byte[] array2 = new byte[16];
|
|
this.currentBlock = array2;
|
|
base..ctor();
|
|
this.cipher = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600B588 RID: 46472 RVA: 0x0027AB9C File Offset: 0x00278D9C
|
|
[Token(Token = "0x600B588")]
|
|
[Address(RVA = "0x1C2DD70", Offset = "0x1C2CB70", VA = "0x181C2DD70")]
|
|
public Poly1305(IBlockCipher cipher)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B588)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs.Poly1305::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBlockCipher)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_38:
|
|
stloc:ArgumentException(var_2_42, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Poly1305 requires a 128 bit block cipher.")))
|
|
}
|
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
--- End of inner exception stack trace ---
|
|
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
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600B589 RID: 46473 RVA: 0x0027ABEC File Offset: 0x00278DEC
|
|
[Token(Token = "0x600B589")]
|
|
[Address(RVA = "0x1C2D400", Offset = "0x1C2C200", VA = "0x181C2D400", Slot = "4")]
|
|
public void Init(ICipherParameters parameters)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B589)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs.Poly1305::Init(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_4F:
|
|
stloc:ArgumentException(var_8_5E, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Poly1305 requires an IV when used with a block cipher."), ldstr:string("parameters")))
|
|
}
|
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
--- End of inner exception stack trace ---
|
|
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
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600B58A RID: 46474 RVA: 0x0027AC58 File Offset: 0x00278E58
|
|
[Token(Token = "0x600B58A")]
|
|
[Address(RVA = "0x1C2D950", Offset = "0x1C2C750", VA = "0x181C2D950")]
|
|
private void SetKey(byte[] key, byte[] nonce)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B58A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs.Poly1305::SetKey(System.Byte[],System.Byte[])
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_B2:
|
|
stloc:ArgumentException(var_6_BC, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Poly1305 key must be 256 bits.")))
|
|
}
|
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
--- End of inner exception stack trace ---
|
|
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
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x17001C94 RID: 7316
|
|
// (get) Token: 0x0600B58B RID: 46475 RVA: 0x0027AD24 File Offset: 0x00278F24
|
|
[Token(Token = "0x17001C94")]
|
|
public string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600B58B")]
|
|
[Address(RVA = "0x1C2DE40", Offset = "0x1C2CC40", VA = "0x181C2DE40", Slot = "5")]
|
|
get
|
|
{
|
|
if (this.cipher == 0)
|
|
{
|
|
return "Poly1305";
|
|
}
|
|
string text;
|
|
return text;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B58C RID: 46476 RVA: 0x0027AD44 File Offset: 0x00278F44
|
|
[Token(Token = "0x600B58C")]
|
|
[Address(RVA = "0x4B6B10", Offset = "0x4B5910", VA = "0x1804B6B10", Slot = "6")]
|
|
public int GetMacSize()
|
|
{
|
|
return 16;
|
|
}
|
|
|
|
// Token: 0x0600B58D RID: 46477 RVA: 0x0027AD54 File Offset: 0x00278F54
|
|
[Token(Token = "0x600B58D")]
|
|
[Address(RVA = "0x1C2DBF0", Offset = "0x1C2C9F0", VA = "0x181C2DBF0", Slot = "7")]
|
|
public void Update(byte input)
|
|
{
|
|
this.singleByte[0] = input;
|
|
byte[] array = this.singleByte;
|
|
int num = this.currentBlockOffset;
|
|
int num2 = 0;
|
|
if (num == 16)
|
|
{
|
|
this.ProcessBlock();
|
|
this.currentBlockOffset = num2;
|
|
}
|
|
uint num3;
|
|
num3 -= (uint)num2;
|
|
uint num4;
|
|
num4 -= (uint)num2;
|
|
int num5 = Math.Min((int)num4, (int)num3);
|
|
int num6 = this.currentBlockOffset;
|
|
byte[] array2 = this.currentBlock;
|
|
Array.Copy(array, num2, array2, num6, num5);
|
|
num2 += num5;
|
|
}
|
|
|
|
// Token: 0x0600B58E RID: 46478 RVA: 0x0027ADCC File Offset: 0x00278FCC
|
|
[Token(Token = "0x600B58E")]
|
|
[Address(RVA = "0x1C2D090", Offset = "0x1C2BE90", VA = "0x181C2D090", Slot = "8")]
|
|
public void BlockUpdate(byte[] input, int inOff, int len)
|
|
{
|
|
int num = 0;
|
|
if (len > 0)
|
|
{
|
|
if (this.currentBlockOffset == 16)
|
|
{
|
|
this.ProcessBlock();
|
|
this.currentBlockOffset = num;
|
|
}
|
|
uint num2;
|
|
num2 -= (uint)num;
|
|
int num3 = Math.Min(len, (int)num2);
|
|
int num4 = this.currentBlockOffset;
|
|
byte[] array = this.currentBlock;
|
|
Array.Copy(input, 0, array, num4, num3);
|
|
num += num3;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B58F RID: 46479 RVA: 0x0027AE20 File Offset: 0x00279020
|
|
[Token(Token = "0x600B58F")]
|
|
[Address(RVA = "0x1C2D620", Offset = "0x1C2C420", VA = "0x181C2D620")]
|
|
private void ProcessBlock()
|
|
{
|
|
if (this.currentBlockOffset < 16)
|
|
{
|
|
byte[] array = this.currentBlock;
|
|
int num = this.currentBlockOffset;
|
|
num++;
|
|
if (num < 16)
|
|
{
|
|
byte[] array2 = this.currentBlock;
|
|
num++;
|
|
}
|
|
}
|
|
byte[] array3 = this.currentBlock;
|
|
int num2 = 0;
|
|
int @int = SerializationHeaderRecord.GetInt32(array3, num2);
|
|
int int2 = SerializationHeaderRecord.GetInt32(this.currentBlock, 4);
|
|
int num3 = SerializationHeaderRecord.GetInt32(this.currentBlock, 8);
|
|
int int3 = SerializationHeaderRecord.GetInt32(this.currentBlock, 12);
|
|
uint num4 = this.h4;
|
|
num4 += (uint)int3;
|
|
if (this.currentBlockOffset == 16)
|
|
{
|
|
num4 += (uint)16777216;
|
|
}
|
|
uint num5 = this.r0;
|
|
uint num6 = this.s4;
|
|
uint num7 = this.s2;
|
|
uint num8 = this.s1;
|
|
uint num9 = this.s3;
|
|
uint num10 = this.r1;
|
|
uint num11 = num4 * num7;
|
|
uint num12 = num8 * num4;
|
|
int num13 = int3 * (int)num7;
|
|
num3 = int3;
|
|
num7 = num4;
|
|
num12 += (uint)num13;
|
|
num13 = @int;
|
|
int num14 = num13 * (int)num5;
|
|
uint num15 = num7 * num9;
|
|
num12 += (uint)num14;
|
|
num14 = num3;
|
|
int num16 = num14 * (int)num9;
|
|
num12 += (uint)num16;
|
|
num16 = int2;
|
|
int num17 = num16 * (int)num6;
|
|
num12 += (uint)num17;
|
|
num17 = int3;
|
|
int num18 = num17 * (int)num9;
|
|
num11 += (uint)num18;
|
|
num18 = @int;
|
|
int num19 = num18 * (int)num10;
|
|
num11 += (uint)num19;
|
|
num19 = int2;
|
|
int num20 = num19 * (int)num5;
|
|
num11 += (uint)num20;
|
|
num20 = num3;
|
|
int num21 = num20 * (int)num6;
|
|
num11 += (uint)num21;
|
|
num11 += num12;
|
|
int num22 = num3 * (int)num6;
|
|
num15 += (uint)num22;
|
|
num22 = @int;
|
|
int num23 = num22 * int3;
|
|
num15 += (uint)num23;
|
|
num23 = int2;
|
|
int num24 = num23 * (int)num10;
|
|
num15 += (uint)num24;
|
|
num24 = num3;
|
|
int num25 = num24 * (int)num5;
|
|
num15 += (uint)num25;
|
|
num15 += num11;
|
|
int num26 = num3 * (int)num5;
|
|
num11 = num4;
|
|
uint num27 = num11 * num6;
|
|
num26 += (int)num27;
|
|
int num28 = @int * (int)num9;
|
|
num26 += num28;
|
|
num28 = int2;
|
|
int num29 = num28 * int3;
|
|
num26 += num29;
|
|
num29 = num3;
|
|
int num30 = num29 * (int)num10;
|
|
num26 += num30;
|
|
num26 += (int)num15;
|
|
uint num31 = num4 * num5;
|
|
int num32 = num3 * (int)num10;
|
|
int num33 = int2 * (int)num9;
|
|
int num34 = num3 * int3;
|
|
uint num35 = num15 * (uint)@int;
|
|
num35 += (uint)num32;
|
|
num35 += num31;
|
|
num35 += (uint)num33;
|
|
num35 += (uint)num34;
|
|
num35 += (uint)num26;
|
|
num35 += num12;
|
|
num35 += num11;
|
|
}
|
|
|
|
// Token: 0x0600B590 RID: 46480 RVA: 0x0027B09C File Offset: 0x0027929C
|
|
[Token(Token = "0x600B590")]
|
|
[Address(RVA = "0x1C2D180", Offset = "0x1C2BF80", VA = "0x181C2D180", Slot = "9")]
|
|
public int DoFinal(byte[] output, int outOff)
|
|
{
|
|
uint num;
|
|
Check.DataLength(output, outOff, (int)num, "Output buffer is too short.");
|
|
if (this.currentBlockOffset > 0)
|
|
{
|
|
this.ProcessBlock();
|
|
}
|
|
uint num2 = this.h0;
|
|
num2 += (uint)outOff;
|
|
num2 += num2;
|
|
num2 += num2;
|
|
this.h0 = num2;
|
|
this.h1 = output;
|
|
this.h2 = output;
|
|
num2 += num2;
|
|
num2 += output;
|
|
return 16;
|
|
}
|
|
|
|
// Token: 0x0600B591 RID: 46481 RVA: 0x0027B0F8 File Offset: 0x002792F8
|
|
[Token(Token = "0x600B591")]
|
|
[Address(RVA = "0x1C2D940", Offset = "0x1C2C740", VA = "0x181C2D940", Slot = "10")]
|
|
public void Reset()
|
|
{
|
|
int num = 0;
|
|
this.currentBlockOffset = num;
|
|
this.h3 = (uint)num;
|
|
this.h1 = (uint)num;
|
|
}
|
|
|
|
// Token: 0x0600B592 RID: 46482 RVA: 0x0027B11C File Offset: 0x0027931C
|
|
[Token(Token = "0x600B592")]
|
|
[Address(RVA = "0x1C2DEA0", Offset = "0x1C2CCA0", VA = "0x181C2DEA0")]
|
|
private static ulong mul32x32_64(uint i1, uint i2)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B592)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs.Poly1305::mul32x32_64(System.UInt32,System.UInt32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:uint32(var_0_03, mul:uint32(ldloc:uint32(i1), ldloc:uint32(i1)))
|
|
}
|
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
--- End of inner exception stack trace ---
|
|
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
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x04007329 RID: 29481
|
|
[Token(Token = "0x4007329")]
|
|
private const int BlockSize = 16;
|
|
|
|
// Token: 0x0400732A RID: 29482
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400732A")]
|
|
private readonly IBlockCipher cipher;
|
|
|
|
// Token: 0x0400732B RID: 29483
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400732B")]
|
|
private readonly byte[] singleByte;
|
|
|
|
// Token: 0x0400732C RID: 29484
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400732C")]
|
|
private uint r0;
|
|
|
|
// Token: 0x0400732D RID: 29485
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x400732D")]
|
|
private uint r1;
|
|
|
|
// Token: 0x0400732E RID: 29486
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400732E")]
|
|
private uint r2;
|
|
|
|
// Token: 0x0400732F RID: 29487
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x400732F")]
|
|
private uint r3;
|
|
|
|
// Token: 0x04007330 RID: 29488
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007330")]
|
|
private uint r4;
|
|
|
|
// Token: 0x04007331 RID: 29489
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x4007331")]
|
|
private uint s1;
|
|
|
|
// Token: 0x04007332 RID: 29490
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4007332")]
|
|
private uint s2;
|
|
|
|
// Token: 0x04007333 RID: 29491
|
|
[FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x4007333")]
|
|
private uint s3;
|
|
|
|
// Token: 0x04007334 RID: 29492
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4007334")]
|
|
private uint s4;
|
|
|
|
// Token: 0x04007335 RID: 29493
|
|
[FieldOffset(Offset = "0x44")]
|
|
[Token(Token = "0x4007335")]
|
|
private uint k0;
|
|
|
|
// Token: 0x04007336 RID: 29494
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4007336")]
|
|
private uint k1;
|
|
|
|
// Token: 0x04007337 RID: 29495
|
|
[FieldOffset(Offset = "0x4C")]
|
|
[Token(Token = "0x4007337")]
|
|
private uint k2;
|
|
|
|
// Token: 0x04007338 RID: 29496
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4007338")]
|
|
private uint k3;
|
|
|
|
// Token: 0x04007339 RID: 29497
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4007339")]
|
|
private byte[] currentBlock;
|
|
|
|
// Token: 0x0400733A RID: 29498
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400733A")]
|
|
private int currentBlockOffset;
|
|
|
|
// Token: 0x0400733B RID: 29499
|
|
[FieldOffset(Offset = "0x64")]
|
|
[Token(Token = "0x400733B")]
|
|
private uint h0;
|
|
|
|
// Token: 0x0400733C RID: 29500
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x400733C")]
|
|
private uint h1;
|
|
|
|
// Token: 0x0400733D RID: 29501
|
|
[FieldOffset(Offset = "0x6C")]
|
|
[Token(Token = "0x400733D")]
|
|
private uint h2;
|
|
|
|
// Token: 0x0400733E RID: 29502
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400733E")]
|
|
private uint h3;
|
|
|
|
// Token: 0x0400733F RID: 29503
|
|
[FieldOffset(Offset = "0x74")]
|
|
[Token(Token = "0x400733F")]
|
|
private uint h4;
|
|
}
|
|
}
|