scripts
This commit is contained in:
@@ -0,0 +1,639 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines
|
||||
{
|
||||
// Token: 0x020016A3 RID: 5795
|
||||
[Token(Token = "0x20016A3")]
|
||||
[StructLayout(3)]
|
||||
public class AesEngine : IBlockCipher
|
||||
{
|
||||
// Token: 0x06009AE0 RID: 39648 RVA: 0x00229F5C File Offset: 0x0022815C
|
||||
[Token(Token = "0x6009AE0")]
|
||||
[Address(RVA = "0x7051F0", Offset = "0x703BF0", VA = "0x1807051F0")]
|
||||
private static uint Shift(uint r, int shift)
|
||||
{
|
||||
return r;
|
||||
}
|
||||
|
||||
// Token: 0x06009AE1 RID: 39649 RVA: 0x00229F6C File Offset: 0x0022816C
|
||||
[Token(Token = "0x6009AE1")]
|
||||
[Address(RVA = "0x20536B0", Offset = "0x20520B0", VA = "0x1820536B0")]
|
||||
private static uint FFmulX(uint x)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009AE1)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.AesEngine::FFmulX(System.UInt32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:int64(var_0_05, mul:uint32[exp:int64](ldloc:uint32(x), conv.u4:uint32(ldc.i4:int32[exp:uint32](27))))
|
||||
}
|
||||
|
||||
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: 0x06009AE2 RID: 39650 RVA: 0x00229F80 File Offset: 0x00228180
|
||||
[Token(Token = "0x6009AE2")]
|
||||
[Address(RVA = "0x2053680", Offset = "0x2052080", VA = "0x182053680")]
|
||||
private static uint FFmulX2(uint x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
// Token: 0x06009AE3 RID: 39651 RVA: 0x00229F90 File Offset: 0x00228190
|
||||
[Token(Token = "0x6009AE3")]
|
||||
[Address(RVA = "0x2054EB0", Offset = "0x20538B0", VA = "0x182054EB0")]
|
||||
private static uint Inv_Mcol(uint x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
// Token: 0x06009AE4 RID: 39652 RVA: 0x00229FA0 File Offset: 0x002281A0
|
||||
[Token(Token = "0x6009AE4")]
|
||||
[Address(RVA = "0x2055160", Offset = "0x2053B60", VA = "0x182055160")]
|
||||
private static uint SubWord(uint x)
|
||||
{
|
||||
int length = AesEngine.S.Length;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009AE5 RID: 39653 RVA: 0x00229FC0 File Offset: 0x002281C0
|
||||
[Token(Token = "0x6009AE5")]
|
||||
[Address(RVA = "0x20536D0", Offset = "0x20520D0", VA = "0x1820536D0")]
|
||||
private uint[][] GenerateWorkingKey(byte[] key, bool forEncryption)
|
||||
{
|
||||
uint[][] array;
|
||||
int i;
|
||||
for (;;)
|
||||
{
|
||||
if (key.Length == 7)
|
||||
{
|
||||
this.ROUNDS = key;
|
||||
array = new uint[key][];
|
||||
i = 0;
|
||||
uint[] array2 = new uint[4];
|
||||
if (array2 != 0)
|
||||
{
|
||||
}
|
||||
i++;
|
||||
array[0] = array2;
|
||||
while (i <= this.rcon)
|
||||
{
|
||||
}
|
||||
if (typeof(uint[]).TypeHandle == 0)
|
||||
{
|
||||
goto IL_3FB;
|
||||
}
|
||||
if (typeof(uint[]).TypeHandle != 0)
|
||||
{
|
||||
if (typeof(uint[]).TypeHandle == 0)
|
||||
{
|
||||
goto IL_1E5;
|
||||
}
|
||||
uint num;
|
||||
if (typeof(uint[]).TypeHandle != 0 && typeof(uint[]).TypeHandle == num)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
uint[] array3 = array[0];
|
||||
array3[0] = (uint)i;
|
||||
uint[] array4 = array[0];
|
||||
array4[0] = array3;
|
||||
uint[] array5 = array[0];
|
||||
array5[1] = array4;
|
||||
uint[] array6 = array[0];
|
||||
array6[1] = array5;
|
||||
uint[] array7 = array[1];
|
||||
array7[0] = array6;
|
||||
uint[] array8 = array[1];
|
||||
array8[0] = array7;
|
||||
uint[] array9 = array[1];
|
||||
array9[1] = array8;
|
||||
array[1][1] = array9;
|
||||
uint num2;
|
||||
num2 += num2;
|
||||
uint num3 = AesEngine.SubWord(array9);
|
||||
ulong num4;
|
||||
array[(int)num4][0] = i;
|
||||
array[(int)num4][0] = array3;
|
||||
array[(int)num4][1] = array4;
|
||||
array[(int)num4][1] = array5;
|
||||
uint num5 = AesEngine.SubWord(array5);
|
||||
ulong num6 = num4 + 1UL;
|
||||
array[(int)num6][0] = array6;
|
||||
array[(int)num6][0] = array7;
|
||||
array[(int)num6][1] = array8;
|
||||
array[(int)num6][1] = array9;
|
||||
uint num7 = AesEngine.SubWord(array9);
|
||||
array[14][0] = (uint)i;
|
||||
array[14][0] = array3;
|
||||
array[14][1] = array4;
|
||||
uint[] array10 = array[14];
|
||||
array10[1] = array5;
|
||||
IL_1E5:
|
||||
uint[] array11 = array[0];
|
||||
array11[0] = array10;
|
||||
uint[] array12 = array[0];
|
||||
array12[0] = array11;
|
||||
uint[] array13 = array[0];
|
||||
array13[1] = array12;
|
||||
uint[] array14 = array[0];
|
||||
array14[1] = array13;
|
||||
uint[] array15 = array[1];
|
||||
array15[0] = array14;
|
||||
array[1][0] = array15;
|
||||
uint num8 = AesEngine.SubWord(array15);
|
||||
array[1][1] = num8;
|
||||
array[1][1] = array11;
|
||||
array[2][0] = array12;
|
||||
array[2][0] = array13;
|
||||
array[2][1] = array14;
|
||||
array[2][1] = array15;
|
||||
ulong num9;
|
||||
num9 += num9;
|
||||
uint num10 = AesEngine.SubWord(array15);
|
||||
uint num11;
|
||||
array[(int)num11][0] = num8;
|
||||
array[(int)num11][0] = array11;
|
||||
array[(int)num11][1] = array12;
|
||||
array[(int)num11][1] = array13;
|
||||
uint num12 = num11 + 1U;
|
||||
array[(int)num12][0] = array14;
|
||||
array[(int)num12][0] = array15;
|
||||
num9 += num9;
|
||||
uint num13 = AesEngine.SubWord(array15);
|
||||
array[(int)num12][1] = num8;
|
||||
array[(int)num12][1] = array11;
|
||||
num11 += (uint)2;
|
||||
array[(int)num11][0] = array12;
|
||||
array[(int)num11][0] = array13;
|
||||
array[(int)num11][1] = array14;
|
||||
uint[] array16 = array[(int)num11];
|
||||
num11 += (uint)3;
|
||||
array16[1] = array15;
|
||||
uint num14 = AesEngine.SubWord(array15);
|
||||
array[12][0] = num8;
|
||||
array[12][0] = array11;
|
||||
array[12][1] = array12;
|
||||
uint[] array17 = array[12];
|
||||
array17[1] = array13;
|
||||
IL_3FB:
|
||||
uint[] array18 = array[0];
|
||||
array18[0] = array17;
|
||||
uint[] array19 = array[0];
|
||||
array19[0] = array18;
|
||||
uint[] array20 = array[0];
|
||||
array20[1] = array19;
|
||||
array[0][1] = array20;
|
||||
uint num15 = AesEngine.SubWord(array20);
|
||||
byte[] array21 = AesEngine.rcon;
|
||||
uint num17;
|
||||
uint num16 = num17 - 1U;
|
||||
array[(int)num17][0] = array17;
|
||||
array[(int)num17][0] = array18;
|
||||
array[(int)num17][1] = array19;
|
||||
uint[] array22 = array[(int)num17];
|
||||
num17 += (uint)1;
|
||||
array22[1] = array20;
|
||||
while (num17 <= (uint)10)
|
||||
{
|
||||
}
|
||||
int num18 = 0;
|
||||
uint[] array23 = array[(int)num17];
|
||||
uint num19 = AesEngine.Inv_Mcol(array23[num18]);
|
||||
num18++;
|
||||
array23[0] = num19;
|
||||
num17 += (uint)1;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x06009AE6 RID: 39654 RVA: 0x0022A4B4 File Offset: 0x002286B4
|
||||
[Token(Token = "0x6009AE6")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public AesEngine()
|
||||
{
|
||||
this.Reset();
|
||||
}
|
||||
|
||||
// Token: 0x06009AE7 RID: 39655 RVA: 0x0022A4C8 File Offset: 0x002286C8
|
||||
[Token(Token = "0x6009AE7")]
|
||||
[Address(RVA = "0x2054D00", Offset = "0x2053700", VA = "0x182054D00", Slot = "10")]
|
||||
public virtual void Init(bool forEncryption, ICipherParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009AE7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.AesEngine::Init(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_38:
|
||||
stloc:ArgumentException(var_5_49, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("invalid parameter passed to AES init - "), ldloc:string(var_4))))
|
||||
}
|
||||
|
||||
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: 0x170018B3 RID: 6323
|
||||
// (get) Token: 0x06009AE8 RID: 39656 RVA: 0x0022A520 File Offset: 0x00228720
|
||||
[Token(Token = "0x170018B3")]
|
||||
public virtual string AlgorithmName
|
||||
{
|
||||
[Token(Token = "0x6009AE8")]
|
||||
[Address(RVA = "0x2055430", Offset = "0x2053E30", VA = "0x182055430", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return "AES";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018B4 RID: 6324
|
||||
// (get) Token: 0x06009AE9 RID: 39657 RVA: 0x0022A534 File Offset: 0x00228734
|
||||
[Token(Token = "0x170018B4")]
|
||||
public virtual bool IsPartialBlockOkay
|
||||
{
|
||||
[Token(Token = "0x6009AE9")]
|
||||
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "12")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009AEA RID: 39658 RVA: 0x0022A544 File Offset: 0x00228744
|
||||
[Token(Token = "0x6009AEA")]
|
||||
[Address(RVA = "0x11B1BB0", Offset = "0x11B05B0", VA = "0x1811B1BB0", Slot = "13")]
|
||||
public virtual int GetBlockSize()
|
||||
{
|
||||
return 16;
|
||||
}
|
||||
|
||||
// Token: 0x06009AEB RID: 39659 RVA: 0x0022A554 File Offset: 0x00228754
|
||||
[Token(Token = "0x6009AEB")]
|
||||
[Address(RVA = "0x2054FE0", Offset = "0x20539E0", VA = "0x182054FE0", Slot = "14")]
|
||||
public virtual int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009AEB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.AesEngine::ProcessBlock(System.Byte[],System.Int32,System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5D:
|
||||
stloc:InvalidOperationException(var_7_67, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("AES engine not initialised")))
|
||||
}
|
||||
|
||||
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: 0x06009AEC RID: 39660 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009AEC")]
|
||||
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "15")]
|
||||
public virtual void Reset()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06009AED RID: 39661 RVA: 0x0022A5CC File Offset: 0x002287CC
|
||||
[Token(Token = "0x6009AED")]
|
||||
[Address(RVA = "0x2055280", Offset = "0x2053C80", VA = "0x182055280")]
|
||||
private void UnPackBlock(byte[] bytes, int off)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009AEE RID: 39662 RVA: 0x0022A5DC File Offset: 0x002287DC
|
||||
[Token(Token = "0x6009AEE")]
|
||||
[Address(RVA = "0x2054F70", Offset = "0x2053970", VA = "0x182054F70")]
|
||||
private void PackBlock(byte[] bytes, int off)
|
||||
{
|
||||
Ed25519.Encode32(this.C0, bytes, off);
|
||||
Ed25519.Encode32(this.C1, bytes, off);
|
||||
Ed25519.Encode32(this.C2, bytes, off);
|
||||
Ed25519.Encode32(this.C3, bytes, off);
|
||||
}
|
||||
|
||||
// Token: 0x06009AEF RID: 39663 RVA: 0x0022A620 File Offset: 0x00228820
|
||||
[Token(Token = "0x6009AEF")]
|
||||
[Address(RVA = "0x2052360", Offset = "0x2050D60", VA = "0x182052360")]
|
||||
private void EncryptBlock(uint[][] KW)
|
||||
{
|
||||
int length = KW.Length;
|
||||
uint[] array = KW[0];
|
||||
int length2 = array.Length;
|
||||
uint num = array[0];
|
||||
uint num2 = array[0];
|
||||
uint num3 = array[1];
|
||||
uint num4 = array[1];
|
||||
if (array > (uint)1)
|
||||
{
|
||||
uint[] t = AesEngine.T0;
|
||||
int length3 = t.Length;
|
||||
num2 = num4;
|
||||
uint[] array2;
|
||||
int length4 = array2.Length;
|
||||
uint num5 = t[(int)num2];
|
||||
num2 = num5;
|
||||
uint num6 = t[(int)num2];
|
||||
num2 = num6;
|
||||
num = num2;
|
||||
num2 = num3;
|
||||
num6 = num2;
|
||||
num2 = num4;
|
||||
num5 = num2;
|
||||
num2 = num;
|
||||
uint num7 = t[(int)num2];
|
||||
uint num8 = t[(int)num5];
|
||||
uint num9 = t[(int)num6];
|
||||
num = num3;
|
||||
num2 = num4;
|
||||
num9 = num2;
|
||||
num2 = num;
|
||||
num8 = num2;
|
||||
uint num10 = t[(int)num2];
|
||||
uint num11 = t[(int)num8];
|
||||
uint num12 = t[(int)num9];
|
||||
num2 = num12;
|
||||
num12 = num;
|
||||
num11 = num2;
|
||||
uint num13 = t[(int)num3];
|
||||
num = num13;
|
||||
uint num14 = t[(int)num11];
|
||||
uint num15 = t[(int)num12];
|
||||
uint num16;
|
||||
num16 += (uint)1;
|
||||
num15 = num7;
|
||||
num7 = num10;
|
||||
num14 = num7;
|
||||
uint num17 = t[(int)num14];
|
||||
uint num18 = t[(int)num15];
|
||||
num7 = num18;
|
||||
num3 = num7;
|
||||
num7 = num10;
|
||||
num18 = num7;
|
||||
num7 = num;
|
||||
num17 = num7;
|
||||
uint num19 = t[(int)num17];
|
||||
uint num20 = t[(int)num18];
|
||||
num7 = num;
|
||||
num20 = num7;
|
||||
num19 = num7;
|
||||
uint num21 = t[(int)num19];
|
||||
num7 = t[(int)num20];
|
||||
}
|
||||
uint[] t2 = AesEngine.T0;
|
||||
int length5 = t2.Length;
|
||||
num = num2;
|
||||
uint num22 = t2[(int)num];
|
||||
num2 = num3;
|
||||
num = num2;
|
||||
num2 = num4;
|
||||
uint num23 = t2[(int)num2];
|
||||
uint[] array3;
|
||||
int length6 = array3.Length;
|
||||
num2 = num;
|
||||
uint num24 = t2[(int)num2];
|
||||
num24 = num3;
|
||||
uint num25 = t2[(int)num24];
|
||||
num25 = num2;
|
||||
uint num26 = t2[(int)num25];
|
||||
uint num27 = t2[(int)num3];
|
||||
uint num28;
|
||||
num28 += (uint)1;
|
||||
int length7 = AesEngine.S.Length;
|
||||
int length8 = AesEngine.S.Length;
|
||||
int length9 = AesEngine.S.Length;
|
||||
byte[] array4 = AesEngine.S;
|
||||
}
|
||||
|
||||
// Token: 0x06009AF0 RID: 39664 RVA: 0x0022A8F8 File Offset: 0x00228AF8
|
||||
[Token(Token = "0x6009AF0")]
|
||||
[Address(RVA = "0x2051050", Offset = "0x204FA50", VA = "0x182051050")]
|
||||
private void DecryptBlock(uint[][] KW)
|
||||
{
|
||||
int length = KW.Length;
|
||||
uint[] array;
|
||||
int length2 = array.Length;
|
||||
uint num = array[0];
|
||||
uint num2 = array[1];
|
||||
uint num3 = array[1];
|
||||
if (array > (ulong)1L)
|
||||
{
|
||||
uint[] array2 = KW[array];
|
||||
uint[] tinv = AesEngine.Tinv0;
|
||||
int length3 = tinv.Length;
|
||||
num3 = num2;
|
||||
int length4 = array2.Length;
|
||||
uint num4 = tinv[(int)num3];
|
||||
uint num5 = tinv[(int)num3];
|
||||
num3 = num5;
|
||||
uint num6 = tinv[(int)num3];
|
||||
num3 = num;
|
||||
num6 = num3;
|
||||
num5 = num3;
|
||||
uint num7 = tinv[(int)num5];
|
||||
uint num8 = tinv[(int)num6];
|
||||
num3 = num8;
|
||||
num = num2;
|
||||
num8 = num3;
|
||||
num3 = num;
|
||||
num7 = num3;
|
||||
uint num9 = tinv[(int)num7];
|
||||
uint num10 = tinv[(int)num8];
|
||||
num3 = num10;
|
||||
num10 = num2;
|
||||
num = tinv[(int)num];
|
||||
uint num11 = tinv[(int)num9];
|
||||
uint num12 = tinv[(int)num10];
|
||||
num2 = num4;
|
||||
num12 = num;
|
||||
num11 = num;
|
||||
uint num13 = tinv[(int)num11];
|
||||
uint num14 = tinv[(int)num12];
|
||||
num = num4;
|
||||
num14 = num;
|
||||
num13 = num;
|
||||
uint num15 = tinv[(int)num];
|
||||
uint num16 = tinv[(int)num13];
|
||||
uint num17 = tinv[(int)num14];
|
||||
num = num17;
|
||||
num16 = num;
|
||||
num = num4;
|
||||
num17 = num;
|
||||
num = tinv[(int)num16];
|
||||
num = tinv[(int)num17];
|
||||
}
|
||||
uint[] array3 = KW[1];
|
||||
uint[] tinv2 = AesEngine.Tinv0;
|
||||
int length5 = tinv2.Length;
|
||||
num = num3;
|
||||
uint num18 = tinv2[(int)num];
|
||||
num3 = num2;
|
||||
num = num3;
|
||||
uint num19 = tinv2[(int)num3];
|
||||
int length6 = array3.Length;
|
||||
num3 = num;
|
||||
num19 = num3;
|
||||
uint num20 = tinv2[(int)num19];
|
||||
num3 = num2;
|
||||
uint num21 = tinv2[(int)num3];
|
||||
num3 = num20;
|
||||
num21 = num2;
|
||||
uint num22 = tinv2[(int)num21];
|
||||
num22 = num3;
|
||||
uint num23 = tinv2[(int)num22];
|
||||
num20 = num23;
|
||||
num22 = num2;
|
||||
uint num24 = tinv2[(int)num22];
|
||||
uint num25 = tinv2[(int)num22];
|
||||
uint num26 = tinv2[(int)num];
|
||||
int length7 = AesEngine.Si.Length;
|
||||
byte[] si = AesEngine.Si;
|
||||
num23 = num20;
|
||||
int length8 = AesEngine.Si.Length;
|
||||
byte b = AesEngine.Si[(int)num23];
|
||||
}
|
||||
|
||||
// Token: 0x06009AF1 RID: 39665 RVA: 0x0022ABA8 File Offset: 0x00228DA8
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x6009AF1")]
|
||||
[Address(RVA = "0x20552F0", Offset = "0x2053CF0", VA = "0x1820552F0")]
|
||||
static AesEngine()
|
||||
{
|
||||
byte[] array = new byte[256];
|
||||
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.8F22C9ECE1331718CBD268A9BBFD2F5E451441E3).FieldHandle);
|
||||
AesEngine.S = array;
|
||||
byte[] array2 = new byte[256];
|
||||
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.0C4110BC17D746F018F47B49E0EB0D6590F69939).FieldHandle);
|
||||
AesEngine.Si = array2;
|
||||
byte[] array3 = new byte[30];
|
||||
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.B8DB0CB599EDD82A386D1A154FB3EB9235513DAD).FieldHandle);
|
||||
AesEngine.rcon = array3;
|
||||
uint[] array4 = new uint[256];
|
||||
RuntimeHelpers.InitializeArray(array4, fieldof(<PrivateImplementationDetails>.B68637EF60D499620B99E336C59E4865FFC4C5D7).FieldHandle);
|
||||
AesEngine.T0 = array4;
|
||||
uint[] array5 = new uint[256];
|
||||
RuntimeHelpers.InitializeArray(array5, fieldof(<PrivateImplementationDetails>.1AFB455399A50580CF1039188ABA6BE82F309543).FieldHandle);
|
||||
AesEngine.Tinv0 = array5;
|
||||
}
|
||||
|
||||
// Token: 0x04006585 RID: 25989
|
||||
[Token(Token = "0x4006585")]
|
||||
private static readonly byte[] S;
|
||||
|
||||
// Token: 0x04006586 RID: 25990
|
||||
[Token(Token = "0x4006586")]
|
||||
private static readonly byte[] Si;
|
||||
|
||||
// Token: 0x04006587 RID: 25991
|
||||
[Token(Token = "0x4006587")]
|
||||
private static readonly byte[] rcon;
|
||||
|
||||
// Token: 0x04006588 RID: 25992
|
||||
[Token(Token = "0x4006588")]
|
||||
private static readonly uint[] T0;
|
||||
|
||||
// Token: 0x04006589 RID: 25993
|
||||
[Token(Token = "0x4006589")]
|
||||
private static readonly uint[] Tinv0;
|
||||
|
||||
// Token: 0x0400658A RID: 25994
|
||||
[Token(Token = "0x400658A")]
|
||||
private const uint m1 = 2155905152U;
|
||||
|
||||
// Token: 0x0400658B RID: 25995
|
||||
[Token(Token = "0x400658B")]
|
||||
private const uint m2 = 2139062143U;
|
||||
|
||||
// Token: 0x0400658C RID: 25996
|
||||
[Token(Token = "0x400658C")]
|
||||
private const uint m3 = 27U;
|
||||
|
||||
// Token: 0x0400658D RID: 25997
|
||||
[Token(Token = "0x400658D")]
|
||||
private const uint m4 = 3233857728U;
|
||||
|
||||
// Token: 0x0400658E RID: 25998
|
||||
[Token(Token = "0x400658E")]
|
||||
private const uint m5 = 1061109567U;
|
||||
|
||||
// Token: 0x0400658F RID: 25999
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400658F")]
|
||||
private int ROUNDS;
|
||||
|
||||
// Token: 0x04006590 RID: 26000
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006590")]
|
||||
private uint[][] WorkingKey;
|
||||
|
||||
// Token: 0x04006591 RID: 26001
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006591")]
|
||||
private uint C0;
|
||||
|
||||
// Token: 0x04006592 RID: 26002
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4006592")]
|
||||
private uint C1;
|
||||
|
||||
// Token: 0x04006593 RID: 26003
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006593")]
|
||||
private uint C2;
|
||||
|
||||
// Token: 0x04006594 RID: 26004
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4006594")]
|
||||
private uint C3;
|
||||
|
||||
// Token: 0x04006595 RID: 26005
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006595")]
|
||||
private bool forEncryption;
|
||||
|
||||
// Token: 0x04006596 RID: 26006
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006596")]
|
||||
private byte[] s;
|
||||
|
||||
// Token: 0x04006597 RID: 26007
|
||||
[Token(Token = "0x4006597")]
|
||||
private const int BLOCK_SIZE = 16;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user