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: 0x02001E8F RID: 7823
|
|
[Token(Token = "0x2001E8F")]
|
|
public class DerOutputStream : FilterStream
|
|
{
|
|
// Token: 0x0600C44D RID: 50253 RVA: 0x002C5AA4 File Offset: 0x002C3CA4
|
|
[Token(Token = "0x600C44D")]
|
|
[Address(RVA = "0x23AF250", Offset = "0x23AE250", VA = "0x1823AF250")]
|
|
public DerOutputStream(Stream os)
|
|
: base(os)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600C44E RID: 50254 RVA: 0x002C5AB8 File Offset: 0x002C3CB8
|
|
[Token(Token = "0x600C44E")]
|
|
[Address(RVA = "0x23AECE0", Offset = "0x23ADCE0", VA = "0x1823AECE0")]
|
|
private void WriteLength(int length)
|
|
{
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C44F RID: 50255 RVA: 0x002C5AD4 File Offset: 0x002C3CD4
|
|
[Token(Token = "0x600C44F")]
|
|
[Address(RVA = "0x23AEAE0", Offset = "0x23ADAE0", VA = "0x1823AEAE0")]
|
|
internal void WriteEncoded(int tag, byte[] bytes)
|
|
{
|
|
int length = bytes.Length;
|
|
this.WriteLength(length);
|
|
int num = this.ReadByte();
|
|
}
|
|
|
|
// Token: 0x0600C450 RID: 50256 RVA: 0x002C5AFC File Offset: 0x002C3CFC
|
|
[Token(Token = "0x600C450")]
|
|
[Address(RVA = "0x23AEBC0", Offset = "0x23ADBC0", VA = "0x1823AEBC0")]
|
|
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: 0x0600C451 RID: 50257 RVA: 0x002C5B3C File Offset: 0x002C3D3C
|
|
[Token(Token = "0x600C451")]
|
|
[Address(RVA = "0x23AEB50", Offset = "0x23ADB50", VA = "0x1823AEB50")]
|
|
internal void WriteEncoded(int tag, byte[] bytes, int offset, int length)
|
|
{
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C452 RID: 50258 RVA: 0x002C5B50 File Offset: 0x002C3D50
|
|
[Token(Token = "0x600C452")]
|
|
[Address(RVA = "0x23AF100", Offset = "0x23AE100", VA = "0x1823AF100")]
|
|
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: 0x0600C453 RID: 50259 RVA: 0x002C5B94 File Offset: 0x002C3D94
|
|
[Token(Token = "0x600C453")]
|
|
[Address(RVA = "0x23AEA80", Offset = "0x23ADA80", VA = "0x1823AEA80")]
|
|
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: 0x0600C454 RID: 50260 RVA: 0x002C5BD0 File Offset: 0x002C3DD0
|
|
[Token(Token = "0x600C454")]
|
|
[Address(RVA = "0x23AED90", Offset = "0x23ADD90", VA = "0x1823AED90")]
|
|
protected void WriteNull()
|
|
{
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C455 RID: 50261 RVA: 0x002C5BE4 File Offset: 0x002C3DE4
|
|
[Token(Token = "0x600C455")]
|
|
[Address(RVA = "0x23AEEB0", Offset = "0x23ADEB0", VA = "0x1823AEEB0", Slot = "31")]
|
|
[Obsolete]
|
|
public virtual void WriteObject(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C455)
|
|
|
|
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: 0x0600C456 RID: 50262 RVA: 0x002C5C2C File Offset: 0x002C3E2C
|
|
[Token(Token = "0x600C456")]
|
|
[Address(RVA = "0x23AEE30", Offset = "0x23ADE30", VA = "0x1823AEE30", Slot = "32")]
|
|
public virtual void WriteObject(Asn1Encodable obj)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
obj.ToAsn1Object().Encode(this);
|
|
return;
|
|
}
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C457 RID: 50263 RVA: 0x002C5C58 File Offset: 0x002C3E58
|
|
[Token(Token = "0x600C457")]
|
|
[Address(RVA = "0x23AEDD0", Offset = "0x23ADDD0", VA = "0x1823AEDD0", Slot = "33")]
|
|
public virtual void WriteObject(Asn1Object obj)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
obj.Encode(this);
|
|
return;
|
|
}
|
|
((IDisposable)this).Dispose();
|
|
}
|
|
}
|
|
}
|