This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,448 @@
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;
}
}
@@ -0,0 +1,57 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
{
// Token: 0x02001D38 RID: 7480
[Token(Token = "0x2001D38")]
public class DigestSink : BaseOutputStream
{
// Token: 0x0600B993 RID: 47507 RVA: 0x00285130 File Offset: 0x00283330
[Token(Token = "0x600B993")]
[Address(RVA = "0x493F00", Offset = "0x492F00", VA = "0x180493F00")]
public DigestSink(IDigest digest)
{
this.mDigest = digest;
}
// Token: 0x17001D3C RID: 7484
// (get) Token: 0x0600B994 RID: 47508 RVA: 0x0028514C File Offset: 0x0028334C
[Token(Token = "0x17001D3C")]
public virtual IDigest Digest
{
[Token(Token = "0x600B994")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "32")]
get
{
return this.mDigest;
}
}
// Token: 0x0600B995 RID: 47509 RVA: 0x00285160 File Offset: 0x00283360
[Token(Token = "0x600B995")]
[Address(RVA = "0x25B68A0", Offset = "0x25B58A0", VA = "0x1825B68A0", Slot = "30")]
public override void WriteByte(byte b)
{
IDigest digest = this.mDigest;
throw new NullReferenceException();
}
// Token: 0x0600B996 RID: 47510 RVA: 0x0028517C File Offset: 0x0028337C
[Token(Token = "0x600B996")]
[Address(RVA = "0x25B6900", Offset = "0x25B5900", VA = "0x1825B6900", Slot = "29")]
public override void Write(byte[] buf, int off, int len)
{
if (len > 0)
{
IDigest digest = this.mDigest;
}
}
// Token: 0x04007519 RID: 29977
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007519")]
private readonly IDigest mDigest;
}
}
@@ -0,0 +1,208 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
{
// Token: 0x02001D39 RID: 7481
[Token(Token = "0x2001D39")]
public class DigestStream : Stream
{
// Token: 0x0600B997 RID: 47511 RVA: 0x0028519C File Offset: 0x0028339C
[Token(Token = "0x600B997")]
[Address(RVA = "0x25B6C50", Offset = "0x25B5C50", VA = "0x1825B6C50")]
public DigestStream(Stream stream, IDigest readDigest, IDigest writeDigest)
{
this.stream = stream;
this.inDigest = readDigest;
this.outDigest = writeDigest;
}
// Token: 0x0600B998 RID: 47512 RVA: 0x002851C4 File Offset: 0x002833C4
[Token(Token = "0x600B998")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "31")]
public virtual IDigest ReadDigest()
{
return this.inDigest;
}
// Token: 0x0600B999 RID: 47513 RVA: 0x002851D8 File Offset: 0x002833D8
[Token(Token = "0x600B999")]
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0", Slot = "32")]
public virtual IDigest WriteDigest()
{
return this.outDigest;
}
// Token: 0x0600B99A RID: 47514 RVA: 0x002851EC File Offset: 0x002833EC
[Token(Token = "0x600B99A")]
[Address(RVA = "0x25B6A70", Offset = "0x25B5A70", VA = "0x1825B6A70", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
Stream stream = this.stream;
if (this.inDigest != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x0600B99B RID: 47515 RVA: 0x00285210 File Offset: 0x00283410
[Token(Token = "0x600B99B")]
[Address(RVA = "0x25B69F0", Offset = "0x25B59F0", VA = "0x1825B69F0", Slot = "28")]
public override int ReadByte()
{
Stream stream = this.stream;
if (this.inDigest != 0)
{
}
int num;
return num;
}
// Token: 0x0600B99C RID: 47516 RVA: 0x00285234 File Offset: 0x00283434
[Token(Token = "0x600B99C")]
[Address(RVA = "0x25B6BA0", Offset = "0x25B5BA0", VA = "0x1825B6BA0", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
if (this.outDigest == 0 || count > 0)
{
}
bool canRead = this.stream.CanRead;
}
// Token: 0x0600B99D RID: 47517 RVA: 0x00285260 File Offset: 0x00283460
[Token(Token = "0x600B99D")]
[Address(RVA = "0x25B6B20", Offset = "0x25B5B20", VA = "0x1825B6B20", Slot = "30")]
public override void WriteByte(byte b)
{
if (this.outDigest != 0)
{
}
bool canRead = this.stream.CanRead;
}
// Token: 0x17001D3D RID: 7485
// (get) Token: 0x0600B99E RID: 47518 RVA: 0x00285288 File Offset: 0x00283488
[Token(Token = "0x17001D3D")]
public override bool CanRead
{
[Token(Token = "0x600B99E")]
[Address(RVA = "0x4B7E10", Offset = "0x4B6E10", VA = "0x1804B7E10", Slot = "7")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D3E RID: 7486
// (get) Token: 0x0600B99F RID: 47519 RVA: 0x002852A8 File Offset: 0x002834A8
[Token(Token = "0x17001D3E")]
public override bool CanWrite
{
[Token(Token = "0x600B99F")]
[Address(RVA = "0x4B7E70", Offset = "0x4B6E70", VA = "0x1804B7E70", Slot = "9")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D3F RID: 7487
// (get) Token: 0x0600B9A0 RID: 47520 RVA: 0x002852C8 File Offset: 0x002834C8
[Token(Token = "0x17001D3F")]
public override bool CanSeek
{
[Token(Token = "0x600B9A0")]
[Address(RVA = "0x4B7E40", Offset = "0x4B6E40", VA = "0x1804B7E40", Slot = "8")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D40 RID: 7488
// (get) Token: 0x0600B9A1 RID: 47521 RVA: 0x002852E8 File Offset: 0x002834E8
[Token(Token = "0x17001D40")]
public override long Length
{
[Token(Token = "0x600B9A1")]
[Address(RVA = "0x4B7EA0", Offset = "0x4B6EA0", VA = "0x1804B7EA0", Slot = "10")]
get
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
}
// Token: 0x17001D41 RID: 7489
// (get) Token: 0x0600B9A2 RID: 47522 RVA: 0x00285308 File Offset: 0x00283508
// (set) Token: 0x0600B9A3 RID: 47523 RVA: 0x00285328 File Offset: 0x00283528
[Token(Token = "0x17001D41")]
public override long Position
{
[Token(Token = "0x600B9A2")]
[Address(RVA = "0x4B7ED0", Offset = "0x4B6ED0", VA = "0x1804B7ED0", Slot = "11")]
get
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
[Token(Token = "0x600B9A3")]
[Address(RVA = "0x4B7F00", Offset = "0x4B6F00", VA = "0x1804B7F00", Slot = "12")]
set
{
bool canRead = this.stream.CanRead;
}
}
// Token: 0x0600B9A4 RID: 47524 RVA: 0x00285348 File Offset: 0x00283548
[Token(Token = "0x600B9A4")]
[Address(RVA = "0x25B6980", Offset = "0x25B5980", VA = "0x1825B6980", Slot = "15")]
public override void Close()
{
Platform.Dispose(this.stream);
base.Close();
}
// Token: 0x0600B9A5 RID: 47525 RVA: 0x00285368 File Offset: 0x00283568
[Token(Token = "0x600B9A5")]
[Address(RVA = "0x4B7C30", Offset = "0x4B6C30", VA = "0x1804B7C30", Slot = "17")]
public override void Flush()
{
bool canRead = this.stream.CanRead;
}
// Token: 0x0600B9A6 RID: 47526 RVA: 0x00285388 File Offset: 0x00283588
[Token(Token = "0x600B9A6")]
[Address(RVA = "0x4B7CC0", Offset = "0x4B6CC0", VA = "0x1804B7CC0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
// Token: 0x0600B9A7 RID: 47527 RVA: 0x002853A8 File Offset: 0x002835A8
[Token(Token = "0x600B9A7")]
[Address(RVA = "0x4B7CF0", Offset = "0x4B6CF0", VA = "0x1804B7CF0", Slot = "26")]
public override void SetLength(long length)
{
bool canRead = this.stream.CanRead;
}
// Token: 0x0400751A RID: 29978
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400751A")]
protected readonly Stream stream;
// Token: 0x0400751B RID: 29979
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400751B")]
protected readonly IDigest inDigest;
// Token: 0x0400751C RID: 29980
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400751C")]
protected readonly IDigest outDigest;
}
}
@@ -0,0 +1,57 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
{
// Token: 0x02001D3A RID: 7482
[Token(Token = "0x2001D3A")]
public class MacSink : BaseOutputStream
{
// Token: 0x0600B9A8 RID: 47528 RVA: 0x002853C8 File Offset: 0x002835C8
[Token(Token = "0x600B9A8")]
[Address(RVA = "0x493F00", Offset = "0x492F00", VA = "0x180493F00")]
public MacSink(IMac mac)
{
this.mMac = mac;
}
// Token: 0x17001D42 RID: 7490
// (get) Token: 0x0600B9A9 RID: 47529 RVA: 0x002853E4 File Offset: 0x002835E4
[Token(Token = "0x17001D42")]
public virtual IMac Mac
{
[Token(Token = "0x600B9A9")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "32")]
get
{
return this.mMac;
}
}
// Token: 0x0600B9AA RID: 47530 RVA: 0x002853F8 File Offset: 0x002835F8
[Token(Token = "0x600B9AA")]
[Address(RVA = "0x25BE840", Offset = "0x25BD840", VA = "0x1825BE840", Slot = "30")]
public override void WriteByte(byte b)
{
IMac mac = this.mMac;
throw new NullReferenceException();
}
// Token: 0x0600B9AB RID: 47531 RVA: 0x00285414 File Offset: 0x00283614
[Token(Token = "0x600B9AB")]
[Address(RVA = "0x25BE8A0", Offset = "0x25BD8A0", VA = "0x1825BE8A0", Slot = "29")]
public override void Write(byte[] buf, int off, int len)
{
if (len > 0)
{
IMac mac = this.mMac;
}
}
// Token: 0x0400751D RID: 29981
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400751D")]
private readonly IMac mMac;
}
}
@@ -0,0 +1,208 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
{
// Token: 0x02001D3B RID: 7483
[Token(Token = "0x2001D3B")]
public class MacStream : Stream
{
// Token: 0x0600B9AC RID: 47532 RVA: 0x00285434 File Offset: 0x00283634
[Token(Token = "0x600B9AC")]
[Address(RVA = "0x25BEBF0", Offset = "0x25BDBF0", VA = "0x1825BEBF0")]
public MacStream(Stream stream, IMac readMac, IMac writeMac)
{
this.stream = stream;
this.inMac = readMac;
this.outMac = writeMac;
}
// Token: 0x0600B9AD RID: 47533 RVA: 0x0028545C File Offset: 0x0028365C
[Token(Token = "0x600B9AD")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "31")]
public virtual IMac ReadMac()
{
return this.inMac;
}
// Token: 0x0600B9AE RID: 47534 RVA: 0x00285470 File Offset: 0x00283670
[Token(Token = "0x600B9AE")]
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0", Slot = "32")]
public virtual IMac WriteMac()
{
return this.outMac;
}
// Token: 0x0600B9AF RID: 47535 RVA: 0x00285484 File Offset: 0x00283684
[Token(Token = "0x600B9AF")]
[Address(RVA = "0x25BEA10", Offset = "0x25BDA10", VA = "0x1825BEA10", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
Stream stream = this.stream;
if (this.inMac != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x0600B9B0 RID: 47536 RVA: 0x002854A8 File Offset: 0x002836A8
[Token(Token = "0x600B9B0")]
[Address(RVA = "0x25BE990", Offset = "0x25BD990", VA = "0x1825BE990", Slot = "28")]
public override int ReadByte()
{
Stream stream = this.stream;
if (this.inMac != 0)
{
}
int num;
return num;
}
// Token: 0x0600B9B1 RID: 47537 RVA: 0x002854CC File Offset: 0x002836CC
[Token(Token = "0x600B9B1")]
[Address(RVA = "0x25BEB40", Offset = "0x25BDB40", VA = "0x1825BEB40", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
if (this.outMac == 0 || count > 0)
{
}
bool canRead = this.stream.CanRead;
}
// Token: 0x0600B9B2 RID: 47538 RVA: 0x002854F8 File Offset: 0x002836F8
[Token(Token = "0x600B9B2")]
[Address(RVA = "0x25BEAC0", Offset = "0x25BDAC0", VA = "0x1825BEAC0", Slot = "30")]
public override void WriteByte(byte b)
{
if (this.outMac != 0)
{
}
bool canRead = this.stream.CanRead;
}
// Token: 0x17001D43 RID: 7491
// (get) Token: 0x0600B9B3 RID: 47539 RVA: 0x00285520 File Offset: 0x00283720
[Token(Token = "0x17001D43")]
public override bool CanRead
{
[Token(Token = "0x600B9B3")]
[Address(RVA = "0x4B7E10", Offset = "0x4B6E10", VA = "0x1804B7E10", Slot = "7")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D44 RID: 7492
// (get) Token: 0x0600B9B4 RID: 47540 RVA: 0x00285540 File Offset: 0x00283740
[Token(Token = "0x17001D44")]
public override bool CanWrite
{
[Token(Token = "0x600B9B4")]
[Address(RVA = "0x4B7E70", Offset = "0x4B6E70", VA = "0x1804B7E70", Slot = "9")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D45 RID: 7493
// (get) Token: 0x0600B9B5 RID: 47541 RVA: 0x00285560 File Offset: 0x00283760
[Token(Token = "0x17001D45")]
public override bool CanSeek
{
[Token(Token = "0x600B9B5")]
[Address(RVA = "0x4B7E40", Offset = "0x4B6E40", VA = "0x1804B7E40", Slot = "8")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D46 RID: 7494
// (get) Token: 0x0600B9B6 RID: 47542 RVA: 0x00285580 File Offset: 0x00283780
[Token(Token = "0x17001D46")]
public override long Length
{
[Token(Token = "0x600B9B6")]
[Address(RVA = "0x4B7EA0", Offset = "0x4B6EA0", VA = "0x1804B7EA0", Slot = "10")]
get
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
}
// Token: 0x17001D47 RID: 7495
// (get) Token: 0x0600B9B7 RID: 47543 RVA: 0x002855A0 File Offset: 0x002837A0
// (set) Token: 0x0600B9B8 RID: 47544 RVA: 0x002855C0 File Offset: 0x002837C0
[Token(Token = "0x17001D47")]
public override long Position
{
[Token(Token = "0x600B9B7")]
[Address(RVA = "0x4B7ED0", Offset = "0x4B6ED0", VA = "0x1804B7ED0", Slot = "11")]
get
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
[Token(Token = "0x600B9B8")]
[Address(RVA = "0x4B7F00", Offset = "0x4B6F00", VA = "0x1804B7F00", Slot = "12")]
set
{
bool canRead = this.stream.CanRead;
}
}
// Token: 0x0600B9B9 RID: 47545 RVA: 0x002855E0 File Offset: 0x002837E0
[Token(Token = "0x600B9B9")]
[Address(RVA = "0x25BE920", Offset = "0x25BD920", VA = "0x1825BE920", Slot = "15")]
public override void Close()
{
Platform.Dispose(this.stream);
base.Close();
}
// Token: 0x0600B9BA RID: 47546 RVA: 0x00285600 File Offset: 0x00283800
[Token(Token = "0x600B9BA")]
[Address(RVA = "0x4B7C30", Offset = "0x4B6C30", VA = "0x1804B7C30", Slot = "17")]
public override void Flush()
{
bool canRead = this.stream.CanRead;
}
// Token: 0x0600B9BB RID: 47547 RVA: 0x00285620 File Offset: 0x00283820
[Token(Token = "0x600B9BB")]
[Address(RVA = "0x4B7CC0", Offset = "0x4B6CC0", VA = "0x1804B7CC0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
// Token: 0x0600B9BC RID: 47548 RVA: 0x00285640 File Offset: 0x00283840
[Token(Token = "0x600B9BC")]
[Address(RVA = "0x4B7CF0", Offset = "0x4B6CF0", VA = "0x1804B7CF0", Slot = "26")]
public override void SetLength(long length)
{
bool canRead = this.stream.CanRead;
}
// Token: 0x0400751E RID: 29982
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400751E")]
protected readonly Stream stream;
// Token: 0x0400751F RID: 29983
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400751F")]
protected readonly IMac inMac;
// Token: 0x04007520 RID: 29984
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4007520")]
protected readonly IMac outMac;
}
}
@@ -0,0 +1,57 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
{
// Token: 0x02001D3C RID: 7484
[Token(Token = "0x2001D3C")]
public class SignerSink : BaseOutputStream
{
// Token: 0x0600B9BD RID: 47549 RVA: 0x00285660 File Offset: 0x00283860
[Token(Token = "0x600B9BD")]
[Address(RVA = "0x493F00", Offset = "0x492F00", VA = "0x180493F00")]
public SignerSink(ISigner signer)
{
this.mSigner = signer;
}
// Token: 0x17001D48 RID: 7496
// (get) Token: 0x0600B9BE RID: 47550 RVA: 0x0028567C File Offset: 0x0028387C
[Token(Token = "0x17001D48")]
public virtual ISigner Signer
{
[Token(Token = "0x600B9BE")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "32")]
get
{
return this.mSigner;
}
}
// Token: 0x0600B9BF RID: 47551 RVA: 0x00285690 File Offset: 0x00283890
[Token(Token = "0x600B9BF")]
[Address(RVA = "0x25C6CA0", Offset = "0x25C5CA0", VA = "0x1825C6CA0", Slot = "30")]
public override void WriteByte(byte b)
{
ISigner signer = this.mSigner;
throw new NullReferenceException();
}
// Token: 0x0600B9C0 RID: 47552 RVA: 0x002856AC File Offset: 0x002838AC
[Token(Token = "0x600B9C0")]
[Address(RVA = "0x25C6D00", Offset = "0x25C5D00", VA = "0x1825C6D00", Slot = "29")]
public override void Write(byte[] buf, int off, int len)
{
if (len > 0)
{
ISigner signer = this.mSigner;
}
}
// Token: 0x04007521 RID: 29985
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007521")]
private readonly ISigner mSigner;
}
}
@@ -0,0 +1,208 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
{
// Token: 0x02001D3D RID: 7485
[Token(Token = "0x2001D3D")]
public class SignerStream : Stream
{
// Token: 0x0600B9C1 RID: 47553 RVA: 0x002856CC File Offset: 0x002838CC
[Token(Token = "0x600B9C1")]
[Address(RVA = "0x25C7050", Offset = "0x25C6050", VA = "0x1825C7050")]
public SignerStream(Stream stream, ISigner readSigner, ISigner writeSigner)
{
this.stream = stream;
this.inSigner = readSigner;
this.outSigner = writeSigner;
}
// Token: 0x0600B9C2 RID: 47554 RVA: 0x002856F4 File Offset: 0x002838F4
[Token(Token = "0x600B9C2")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "31")]
public virtual ISigner ReadSigner()
{
return this.inSigner;
}
// Token: 0x0600B9C3 RID: 47555 RVA: 0x00285708 File Offset: 0x00283908
[Token(Token = "0x600B9C3")]
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0", Slot = "32")]
public virtual ISigner WriteSigner()
{
return this.outSigner;
}
// Token: 0x0600B9C4 RID: 47556 RVA: 0x0028571C File Offset: 0x0028391C
[Token(Token = "0x600B9C4")]
[Address(RVA = "0x25C6E70", Offset = "0x25C5E70", VA = "0x1825C6E70", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
Stream stream = this.stream;
if (this.inSigner != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x0600B9C5 RID: 47557 RVA: 0x00285740 File Offset: 0x00283940
[Token(Token = "0x600B9C5")]
[Address(RVA = "0x25C6DF0", Offset = "0x25C5DF0", VA = "0x1825C6DF0", Slot = "28")]
public override int ReadByte()
{
Stream stream = this.stream;
if (this.inSigner != 0)
{
}
int num;
return num;
}
// Token: 0x0600B9C6 RID: 47558 RVA: 0x00285764 File Offset: 0x00283964
[Token(Token = "0x600B9C6")]
[Address(RVA = "0x25C6FA0", Offset = "0x25C5FA0", VA = "0x1825C6FA0", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
if (this.outSigner == 0 || count > 0)
{
}
bool canRead = this.stream.CanRead;
}
// Token: 0x0600B9C7 RID: 47559 RVA: 0x00285790 File Offset: 0x00283990
[Token(Token = "0x600B9C7")]
[Address(RVA = "0x25C6F20", Offset = "0x25C5F20", VA = "0x1825C6F20", Slot = "30")]
public override void WriteByte(byte b)
{
if (this.outSigner != 0)
{
}
bool canRead = this.stream.CanRead;
}
// Token: 0x17001D49 RID: 7497
// (get) Token: 0x0600B9C8 RID: 47560 RVA: 0x002857B8 File Offset: 0x002839B8
[Token(Token = "0x17001D49")]
public override bool CanRead
{
[Token(Token = "0x600B9C8")]
[Address(RVA = "0x4B7E10", Offset = "0x4B6E10", VA = "0x1804B7E10", Slot = "7")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D4A RID: 7498
// (get) Token: 0x0600B9C9 RID: 47561 RVA: 0x002857D8 File Offset: 0x002839D8
[Token(Token = "0x17001D4A")]
public override bool CanWrite
{
[Token(Token = "0x600B9C9")]
[Address(RVA = "0x4B7E70", Offset = "0x4B6E70", VA = "0x1804B7E70", Slot = "9")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D4B RID: 7499
// (get) Token: 0x0600B9CA RID: 47562 RVA: 0x002857F8 File Offset: 0x002839F8
[Token(Token = "0x17001D4B")]
public override bool CanSeek
{
[Token(Token = "0x600B9CA")]
[Address(RVA = "0x4B7E40", Offset = "0x4B6E40", VA = "0x1804B7E40", Slot = "8")]
get
{
return this.stream.CanRead;
}
}
// Token: 0x17001D4C RID: 7500
// (get) Token: 0x0600B9CB RID: 47563 RVA: 0x00285818 File Offset: 0x00283A18
[Token(Token = "0x17001D4C")]
public override long Length
{
[Token(Token = "0x600B9CB")]
[Address(RVA = "0x4B7EA0", Offset = "0x4B6EA0", VA = "0x1804B7EA0", Slot = "10")]
get
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
}
// Token: 0x17001D4D RID: 7501
// (get) Token: 0x0600B9CC RID: 47564 RVA: 0x00285838 File Offset: 0x00283A38
// (set) Token: 0x0600B9CD RID: 47565 RVA: 0x00285858 File Offset: 0x00283A58
[Token(Token = "0x17001D4D")]
public override long Position
{
[Token(Token = "0x600B9CC")]
[Address(RVA = "0x4B7ED0", Offset = "0x4B6ED0", VA = "0x1804B7ED0", Slot = "11")]
get
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
[Token(Token = "0x600B9CD")]
[Address(RVA = "0x4B7F00", Offset = "0x4B6F00", VA = "0x1804B7F00", Slot = "12")]
set
{
bool canRead = this.stream.CanRead;
}
}
// Token: 0x0600B9CE RID: 47566 RVA: 0x00285878 File Offset: 0x00283A78
[Token(Token = "0x600B9CE")]
[Address(RVA = "0x25C6D80", Offset = "0x25C5D80", VA = "0x1825C6D80", Slot = "15")]
public override void Close()
{
Platform.Dispose(this.stream);
base.Close();
}
// Token: 0x0600B9CF RID: 47567 RVA: 0x00285898 File Offset: 0x00283A98
[Token(Token = "0x600B9CF")]
[Address(RVA = "0x4B7C30", Offset = "0x4B6C30", VA = "0x1804B7C30", Slot = "17")]
public override void Flush()
{
bool canRead = this.stream.CanRead;
}
// Token: 0x0600B9D0 RID: 47568 RVA: 0x002858B8 File Offset: 0x00283AB8
[Token(Token = "0x600B9D0")]
[Address(RVA = "0x4B7CC0", Offset = "0x4B6CC0", VA = "0x1804B7CC0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
bool canRead = this.stream.CanRead;
throw new NullReferenceException();
}
// Token: 0x0600B9D1 RID: 47569 RVA: 0x002858D8 File Offset: 0x00283AD8
[Token(Token = "0x600B9D1")]
[Address(RVA = "0x4B7CF0", Offset = "0x4B6CF0", VA = "0x1804B7CF0", Slot = "26")]
public override void SetLength(long length)
{
bool canRead = this.stream.CanRead;
}
// Token: 0x04007522 RID: 29986
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007522")]
protected readonly Stream stream;
// Token: 0x04007523 RID: 29987
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007523")]
protected readonly ISigner inSigner;
// Token: 0x04007524 RID: 29988
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4007524")]
protected readonly ISigner outSigner;
}
}