oh dear
This commit is contained in:
@@ -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: 0x02001C57 RID: 7255
|
||||
[Token(Token = "0x2001C57")]
|
||||
public class CipherStream : Stream
|
||||
{
|
||||
// Token: 0x0600B5B2 RID: 46514 RVA: 0x0027BBD8 File Offset: 0x00279DD8
|
||||
[Token(Token = "0x600B5B2")]
|
||||
[Address(RVA = "0x1C1ED30", Offset = "0x1C1DB30", VA = "0x181C1ED30")]
|
||||
public CipherStream(Stream stream, IBufferedCipher readCipher, IBufferedCipher writeCipher)
|
||||
{
|
||||
this.stream = stream;
|
||||
if (readCipher != 0)
|
||||
{
|
||||
this.inCipher = readCipher;
|
||||
this.mInBuf = (ulong)0L;
|
||||
}
|
||||
if (writeCipher != 0)
|
||||
{
|
||||
this.outCipher = writeCipher;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C98 RID: 7320
|
||||
// (get) Token: 0x0600B5B3 RID: 46515 RVA: 0x0027BC14 File Offset: 0x00279E14
|
||||
[Token(Token = "0x17001C98")]
|
||||
public IBufferedCipher ReadCipher
|
||||
{
|
||||
[Token(Token = "0x600B5B3")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.inCipher;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C99 RID: 7321
|
||||
// (get) Token: 0x0600B5B4 RID: 46516 RVA: 0x0027BC28 File Offset: 0x00279E28
|
||||
[Token(Token = "0x17001C99")]
|
||||
public IBufferedCipher WriteCipher
|
||||
{
|
||||
[Token(Token = "0x600B5B4")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.outCipher;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B5B5 RID: 46517 RVA: 0x0027BC3C File Offset: 0x00279E3C
|
||||
[Token(Token = "0x600B5B5")]
|
||||
[Address(RVA = "0x1C1E8D0", Offset = "0x1C1D6D0", VA = "0x181C1E8D0", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
if (this.inCipher != (ulong)0L)
|
||||
{
|
||||
byte[] array = this.mInBuf;
|
||||
if (array != 0)
|
||||
{
|
||||
int length = array.Length;
|
||||
}
|
||||
if (this.FillInBuf())
|
||||
{
|
||||
int num = this.mInPos;
|
||||
byte[] array2 = this.mInBuf;
|
||||
int num2 = num + 1;
|
||||
this.mInPos = num2;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5B6 RID: 46518 RVA: 0x0027BCA0 File Offset: 0x00279EA0
|
||||
[Token(Token = "0x600B5B6")]
|
||||
[Address(RVA = "0x1C1E960", Offset = "0x1C1D760", VA = "0x181C1E960", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
if (this.inCipher != (ulong)0L)
|
||||
{
|
||||
int num = 0;
|
||||
if (count > 0)
|
||||
{
|
||||
byte[] array = this.mInBuf;
|
||||
if (array != 0)
|
||||
{
|
||||
int length = array.Length;
|
||||
}
|
||||
if (this.FillInBuf())
|
||||
{
|
||||
byte[] array2 = this.mInBuf;
|
||||
int num2 = this.mInPos;
|
||||
int num3 = array2.Length;
|
||||
num3 -= num2;
|
||||
int num4 = Math.Min(count, num3);
|
||||
int num5 = this.mInPos;
|
||||
Array.Copy(this.mInBuf, num5, buffer, 0, num4);
|
||||
num += num4;
|
||||
}
|
||||
}
|
||||
return num;
|
||||
}
|
||||
Stream stream = this.stream;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5B7 RID: 46519 RVA: 0x0027BD30 File Offset: 0x00279F30
|
||||
[Token(Token = "0x600B5B7")]
|
||||
[Address(RVA = "0x1C1E540", Offset = "0x1C1D340", VA = "0x181C1E540")]
|
||||
private bool FillInBuf()
|
||||
{
|
||||
if (!this.inStreamEnded)
|
||||
{
|
||||
int num = 0;
|
||||
this.mInPos = num;
|
||||
IBufferedCipher bufferedCipher = this.inCipher;
|
||||
byte[] array = new byte[256];
|
||||
Stream stream = this.stream;
|
||||
int num2 = array.Length;
|
||||
num2 -= num;
|
||||
if ((this.inStreamEnded ? 1 : 0) == num)
|
||||
{
|
||||
IBufferedCipher bufferedCipher2 = this.inCipher;
|
||||
if (num < num)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
array += array;
|
||||
this.inStreamEnded = true;
|
||||
}
|
||||
IBufferedCipher bufferedCipher3 = this.inCipher;
|
||||
this.mInBuf = num;
|
||||
if ((this.inStreamEnded ? 1 : 0) == num)
|
||||
{
|
||||
while (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return num != 0;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5B8 RID: 46520 RVA: 0x0027BDD0 File Offset: 0x00279FD0
|
||||
[Token(Token = "0x600B5B8")]
|
||||
[Address(RVA = "0x1C1E730", Offset = "0x1C1D530", VA = "0x181C1E730")]
|
||||
private byte[] ReadAndProcessBlock()
|
||||
{
|
||||
IBufferedCipher bufferedCipher = this.inCipher;
|
||||
byte[] array = new byte[256];
|
||||
int num = 0;
|
||||
Stream stream = this.stream;
|
||||
int num2 = array.Length;
|
||||
num2 -= num;
|
||||
this.inStreamEnded = true;
|
||||
IBufferedCipher bufferedCipher2 = this.inCipher;
|
||||
ulong num3;
|
||||
if (num3 != (ulong)0L)
|
||||
{
|
||||
}
|
||||
if (num < bufferedCipher2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array += array;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5B9 RID: 46521 RVA: 0x0027BE38 File Offset: 0x0027A038
|
||||
[Token(Token = "0x600B5B9")]
|
||||
[Address(RVA = "0x1C1EC60", Offset = "0x1C1DA60", VA = "0x181C1EC60", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
if (this.outCipher != 0)
|
||||
{
|
||||
int num = this.stream.ReadByte();
|
||||
return;
|
||||
}
|
||||
Stream stream = this.stream;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5BA RID: 46522 RVA: 0x0027BE68 File Offset: 0x0027A068
|
||||
[Token(Token = "0x600B5BA")]
|
||||
[Address(RVA = "0x1C1EB40", Offset = "0x1C1D940", VA = "0x181C1EB40", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
if (this.outCipher != 0)
|
||||
{
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
int num2 = this.stream.ReadByte();
|
||||
return;
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x17001C9A RID: 7322
|
||||
// (get) Token: 0x0600B5BB RID: 46523 RVA: 0x0027BEB0 File Offset: 0x0027A0B0
|
||||
[Token(Token = "0x17001C9A")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600B5BB")]
|
||||
[Address(RVA = "0x1C1EDD0", Offset = "0x1C1DBD0", VA = "0x181C1EDD0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
this.stream.Dispose();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9B RID: 7323
|
||||
// (get) Token: 0x0600B5BC RID: 46524 RVA: 0x0027BED0 File Offset: 0x0027A0D0
|
||||
[Token(Token = "0x17001C9B")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600B5BC")]
|
||||
[Address(RVA = "0x1C1EE10", Offset = "0x1C1DC10", VA = "0x181C1EE10", Slot = "9")]
|
||||
get
|
||||
{
|
||||
bool canSeek = this.stream.CanSeek;
|
||||
if (!canSeek)
|
||||
{
|
||||
return canSeek;
|
||||
}
|
||||
return canSeek;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9C RID: 7324
|
||||
// (get) Token: 0x0600B5BD RID: 46525 RVA: 0x0027BEF8 File Offset: 0x0027A0F8
|
||||
[Token(Token = "0x17001C9C")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600B5BD")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9D RID: 7325
|
||||
// (get) Token: 0x0600B5BE RID: 46526 RVA: 0x0027BF08 File Offset: 0x0027A108
|
||||
[Token(Token = "0x17001C9D")]
|
||||
public sealed override long Length
|
||||
{
|
||||
[Token(Token = "0x600B5BE")]
|
||||
[Address(RVA = "0x1C1EE50", Offset = "0x1C1DC50", VA = "0x181C1EE50", Slot = "10")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B5BE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::get_Length()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9E RID: 7326
|
||||
// (get) Token: 0x0600B5BF RID: 46527 RVA: 0x0027BF1C File Offset: 0x0027A11C
|
||||
// (set) Token: 0x0600B5C0 RID: 46528 RVA: 0x0027BF30 File Offset: 0x0027A130
|
||||
[Token(Token = "0x17001C9E")]
|
||||
public sealed override long Position
|
||||
{
|
||||
[Token(Token = "0x600B5BF")]
|
||||
[Address(RVA = "0x1C1EEA0", Offset = "0x1C1DCA0", VA = "0x181C1EEA0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B5BF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::get_Position()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
[Token(Token = "0x600B5C0")]
|
||||
[Address(RVA = "0x1C1EEF0", Offset = "0x1C1DCF0", VA = "0x181C1EEF0", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B5C0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::set_Position(System.Int64)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B5C1 RID: 46529 RVA: 0x0027BF44 File Offset: 0x0027A144
|
||||
[Token(Token = "0x600B5C1")]
|
||||
[Address(RVA = "0x1C1E3F0", Offset = "0x1C1D1F0", VA = "0x181C1E3F0", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
if (this.outCipher != 0)
|
||||
{
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
int num2 = this.stream.ReadByte();
|
||||
Stream stream = this.stream;
|
||||
}
|
||||
Platform.Dispose(this.stream);
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5C2 RID: 46530 RVA: 0x0027BF94 File Offset: 0x0027A194
|
||||
[Token(Token = "0x600B5C2")]
|
||||
[Address(RVA = "0x44D240", Offset = "0x44C040", VA = "0x18044D240", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5C3 RID: 46531 RVA: 0x0027BFB4 File Offset: 0x0027A1B4
|
||||
[Token(Token = "0x600B5C3")]
|
||||
[Address(RVA = "0x1C1EAA0", Offset = "0x1C1D8A0", VA = "0x181C1EAA0", Slot = "25")]
|
||||
public sealed override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B5C3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::Seek(System.Int64,System.IO.SeekOrigin)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5C4 RID: 46532 RVA: 0x0027BFC8 File Offset: 0x0027A1C8
|
||||
[Token(Token = "0x600B5C4")]
|
||||
[Address(RVA = "0x1C1EAF0", Offset = "0x1C1D8F0", VA = "0x181C1EAF0", Slot = "26")]
|
||||
public sealed override void SetLength(long length)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B5C4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO.CipherStream::SetLength(System.Int64)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400735A RID: 29530
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400735A")]
|
||||
internal Stream stream;
|
||||
|
||||
// Token: 0x0400735B RID: 29531
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400735B")]
|
||||
internal IBufferedCipher inCipher;
|
||||
|
||||
// Token: 0x0400735C RID: 29532
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400735C")]
|
||||
internal IBufferedCipher outCipher;
|
||||
|
||||
// Token: 0x0400735D RID: 29533
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400735D")]
|
||||
private byte[] mInBuf;
|
||||
|
||||
// Token: 0x0400735E RID: 29534
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400735E")]
|
||||
private int mInPos;
|
||||
|
||||
// Token: 0x0400735F RID: 29535
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x400735F")]
|
||||
private bool inStreamEnded;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO
|
||||
{
|
||||
// Token: 0x02001C58 RID: 7256
|
||||
[Token(Token = "0x2001C58")]
|
||||
public class DigestSink : BaseOutputStream
|
||||
{
|
||||
// Token: 0x0600B5C5 RID: 46533 RVA: 0x0027BFDC File Offset: 0x0027A1DC
|
||||
[Token(Token = "0x600B5C5")]
|
||||
[Address(RVA = "0x18B1350", Offset = "0x18B0150", VA = "0x1818B1350")]
|
||||
public DigestSink(IDigest digest)
|
||||
{
|
||||
this.mDigest = digest;
|
||||
}
|
||||
|
||||
// Token: 0x17001C9F RID: 7327
|
||||
// (get) Token: 0x0600B5C6 RID: 46534 RVA: 0x0027BFF8 File Offset: 0x0027A1F8
|
||||
[Token(Token = "0x17001C9F")]
|
||||
public virtual IDigest Digest
|
||||
{
|
||||
[Token(Token = "0x600B5C6")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "32")]
|
||||
get
|
||||
{
|
||||
return this.mDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B5C7 RID: 46535 RVA: 0x0027C00C File Offset: 0x0027A20C
|
||||
[Token(Token = "0x600B5C7")]
|
||||
[Address(RVA = "0x1C1F900", Offset = "0x1C1E700", VA = "0x181C1F900", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
IDigest digest = this.mDigest;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5C8 RID: 46536 RVA: 0x0027C028 File Offset: 0x0027A228
|
||||
[Token(Token = "0x600B5C8")]
|
||||
[Address(RVA = "0x1C1F960", Offset = "0x1C1E760", VA = "0x181C1F960", Slot = "29")]
|
||||
public override void Write(byte[] buf, int off, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
IDigest digest = this.mDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007360 RID: 29536
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007360")]
|
||||
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: 0x02001C59 RID: 7257
|
||||
[Token(Token = "0x2001C59")]
|
||||
public class DigestStream : Stream
|
||||
{
|
||||
// Token: 0x0600B5C9 RID: 46537 RVA: 0x0027C048 File Offset: 0x0027A248
|
||||
[Token(Token = "0x600B5C9")]
|
||||
[Address(RVA = "0x1C1FCB0", Offset = "0x1C1EAB0", VA = "0x181C1FCB0")]
|
||||
public DigestStream(Stream stream, IDigest readDigest, IDigest writeDigest)
|
||||
{
|
||||
this.stream = stream;
|
||||
this.inDigest = readDigest;
|
||||
this.outDigest = writeDigest;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5CA RID: 46538 RVA: 0x0027C070 File Offset: 0x0027A270
|
||||
[Token(Token = "0x600B5CA")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "31")]
|
||||
public virtual IDigest ReadDigest()
|
||||
{
|
||||
return this.inDigest;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5CB RID: 46539 RVA: 0x0027C084 File Offset: 0x0027A284
|
||||
[Token(Token = "0x600B5CB")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0", Slot = "32")]
|
||||
public virtual IDigest WriteDigest()
|
||||
{
|
||||
return this.outDigest;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5CC RID: 46540 RVA: 0x0027C098 File Offset: 0x0027A298
|
||||
[Token(Token = "0x600B5CC")]
|
||||
[Address(RVA = "0x1C1FAD0", Offset = "0x1C1E8D0", VA = "0x181C1FAD0", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inDigest != 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5CD RID: 46541 RVA: 0x0027C0BC File Offset: 0x0027A2BC
|
||||
[Token(Token = "0x600B5CD")]
|
||||
[Address(RVA = "0x1C1FA50", Offset = "0x1C1E850", VA = "0x181C1FA50", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inDigest != 0)
|
||||
{
|
||||
}
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5CE RID: 46542 RVA: 0x0027C0E0 File Offset: 0x0027A2E0
|
||||
[Token(Token = "0x600B5CE")]
|
||||
[Address(RVA = "0x1C1FC00", Offset = "0x1C1EA00", VA = "0x181C1FC00", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
if (this.outDigest == 0 || count > 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5CF RID: 46543 RVA: 0x0027C10C File Offset: 0x0027A30C
|
||||
[Token(Token = "0x600B5CF")]
|
||||
[Address(RVA = "0x1C1FB80", Offset = "0x1C1E980", VA = "0x181C1FB80", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
if (this.outDigest != 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x17001CA0 RID: 7328
|
||||
// (get) Token: 0x0600B5D0 RID: 46544 RVA: 0x0027C134 File Offset: 0x0027A334
|
||||
[Token(Token = "0x17001CA0")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600B5D0")]
|
||||
[Address(RVA = "0x5E1930", Offset = "0x5E0730", VA = "0x1805E1930", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA1 RID: 7329
|
||||
// (get) Token: 0x0600B5D1 RID: 46545 RVA: 0x0027C154 File Offset: 0x0027A354
|
||||
[Token(Token = "0x17001CA1")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600B5D1")]
|
||||
[Address(RVA = "0x5E1990", Offset = "0x5E0790", VA = "0x1805E1990", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA2 RID: 7330
|
||||
// (get) Token: 0x0600B5D2 RID: 46546 RVA: 0x0027C174 File Offset: 0x0027A374
|
||||
[Token(Token = "0x17001CA2")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600B5D2")]
|
||||
[Address(RVA = "0x5E1960", Offset = "0x5E0760", VA = "0x1805E1960", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA3 RID: 7331
|
||||
// (get) Token: 0x0600B5D3 RID: 46547 RVA: 0x0027C194 File Offset: 0x0027A394
|
||||
[Token(Token = "0x17001CA3")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600B5D3")]
|
||||
[Address(RVA = "0x44EBE0", Offset = "0x44D9E0", VA = "0x18044EBE0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA4 RID: 7332
|
||||
// (get) Token: 0x0600B5D4 RID: 46548 RVA: 0x0027C1B4 File Offset: 0x0027A3B4
|
||||
// (set) Token: 0x0600B5D5 RID: 46549 RVA: 0x0027C1D4 File Offset: 0x0027A3D4
|
||||
[Token(Token = "0x17001CA4")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600B5D4")]
|
||||
[Address(RVA = "0x44EC10", Offset = "0x44DA10", VA = "0x18044EC10", Slot = "11")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
[Token(Token = "0x600B5D5")]
|
||||
[Address(RVA = "0x5E19C0", Offset = "0x5E07C0", VA = "0x1805E19C0", Slot = "12")]
|
||||
set
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B5D6 RID: 46550 RVA: 0x0027C1F4 File Offset: 0x0027A3F4
|
||||
[Token(Token = "0x600B5D6")]
|
||||
[Address(RVA = "0x1C1F9E0", Offset = "0x1C1E7E0", VA = "0x181C1F9E0", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
Platform.Dispose(this.stream);
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5D7 RID: 46551 RVA: 0x0027C214 File Offset: 0x0027A414
|
||||
[Token(Token = "0x600B5D7")]
|
||||
[Address(RVA = "0x44D240", Offset = "0x44C040", VA = "0x18044D240", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5D8 RID: 46552 RVA: 0x0027C234 File Offset: 0x0027A434
|
||||
[Token(Token = "0x600B5D8")]
|
||||
[Address(RVA = "0x5E1810", Offset = "0x5E0610", VA = "0x1805E1810", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5D9 RID: 46553 RVA: 0x0027C254 File Offset: 0x0027A454
|
||||
[Token(Token = "0x600B5D9")]
|
||||
[Address(RVA = "0x44E4A0", Offset = "0x44D2A0", VA = "0x18044E4A0", Slot = "26")]
|
||||
public override void SetLength(long length)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x04007361 RID: 29537
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007361")]
|
||||
protected readonly Stream stream;
|
||||
|
||||
// Token: 0x04007362 RID: 29538
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007362")]
|
||||
protected readonly IDigest inDigest;
|
||||
|
||||
// Token: 0x04007363 RID: 29539
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007363")]
|
||||
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: 0x02001C5A RID: 7258
|
||||
[Token(Token = "0x2001C5A")]
|
||||
public class MacSink : BaseOutputStream
|
||||
{
|
||||
// Token: 0x0600B5DA RID: 46554 RVA: 0x0027C274 File Offset: 0x0027A474
|
||||
[Token(Token = "0x600B5DA")]
|
||||
[Address(RVA = "0x18B1350", Offset = "0x18B0150", VA = "0x1818B1350")]
|
||||
public MacSink(IMac mac)
|
||||
{
|
||||
this.mMac = mac;
|
||||
}
|
||||
|
||||
// Token: 0x17001CA5 RID: 7333
|
||||
// (get) Token: 0x0600B5DB RID: 46555 RVA: 0x0027C290 File Offset: 0x0027A490
|
||||
[Token(Token = "0x17001CA5")]
|
||||
public virtual IMac Mac
|
||||
{
|
||||
[Token(Token = "0x600B5DB")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "32")]
|
||||
get
|
||||
{
|
||||
return this.mMac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B5DC RID: 46556 RVA: 0x0027C2A4 File Offset: 0x0027A4A4
|
||||
[Token(Token = "0x600B5DC")]
|
||||
[Address(RVA = "0x1C2BFB0", Offset = "0x1C2ADB0", VA = "0x181C2BFB0", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
IMac mac = this.mMac;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5DD RID: 46557 RVA: 0x0027C2C0 File Offset: 0x0027A4C0
|
||||
[Token(Token = "0x600B5DD")]
|
||||
[Address(RVA = "0x1C2C010", Offset = "0x1C2AE10", VA = "0x181C2C010", Slot = "29")]
|
||||
public override void Write(byte[] buf, int off, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
IMac mac = this.mMac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007364 RID: 29540
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007364")]
|
||||
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: 0x02001C5B RID: 7259
|
||||
[Token(Token = "0x2001C5B")]
|
||||
public class MacStream : Stream
|
||||
{
|
||||
// Token: 0x0600B5DE RID: 46558 RVA: 0x0027C2E0 File Offset: 0x0027A4E0
|
||||
[Token(Token = "0x600B5DE")]
|
||||
[Address(RVA = "0x1C2C360", Offset = "0x1C2B160", VA = "0x181C2C360")]
|
||||
public MacStream(Stream stream, IMac readMac, IMac writeMac)
|
||||
{
|
||||
this.stream = stream;
|
||||
this.inMac = readMac;
|
||||
this.outMac = writeMac;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5DF RID: 46559 RVA: 0x0027C308 File Offset: 0x0027A508
|
||||
[Token(Token = "0x600B5DF")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "31")]
|
||||
public virtual IMac ReadMac()
|
||||
{
|
||||
return this.inMac;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5E0 RID: 46560 RVA: 0x0027C31C File Offset: 0x0027A51C
|
||||
[Token(Token = "0x600B5E0")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0", Slot = "32")]
|
||||
public virtual IMac WriteMac()
|
||||
{
|
||||
return this.outMac;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5E1 RID: 46561 RVA: 0x0027C330 File Offset: 0x0027A530
|
||||
[Token(Token = "0x600B5E1")]
|
||||
[Address(RVA = "0x1C2C180", Offset = "0x1C2AF80", VA = "0x181C2C180", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inMac != 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5E2 RID: 46562 RVA: 0x0027C354 File Offset: 0x0027A554
|
||||
[Token(Token = "0x600B5E2")]
|
||||
[Address(RVA = "0x1C2C100", Offset = "0x1C2AF00", VA = "0x181C2C100", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inMac != 0)
|
||||
{
|
||||
}
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5E3 RID: 46563 RVA: 0x0027C378 File Offset: 0x0027A578
|
||||
[Token(Token = "0x600B5E3")]
|
||||
[Address(RVA = "0x1C2C2B0", Offset = "0x1C2B0B0", VA = "0x181C2C2B0", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
if (this.outMac == 0 || count > 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5E4 RID: 46564 RVA: 0x0027C3A4 File Offset: 0x0027A5A4
|
||||
[Token(Token = "0x600B5E4")]
|
||||
[Address(RVA = "0x1C2C230", Offset = "0x1C2B030", VA = "0x181C2C230", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
if (this.outMac != 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x17001CA6 RID: 7334
|
||||
// (get) Token: 0x0600B5E5 RID: 46565 RVA: 0x0027C3CC File Offset: 0x0027A5CC
|
||||
[Token(Token = "0x17001CA6")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600B5E5")]
|
||||
[Address(RVA = "0x5E1930", Offset = "0x5E0730", VA = "0x1805E1930", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA7 RID: 7335
|
||||
// (get) Token: 0x0600B5E6 RID: 46566 RVA: 0x0027C3EC File Offset: 0x0027A5EC
|
||||
[Token(Token = "0x17001CA7")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600B5E6")]
|
||||
[Address(RVA = "0x5E1990", Offset = "0x5E0790", VA = "0x1805E1990", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA8 RID: 7336
|
||||
// (get) Token: 0x0600B5E7 RID: 46567 RVA: 0x0027C40C File Offset: 0x0027A60C
|
||||
[Token(Token = "0x17001CA8")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600B5E7")]
|
||||
[Address(RVA = "0x5E1960", Offset = "0x5E0760", VA = "0x1805E1960", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA9 RID: 7337
|
||||
// (get) Token: 0x0600B5E8 RID: 46568 RVA: 0x0027C42C File Offset: 0x0027A62C
|
||||
[Token(Token = "0x17001CA9")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600B5E8")]
|
||||
[Address(RVA = "0x44EBE0", Offset = "0x44D9E0", VA = "0x18044EBE0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CAA RID: 7338
|
||||
// (get) Token: 0x0600B5E9 RID: 46569 RVA: 0x0027C44C File Offset: 0x0027A64C
|
||||
// (set) Token: 0x0600B5EA RID: 46570 RVA: 0x0027C46C File Offset: 0x0027A66C
|
||||
[Token(Token = "0x17001CAA")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600B5E9")]
|
||||
[Address(RVA = "0x44EC10", Offset = "0x44DA10", VA = "0x18044EC10", Slot = "11")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
[Token(Token = "0x600B5EA")]
|
||||
[Address(RVA = "0x5E19C0", Offset = "0x5E07C0", VA = "0x1805E19C0", Slot = "12")]
|
||||
set
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B5EB RID: 46571 RVA: 0x0027C48C File Offset: 0x0027A68C
|
||||
[Token(Token = "0x600B5EB")]
|
||||
[Address(RVA = "0x1C2C090", Offset = "0x1C2AE90", VA = "0x181C2C090", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
Platform.Dispose(this.stream);
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5EC RID: 46572 RVA: 0x0027C4AC File Offset: 0x0027A6AC
|
||||
[Token(Token = "0x600B5EC")]
|
||||
[Address(RVA = "0x44D240", Offset = "0x44C040", VA = "0x18044D240", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5ED RID: 46573 RVA: 0x0027C4CC File Offset: 0x0027A6CC
|
||||
[Token(Token = "0x600B5ED")]
|
||||
[Address(RVA = "0x5E1810", Offset = "0x5E0610", VA = "0x1805E1810", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5EE RID: 46574 RVA: 0x0027C4EC File Offset: 0x0027A6EC
|
||||
[Token(Token = "0x600B5EE")]
|
||||
[Address(RVA = "0x44E4A0", Offset = "0x44D2A0", VA = "0x18044E4A0", Slot = "26")]
|
||||
public override void SetLength(long length)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x04007365 RID: 29541
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007365")]
|
||||
protected readonly Stream stream;
|
||||
|
||||
// Token: 0x04007366 RID: 29542
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007366")]
|
||||
protected readonly IMac inMac;
|
||||
|
||||
// Token: 0x04007367 RID: 29543
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007367")]
|
||||
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: 0x02001C5C RID: 7260
|
||||
[Token(Token = "0x2001C5C")]
|
||||
public class SignerSink : BaseOutputStream
|
||||
{
|
||||
// Token: 0x0600B5EF RID: 46575 RVA: 0x0027C50C File Offset: 0x0027A70C
|
||||
[Token(Token = "0x600B5EF")]
|
||||
[Address(RVA = "0x18B1350", Offset = "0x18B0150", VA = "0x1818B1350")]
|
||||
public SignerSink(ISigner signer)
|
||||
{
|
||||
this.mSigner = signer;
|
||||
}
|
||||
|
||||
// Token: 0x17001CAB RID: 7339
|
||||
// (get) Token: 0x0600B5F0 RID: 46576 RVA: 0x0027C528 File Offset: 0x0027A728
|
||||
[Token(Token = "0x17001CAB")]
|
||||
public virtual ISigner Signer
|
||||
{
|
||||
[Token(Token = "0x600B5F0")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "32")]
|
||||
get
|
||||
{
|
||||
return this.mSigner;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B5F1 RID: 46577 RVA: 0x0027C53C File Offset: 0x0027A73C
|
||||
[Token(Token = "0x600B5F1")]
|
||||
[Address(RVA = "0x1C2FB00", Offset = "0x1C2E900", VA = "0x181C2FB00", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
ISigner signer = this.mSigner;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5F2 RID: 46578 RVA: 0x0027C558 File Offset: 0x0027A758
|
||||
[Token(Token = "0x600B5F2")]
|
||||
[Address(RVA = "0x1C2FB60", Offset = "0x1C2E960", VA = "0x181C2FB60", Slot = "29")]
|
||||
public override void Write(byte[] buf, int off, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
ISigner signer = this.mSigner;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007368 RID: 29544
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007368")]
|
||||
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: 0x02001C5D RID: 7261
|
||||
[Token(Token = "0x2001C5D")]
|
||||
public class SignerStream : Stream
|
||||
{
|
||||
// Token: 0x0600B5F3 RID: 46579 RVA: 0x0027C578 File Offset: 0x0027A778
|
||||
[Token(Token = "0x600B5F3")]
|
||||
[Address(RVA = "0x1C2FEB0", Offset = "0x1C2ECB0", VA = "0x181C2FEB0")]
|
||||
public SignerStream(Stream stream, ISigner readSigner, ISigner writeSigner)
|
||||
{
|
||||
this.stream = stream;
|
||||
this.inSigner = readSigner;
|
||||
this.outSigner = writeSigner;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5F4 RID: 46580 RVA: 0x0027C5A0 File Offset: 0x0027A7A0
|
||||
[Token(Token = "0x600B5F4")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "31")]
|
||||
public virtual ISigner ReadSigner()
|
||||
{
|
||||
return this.inSigner;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5F5 RID: 46581 RVA: 0x0027C5B4 File Offset: 0x0027A7B4
|
||||
[Token(Token = "0x600B5F5")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0", Slot = "32")]
|
||||
public virtual ISigner WriteSigner()
|
||||
{
|
||||
return this.outSigner;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5F6 RID: 46582 RVA: 0x0027C5C8 File Offset: 0x0027A7C8
|
||||
[Token(Token = "0x600B5F6")]
|
||||
[Address(RVA = "0x1C2FCD0", Offset = "0x1C2EAD0", VA = "0x181C2FCD0", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inSigner != 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B5F7 RID: 46583 RVA: 0x0027C5EC File Offset: 0x0027A7EC
|
||||
[Token(Token = "0x600B5F7")]
|
||||
[Address(RVA = "0x1C2FC50", Offset = "0x1C2EA50", VA = "0x181C2FC50", Slot = "28")]
|
||||
public override int ReadByte()
|
||||
{
|
||||
Stream stream = this.stream;
|
||||
if (this.inSigner != 0)
|
||||
{
|
||||
}
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5F8 RID: 46584 RVA: 0x0027C610 File Offset: 0x0027A810
|
||||
[Token(Token = "0x600B5F8")]
|
||||
[Address(RVA = "0x1C2FE00", Offset = "0x1C2EC00", VA = "0x181C2FE00", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
if (this.outSigner == 0 || count > 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600B5F9 RID: 46585 RVA: 0x0027C63C File Offset: 0x0027A83C
|
||||
[Token(Token = "0x600B5F9")]
|
||||
[Address(RVA = "0x1C2FD80", Offset = "0x1C2EB80", VA = "0x181C2FD80", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
if (this.outSigner != 0)
|
||||
{
|
||||
}
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x17001CAC RID: 7340
|
||||
// (get) Token: 0x0600B5FA RID: 46586 RVA: 0x0027C664 File Offset: 0x0027A864
|
||||
[Token(Token = "0x17001CAC")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600B5FA")]
|
||||
[Address(RVA = "0x5E1930", Offset = "0x5E0730", VA = "0x1805E1930", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CAD RID: 7341
|
||||
// (get) Token: 0x0600B5FB RID: 46587 RVA: 0x0027C684 File Offset: 0x0027A884
|
||||
[Token(Token = "0x17001CAD")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600B5FB")]
|
||||
[Address(RVA = "0x5E1990", Offset = "0x5E0790", VA = "0x1805E1990", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CAE RID: 7342
|
||||
// (get) Token: 0x0600B5FC RID: 46588 RVA: 0x0027C6A4 File Offset: 0x0027A8A4
|
||||
[Token(Token = "0x17001CAE")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600B5FC")]
|
||||
[Address(RVA = "0x5E1960", Offset = "0x5E0760", VA = "0x1805E1960", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CAF RID: 7343
|
||||
// (get) Token: 0x0600B5FD RID: 46589 RVA: 0x0027C6C4 File Offset: 0x0027A8C4
|
||||
[Token(Token = "0x17001CAF")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600B5FD")]
|
||||
[Address(RVA = "0x44EBE0", Offset = "0x44D9E0", VA = "0x18044EBE0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CB0 RID: 7344
|
||||
// (get) Token: 0x0600B5FE RID: 46590 RVA: 0x0027C6E4 File Offset: 0x0027A8E4
|
||||
// (set) Token: 0x0600B5FF RID: 46591 RVA: 0x0027C704 File Offset: 0x0027A904
|
||||
[Token(Token = "0x17001CB0")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600B5FE")]
|
||||
[Address(RVA = "0x44EC10", Offset = "0x44DA10", VA = "0x18044EC10", Slot = "11")]
|
||||
get
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
[Token(Token = "0x600B5FF")]
|
||||
[Address(RVA = "0x5E19C0", Offset = "0x5E07C0", VA = "0x1805E19C0", Slot = "12")]
|
||||
set
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B600 RID: 46592 RVA: 0x0027C724 File Offset: 0x0027A924
|
||||
[Token(Token = "0x600B600")]
|
||||
[Address(RVA = "0x1C2FBE0", Offset = "0x1C2E9E0", VA = "0x181C2FBE0", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
Platform.Dispose(this.stream);
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x0600B601 RID: 46593 RVA: 0x0027C744 File Offset: 0x0027A944
|
||||
[Token(Token = "0x600B601")]
|
||||
[Address(RVA = "0x44D240", Offset = "0x44C040", VA = "0x18044D240", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600B602 RID: 46594 RVA: 0x0027C764 File Offset: 0x0027A964
|
||||
[Token(Token = "0x600B602")]
|
||||
[Address(RVA = "0x5E1810", Offset = "0x5E0610", VA = "0x1805E1810", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B603 RID: 46595 RVA: 0x0027C784 File Offset: 0x0027A984
|
||||
[Token(Token = "0x600B603")]
|
||||
[Address(RVA = "0x44E4A0", Offset = "0x44D2A0", VA = "0x18044E4A0", Slot = "26")]
|
||||
public override void SetLength(long length)
|
||||
{
|
||||
bool canRead = this.stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x04007369 RID: 29545
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007369")]
|
||||
protected readonly Stream stream;
|
||||
|
||||
// Token: 0x0400736A RID: 29546
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400736A")]
|
||||
protected readonly ISigner inSigner;
|
||||
|
||||
// Token: 0x0400736B RID: 29547
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400736B")]
|
||||
protected readonly ISigner outSigner;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user