449 lines
21 KiB
C#
449 lines
21 KiB
C#
using System;
|
|
using System.IO;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
|
|
{
|
|
// Token: 0x02001D37 RID: 7479
|
|
[Token(Token = "0x2001D37")]
|
|
public class CipherStream : Stream
|
|
{
|
|
// Token: 0x0600B980 RID: 47488 RVA: 0x00284D2C File Offset: 0x00282F2C
|
|
[Token(Token = "0x600B980")]
|
|
[Address(RVA = "0x25B5CD0", Offset = "0x25B4CD0", VA = "0x1825B5CD0")]
|
|
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: 0x17001D35 RID: 7477
|
|
// (get) Token: 0x0600B981 RID: 47489 RVA: 0x00284D68 File Offset: 0x00282F68
|
|
[Token(Token = "0x17001D35")]
|
|
public IBufferedCipher ReadCipher
|
|
{
|
|
[Token(Token = "0x600B981")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
|
get
|
|
{
|
|
return this.inCipher;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001D36 RID: 7478
|
|
// (get) Token: 0x0600B982 RID: 47490 RVA: 0x00284D7C File Offset: 0x00282F7C
|
|
[Token(Token = "0x17001D36")]
|
|
public IBufferedCipher WriteCipher
|
|
{
|
|
[Token(Token = "0x600B982")]
|
|
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
|
get
|
|
{
|
|
return this.outCipher;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B983 RID: 47491 RVA: 0x00284D90 File Offset: 0x00282F90
|
|
[Token(Token = "0x600B983")]
|
|
[Address(RVA = "0x25B5870", Offset = "0x25B4870", VA = "0x1825B5870", 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: 0x0600B984 RID: 47492 RVA: 0x00284DF4 File Offset: 0x00282FF4
|
|
[Token(Token = "0x600B984")]
|
|
[Address(RVA = "0x25B5900", Offset = "0x25B4900", VA = "0x1825B5900", 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: 0x0600B985 RID: 47493 RVA: 0x00284E84 File Offset: 0x00283084
|
|
[Token(Token = "0x600B985")]
|
|
[Address(RVA = "0x25B54E0", Offset = "0x25B44E0", VA = "0x1825B54E0")]
|
|
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: 0x0600B986 RID: 47494 RVA: 0x00284F24 File Offset: 0x00283124
|
|
[Token(Token = "0x600B986")]
|
|
[Address(RVA = "0x25B56D0", Offset = "0x25B46D0", VA = "0x1825B56D0")]
|
|
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: 0x0600B987 RID: 47495 RVA: 0x00284F8C File Offset: 0x0028318C
|
|
[Token(Token = "0x600B987")]
|
|
[Address(RVA = "0x25B5C00", Offset = "0x25B4C00", VA = "0x1825B5C00", 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: 0x0600B988 RID: 47496 RVA: 0x00284FBC File Offset: 0x002831BC
|
|
[Token(Token = "0x600B988")]
|
|
[Address(RVA = "0x25B5AE0", Offset = "0x25B4AE0", VA = "0x1825B5AE0", 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: 0x17001D37 RID: 7479
|
|
// (get) Token: 0x0600B989 RID: 47497 RVA: 0x00285004 File Offset: 0x00283204
|
|
[Token(Token = "0x17001D37")]
|
|
public override bool CanRead
|
|
{
|
|
[Token(Token = "0x600B989")]
|
|
[Address(RVA = "0x25B5D70", Offset = "0x25B4D70", VA = "0x1825B5D70", Slot = "7")]
|
|
get
|
|
{
|
|
this.stream.Dispose();
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001D38 RID: 7480
|
|
// (get) Token: 0x0600B98A RID: 47498 RVA: 0x00285024 File Offset: 0x00283224
|
|
[Token(Token = "0x17001D38")]
|
|
public override bool CanWrite
|
|
{
|
|
[Token(Token = "0x600B98A")]
|
|
[Address(RVA = "0x25B5DB0", Offset = "0x25B4DB0", VA = "0x1825B5DB0", Slot = "9")]
|
|
get
|
|
{
|
|
bool canSeek = this.stream.CanSeek;
|
|
if (!canSeek)
|
|
{
|
|
return canSeek;
|
|
}
|
|
return canSeek;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001D39 RID: 7481
|
|
// (get) Token: 0x0600B98B RID: 47499 RVA: 0x0028504C File Offset: 0x0028324C
|
|
[Token(Token = "0x17001D39")]
|
|
public override bool CanSeek
|
|
{
|
|
[Token(Token = "0x600B98B")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001D3A RID: 7482
|
|
// (get) Token: 0x0600B98C RID: 47500 RVA: 0x0028505C File Offset: 0x0028325C
|
|
[Token(Token = "0x17001D3A")]
|
|
public sealed override long Length
|
|
{
|
|
[Token(Token = "0x600B98C")]
|
|
[Address(RVA = "0x25B5DF0", Offset = "0x25B4DF0", VA = "0x1825B5DF0", Slot = "10")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B98C)
|
|
|
|
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: 0x17001D3B RID: 7483
|
|
// (get) Token: 0x0600B98D RID: 47501 RVA: 0x00285070 File Offset: 0x00283270
|
|
// (set) Token: 0x0600B98E RID: 47502 RVA: 0x00285084 File Offset: 0x00283284
|
|
[Token(Token = "0x17001D3B")]
|
|
public sealed override long Position
|
|
{
|
|
[Token(Token = "0x600B98D")]
|
|
[Address(RVA = "0x25B5E40", Offset = "0x25B4E40", VA = "0x1825B5E40", Slot = "11")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B98D)
|
|
|
|
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 = "0x600B98E")]
|
|
[Address(RVA = "0x25B5E90", Offset = "0x25B4E90", VA = "0x1825B5E90", Slot = "12")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B98E)
|
|
|
|
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: 0x0600B98F RID: 47503 RVA: 0x00285098 File Offset: 0x00283298
|
|
[Token(Token = "0x600B98F")]
|
|
[Address(RVA = "0x25B5390", Offset = "0x25B4390", VA = "0x1825B5390", 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: 0x0600B990 RID: 47504 RVA: 0x002850E8 File Offset: 0x002832E8
|
|
[Token(Token = "0x600B990")]
|
|
[Address(RVA = "0x4B7C30", Offset = "0x4B6C30", VA = "0x1804B7C30", Slot = "17")]
|
|
public override void Flush()
|
|
{
|
|
bool canRead = this.stream.CanRead;
|
|
}
|
|
|
|
// Token: 0x0600B991 RID: 47505 RVA: 0x00285108 File Offset: 0x00283308
|
|
[Token(Token = "0x600B991")]
|
|
[Address(RVA = "0x25B5A40", Offset = "0x25B4A40", VA = "0x1825B5A40", Slot = "25")]
|
|
public sealed override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B991)
|
|
|
|
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: 0x0600B992 RID: 47506 RVA: 0x0028511C File Offset: 0x0028331C
|
|
[Token(Token = "0x600B992")]
|
|
[Address(RVA = "0x25B5A90", Offset = "0x25B4A90", VA = "0x1825B5A90", Slot = "26")]
|
|
public sealed override void SetLength(long length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B992)
|
|
|
|
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: 0x04007513 RID: 29971
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007513")]
|
|
internal Stream stream;
|
|
|
|
// Token: 0x04007514 RID: 29972
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007514")]
|
|
internal IBufferedCipher inCipher;
|
|
|
|
// Token: 0x04007515 RID: 29973
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4007515")]
|
|
internal IBufferedCipher outCipher;
|
|
|
|
// Token: 0x04007516 RID: 29974
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4007516")]
|
|
private byte[] mInBuf;
|
|
|
|
// Token: 0x04007517 RID: 29975
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4007517")]
|
|
private int mInPos;
|
|
|
|
// Token: 0x04007518 RID: 29976
|
|
[FieldOffset(Offset = "0x4C")]
|
|
[Token(Token = "0x4007518")]
|
|
private bool inStreamEnded;
|
|
}
|
|
}
|