451 lines
22 KiB
C#
451 lines
22 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
|
|
{
|
|
// Token: 0x0200167A RID: 5754
|
|
[Token(Token = "0x200167A")]
|
|
[StructLayout(3)]
|
|
public class CipherStream : Stream
|
|
{
|
|
// Token: 0x060099D8 RID: 39384 RVA: 0x002245C0 File Offset: 0x002227C0
|
|
[Token(Token = "0x60099D8")]
|
|
[Address(RVA = "0x1F4E0C0", Offset = "0x1F4CAC0", VA = "0x181F4E0C0")]
|
|
public CipherStream(Stream stream, IBufferedCipher readCipher, IBufferedCipher writeCipher)
|
|
{
|
|
this.stream = stream;
|
|
if (readCipher != 0)
|
|
{
|
|
this.inCipher = readCipher;
|
|
this.mInBuf = (ulong)0L;
|
|
}
|
|
if (writeCipher != 0)
|
|
{
|
|
this.outCipher = writeCipher;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001897 RID: 6295
|
|
// (get) Token: 0x060099D9 RID: 39385 RVA: 0x002245FC File Offset: 0x002227FC
|
|
[Token(Token = "0x17001897")]
|
|
public IBufferedCipher ReadCipher
|
|
{
|
|
[Token(Token = "0x60099D9")]
|
|
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
|
get
|
|
{
|
|
return this.inCipher;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001898 RID: 6296
|
|
// (get) Token: 0x060099DA RID: 39386 RVA: 0x00224610 File Offset: 0x00222810
|
|
[Token(Token = "0x17001898")]
|
|
public IBufferedCipher WriteCipher
|
|
{
|
|
[Token(Token = "0x60099DA")]
|
|
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
|
get
|
|
{
|
|
return this.outCipher;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060099DB RID: 39387 RVA: 0x00224624 File Offset: 0x00222824
|
|
[Token(Token = "0x60099DB")]
|
|
[Address(RVA = "0x1F4DC60", Offset = "0x1F4C660", VA = "0x181F4DC60", Slot = "28")]
|
|
public override int ReadByte()
|
|
{
|
|
if (this.inCipher != (ulong)0L)
|
|
{
|
|
byte[] array = this.mInBuf;
|
|
if (array != 0)
|
|
{
|
|
int length = array.Length;
|
|
}
|
|
if (this.FillInBuf())
|
|
{
|
|
int num = this.mInPos;
|
|
byte[] array2 = this.mInBuf;
|
|
int num2 = num + 1;
|
|
this.mInPos = num2;
|
|
}
|
|
return -1;
|
|
}
|
|
bool canRead = this.stream.CanRead;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060099DC RID: 39388 RVA: 0x00224688 File Offset: 0x00222888
|
|
[Token(Token = "0x60099DC")]
|
|
[Address(RVA = "0x1F4DCF0", Offset = "0x1F4C6F0", VA = "0x181F4DCF0", Slot = "27")]
|
|
public override int Read(byte[] buffer, int offset, int count)
|
|
{
|
|
if (this.inCipher != (ulong)0L)
|
|
{
|
|
int num = 0;
|
|
if (count > 0)
|
|
{
|
|
byte[] array = this.mInBuf;
|
|
if (array != 0)
|
|
{
|
|
int length = array.Length;
|
|
}
|
|
if (this.FillInBuf())
|
|
{
|
|
byte[] array2 = this.mInBuf;
|
|
int num2 = this.mInPos;
|
|
int num3 = array2.Length;
|
|
num3 -= num2;
|
|
int num4 = Math.Min(count, num3);
|
|
int num5 = this.mInPos;
|
|
Array.Copy(this.mInBuf, num5, buffer, 0, num4);
|
|
num += num4;
|
|
}
|
|
}
|
|
return num;
|
|
}
|
|
Stream stream = this.stream;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060099DD RID: 39389 RVA: 0x00224718 File Offset: 0x00222918
|
|
[Token(Token = "0x60099DD")]
|
|
[Address(RVA = "0x1F4D8D0", Offset = "0x1F4C2D0", VA = "0x181F4D8D0")]
|
|
private bool FillInBuf()
|
|
{
|
|
if (!this.inStreamEnded)
|
|
{
|
|
int num = 0;
|
|
this.mInPos = num;
|
|
IBufferedCipher bufferedCipher = this.inCipher;
|
|
byte[] array = new byte[256];
|
|
Stream stream = this.stream;
|
|
int num2 = array.Length;
|
|
num2 -= num;
|
|
if ((this.inStreamEnded ? 1 : 0) == num)
|
|
{
|
|
IBufferedCipher bufferedCipher2 = this.inCipher;
|
|
if (num < num)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
array += array;
|
|
this.inStreamEnded = true;
|
|
}
|
|
IBufferedCipher bufferedCipher3 = this.inCipher;
|
|
this.mInBuf = num;
|
|
if ((this.inStreamEnded ? 1 : 0) == num)
|
|
{
|
|
while (num == 0)
|
|
{
|
|
}
|
|
}
|
|
return num != 0;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060099DE RID: 39390 RVA: 0x002247B8 File Offset: 0x002229B8
|
|
[Token(Token = "0x60099DE")]
|
|
[Address(RVA = "0x1F4DAC0", Offset = "0x1F4C4C0", VA = "0x181F4DAC0")]
|
|
private byte[] ReadAndProcessBlock()
|
|
{
|
|
IBufferedCipher bufferedCipher = this.inCipher;
|
|
byte[] array = new byte[256];
|
|
int num = 0;
|
|
Stream stream = this.stream;
|
|
int num2 = array.Length;
|
|
num2 -= num;
|
|
this.inStreamEnded = true;
|
|
IBufferedCipher bufferedCipher2 = this.inCipher;
|
|
ulong num3;
|
|
if (num3 != (ulong)0L)
|
|
{
|
|
}
|
|
if (num < bufferedCipher2)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
if (num != 0)
|
|
{
|
|
}
|
|
array += array;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060099DF RID: 39391 RVA: 0x00224820 File Offset: 0x00222A20
|
|
[Token(Token = "0x60099DF")]
|
|
[Address(RVA = "0x1F4DFF0", Offset = "0x1F4C9F0", VA = "0x181F4DFF0", Slot = "29")]
|
|
public override void Write(byte[] buffer, int offset, int count)
|
|
{
|
|
if (this.outCipher != 0)
|
|
{
|
|
int num = this.stream.ReadByte();
|
|
return;
|
|
}
|
|
Stream stream = this.stream;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060099E0 RID: 39392 RVA: 0x00224850 File Offset: 0x00222A50
|
|
[Token(Token = "0x60099E0")]
|
|
[Address(RVA = "0x1F4DED0", Offset = "0x1F4C8D0", VA = "0x181F4DED0", Slot = "30")]
|
|
public override void WriteByte(byte b)
|
|
{
|
|
if (this.outCipher != 0)
|
|
{
|
|
int num = 0;
|
|
num += num;
|
|
num++;
|
|
int num2 = this.stream.ReadByte();
|
|
return;
|
|
}
|
|
bool canRead = this.stream.CanRead;
|
|
}
|
|
|
|
// Token: 0x17001899 RID: 6297
|
|
// (get) Token: 0x060099E1 RID: 39393 RVA: 0x00224898 File Offset: 0x00222A98
|
|
[Token(Token = "0x17001899")]
|
|
public override bool CanRead
|
|
{
|
|
[Token(Token = "0x60099E1")]
|
|
[Address(RVA = "0x1F4E160", Offset = "0x1F4CB60", VA = "0x181F4E160", Slot = "7")]
|
|
get
|
|
{
|
|
this.stream.Dispose();
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700189A RID: 6298
|
|
// (get) Token: 0x060099E2 RID: 39394 RVA: 0x002248B8 File Offset: 0x00222AB8
|
|
[Token(Token = "0x1700189A")]
|
|
public override bool CanWrite
|
|
{
|
|
[Token(Token = "0x60099E2")]
|
|
[Address(RVA = "0x1F4E1A0", Offset = "0x1F4CBA0", VA = "0x181F4E1A0", Slot = "9")]
|
|
get
|
|
{
|
|
bool canSeek = this.stream.CanSeek;
|
|
if (!canSeek)
|
|
{
|
|
return canSeek;
|
|
}
|
|
return canSeek;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700189B RID: 6299
|
|
// (get) Token: 0x060099E3 RID: 39395 RVA: 0x002248E0 File Offset: 0x00222AE0
|
|
[Token(Token = "0x1700189B")]
|
|
public override bool CanSeek
|
|
{
|
|
[Token(Token = "0x60099E3")]
|
|
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "8")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700189C RID: 6300
|
|
// (get) Token: 0x060099E4 RID: 39396 RVA: 0x002248F0 File Offset: 0x00222AF0
|
|
[Token(Token = "0x1700189C")]
|
|
public sealed override long Length
|
|
{
|
|
[Token(Token = "0x60099E4")]
|
|
[Address(RVA = "0x1F4E1E0", Offset = "0x1F4CBE0", VA = "0x181F4E1E0", Slot = "10")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060099E4)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::get_Length()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x1700189D RID: 6301
|
|
// (get) Token: 0x060099E5 RID: 39397 RVA: 0x00224904 File Offset: 0x00222B04
|
|
// (set) Token: 0x060099E6 RID: 39398 RVA: 0x00224918 File Offset: 0x00222B18
|
|
[Token(Token = "0x1700189D")]
|
|
public sealed override long Position
|
|
{
|
|
[Token(Token = "0x60099E5")]
|
|
[Address(RVA = "0x1F4E230", Offset = "0x1F4CC30", VA = "0x181F4E230", Slot = "11")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060099E5)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::get_Position()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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(Token = "0x60099E6")]
|
|
[Address(RVA = "0x1F4E280", Offset = "0x1F4CC80", VA = "0x181F4E280", Slot = "12")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060099E6)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::set_Position(System.Int64)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x060099E7 RID: 39399 RVA: 0x0022492C File Offset: 0x00222B2C
|
|
[Token(Token = "0x60099E7")]
|
|
[Address(RVA = "0x1F4D780", Offset = "0x1F4C180", VA = "0x181F4D780", Slot = "15")]
|
|
public override void Close()
|
|
{
|
|
if (this.outCipher != 0)
|
|
{
|
|
int num = 0;
|
|
num += num;
|
|
num++;
|
|
int num2 = this.stream.ReadByte();
|
|
Stream stream = this.stream;
|
|
}
|
|
Platform.Dispose(this.stream);
|
|
base.Close();
|
|
}
|
|
|
|
// Token: 0x060099E8 RID: 39400 RVA: 0x0022497C File Offset: 0x00222B7C
|
|
[Token(Token = "0x60099E8")]
|
|
[Address(RVA = "0x69C680", Offset = "0x69B080", VA = "0x18069C680", Slot = "17")]
|
|
public override void Flush()
|
|
{
|
|
bool canRead = this.stream.CanRead;
|
|
}
|
|
|
|
// Token: 0x060099E9 RID: 39401 RVA: 0x0022499C File Offset: 0x00222B9C
|
|
[Token(Token = "0x60099E9")]
|
|
[Address(RVA = "0x1F4DE30", Offset = "0x1F4C830", VA = "0x181F4DE30", Slot = "25")]
|
|
public sealed override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060099E9)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::Seek(System.Int64,System.IO.SeekOrigin)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x060099EA RID: 39402 RVA: 0x002249B0 File Offset: 0x00222BB0
|
|
[Token(Token = "0x60099EA")]
|
|
[Address(RVA = "0x1F4DE80", Offset = "0x1F4C880", VA = "0x181F4DE80", Slot = "26")]
|
|
public sealed override void SetLength(long length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060099EA)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::SetLength(System.Int64)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x04006517 RID: 25879
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006517")]
|
|
internal Stream stream;
|
|
|
|
// Token: 0x04006518 RID: 25880
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4006518")]
|
|
internal IBufferedCipher inCipher;
|
|
|
|
// Token: 0x04006519 RID: 25881
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4006519")]
|
|
internal IBufferedCipher outCipher;
|
|
|
|
// Token: 0x0400651A RID: 25882
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400651A")]
|
|
private byte[] mInBuf;
|
|
|
|
// Token: 0x0400651B RID: 25883
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400651B")]
|
|
private int mInPos;
|
|
|
|
// Token: 0x0400651C RID: 25884
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x4C")]
|
|
[Token(Token = "0x400651C")]
|
|
private bool inStreamEnded;
|
|
}
|
|
}
|