344 lines
19 KiB
C#
344 lines
19 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
|
|
{
|
|
// Token: 0x020014E9 RID: 5353
|
|
[Token(Token = "0x20014E9")]
|
|
[StructLayout(3)]
|
|
public class BufferedBlockCipher : BufferedCipherBase
|
|
{
|
|
// Token: 0x06008E81 RID: 36481 RVA: 0x001FCE04 File Offset: 0x001FB004
|
|
[Token(Token = "0x6008E81")]
|
|
[Address(RVA = "0x21783E0", Offset = "0x2176DE0", VA = "0x1821783E0")]
|
|
protected BufferedBlockCipher()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06008E82 RID: 36482 RVA: 0x001FCE18 File Offset: 0x001FB018
|
|
[Token(Token = "0x6008E82")]
|
|
[Address(RVA = "0x2178440", Offset = "0x2176E40", VA = "0x182178440")]
|
|
public BufferedBlockCipher(IBlockCipher cipher)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008E82)
|
|
|
|
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: 0x17001713 RID: 5907
|
|
// (get) Token: 0x06008E83 RID: 36483 RVA: 0x001FCE58 File Offset: 0x001FB058
|
|
[Token(Token = "0x17001713")]
|
|
public override string AlgorithmName
|
|
{
|
|
[Token(Token = "0x6008E83")]
|
|
[Address(RVA = "0x2178510", Offset = "0x2176F10", VA = "0x182178510", Slot = "22")]
|
|
get
|
|
{
|
|
IBlockCipher blockCipher = this.cipher;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06008E84 RID: 36484 RVA: 0x001FCE74 File Offset: 0x001FB074
|
|
[Token(Token = "0x6008E84")]
|
|
[Address(RVA = "0x2177C90", Offset = "0x2176690", VA = "0x182177C90", Slot = "23")]
|
|
public override void Init(bool forEncryption, ICipherParameters parameters)
|
|
{
|
|
this.forEncryption = forEncryption;
|
|
if (parameters == 0 || parameters != 0)
|
|
{
|
|
}
|
|
IBlockCipher blockCipher = this.cipher;
|
|
}
|
|
|
|
// Token: 0x06008E85 RID: 36485 RVA: 0x001FCEA0 File Offset: 0x001FB0A0
|
|
[Token(Token = "0x6008E85")]
|
|
[Address(RVA = "0x2177C10", Offset = "0x2176610", VA = "0x182177C10", Slot = "24")]
|
|
public override int GetBlockSize()
|
|
{
|
|
IBlockCipher blockCipher = this.cipher;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06008E86 RID: 36486 RVA: 0x001FCEBC File Offset: 0x001FB0BC
|
|
[Token(Token = "0x6008E86")]
|
|
[Address(RVA = "0x2177C60", Offset = "0x2176660", VA = "0x182177C60", Slot = "26")]
|
|
public override int GetUpdateOutputSize(int length)
|
|
{
|
|
int num = this.bufOff;
|
|
byte[] array = this.buf;
|
|
num += length;
|
|
return num - length;
|
|
}
|
|
|
|
// Token: 0x06008E87 RID: 36487 RVA: 0x001FCEE8 File Offset: 0x001FB0E8
|
|
[Token(Token = "0x6008E87")]
|
|
[Address(RVA = "0x20E8770", Offset = "0x20E7170", VA = "0x1820E8770", Slot = "25")]
|
|
public override int GetOutputSize(int length)
|
|
{
|
|
int num = this.bufOff;
|
|
return num + length;
|
|
}
|
|
|
|
// Token: 0x06008E88 RID: 36488 RVA: 0x001FCF04 File Offset: 0x001FB104
|
|
[Token(Token = "0x6008E88")]
|
|
[Address(RVA = "0x2177E40", Offset = "0x2176840", VA = "0x182177E40", 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: 0x06008E89 RID: 36489 RVA: 0x001FCF60 File Offset: 0x001FB160
|
|
[Token(Token = "0x6008E89")]
|
|
[Address(RVA = "0x2177D60", Offset = "0x2176760", VA = "0x182177D60", Slot = "27")]
|
|
public override byte[] ProcessByte(byte input)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008E89)
|
|
|
|
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: 0x06008E8A RID: 36490 RVA: 0x001FCF9C File Offset: 0x001FB19C
|
|
[Token(Token = "0x6008E8A")]
|
|
[Address(RVA = "0x2178230", Offset = "0x2176C30", VA = "0x182178230", Slot = "30")]
|
|
public override byte[] ProcessBytes(byte[] input, int inOff, int length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008E8A)
|
|
|
|
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: 0x06008E8B RID: 36491 RVA: 0x001FCFF8 File Offset: 0x001FB1F8
|
|
[Token(Token = "0x6008E8B")]
|
|
[Address(RVA = "0x2177F50", Offset = "0x2176950", VA = "0x182177F50", 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: 0x06008E8C RID: 36492 RVA: 0x001FD0F0 File Offset: 0x001FB2F0
|
|
[Token(Token = "0x6008E8C")]
|
|
[Address(RVA = "0x2177AF0", Offset = "0x21764F0", VA = "0x182177AF0", 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: 0x06008E8D RID: 36493 RVA: 0x001FD124 File Offset: 0x001FB324
|
|
[Token(Token = "0x6008E8D")]
|
|
[Address(RVA = "0x2177940", Offset = "0x2176340", VA = "0x182177940", Slot = "35")]
|
|
public override byte[] DoFinal(byte[] input, int inOff, int inLen)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06008E8D)
|
|
|
|
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: 0x06008E8E RID: 36494 RVA: 0x001FD180 File Offset: 0x001FB380
|
|
[Token(Token = "0x6008E8E")]
|
|
[Address(RVA = "0x21776F0", Offset = "0x21760F0", VA = "0x1821776F0", 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);
|
|
}
|
|
int num5 = this.bufOff;
|
|
if (num != -1)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
num += 3;
|
|
num += 19;
|
|
return num5;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06008E8F RID: 36495 RVA: 0x001FD21C File Offset: 0x001FB41C
|
|
[Token(Token = "0x6008E8F")]
|
|
[Address(RVA = "0x2178370", Offset = "0x2176D70", VA = "0x182178370", 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: 0x04005E57 RID: 24151
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4005E57")]
|
|
internal byte[] buf;
|
|
|
|
// Token: 0x04005E58 RID: 24152
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4005E58")]
|
|
internal int bufOff;
|
|
|
|
// Token: 0x04005E59 RID: 24153
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4005E59")]
|
|
internal bool forEncryption;
|
|
|
|
// Token: 0x04005E5A RID: 24154
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4005E5A")]
|
|
internal IBlockCipher cipher;
|
|
}
|
|
}
|