scripts
This commit is contained in:
@@ -0,0 +1,450 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
|
||||
{
|
||||
// Token: 0x0200167B RID: 5755
|
||||
[Token(Token = "0x200167B")]
|
||||
[StructLayout(3)]
|
||||
public class DigestSink : BaseOutputStream
|
||||
{
|
||||
// Token: 0x060099EB RID: 39403 RVA: 0x002249C4 File Offset: 0x00222BC4
|
||||
[Token(Token = "0x60099EB")]
|
||||
[Address(RVA = "0x1E7DE20", Offset = "0x1E7C820", VA = "0x181E7DE20")]
|
||||
public DigestSink(IDigest digest)
|
||||
{
|
||||
this.mDigest = digest;
|
||||
}
|
||||
|
||||
// Token: 0x1700189E RID: 6302
|
||||
// (get) Token: 0x060099EC RID: 39404 RVA: 0x002249E0 File Offset: 0x00222BE0
|
||||
[Token(Token = "0x1700189E")]
|
||||
public virtual IDigest Digest
|
||||
{
|
||||
[Token(Token = "0x60099EC")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "32")]
|
||||
get
|
||||
{
|
||||
return this.mDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060099ED RID: 39405 RVA: 0x002249F4 File Offset: 0x00222BF4
|
||||
[Token(Token = "0x60099ED")]
|
||||
[Address(RVA = "0x1F4F8F0", Offset = "0x1F4E2F0", VA = "0x181F4F8F0", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
IDigest digest = this.mDigest;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060099EE RID: 39406 RVA: 0x00224A10 File Offset: 0x00222C10
|
||||
[Token(Token = "0x60099EE")]
|
||||
[Address(RVA = "0x1F4F950", Offset = "0x1F4E350", VA = "0x181F4F950", Slot = "29")]
|
||||
public override void Write(byte[] buf, int off, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
IDigest digest = this.mDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400651D RID: 25885
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400651D")]
|
||||
private readonly IDigest mDigest;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,210 @@
|
||||
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: 0x0200167C RID: 5756
|
||||
[Token(Token = "0x200167C")]
|
||||
[StructLayout(3)]
|
||||
public class DigestStream : Stream
|
||||
{
|
||||
// Token: 0x060099EF RID: 39407 RVA: 0x00224A30 File Offset: 0x00222C30
|
||||
[Token(Token = "0x60099EF")]
|
||||
[Address(RVA = "0x1F4FCA0", Offset = "0x1F4E6A0", VA = "0x181F4FCA0")]
|
||||
public DigestStream(Stream stream, IDigest readDigest, IDigest writeDigest)
|
||||
{
|
||||
this.stream = stream;
|
||||
this.inDigest = readDigest;
|
||||
this.outDigest = writeDigest;
|
||||
}
|
||||
|
||||
// Token: 0x060099F0 RID: 39408 RVA: 0x00224A58 File Offset: 0x00222C58
|
||||
[Token(Token = "0x60099F0")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "31")]
|
||||
public virtual IDigest ReadDigest()
|
||||
{
|
||||
return this.inDigest;
|
||||
}
|
||||
|
||||
// Token: 0x060099F1 RID: 39409 RVA: 0x00224A6C File Offset: 0x00222C6C
|
||||
[Token(Token = "0x60099F1")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0", Slot = "32")]
|
||||
public virtual IDigest WriteDigest()
|
||||
{
|
||||
return this.outDigest;
|
||||
}
|
||||
|
||||
// Token: 0x060099F2 RID: 39410 RVA: 0x00224A80 File Offset: 0x00222C80
|
||||
[Token(Token = "0x60099F2")]
|
||||
[Address(RVA = "0x1F4FAC0", Offset = "0x1F4E4C0", VA = "0x181F4FAC0", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inDigest != 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060099F3 RID: 39411 RVA: 0x00224AA4 File Offset: 0x00222CA4
|
||||
[Token(Token = "0x60099F3")]
|
||||
[Address(RVA = "0x1F4FA40", Offset = "0x1F4E440", VA = "0x181F4FA40", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inDigest != 0)
|
||||
{
|
||||
}
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x060099F4 RID: 39412 RVA: 0x00224AC8 File Offset: 0x00222CC8
|
||||
[Token(Token = "0x60099F4")]
|
||||
[Address(RVA = "0x1F4FBF0", Offset = "0x1F4E5F0", VA = "0x181F4FBF0", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
if (this.outDigest == 0 || count > 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x060099F5 RID: 39413 RVA: 0x00224AF4 File Offset: 0x00222CF4
|
||||
[Token(Token = "0x60099F5")]
|
||||
[Address(RVA = "0x1F4FB70", Offset = "0x1F4E570", VA = "0x181F4FB70", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
if (this.outDigest != 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x1700189F RID: 6303
|
||||
// (get) Token: 0x060099F6 RID: 39414 RVA: 0x00224B1C File Offset: 0x00222D1C
|
||||
[Token(Token = "0x1700189F")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x60099F6")]
|
||||
[Address(RVA = "0x917880", Offset = "0x916280", VA = "0x180917880", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018A0 RID: 6304
|
||||
// (get) Token: 0x060099F7 RID: 39415 RVA: 0x00224B3C File Offset: 0x00222D3C
|
||||
[Token(Token = "0x170018A0")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x60099F7")]
|
||||
[Address(RVA = "0x9178E0", Offset = "0x9162E0", VA = "0x1809178E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018A1 RID: 6305
|
||||
// (get) Token: 0x060099F8 RID: 39416 RVA: 0x00224B5C File Offset: 0x00222D5C
|
||||
[Token(Token = "0x170018A1")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x60099F8")]
|
||||
[Address(RVA = "0x9178B0", Offset = "0x9162B0", VA = "0x1809178B0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018A2 RID: 6306
|
||||
// (get) Token: 0x060099F9 RID: 39417 RVA: 0x00224B7C File Offset: 0x00222D7C
|
||||
[Token(Token = "0x170018A2")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x60099F9")]
|
||||
[Address(RVA = "0x7760E0", Offset = "0x774AE0", VA = "0x1807760E0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018A3 RID: 6307
|
||||
// (get) Token: 0x060099FA RID: 39418 RVA: 0x00224B9C File Offset: 0x00222D9C
|
||||
// (set) Token: 0x060099FB RID: 39419 RVA: 0x00224BBC File Offset: 0x00222DBC
|
||||
[Token(Token = "0x170018A3")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x60099FA")]
|
||||
[Address(RVA = "0x776110", Offset = "0x774B10", VA = "0x180776110", Slot = "11")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
[Token(Token = "0x60099FB")]
|
||||
[Address(RVA = "0x1F4FD30", Offset = "0x1F4E730", VA = "0x181F4FD30", Slot = "12")]
|
||||
set
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060099FC RID: 39420 RVA: 0x00224BDC File Offset: 0x00222DDC
|
||||
[Token(Token = "0x60099FC")]
|
||||
[Address(RVA = "0x1F4F9D0", Offset = "0x1F4E3D0", VA = "0x181F4F9D0", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
Platform.Dispose(this.stream);
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x060099FD RID: 39421 RVA: 0x00224BFC File Offset: 0x00222DFC
|
||||
[Token(Token = "0x60099FD")]
|
||||
[Address(RVA = "0x69C680", Offset = "0x69B080", VA = "0x18069C680", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x060099FE RID: 39422 RVA: 0x00224C1C File Offset: 0x00222E1C
|
||||
[Token(Token = "0x60099FE")]
|
||||
[Address(RVA = "0xC7F460", Offset = "0xC7DE60", VA = "0x180C7F460", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060099FF RID: 39423 RVA: 0x00224C3C File Offset: 0x00222E3C
|
||||
[Token(Token = "0x60099FF")]
|
||||
[Address(RVA = "0x775940", Offset = "0x774340", VA = "0x180775940", Slot = "26")]
|
||||
public override void SetLength(long length)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0400651E RID: 25886
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400651E")]
|
||||
protected readonly Stream stream;
|
||||
|
||||
// Token: 0x0400651F RID: 25887
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400651F")]
|
||||
protected readonly IDigest inDigest;
|
||||
|
||||
// Token: 0x04006520 RID: 25888
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006520")]
|
||||
protected readonly IDigest outDigest;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
|
||||
{
|
||||
// Token: 0x0200167D RID: 5757
|
||||
[Token(Token = "0x200167D")]
|
||||
[StructLayout(3)]
|
||||
public class MacSink : BaseOutputStream
|
||||
{
|
||||
// Token: 0x06009A00 RID: 39424 RVA: 0x00224C5C File Offset: 0x00222E5C
|
||||
[Token(Token = "0x6009A00")]
|
||||
[Address(RVA = "0x1E7DE20", Offset = "0x1E7C820", VA = "0x181E7DE20")]
|
||||
public MacSink(IMac mac)
|
||||
{
|
||||
this.mMac = mac;
|
||||
}
|
||||
|
||||
// Token: 0x170018A4 RID: 6308
|
||||
// (get) Token: 0x06009A01 RID: 39425 RVA: 0x00224C78 File Offset: 0x00222E78
|
||||
[Token(Token = "0x170018A4")]
|
||||
public virtual IMac Mac
|
||||
{
|
||||
[Token(Token = "0x6009A01")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "32")]
|
||||
get
|
||||
{
|
||||
return this.mMac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009A02 RID: 39426 RVA: 0x00224C8C File Offset: 0x00222E8C
|
||||
[Token(Token = "0x6009A02")]
|
||||
[Address(RVA = "0x1F55C50", Offset = "0x1F54650", VA = "0x181F55C50", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
IMac mac = this.mMac;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009A03 RID: 39427 RVA: 0x00224CA8 File Offset: 0x00222EA8
|
||||
[Token(Token = "0x6009A03")]
|
||||
[Address(RVA = "0x1F55CB0", Offset = "0x1F546B0", VA = "0x181F55CB0", Slot = "29")]
|
||||
public override void Write(byte[] buf, int off, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
IMac mac = this.mMac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006521 RID: 25889
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006521")]
|
||||
private readonly IMac mMac;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,210 @@
|
||||
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: 0x0200167E RID: 5758
|
||||
[Token(Token = "0x200167E")]
|
||||
[StructLayout(3)]
|
||||
public class MacStream : Stream
|
||||
{
|
||||
// Token: 0x06009A04 RID: 39428 RVA: 0x00224CC8 File Offset: 0x00222EC8
|
||||
[Token(Token = "0x6009A04")]
|
||||
[Address(RVA = "0x1F56000", Offset = "0x1F54A00", VA = "0x181F56000")]
|
||||
public MacStream(Stream stream, IMac readMac, IMac writeMac)
|
||||
{
|
||||
this.stream = stream;
|
||||
this.inMac = readMac;
|
||||
this.outMac = writeMac;
|
||||
}
|
||||
|
||||
// Token: 0x06009A05 RID: 39429 RVA: 0x00224CF0 File Offset: 0x00222EF0
|
||||
[Token(Token = "0x6009A05")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "31")]
|
||||
public virtual IMac ReadMac()
|
||||
{
|
||||
return this.inMac;
|
||||
}
|
||||
|
||||
// Token: 0x06009A06 RID: 39430 RVA: 0x00224D04 File Offset: 0x00222F04
|
||||
[Token(Token = "0x6009A06")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0", Slot = "32")]
|
||||
public virtual IMac WriteMac()
|
||||
{
|
||||
return this.outMac;
|
||||
}
|
||||
|
||||
// Token: 0x06009A07 RID: 39431 RVA: 0x00224D18 File Offset: 0x00222F18
|
||||
[Token(Token = "0x6009A07")]
|
||||
[Address(RVA = "0x1F55E20", Offset = "0x1F54820", VA = "0x181F55E20", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inMac != 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009A08 RID: 39432 RVA: 0x00224D3C File Offset: 0x00222F3C
|
||||
[Token(Token = "0x6009A08")]
|
||||
[Address(RVA = "0x1F55DA0", Offset = "0x1F547A0", VA = "0x181F55DA0", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inMac != 0)
|
||||
{
|
||||
}
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06009A09 RID: 39433 RVA: 0x00224D60 File Offset: 0x00222F60
|
||||
[Token(Token = "0x6009A09")]
|
||||
[Address(RVA = "0x1F55F50", Offset = "0x1F54950", VA = "0x181F55F50", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
if (this.outMac == 0 || count > 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x06009A0A RID: 39434 RVA: 0x00224D8C File Offset: 0x00222F8C
|
||||
[Token(Token = "0x6009A0A")]
|
||||
[Address(RVA = "0x1F55ED0", Offset = "0x1F548D0", VA = "0x181F55ED0", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
if (this.outMac != 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x170018A5 RID: 6309
|
||||
// (get) Token: 0x06009A0B RID: 39435 RVA: 0x00224DB4 File Offset: 0x00222FB4
|
||||
[Token(Token = "0x170018A5")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x6009A0B")]
|
||||
[Address(RVA = "0x917880", Offset = "0x916280", VA = "0x180917880", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018A6 RID: 6310
|
||||
// (get) Token: 0x06009A0C RID: 39436 RVA: 0x00224DD4 File Offset: 0x00222FD4
|
||||
[Token(Token = "0x170018A6")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x6009A0C")]
|
||||
[Address(RVA = "0x9178E0", Offset = "0x9162E0", VA = "0x1809178E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018A7 RID: 6311
|
||||
// (get) Token: 0x06009A0D RID: 39437 RVA: 0x00224DF4 File Offset: 0x00222FF4
|
||||
[Token(Token = "0x170018A7")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x6009A0D")]
|
||||
[Address(RVA = "0x9178B0", Offset = "0x9162B0", VA = "0x1809178B0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018A8 RID: 6312
|
||||
// (get) Token: 0x06009A0E RID: 39438 RVA: 0x00224E14 File Offset: 0x00223014
|
||||
[Token(Token = "0x170018A8")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x6009A0E")]
|
||||
[Address(RVA = "0x7760E0", Offset = "0x774AE0", VA = "0x1807760E0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018A9 RID: 6313
|
||||
// (get) Token: 0x06009A0F RID: 39439 RVA: 0x00224E34 File Offset: 0x00223034
|
||||
// (set) Token: 0x06009A10 RID: 39440 RVA: 0x00224E54 File Offset: 0x00223054
|
||||
[Token(Token = "0x170018A9")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x6009A0F")]
|
||||
[Address(RVA = "0x776110", Offset = "0x774B10", VA = "0x180776110", Slot = "11")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
[Token(Token = "0x6009A10")]
|
||||
[Address(RVA = "0x1F4FD30", Offset = "0x1F4E730", VA = "0x181F4FD30", Slot = "12")]
|
||||
set
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009A11 RID: 39441 RVA: 0x00224E74 File Offset: 0x00223074
|
||||
[Token(Token = "0x6009A11")]
|
||||
[Address(RVA = "0x1F55D30", Offset = "0x1F54730", VA = "0x181F55D30", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
Platform.Dispose(this.stream);
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x06009A12 RID: 39442 RVA: 0x00224E94 File Offset: 0x00223094
|
||||
[Token(Token = "0x6009A12")]
|
||||
[Address(RVA = "0x69C680", Offset = "0x69B080", VA = "0x18069C680", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x06009A13 RID: 39443 RVA: 0x00224EB4 File Offset: 0x002230B4
|
||||
[Token(Token = "0x6009A13")]
|
||||
[Address(RVA = "0xC7F460", Offset = "0xC7DE60", VA = "0x180C7F460", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009A14 RID: 39444 RVA: 0x00224ED4 File Offset: 0x002230D4
|
||||
[Token(Token = "0x6009A14")]
|
||||
[Address(RVA = "0x775940", Offset = "0x774340", VA = "0x180775940", Slot = "26")]
|
||||
public override void SetLength(long length)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x04006522 RID: 25890
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006522")]
|
||||
protected readonly Stream stream;
|
||||
|
||||
// Token: 0x04006523 RID: 25891
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006523")]
|
||||
protected readonly IMac inMac;
|
||||
|
||||
// Token: 0x04006524 RID: 25892
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006524")]
|
||||
protected readonly IMac outMac;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
|
||||
{
|
||||
// Token: 0x0200167F RID: 5759
|
||||
[Token(Token = "0x200167F")]
|
||||
[StructLayout(3)]
|
||||
public class SignerSink : BaseOutputStream
|
||||
{
|
||||
// Token: 0x06009A15 RID: 39445 RVA: 0x00224EF4 File Offset: 0x002230F4
|
||||
[Token(Token = "0x6009A15")]
|
||||
[Address(RVA = "0x1E7DE20", Offset = "0x1E7C820", VA = "0x181E7DE20")]
|
||||
public SignerSink(ISigner signer)
|
||||
{
|
||||
this.mSigner = signer;
|
||||
}
|
||||
|
||||
// Token: 0x170018AA RID: 6314
|
||||
// (get) Token: 0x06009A16 RID: 39446 RVA: 0x00224F10 File Offset: 0x00223110
|
||||
[Token(Token = "0x170018AA")]
|
||||
public virtual ISigner Signer
|
||||
{
|
||||
[Token(Token = "0x6009A16")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "32")]
|
||||
get
|
||||
{
|
||||
return this.mSigner;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009A17 RID: 39447 RVA: 0x00224F24 File Offset: 0x00223124
|
||||
[Token(Token = "0x6009A17")]
|
||||
[Address(RVA = "0x1F5DAB0", Offset = "0x1F5C4B0", VA = "0x181F5DAB0", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
ISigner signer = this.mSigner;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009A18 RID: 39448 RVA: 0x00224F40 File Offset: 0x00223140
|
||||
[Token(Token = "0x6009A18")]
|
||||
[Address(RVA = "0x1F5DB10", Offset = "0x1F5C510", VA = "0x181F5DB10", Slot = "29")]
|
||||
public override void Write(byte[] buf, int off, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
ISigner signer = this.mSigner;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006525 RID: 25893
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006525")]
|
||||
private readonly ISigner mSigner;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,210 @@
|
||||
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: 0x02001680 RID: 5760
|
||||
[Token(Token = "0x2001680")]
|
||||
[StructLayout(3)]
|
||||
public class SignerStream : Stream
|
||||
{
|
||||
// Token: 0x06009A19 RID: 39449 RVA: 0x00224F60 File Offset: 0x00223160
|
||||
[Token(Token = "0x6009A19")]
|
||||
[Address(RVA = "0x1F5DE60", Offset = "0x1F5C860", VA = "0x181F5DE60")]
|
||||
public SignerStream(Stream stream, ISigner readSigner, ISigner writeSigner)
|
||||
{
|
||||
this.stream = stream;
|
||||
this.inSigner = readSigner;
|
||||
this.outSigner = writeSigner;
|
||||
}
|
||||
|
||||
// Token: 0x06009A1A RID: 39450 RVA: 0x00224F88 File Offset: 0x00223188
|
||||
[Token(Token = "0x6009A1A")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "31")]
|
||||
public virtual ISigner ReadSigner()
|
||||
{
|
||||
return this.inSigner;
|
||||
}
|
||||
|
||||
// Token: 0x06009A1B RID: 39451 RVA: 0x00224F9C File Offset: 0x0022319C
|
||||
[Token(Token = "0x6009A1B")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0", Slot = "32")]
|
||||
public virtual ISigner WriteSigner()
|
||||
{
|
||||
return this.outSigner;
|
||||
}
|
||||
|
||||
// Token: 0x06009A1C RID: 39452 RVA: 0x00224FB0 File Offset: 0x002231B0
|
||||
[Token(Token = "0x6009A1C")]
|
||||
[Address(RVA = "0x1F5DC80", Offset = "0x1F5C680", VA = "0x181F5DC80", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inSigner != 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009A1D RID: 39453 RVA: 0x00224FD4 File Offset: 0x002231D4
|
||||
[Token(Token = "0x6009A1D")]
|
||||
[Address(RVA = "0x1F5DC00", Offset = "0x1F5C600", VA = "0x181F5DC00", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inSigner != 0)
|
||||
{
|
||||
}
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06009A1E RID: 39454 RVA: 0x00224FF8 File Offset: 0x002231F8
|
||||
[Token(Token = "0x6009A1E")]
|
||||
[Address(RVA = "0x1F5DDB0", Offset = "0x1F5C7B0", VA = "0x181F5DDB0", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
if (this.outSigner == 0 || count > 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x06009A1F RID: 39455 RVA: 0x00225024 File Offset: 0x00223224
|
||||
[Token(Token = "0x6009A1F")]
|
||||
[Address(RVA = "0x1F5DD30", Offset = "0x1F5C730", VA = "0x181F5DD30", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
if (this.outSigner != 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x170018AB RID: 6315
|
||||
// (get) Token: 0x06009A20 RID: 39456 RVA: 0x0022504C File Offset: 0x0022324C
|
||||
[Token(Token = "0x170018AB")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x6009A20")]
|
||||
[Address(RVA = "0x917880", Offset = "0x916280", VA = "0x180917880", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018AC RID: 6316
|
||||
// (get) Token: 0x06009A21 RID: 39457 RVA: 0x0022506C File Offset: 0x0022326C
|
||||
[Token(Token = "0x170018AC")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x6009A21")]
|
||||
[Address(RVA = "0x9178E0", Offset = "0x9162E0", VA = "0x1809178E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018AD RID: 6317
|
||||
// (get) Token: 0x06009A22 RID: 39458 RVA: 0x0022508C File Offset: 0x0022328C
|
||||
[Token(Token = "0x170018AD")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x6009A22")]
|
||||
[Address(RVA = "0x9178B0", Offset = "0x9162B0", VA = "0x1809178B0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018AE RID: 6318
|
||||
// (get) Token: 0x06009A23 RID: 39459 RVA: 0x002250AC File Offset: 0x002232AC
|
||||
[Token(Token = "0x170018AE")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x6009A23")]
|
||||
[Address(RVA = "0x7760E0", Offset = "0x774AE0", VA = "0x1807760E0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018AF RID: 6319
|
||||
// (get) Token: 0x06009A24 RID: 39460 RVA: 0x002250CC File Offset: 0x002232CC
|
||||
// (set) Token: 0x06009A25 RID: 39461 RVA: 0x002250EC File Offset: 0x002232EC
|
||||
[Token(Token = "0x170018AF")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x6009A24")]
|
||||
[Address(RVA = "0x776110", Offset = "0x774B10", VA = "0x180776110", Slot = "11")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
[Token(Token = "0x6009A25")]
|
||||
[Address(RVA = "0x1F4FD30", Offset = "0x1F4E730", VA = "0x181F4FD30", Slot = "12")]
|
||||
set
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009A26 RID: 39462 RVA: 0x0022510C File Offset: 0x0022330C
|
||||
[Token(Token = "0x6009A26")]
|
||||
[Address(RVA = "0x1F5DB90", Offset = "0x1F5C590", VA = "0x181F5DB90", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
Platform.Dispose(this.stream);
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x06009A27 RID: 39463 RVA: 0x0022512C File Offset: 0x0022332C
|
||||
[Token(Token = "0x6009A27")]
|
||||
[Address(RVA = "0x69C680", Offset = "0x69B080", VA = "0x18069C680", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x06009A28 RID: 39464 RVA: 0x0022514C File Offset: 0x0022334C
|
||||
[Token(Token = "0x6009A28")]
|
||||
[Address(RVA = "0xC7F460", Offset = "0xC7DE60", VA = "0x180C7F460", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009A29 RID: 39465 RVA: 0x0022516C File Offset: 0x0022336C
|
||||
[Token(Token = "0x6009A29")]
|
||||
[Address(RVA = "0x775940", Offset = "0x774340", VA = "0x180775940", Slot = "26")]
|
||||
public override void SetLength(long length)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x04006526 RID: 25894
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006526")]
|
||||
protected readonly Stream stream;
|
||||
|
||||
// Token: 0x04006527 RID: 25895
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006527")]
|
||||
protected readonly ISigner inSigner;
|
||||
|
||||
// Token: 0x04006528 RID: 25896
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006528")]
|
||||
protected readonly ISigner outSigner;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user