339 lines
19 KiB
C#
339 lines
19 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
|
|
{
|
|
// Token: 0x02001AC6 RID: 6854
|
|
[Token(Token = "0x2001AC6")]
|
|
public class BufferedBlockCipher : BufferedCipherBase
|
|
{
|
|
// Token: 0x0600AA5B RID: 43611 RVA: 0x002544D4 File Offset: 0x002526D4
|
|
[Token(Token = "0x600AA5B")]
|
|
[Address(RVA = "0x1B33FC0", Offset = "0x1B32DC0", VA = "0x181B33FC0")]
|
|
protected BufferedBlockCipher()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600AA5C RID: 43612 RVA: 0x002544E8 File Offset: 0x002526E8
|
|
[Token(Token = "0x600AA5C")]
|
|
[Address(RVA = "0x1B34020", Offset = "0x1B32E20", VA = "0x181B34020")]
|
|
public BufferedBlockCipher(IBlockCipher cipher)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA5C)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x17001B14 RID: 6932
|
|
// (get) Token: 0x0600AA5D RID: 43613 RVA: 0x00254528 File Offset: 0x00252728
|
|
[Token(Token = "0x17001B14")]
|
|
public override string AlgorithmName
|
|
{
|
|
[Token(Token = "0x600AA5D")]
|
|
[Address(RVA = "0x1B340F0", Offset = "0x1B32EF0", VA = "0x181B340F0", Slot = "22")]
|
|
get
|
|
{
|
|
IBlockCipher blockCipher = this.cipher;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AA5E RID: 43614 RVA: 0x00254544 File Offset: 0x00252744
|
|
[Token(Token = "0x600AA5E")]
|
|
[Address(RVA = "0x1B33870", Offset = "0x1B32670", VA = "0x181B33870", Slot = "23")]
|
|
public override void Init(bool forEncryption, ICipherParameters parameters)
|
|
{
|
|
this.forEncryption = forEncryption;
|
|
if (parameters == 0 || parameters != 0)
|
|
{
|
|
}
|
|
IBlockCipher blockCipher = this.cipher;
|
|
}
|
|
|
|
// Token: 0x0600AA5F RID: 43615 RVA: 0x00254570 File Offset: 0x00252770
|
|
[Token(Token = "0x600AA5F")]
|
|
[Address(RVA = "0x1B337E0", Offset = "0x1B325E0", VA = "0x181B337E0", Slot = "24")]
|
|
public override int GetBlockSize()
|
|
{
|
|
IBlockCipher blockCipher = this.cipher;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600AA60 RID: 43616 RVA: 0x0025458C File Offset: 0x0025278C
|
|
[Token(Token = "0x600AA60")]
|
|
[Address(RVA = "0x1B33840", Offset = "0x1B32640", VA = "0x181B33840", Slot = "26")]
|
|
public override int GetUpdateOutputSize(int length)
|
|
{
|
|
int num = this.bufOff;
|
|
byte[] array = this.buf;
|
|
num += length;
|
|
return num - length;
|
|
}
|
|
|
|
// Token: 0x0600AA61 RID: 43617 RVA: 0x002545B8 File Offset: 0x002527B8
|
|
[Token(Token = "0x600AA61")]
|
|
[Address(RVA = "0x1B33830", Offset = "0x1B32630", VA = "0x181B33830", Slot = "25")]
|
|
public override int GetOutputSize(int length)
|
|
{
|
|
int num = this.bufOff;
|
|
return num + length;
|
|
}
|
|
|
|
// Token: 0x0600AA62 RID: 43618 RVA: 0x002545D4 File Offset: 0x002527D4
|
|
[Token(Token = "0x600AA62")]
|
|
[Address(RVA = "0x1B33A20", Offset = "0x1B32820", VA = "0x181B33A20", 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: 0x0600AA63 RID: 43619 RVA: 0x00254630 File Offset: 0x00252830
|
|
[Token(Token = "0x600AA63")]
|
|
[Address(RVA = "0x1B33940", Offset = "0x1B32740", VA = "0x181B33940", Slot = "27")]
|
|
public override byte[] ProcessByte(byte input)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA63)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600AA64 RID: 43620 RVA: 0x0025466C File Offset: 0x0025286C
|
|
[Token(Token = "0x600AA64")]
|
|
[Address(RVA = "0x1B33E10", Offset = "0x1B32C10", VA = "0x181B33E10", Slot = "30")]
|
|
public override byte[] ProcessBytes(byte[] input, int inOff, int length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA64)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600AA65 RID: 43621 RVA: 0x002546C8 File Offset: 0x002528C8
|
|
[Token(Token = "0x600AA65")]
|
|
[Address(RVA = "0x1B33B30", Offset = "0x1B32930", VA = "0x181B33B30", 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: 0x0600AA66 RID: 43622 RVA: 0x002547C0 File Offset: 0x002529C0
|
|
[Token(Token = "0x600AA66")]
|
|
[Address(RVA = "0x1B336C0", Offset = "0x1B324C0", VA = "0x181B336C0", 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: 0x0600AA67 RID: 43623 RVA: 0x002547F4 File Offset: 0x002529F4
|
|
[Token(Token = "0x600AA67")]
|
|
[Address(RVA = "0x1B33510", Offset = "0x1B32310", VA = "0x181B33510", Slot = "35")]
|
|
public override byte[] DoFinal(byte[] input, int inOff, int inLen)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA67)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600AA68 RID: 43624 RVA: 0x00254850 File Offset: 0x00252A50
|
|
[Token(Token = "0x600AA68")]
|
|
[Address(RVA = "0x1B332F0", Offset = "0x1B320F0", VA = "0x181B332F0", 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: 0x0600AA69 RID: 43625 RVA: 0x002548DC File Offset: 0x00252ADC
|
|
[Token(Token = "0x600AA69")]
|
|
[Address(RVA = "0x1B33F50", Offset = "0x1B32D50", VA = "0x181B33F50", 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: 0x04006C9A RID: 27802
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006C9A")]
|
|
internal byte[] buf;
|
|
|
|
// Token: 0x04006C9B RID: 27803
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006C9B")]
|
|
internal int bufOff;
|
|
|
|
// Token: 0x04006C9C RID: 27804
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4006C9C")]
|
|
internal bool forEncryption;
|
|
|
|
// Token: 0x04006C9D RID: 27805
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006C9D")]
|
|
internal IBlockCipher cipher;
|
|
}
|
|
}
|