Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Crypto/Engines/Dstu7624Engine.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

868 lines
48 KiB
C#

using System;
using System.Runtime.CompilerServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines
{
// Token: 0x02001D6F RID: 7535
[Token(Token = "0x2001D6F")]
public class Dstu7624Engine : IBlockCipher
{
// Token: 0x0600BB40 RID: 47936 RVA: 0x00292528 File Offset: 0x00290728
[Token(Token = "0x600BB40")]
[Address(RVA = "0x27ED920", Offset = "0x27EC920", VA = "0x1827ED920")]
public Dstu7624Engine(int blockSizeBits)
{
/*
An exception occurred when decompiling this method (0600BB40)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::.ctor(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_26:
stloc:ArgumentException(var_2_30, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unsupported block length: only 128/256/512 are allowed")))
}
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: 0x0600BB41 RID: 47937 RVA: 0x00292568 File Offset: 0x00290768
[Token(Token = "0x600BB41")]
[Address(RVA = "0x27EA770", Offset = "0x27E9770", VA = "0x1827EA770", Slot = "10")]
public virtual void Init(bool forEncryption, ICipherParameters parameters)
{
/*
An exception occurred when decompiling this method (0600BB41)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::Init(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1A8:
stloc:ArgumentException(var_23_1B2, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Unsupported key length")))
}
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.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.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.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.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.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: 0x0600BB42 RID: 47938 RVA: 0x00292728 File Offset: 0x00290928
[Token(Token = "0x600BB42")]
[Address(RVA = "0x27ED2F0", Offset = "0x27EC2F0", VA = "0x1827ED2F0")]
private void WorkingKeyExpandKT(ulong[] workingKey, ulong[] tempKeys)
{
do
{
ulong[] array = new ulong[this.wordsInBlock];
ulong[] array2 = new ulong[this.wordsInBlock];
ulong[] array3 = new ulong[this.wordsInBlock];
this.internalState = array3;
int num = this.wordsInBlock;
num++;
int num2 = this.wordsInBlock;
if (num2 != this.wordsInKey)
{
int num3 = 0;
int num4 = 0;
Array.Copy(workingKey, num4, array, num3, num2);
}
int length = array.Length;
int num5 = 0;
int num6 = 0;
Array.Copy(workingKey, num6, array, num5, length);
int length2 = array2.Length;
int num7 = 0;
int num8 = 0;
Array.Copy(workingKey, num7, array2, num8, length2);
ulong[] array4 = this.internalState;
int num9 = 0;
int num10 = 0;
if (num10 < array4.Length)
{
num9++;
ulong[] array5 = this.internalState;
}
this.EncryptionRound();
ulong[] array6 = this.internalState;
int num11 = 0;
int num12 = 0;
if (num12 < array6.Length)
{
num11++;
if (this.internalState != 0)
{
continue;
}
}
this.EncryptionRound();
ulong[] array7 = this.internalState;
int num13 = 0;
int num14 = 0;
if (num14 >= array7.Length)
{
break;
}
num13++;
}
while (this.internalState != 0);
this.EncryptionRound();
int num15 = this.wordsInBlock;
int num16 = 0;
ulong[] array8 = this.internalState;
int num17 = 0;
Array.Copy(array8, num17, tempKeys, num16, num15);
}
// Token: 0x0600BB43 RID: 47939 RVA: 0x00292898 File Offset: 0x00290A98
[Token(Token = "0x600BB43")]
[Address(RVA = "0x27ECD10", Offset = "0x27EBD10", VA = "0x1827ECD10")]
private void WorkingKeyExpandEven(ulong[] workingKey, ulong[] tempKey)
{
ulong[] array;
ulong[] array2;
int num2;
ulong num6;
for (;;)
{
array = new ulong[this.wordsInKey];
array2 = new ulong[this.wordsInBlock];
int num = this.wordsInKey;
num2 = 0;
int num3 = 0;
int num4 = 0;
Array.Copy(workingKey, num4, array, num3, num);
if (this.wordsInBlock > 0)
{
ulong num5 = tempKey[num2];
num2++;
num5 += num6;
array2[0] = num5;
if (this.wordsInBlock > 0)
{
ulong[] array3 = this.internalState;
ulong num7 = array2[num2];
num2++;
array3[0] = num7;
}
this.EncryptionRound();
if (this.T1 > num2)
{
ulong[] array4 = this.internalState;
num2++;
}
this.EncryptionRound();
int num8;
if (this.wordsInBlock > 0)
{
ulong[] array5 = this.internalState;
num2++;
num8 = this.wordsInBlock;
}
ulong[][] array6 = this.roundKeys;
int num9 = 0;
int num10 = 0;
ulong[] array7 = array6[num2];
Array.Copy(this.internalState, num10, array7, num9, num8);
if (this.T2 == num2)
{
return;
}
int num11 = this.wordsInBlock;
if (this.wordsInKey == num11)
{
goto IL_1DE;
}
num2 += 2;
num6 += num6;
if (num11 > 0)
{
break;
}
}
}
ulong num12 = tempKey[num2];
num2++;
num12 += num6;
array2[0] = num12;
if (this.wordsInBlock > 0)
{
ulong[] array8 = this.internalState;
num2++;
ulong num13 = array[(int)num12];
array8[0] = num13;
int num14 = this.wordsInBlock;
}
this.EncryptionRound();
if (this.T1 > num2)
{
ulong[] array9 = this.internalState;
num2++;
}
this.EncryptionRound();
int num15;
if (this.wordsInBlock > 0)
{
ulong[] array10 = this.internalState;
num2++;
num15 = this.wordsInBlock;
}
ulong[][] array11 = this.roundKeys;
int num16 = 0;
int num17 = 0;
ulong[] array12 = array11[num2];
Array.Copy(this.internalState, num17, array12, num16, num15);
if (this.T2 == num2)
{
return;
}
IL_1DE:
num2 += 2;
num6 += num6;
ulong num18 = array[0];
int length = array.Length;
uint num19;
ulong num21;
if (num19 < (uint)length)
{
uint num20 = num19 - 1U;
num21 = array[(int)num19];
num19 += (uint)1;
array[0] = num21;
}
ulong num22 = num21 - 1UL;
array[0] = num18;
}
// Token: 0x0600BB44 RID: 47940 RVA: 0x00292ADC File Offset: 0x00290CDC
[Token(Token = "0x600BB44")]
[Address(RVA = "0x27ED610", Offset = "0x27EC610", VA = "0x1827ED610")]
private void WorkingKeyExpandOdd()
{
uint num;
if (this.T2 > num)
{
ulong[][] array = this.roundKeys;
int length = array.Length;
uint num2 = num - 1U;
ulong[] array2 = array[(int)num];
ulong[] array3 = array[(int)num2];
this.RotateLeft(array3, array2);
num += (uint)2;
}
}
// Token: 0x0600BB45 RID: 47941 RVA: 0x00292B2C File Offset: 0x00290D2C
[Token(Token = "0x600BB45")]
[Address(RVA = "0x27EBAA0", Offset = "0x27EAAA0", VA = "0x1827EBAA0", Slot = "11")]
public virtual int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)
{
/*
An exception occurred when decompiling this method (0600BB45)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::ProcessBlock(System.Byte[],System.Int32,System.Byte[],System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12B:
stloc:InvalidOperationException(var_21_135, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Dstu7624Engine 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.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: 0x0600BB46 RID: 47942 RVA: 0x00292C70 File Offset: 0x00290E70
[Token(Token = "0x600BB46")]
[Address(RVA = "0x27EA670", Offset = "0x27E9670", VA = "0x1827EA670")]
private void EncryptionRound()
{
this.SubBytes();
this.ShiftRows();
int num = 0;
if (this.T1 > num)
{
ulong[] array = this.internalState;
ulong num2 = Dstu7624Engine.MixColumn(array[num]);
num++;
array[0] = num2;
}
}
// Token: 0x0600BB47 RID: 47943 RVA: 0x00292CBC File Offset: 0x00290EBC
[Token(Token = "0x600BB47")]
[Address(RVA = "0x27E9F20", Offset = "0x27E8F20", VA = "0x1827E9F20")]
private void DecryptionRound()
{
int num = 0;
if (this.T1 > num)
{
ulong[] array = this.internalState;
ulong num3;
ulong num2 = Dstu7624Engine.MixColumnInv(num3);
num++;
}
this.InvShiftRows();
this.InvSubBytes();
}
// Token: 0x0600BB48 RID: 47944 RVA: 0x00292CF8 File Offset: 0x00290EF8
[Token(Token = "0x600BB48")]
[Address(RVA = "0x27E98E0", Offset = "0x27E88E0", VA = "0x1827E98E0")]
private void DecryptBlock_128(byte[] input, int inOff, byte[] output, int outOff)
{
ulong num = Pack.LE_To_UInt64(input, inOff);
ulong num2 = Pack.LE_To_UInt64(input, inOff);
ulong[][] array = this.roundKeys;
int num3 = this.roundsAmount;
int length = array[num3].Length;
ulong num4 = Dstu7624Engine.MixColumnInv(num);
num = num2;
ulong num5 = Dstu7624Engine.MixColumnInv(num);
int length2 = Dstu7624Engine.T0.Length;
int length3 = Dstu7624Engine.T1.Length;
int length4 = Dstu7624Engine.T2.Length;
byte[] t = Dstu7624Engine.T3;
int length5 = t.Length;
if (num4 != (ulong)t.Length)
{
}
byte b;
byte b2;
b -= b2;
b2 = b;
byte b3;
b2 = b3;
}
// Token: 0x0600BB49 RID: 47945 RVA: 0x00292DB8 File Offset: 0x00290FB8
[Token(Token = "0x600BB49")]
[Address(RVA = "0x27EA020", Offset = "0x27E9020", VA = "0x1827EA020")]
private void EncryptBlock_128(byte[] input, int inOff, byte[] output, int outOff)
{
ulong num = Pack.LE_To_UInt64(input, inOff);
ulong num2 = Pack.LE_To_UInt64(input, inOff);
int length = this.roundKeys[0].Length;
int length2 = Dstu7624Engine.S0.Length;
int length3 = Dstu7624Engine.S1.Length;
int length4 = Dstu7624Engine.S2.Length;
int length5 = Dstu7624Engine.S3.Length;
byte b;
num = Dstu7624Engine.MixColumn((ulong)b);
byte b2;
b = b2;
ulong num3 = Dstu7624Engine.MixColumn((ulong)b);
ulong num4;
num4 += (ulong)1L;
if (num4 != num3)
{
}
b = (byte)((ulong)b + num);
}
// Token: 0x0600BB4A RID: 47946 RVA: 0x00292E50 File Offset: 0x00291050
[Token(Token = "0x600BB4A")]
[Address(RVA = "0x27EC960", Offset = "0x27EB960", VA = "0x1827EC960")]
private void SubBytes()
{
int num = 0;
if (this.T1 > num)
{
ulong[] array = this.internalState;
int length = Dstu7624Engine.S0.Length;
int length2 = Dstu7624Engine.S1.Length;
int length3 = Dstu7624Engine.S2.Length;
int length4 = Dstu7624Engine.S3.Length;
ulong[] array2 = this.internalState;
num++;
byte b;
num.m_value = (int)b;
}
}
// Token: 0x0600BB4B RID: 47947 RVA: 0x00292EB8 File Offset: 0x002910B8
[Token(Token = "0x600BB4B")]
[Address(RVA = "0x27EB200", Offset = "0x27EA200", VA = "0x1827EB200")]
private void InvSubBytes()
{
int num = 0;
if (this.T1 > num)
{
ulong[] array = this.internalState;
int length = Dstu7624Engine.T0.Length;
int length2 = Dstu7624Engine.T1.Length;
int length3 = Dstu7624Engine.T2.Length;
int length4 = Dstu7624Engine.T3.Length;
ulong[] array2 = this.internalState;
num++;
byte b;
num.m_value = (int)b;
}
}
// Token: 0x0600BB4C RID: 47948 RVA: 0x00292F20 File Offset: 0x00291120
[Token(Token = "0x600BB4C")]
[Address(RVA = "0x27EC2D0", Offset = "0x27EB2D0", VA = "0x1827EC2D0")]
private void ShiftRows()
{
/*
An exception occurred when decompiling this method (0600BB4C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::ShiftRows()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_145:
stloc:InvalidOperationException(var_14_14F, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("unsupported block length: only 128/256/512 are allowed")))
}
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: 0x0600BB4D RID: 47949 RVA: 0x00293080 File Offset: 0x00291280
[Token(Token = "0x600BB4D")]
[Address(RVA = "0x27EAB80", Offset = "0x27E9B80", VA = "0x1827EAB80")]
private void InvShiftRows()
{
/*
An exception occurred when decompiling this method (0600BB4D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::InvShiftRows()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_161:
stloc:InvalidOperationException(var_18_16B, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("unsupported block length: only 128/256/512 are allowed")))
}
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: 0x0600BB4E RID: 47950 RVA: 0x002931FC File Offset: 0x002913FC
[Token(Token = "0x600BB4E")]
[Address(RVA = "0x27E9850", Offset = "0x27E8850", VA = "0x1827E9850")]
private void AddRoundKey(int round)
{
ulong[][] array = this.roundKeys;
int num = 0;
if (this.T1 > num)
{
ulong[] array2 = array[round];
ulong[] array3 = this.internalState;
num++;
}
}
// Token: 0x0600BB4F RID: 47951 RVA: 0x00293234 File Offset: 0x00291434
[Token(Token = "0x600BB4F")]
[Address(RVA = "0x27ECC80", Offset = "0x27EBC80", VA = "0x1827ECC80")]
private void SubRoundKey(int round)
{
ulong[][] array = this.roundKeys;
int num = 0;
if (this.T1 > num)
{
ulong[] array2 = array[round];
ulong[] array3 = this.internalState;
num++;
}
}
// Token: 0x0600BB50 RID: 47952 RVA: 0x0029326C File Offset: 0x0029146C
[Token(Token = "0x600BB50")]
[Address(RVA = "0x27ED6A0", Offset = "0x27EC6A0", VA = "0x1827ED6A0")]
private void XorRoundKey(int round)
{
ulong[][] array = this.roundKeys;
int num = 0;
if (this.T1 > num)
{
ulong[] array2 = array[round];
ulong[] array3 = this.internalState;
num++;
}
}
// Token: 0x0600BB51 RID: 47953 RVA: 0x002932A4 File Offset: 0x002914A4
[Token(Token = "0x600BB51")]
[Address(RVA = "0x27EB730", Offset = "0x27EA730", VA = "0x1827EB730")]
private static ulong MixColumn(ulong c)
{
return c;
}
// Token: 0x0600BB52 RID: 47954 RVA: 0x002932B4 File Offset: 0x002914B4
[Token(Token = "0x600BB52")]
[Address(RVA = "0x27EB940", Offset = "0x27EA940", VA = "0x1827EB940")]
private void MixColumns()
{
int num = 0;
if (this.T1 > num)
{
ulong[] array = this.internalState;
ulong num2 = Dstu7624Engine.MixColumn(array[num]);
num++;
array[0] = num2;
}
}
// Token: 0x0600BB53 RID: 47955 RVA: 0x002932F4 File Offset: 0x002914F4
[Token(Token = "0x600BB53")]
[Address(RVA = "0x27EB520", Offset = "0x27EA520", VA = "0x1827EB520")]
private static ulong MixColumnInv(ulong c)
{
/*
An exception occurred when decompiling this method (0600BB53)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::MixColumnInv(System.UInt64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int64(var_0_06, mul:uint64[exp:int64](ldloc:uint64(c), conv.u8:uint64(ldc.i8:int64[exp:uint64](29))))
stloc:int64(var_0_0A, add:int64(ldloc:int64(var_0_06), ldloc:int64(var_0_06)))
stloc:int64(var_1_11, mul:int64(ldloc:int64(var_0_0A), conv.u8:uint64[exp:int64](ldc.i8:int64[exp:uint64](29))))
stloc:int64(var_1_15, add:int64(ldloc:int64(var_1_11), ldloc:int64(var_1_11)))
stloc:int64(var_2_1C, mul:uint64[exp:int64](ldloc:uint64(c), conv.u8:uint64(ldc.i8:int64[exp:uint64](29))))
}
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: 0x0600BB54 RID: 47956 RVA: 0x00293320 File Offset: 0x00291520
[Token(Token = "0x600BB54")]
[Address(RVA = "0x27EB860", Offset = "0x27EA860", VA = "0x1827EB860")]
private void MixColumnsInv()
{
int num = 0;
if (this.T1 > num)
{
ulong[] array = this.internalState;
ulong num2 = Dstu7624Engine.MixColumnInv(array[num]);
num++;
array[0] = num2;
}
}
// Token: 0x0600BB55 RID: 47957 RVA: 0x00293360 File Offset: 0x00291560
[Token(Token = "0x600BB55")]
[Address(RVA = "0x27EBA70", Offset = "0x27EAA70", VA = "0x1827EBA70")]
private static ulong MulX(ulong n)
{
/*
An exception occurred when decompiling this method (0600BB55)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::MulX(System.UInt64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int64(var_0_06, mul:uint64[exp:int64](ldloc:uint64(n), conv.u8:uint64(ldc.i8:int64[exp:uint64](29))))
}
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: 0x0600BB56 RID: 47958 RVA: 0x00293374 File Offset: 0x00291574
[Token(Token = "0x600BB56")]
[Address(RVA = "0x27EBA20", Offset = "0x27EAA20", VA = "0x1827EBA20")]
private static ulong MulX2(ulong n)
{
/*
An exception occurred when decompiling this method (0600BB56)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::MulX2(System.UInt64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int64(var_0_06, mul:uint64[exp:int64](ldloc:uint64(n), conv.u8:uint64(ldc.i8:int64[exp:uint64](29))))
}
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: 0x0600BB57 RID: 47959 RVA: 0x00293388 File Offset: 0x00291588
[Token(Token = "0x600BB57")]
[Address(RVA = "0x259EB00", Offset = "0x259DB00", VA = "0x18259EB00")]
private static ulong Rotate(int n, ulong x)
{
return x;
}
// Token: 0x0600BB58 RID: 47960 RVA: 0x00293398 File Offset: 0x00291598
[Token(Token = "0x600BB58")]
[Address(RVA = "0x27EBDE0", Offset = "0x27EADE0", VA = "0x1827EBDE0")]
private void RotateLeft(ulong[] x, ulong[] z)
{
/*
An exception occurred when decompiling this method (0600BB58)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines.Dstu7624Engine::RotateLeft(System.UInt64[],System.UInt64[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_140:
stloc:InvalidOperationException(var_17_14A, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("unsupported block length: only 128/256/512 are allowed")))
}
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: 0x17001D67 RID: 7527
// (get) Token: 0x0600BB59 RID: 47961 RVA: 0x002934F0 File Offset: 0x002916F0
[Token(Token = "0x17001D67")]
public virtual string AlgorithmName
{
[Token(Token = "0x600BB59")]
[Address(RVA = "0x27ED9D0", Offset = "0x27EC9D0", VA = "0x1827ED9D0", Slot = "12")]
get
{
return "DSTU7624";
}
}
// Token: 0x0600BB5A RID: 47962 RVA: 0x00293504 File Offset: 0x00291704
[Token(Token = "0x600BB5A")]
[Address(RVA = "0x27EA760", Offset = "0x27E9760", VA = "0x1827EA760", Slot = "13")]
public virtual int GetBlockSize()
{
return this.wordsInBlock;
}
// Token: 0x17001D68 RID: 7528
// (get) Token: 0x0600BB5B RID: 47963 RVA: 0x00293518 File Offset: 0x00291718
[Token(Token = "0x17001D68")]
public virtual bool IsPartialBlockOkay
{
[Token(Token = "0x600BB5B")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "14")]
get
{
}
}
// Token: 0x0600BB5C RID: 47964 RVA: 0x00293528 File Offset: 0x00291728
[Token(Token = "0x600BB5C")]
[Address(RVA = "0x27EBDB0", Offset = "0x27EADB0", VA = "0x1827EBDB0", Slot = "15")]
public virtual void Reset()
{
ulong[] array = this.internalState;
int length = array.Length;
int num = 0;
Array.Clear(array, num, length);
}
// Token: 0x0600BB5D RID: 47965 RVA: 0x00293554 File Offset: 0x00291754
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600BB5D")]
[Address(RVA = "0x27ED730", Offset = "0x27EC730", VA = "0x1827ED730")]
static Dstu7624Engine()
{
byte[] array = new byte[256];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.6F5D2C37DFCDB1E72B86BC606C0E717C70E188A4).FieldHandle);
Dstu7624Engine.S0 = array;
byte[] array2 = new byte[256];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.79039C5C22F863E8EAE0E08E1318F343680E50A8).FieldHandle);
Dstu7624Engine.S1 = array2;
byte[] array3 = new byte[256];
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.340B4B55E1DFD4BADC69CA57007FC1A4CDBA7943).FieldHandle);
Dstu7624Engine.S2 = array3;
byte[] array4 = new byte[256];
RuntimeHelpers.InitializeArray(array4, fieldof(<PrivateImplementationDetails>.5CFF612F2058DE2C287ECA5C6407ECC471F65576).FieldHandle);
Dstu7624Engine.S3 = array4;
byte[] array5 = new byte[256];
RuntimeHelpers.InitializeArray(array5, fieldof(<PrivateImplementationDetails>.C1C8DE48D8C0FA876F4ED0086BB93D7EAF61E4B2).FieldHandle);
Dstu7624Engine.T0 = array5;
byte[] array6 = new byte[256];
RuntimeHelpers.InitializeArray(array6, fieldof(<PrivateImplementationDetails>.9F198D04FF67738AE583484145F45103ECE550CC).FieldHandle);
Dstu7624Engine.T1 = array6;
byte[] array7 = new byte[256];
RuntimeHelpers.InitializeArray(array7, fieldof(<PrivateImplementationDetails>.C2443D9DBCD3810F90475C6F404BEDCFEF58661E).FieldHandle);
Dstu7624Engine.T2 = array7;
byte[] array8 = new byte[256];
RuntimeHelpers.InitializeArray(array8, fieldof(<PrivateImplementationDetails>.BD0C733AC85AB335526865FA6269790347865705).FieldHandle);
Dstu7624Engine.T3 = array8;
}
// Token: 0x04007613 RID: 30227
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007613")]
private ulong[] internalState;
// Token: 0x04007614 RID: 30228
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007614")]
private ulong[] workingKey;
// Token: 0x04007615 RID: 30229
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007615")]
private ulong[][] roundKeys;
// Token: 0x04007616 RID: 30230
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007616")]
private int wordsInBlock;
// Token: 0x04007617 RID: 30231
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4007617")]
private int wordsInKey;
// Token: 0x04007618 RID: 30232
[Token(Token = "0x4007618")]
private const int ROUNDS_128 = 10;
// Token: 0x04007619 RID: 30233
[Token(Token = "0x4007619")]
private const int ROUNDS_256 = 14;
// Token: 0x0400761A RID: 30234
[Token(Token = "0x400761A")]
private const int ROUNDS_512 = 18;
// Token: 0x0400761B RID: 30235
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400761B")]
private int roundsAmount;
// Token: 0x0400761C RID: 30236
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x400761C")]
private bool forEncryption;
// Token: 0x0400761D RID: 30237
[Token(Token = "0x400761D")]
private const ulong mdsMatrix = 290207332435296513UL;
// Token: 0x0400761E RID: 30238
[Token(Token = "0x400761E")]
private const ulong mdsInvMatrix = 14616231584692868525UL;
// Token: 0x0400761F RID: 30239
[Token(Token = "0x400761F")]
private static readonly byte[] S0;
// Token: 0x04007620 RID: 30240
[Token(Token = "0x4007620")]
private static readonly byte[] S1;
// Token: 0x04007621 RID: 30241
[Token(Token = "0x4007621")]
private static readonly byte[] S2;
// Token: 0x04007622 RID: 30242
[Token(Token = "0x4007622")]
private static readonly byte[] S3;
// Token: 0x04007623 RID: 30243
[Token(Token = "0x4007623")]
private static readonly byte[] T0;
// Token: 0x04007624 RID: 30244
[Token(Token = "0x4007624")]
private static readonly byte[] T1;
// Token: 0x04007625 RID: 30245
[Token(Token = "0x4007625")]
private static readonly byte[] T2;
// Token: 0x04007626 RID: 30246
[Token(Token = "0x4007626")]
private static readonly byte[] T3;
}
}