339 lines
19 KiB
C#
339 lines
19 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
|
|
{
|
|
// Token: 0x02001BA6 RID: 7078
|
|
[Token(Token = "0x2001BA6")]
|
|
public class BufferedBlockCipher : BufferedCipherBase
|
|
{
|
|
// Token: 0x0600AE29 RID: 44585 RVA: 0x0025D580 File Offset: 0x0025B780
|
|
[Token(Token = "0x600AE29")]
|
|
[Address(RVA = "0x259BB20", Offset = "0x259AB20", VA = "0x18259BB20")]
|
|
protected BufferedBlockCipher()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600AE2A RID: 44586 RVA: 0x0025D594 File Offset: 0x0025B794
|
|
[Token(Token = "0x600AE2A")]
|
|
[Address(RVA = "0x259BB80", Offset = "0x259AB80", VA = "0x18259BB80")]
|
|
public BufferedBlockCipher(IBlockCipher cipher)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AE2A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedBlockCipher::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBlockCipher)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_29:
|
|
stloc:ArgumentNullException(var_1_33, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("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: 0x17001BB1 RID: 7089
|
|
// (get) Token: 0x0600AE2B RID: 44587 RVA: 0x0025D5D4 File Offset: 0x0025B7D4
|
|
[Token(Token = "0x17001BB1")]
|
|
public override string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600AE2B")]
|
|
[Address(RVA = "0x259BC50", Offset = "0x259AC50", VA = "0x18259BC50", Slot = "22")]
|
|
get
|
|
{
|
|
IBlockCipher blockCipher = this.cipher;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AE2C RID: 44588 RVA: 0x0025D5F0 File Offset: 0x0025B7F0
|
|
[Token(Token = "0x600AE2C")]
|
|
[Address(RVA = "0x259B3D0", Offset = "0x259A3D0", VA = "0x18259B3D0", Slot = "23")]
|
|
public override void Init(bool forEncryption, ICipherParameters parameters)
|
|
{
|
|
this.forEncryption = forEncryption;
|
|
if (parameters == 0 || parameters != 0)
|
|
{
|
|
}
|
|
IBlockCipher blockCipher = this.cipher;
|
|
}
|
|
|
|
// Token: 0x0600AE2D RID: 44589 RVA: 0x0025D61C File Offset: 0x0025B81C
|
|
[Token(Token = "0x600AE2D")]
|
|
[Address(RVA = "0x259B350", Offset = "0x259A350", VA = "0x18259B350", Slot = "24")]
|
|
public override int GetBlockSize()
|
|
{
|
|
IBlockCipher blockCipher = this.cipher;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600AE2E RID: 44590 RVA: 0x0025D638 File Offset: 0x0025B838
|
|
[Token(Token = "0x600AE2E")]
|
|
[Address(RVA = "0x259B3A0", Offset = "0x259A3A0", VA = "0x18259B3A0", Slot = "26")]
|
|
public override int GetUpdateOutputSize(int length)
|
|
{
|
|
int num = this.bufOff;
|
|
byte[] array = this.buf;
|
|
num += length;
|
|
return num - length;
|
|
}
|
|
|
|
// Token: 0x0600AE2F RID: 44591 RVA: 0x0025D664 File Offset: 0x0025B864
|
|
[Token(Token = "0x600AE2F")]
|
|
[Address(RVA = "0x22DB6C0", Offset = "0x22DA6C0", VA = "0x1822DB6C0", Slot = "25")]
|
|
public override int GetOutputSize(int length)
|
|
{
|
|
int num = this.bufOff;
|
|
return num + length;
|
|
}
|
|
|
|
// Token: 0x0600AE30 RID: 44592 RVA: 0x0025D680 File Offset: 0x0025B880
|
|
[Token(Token = "0x600AE30")]
|
|
[Address(RVA = "0x259B580", Offset = "0x259A580", VA = "0x18259B580", Slot = "28")]
|
|
public override int ProcessByte(byte input, byte[] output, int outOff)
|
|
{
|
|
int num = this.bufOff;
|
|
byte[] array = this.buf;
|
|
int num2 = num + 1;
|
|
this.bufOff = num2;
|
|
int num3 = this.buf.Length;
|
|
if (this.bufOff != num3)
|
|
{
|
|
return 0;
|
|
}
|
|
num3 += outOff;
|
|
IBlockCipher blockCipher = this.cipher;
|
|
int num4 = 0;
|
|
this.bufOff = num4;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600AE31 RID: 44593 RVA: 0x0025D6DC File Offset: 0x0025B8DC
|
|
[Token(Token = "0x600AE31")]
|
|
[Address(RVA = "0x259B4A0", Offset = "0x259A4A0", VA = "0x18259B4A0", Slot = "27")]
|
|
public override byte[] ProcessByte(byte input)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AE31)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedBlockCipher::ProcessByte(System.Byte)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_2:
|
|
stloc:uint8[](var_4_2B, newarr:uint8[]([mscorlib]System.Byte, ldloc:uint8[][exp:int32](var_3_1C)))
|
|
}
|
|
|
|
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: 0x0600AE32 RID: 44594 RVA: 0x0025D718 File Offset: 0x0025B918
|
|
[Token(Token = "0x600AE32")]
|
|
[Address(RVA = "0x259B970", Offset = "0x259A970", VA = "0x18259B970", Slot = "30")]
|
|
public override byte[] ProcessBytes(byte[] input, int inOff, int length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AE32)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedBlockCipher::ProcessBytes(System.Byte[],System.Int32,System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_41:
|
|
stloc:ArgumentNullException(var_9_4B, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("input")))
|
|
}
|
|
|
|
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: 0x0600AE33 RID: 44595 RVA: 0x0025D774 File Offset: 0x0025B974
|
|
[Token(Token = "0x600AE33")]
|
|
[Address(RVA = "0x259B690", Offset = "0x259A690", VA = "0x18259B690", Slot = "32")]
|
|
public override int ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff)
|
|
{
|
|
int num = this.GetOutputSize(length);
|
|
if (num > 0)
|
|
{
|
|
}
|
|
byte[] array = this.buf;
|
|
int num2 = array.Length;
|
|
int num3 = this.bufOff;
|
|
num2 -= num3;
|
|
byte[] array3;
|
|
int num6;
|
|
if (length > num2)
|
|
{
|
|
Array.Copy(input, inOff, array, num3, num2);
|
|
IBlockCipher blockCipher = this.cipher;
|
|
byte[] array2 = this.buf;
|
|
int num4 = 0;
|
|
this.bufOff = num4;
|
|
if (length > array2.Length)
|
|
{
|
|
IBlockCipher blockCipher2 = this.cipher;
|
|
if (num4 < array2)
|
|
{
|
|
num4 += num4;
|
|
num4++;
|
|
}
|
|
array3 = this.buf;
|
|
num += num4;
|
|
uint num5;
|
|
num5 += num5;
|
|
}
|
|
num6 = this.bufOff;
|
|
}
|
|
Array.Copy(input, inOff, array3, num6, length);
|
|
int num7 = this.bufOff;
|
|
byte[] array4 = this.buf;
|
|
num7 += length;
|
|
this.bufOff = num7;
|
|
if (num7 == array4.Length)
|
|
{
|
|
IBlockCipher blockCipher3 = this.cipher;
|
|
int num8 = 0;
|
|
this.bufOff = num8;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600AE34 RID: 44596 RVA: 0x0025D86C File Offset: 0x0025BA6C
|
|
[Token(Token = "0x600AE34")]
|
|
[Address(RVA = "0x259B230", Offset = "0x259A230", VA = "0x18259B230", Slot = "33")]
|
|
public override byte[] DoFinal()
|
|
{
|
|
int blockSize = this.GetBlockSize();
|
|
int num;
|
|
byte[] array = new byte[num];
|
|
if (array < array.Length)
|
|
{
|
|
byte[] array2 = new byte[array];
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0600AE35 RID: 44597 RVA: 0x0025D8A0 File Offset: 0x0025BAA0
|
|
[Token(Token = "0x600AE35")]
|
|
[Address(RVA = "0x259B080", Offset = "0x259A080", VA = "0x18259B080", Slot = "35")]
|
|
public override byte[] DoFinal(byte[] input, int inOff, int inLen)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AE35)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedBlockCipher::DoFinal(System.Byte[],System.Int32,System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_43:
|
|
stloc:ArgumentNullException(var_11_4D, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("input")))
|
|
}
|
|
|
|
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: 0x0600AE36 RID: 44598 RVA: 0x0025D8FC File Offset: 0x0025BAFC
|
|
[Token(Token = "0x600AE36")]
|
|
[Address(RVA = "0x259AE60", Offset = "0x2599E60", VA = "0x18259AE60", Slot = "36")]
|
|
public override int DoFinal(byte[] output, int outOff)
|
|
{
|
|
int num = 0;
|
|
if (this.bufOff != num)
|
|
{
|
|
IBlockCipher blockCipher = this.cipher;
|
|
if (num < outOff)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
int num2 = this.bufOff;
|
|
Check.OutputLength(output, outOff, num2, "output buffer too short for DoFinal()");
|
|
IBlockCipher blockCipher2 = this.cipher;
|
|
byte[] array = this.buf;
|
|
int num3 = this.bufOff;
|
|
int num4 = 0;
|
|
Array.Copy(this.buf, num4, output, outOff, num3);
|
|
}
|
|
if (num == 0)
|
|
{
|
|
int num5;
|
|
num5 += 3;
|
|
num5 += 19;
|
|
return num5;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600AE37 RID: 44599 RVA: 0x0025D988 File Offset: 0x0025BB88
|
|
[Token(Token = "0x600AE37")]
|
|
[Address(RVA = "0x259BAB0", Offset = "0x259AAB0", VA = "0x18259BAB0", Slot = "39")]
|
|
public override void Reset()
|
|
{
|
|
byte[] array = this.buf;
|
|
int length = array.Length;
|
|
int num = 0;
|
|
Array.Clear(array, num, length);
|
|
IBlockCipher blockCipher = this.cipher;
|
|
this.bufOff = (int)((ulong)0L);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006E53 RID: 28243
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006E53")]
|
|
internal byte[] buf;
|
|
|
|
// Token: 0x04006E54 RID: 28244
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006E54")]
|
|
internal int bufOff;
|
|
|
|
// Token: 0x04006E55 RID: 28245
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4006E55")]
|
|
internal bool forEncryption;
|
|
|
|
// Token: 0x04006E56 RID: 28246
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006E56")]
|
|
internal IBlockCipher cipher;
|
|
}
|
|
}
|