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: 0x02001C57 RID: 7255
|
|
[Token(Token = "0x2001C57")]
|
|
public class CipherStream : Stream
|
|
{
|
|
// Token: 0x0600B5B2 RID: 46514 RVA: 0x0027BBD8 File Offset: 0x00279DD8
|
|
[Token(Token = "0x600B5B2")]
|
|
[Address(RVA = "0x1C1ED30", Offset = "0x1C1DB30", VA = "0x181C1ED30")]
|
|
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: 0x17001C98 RID: 7320
|
|
// (get) Token: 0x0600B5B3 RID: 46515 RVA: 0x0027BC14 File Offset: 0x00279E14
|
|
[Token(Token = "0x17001C98")]
|
|
public IBufferedCipher ReadCipher
|
|
{
|
|
[Token(Token = "0x600B5B3")]
|
|
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
|
get
|
|
{
|
|
return this.inCipher;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C99 RID: 7321
|
|
// (get) Token: 0x0600B5B4 RID: 46516 RVA: 0x0027BC28 File Offset: 0x00279E28
|
|
[Token(Token = "0x17001C99")]
|
|
public IBufferedCipher WriteCipher
|
|
{
|
|
[Token(Token = "0x600B5B4")]
|
|
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
|
get
|
|
{
|
|
return this.outCipher;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B5B5 RID: 46517 RVA: 0x0027BC3C File Offset: 0x00279E3C
|
|
[Token(Token = "0x600B5B5")]
|
|
[Address(RVA = "0x1C1E8D0", Offset = "0x1C1D6D0", VA = "0x181C1E8D0", 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: 0x0600B5B6 RID: 46518 RVA: 0x0027BCA0 File Offset: 0x00279EA0
|
|
[Token(Token = "0x600B5B6")]
|
|
[Address(RVA = "0x1C1E960", Offset = "0x1C1D760", VA = "0x181C1E960", 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: 0x0600B5B7 RID: 46519 RVA: 0x0027BD30 File Offset: 0x00279F30
|
|
[Token(Token = "0x600B5B7")]
|
|
[Address(RVA = "0x1C1E540", Offset = "0x1C1D340", VA = "0x181C1E540")]
|
|
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: 0x0600B5B8 RID: 46520 RVA: 0x0027BDD0 File Offset: 0x00279FD0
|
|
[Token(Token = "0x600B5B8")]
|
|
[Address(RVA = "0x1C1E730", Offset = "0x1C1D530", VA = "0x181C1E730")]
|
|
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: 0x0600B5B9 RID: 46521 RVA: 0x0027BE38 File Offset: 0x0027A038
|
|
[Token(Token = "0x600B5B9")]
|
|
[Address(RVA = "0x1C1EC60", Offset = "0x1C1DA60", VA = "0x181C1EC60", 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: 0x0600B5BA RID: 46522 RVA: 0x0027BE68 File Offset: 0x0027A068
|
|
[Token(Token = "0x600B5BA")]
|
|
[Address(RVA = "0x1C1EB40", Offset = "0x1C1D940", VA = "0x181C1EB40", 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: 0x17001C9A RID: 7322
|
|
// (get) Token: 0x0600B5BB RID: 46523 RVA: 0x0027BEB0 File Offset: 0x0027A0B0
|
|
[Token(Token = "0x17001C9A")]
|
|
public override bool CanRead
|
|
{
|
|
[Token(Token = "0x600B5BB")]
|
|
[Address(RVA = "0x1C1EDD0", Offset = "0x1C1DBD0", VA = "0x181C1EDD0", Slot = "7")]
|
|
get
|
|
{
|
|
this.stream.Dispose();
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C9B RID: 7323
|
|
// (get) Token: 0x0600B5BC RID: 46524 RVA: 0x0027BED0 File Offset: 0x0027A0D0
|
|
[Token(Token = "0x17001C9B")]
|
|
public override bool CanWrite
|
|
{
|
|
[Token(Token = "0x600B5BC")]
|
|
[Address(RVA = "0x1C1EE10", Offset = "0x1C1DC10", VA = "0x181C1EE10", Slot = "9")]
|
|
get
|
|
{
|
|
bool canSeek = this.stream.CanSeek;
|
|
if (!canSeek)
|
|
{
|
|
return canSeek;
|
|
}
|
|
return canSeek;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C9C RID: 7324
|
|
// (get) Token: 0x0600B5BD RID: 46525 RVA: 0x0027BEF8 File Offset: 0x0027A0F8
|
|
[Token(Token = "0x17001C9C")]
|
|
public override bool CanSeek
|
|
{
|
|
[Token(Token = "0x600B5BD")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C9D RID: 7325
|
|
// (get) Token: 0x0600B5BE RID: 46526 RVA: 0x0027BF08 File Offset: 0x0027A108
|
|
[Token(Token = "0x17001C9D")]
|
|
public sealed override long Length
|
|
{
|
|
[Token(Token = "0x600B5BE")]
|
|
[Address(RVA = "0x1C1EE50", Offset = "0x1C1DC50", VA = "0x181C1EE50", Slot = "10")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B5BE)
|
|
|
|
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: 0x17001C9E RID: 7326
|
|
// (get) Token: 0x0600B5BF RID: 46527 RVA: 0x0027BF1C File Offset: 0x0027A11C
|
|
// (set) Token: 0x0600B5C0 RID: 46528 RVA: 0x0027BF30 File Offset: 0x0027A130
|
|
[Token(Token = "0x17001C9E")]
|
|
public sealed override long Position
|
|
{
|
|
[Token(Token = "0x600B5BF")]
|
|
[Address(RVA = "0x1C1EEA0", Offset = "0x1C1DCA0", VA = "0x181C1EEA0", Slot = "11")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B5BF)
|
|
|
|
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 = "0x600B5C0")]
|
|
[Address(RVA = "0x1C1EEF0", Offset = "0x1C1DCF0", VA = "0x181C1EEF0", Slot = "12")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B5C0)
|
|
|
|
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: 0x0600B5C1 RID: 46529 RVA: 0x0027BF44 File Offset: 0x0027A144
|
|
[Token(Token = "0x600B5C1")]
|
|
[Address(RVA = "0x1C1E3F0", Offset = "0x1C1D1F0", VA = "0x181C1E3F0", 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: 0x0600B5C2 RID: 46530 RVA: 0x0027BF94 File Offset: 0x0027A194
|
|
[Token(Token = "0x600B5C2")]
|
|
[Address(RVA = "0x44D240", Offset = "0x44C040", VA = "0x18044D240", Slot = "17")]
|
|
public override void Flush()
|
|
{
|
|
bool canRead = this.stream.CanRead;
|
|
}
|
|
|
|
// Token: 0x0600B5C3 RID: 46531 RVA: 0x0027BFB4 File Offset: 0x0027A1B4
|
|
[Token(Token = "0x600B5C3")]
|
|
[Address(RVA = "0x1C1EAA0", Offset = "0x1C1D8A0", VA = "0x181C1EAA0", Slot = "25")]
|
|
public sealed override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B5C3)
|
|
|
|
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: 0x0600B5C4 RID: 46532 RVA: 0x0027BFC8 File Offset: 0x0027A1C8
|
|
[Token(Token = "0x600B5C4")]
|
|
[Address(RVA = "0x1C1EAF0", Offset = "0x1C1D8F0", VA = "0x181C1EAF0", Slot = "26")]
|
|
public sealed override void SetLength(long length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600B5C4)
|
|
|
|
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: 0x0400735A RID: 29530
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400735A")]
|
|
internal Stream stream;
|
|
|
|
// Token: 0x0400735B RID: 29531
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400735B")]
|
|
internal IBufferedCipher inCipher;
|
|
|
|
// Token: 0x0400735C RID: 29532
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400735C")]
|
|
internal IBufferedCipher outCipher;
|
|
|
|
// Token: 0x0400735D RID: 29533
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400735D")]
|
|
private byte[] mInBuf;
|
|
|
|
// Token: 0x0400735E RID: 29534
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400735E")]
|
|
private int mInPos;
|
|
|
|
// Token: 0x0400735F RID: 29535
|
|
[FieldOffset(Offset = "0x4C")]
|
|
[Token(Token = "0x400735F")]
|
|
private bool inStreamEnded;
|
|
}
|
|
}
|