164 lines
8.2 KiB
C#
164 lines
8.2 KiB
C#
using System;
|
|
using System.IO;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
|
{
|
|
// Token: 0x02001DAF RID: 7599
|
|
[Token(Token = "0x2001DAF")]
|
|
public class DerOutputStream : FilterStream
|
|
{
|
|
// Token: 0x0600C07F RID: 49279 RVA: 0x002BD1AC File Offset: 0x002BB3AC
|
|
[Token(Token = "0x600C07F")]
|
|
[Address(RVA = "0x1880EE0", Offset = "0x187FCE0", VA = "0x181880EE0")]
|
|
public DerOutputStream(Stream os)
|
|
: base(os)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600C080 RID: 49280 RVA: 0x002BD1C0 File Offset: 0x002BB3C0
|
|
[Token(Token = "0x600C080")]
|
|
[Address(RVA = "0x1880970", Offset = "0x187F770", VA = "0x181880970")]
|
|
private void WriteLength(int length)
|
|
{
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C081 RID: 49281 RVA: 0x002BD1DC File Offset: 0x002BB3DC
|
|
[Token(Token = "0x600C081")]
|
|
[Address(RVA = "0x1880770", Offset = "0x187F570", VA = "0x181880770")]
|
|
internal void WriteEncoded(int tag, byte[] bytes)
|
|
{
|
|
int length = bytes.Length;
|
|
this.WriteLength(length);
|
|
int num = this.ReadByte();
|
|
}
|
|
|
|
// Token: 0x0600C082 RID: 49282 RVA: 0x002BD204 File Offset: 0x002BB404
|
|
[Token(Token = "0x600C082")]
|
|
[Address(RVA = "0x1880850", Offset = "0x187F650", VA = "0x181880850")]
|
|
internal void WriteEncoded(int tag, byte first, byte[] bytes)
|
|
{
|
|
int num = bytes.Length;
|
|
num++;
|
|
if (num != 0)
|
|
{
|
|
uint num2;
|
|
num2 += (uint)1;
|
|
while (num != 0)
|
|
{
|
|
}
|
|
}
|
|
int num3 = 0;
|
|
int length = bytes.Length;
|
|
int num4 = base.Read(bytes, num3, length);
|
|
}
|
|
|
|
// Token: 0x0600C083 RID: 49283 RVA: 0x002BD244 File Offset: 0x002BB444
|
|
[Token(Token = "0x600C083")]
|
|
[Address(RVA = "0x18807E0", Offset = "0x187F5E0", VA = "0x1818807E0")]
|
|
internal void WriteEncoded(int tag, byte[] bytes, int offset, int length)
|
|
{
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C084 RID: 49284 RVA: 0x002BD258 File Offset: 0x002BB458
|
|
[Token(Token = "0x600C084")]
|
|
[Address(RVA = "0x1880D90", Offset = "0x187FB90", VA = "0x181880D90")]
|
|
internal void WriteTag(int flags, int tagNo)
|
|
{
|
|
byte[] array = new byte[5];
|
|
int length = array.Length;
|
|
int num = length - 1;
|
|
num--;
|
|
int num2 = array.Length;
|
|
num2 -= num;
|
|
int num3 = this.ReadByte();
|
|
}
|
|
|
|
// Token: 0x0600C085 RID: 49285 RVA: 0x002BD29C File Offset: 0x002BB49C
|
|
[Token(Token = "0x600C085")]
|
|
[Address(RVA = "0x1880710", Offset = "0x187F510", VA = "0x181880710")]
|
|
internal void WriteEncoded(int flags, int tagNo, byte[] bytes)
|
|
{
|
|
this.WriteTag(flags, tagNo);
|
|
int length = bytes.Length;
|
|
this.WriteLength(length);
|
|
int num = 0;
|
|
int length2 = bytes.Length;
|
|
int num2 = base.Read(bytes, num, length2);
|
|
}
|
|
|
|
// Token: 0x0600C086 RID: 49286 RVA: 0x002BD2D8 File Offset: 0x002BB4D8
|
|
[Token(Token = "0x600C086")]
|
|
[Address(RVA = "0x1880A20", Offset = "0x187F820", VA = "0x181880A20")]
|
|
protected void WriteNull()
|
|
{
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C087 RID: 49287 RVA: 0x002BD2EC File Offset: 0x002BB4EC
|
|
[Token(Token = "0x600C087")]
|
|
[Address(RVA = "0x1880B40", Offset = "0x187F940", VA = "0x181880B40", Slot = "31")]
|
|
[Obsolete]
|
|
public virtual void WriteObject(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C087)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerOutputStream::WriteObject(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2D:
|
|
stloc:IOException(var_7_37, newobj:IOException(IOException::.ctor, ldstr:string("object not Asn1Object")))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x0600C088 RID: 49288 RVA: 0x002BD334 File Offset: 0x002BB534
|
|
[Token(Token = "0x600C088")]
|
|
[Address(RVA = "0x1880AC0", Offset = "0x187F8C0", VA = "0x181880AC0", Slot = "32")]
|
|
public virtual void WriteObject(Asn1Encodable obj)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
obj.ToAsn1Object().Encode(this);
|
|
return;
|
|
}
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C089 RID: 49289 RVA: 0x002BD360 File Offset: 0x002BB560
|
|
[Token(Token = "0x600C089")]
|
|
[Address(RVA = "0x1880A60", Offset = "0x187F860", VA = "0x181880A60", Slot = "33")]
|
|
public virtual void WriteObject(Asn1Object obj)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
obj.Encode(this);
|
|
return;
|
|
}
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
}
|
|
}
|