507 lines
25 KiB
C#
507 lines
25 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
|
{
|
|
// Token: 0x02001E60 RID: 7776
|
|
[Token(Token = "0x2001E60")]
|
|
public abstract class Asn1Set : Asn1Object, IEnumerable
|
|
{
|
|
// Token: 0x0600C300 RID: 49920 RVA: 0x002C1658 File Offset: 0x002BF858
|
|
[Token(Token = "0x600C300")]
|
|
[Address(RVA = "0x22916B0", Offset = "0x22906B0", VA = "0x1822916B0")]
|
|
public static Asn1Set GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C300)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3A:
|
|
stloc:string(var_3_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_4_56, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_3_40)), ldstr:string("obj")))
|
|
}
|
|
|
|
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: 0x0600C301 RID: 49921 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600C301")]
|
|
[Address(RVA = "0x22911E0", Offset = "0x22901E0", VA = "0x1822911E0")]
|
|
public static Asn1Set GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600C302 RID: 49922 RVA: 0x002C16BC File Offset: 0x002BF8BC
|
|
[Token(Token = "0x600C302")]
|
|
[Address(RVA = "0x2291FB0", Offset = "0x2290FB0", VA = "0x182291FB0")]
|
|
protected internal Asn1Set(int capacity)
|
|
{
|
|
IList list = Platform.CreateArrayList(capacity);
|
|
this._set = list;
|
|
}
|
|
|
|
// Token: 0x0600C303 RID: 49923 RVA: 0x002C16E0 File Offset: 0x002BF8E0
|
|
[Token(Token = "0x600C303")]
|
|
[Address(RVA = "0x2291190", Offset = "0x2290190", VA = "0x182291190", Slot = "10")]
|
|
public virtual IEnumerator GetEnumerator()
|
|
{
|
|
IList set = this._set;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C304 RID: 49924 RVA: 0x002C16FC File Offset: 0x002BF8FC
|
|
[Token(Token = "0x600C304")]
|
|
[Address(RVA = "0x85CED0", Offset = "0x85BED0", VA = "0x18085CED0")]
|
|
[Obsolete]
|
|
public IEnumerator GetObjects()
|
|
{
|
|
return ((IEnumerable)this).GetEnumerator();
|
|
}
|
|
|
|
// Token: 0x17001E3B RID: 7739
|
|
[Token(Token = "0x17001E3B")]
|
|
public virtual Asn1Encodable this[int index]
|
|
{
|
|
[Token(Token = "0x600C305")]
|
|
[Address(RVA = "0x2292070", Offset = "0x2291070", VA = "0x182292070", Slot = "11")]
|
|
get
|
|
{
|
|
IList set;
|
|
do
|
|
{
|
|
set = this._set;
|
|
}
|
|
while (set == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C306 RID: 49926 RVA: 0x002C1734 File Offset: 0x002BF934
|
|
[Token(Token = "0x600C306")]
|
|
[Address(RVA = "0x22919D0", Offset = "0x22909D0", VA = "0x1822919D0")]
|
|
[Obsolete]
|
|
public Asn1Encodable GetObjectAt(int index)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C306)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::GetObjectAt(System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:IEnumerator(var_0_06, call:IEnumerator(IEnumerable::GetEnumerator, ldloc:Asn1Set[exp:IEnumerable](this)))
|
|
}
|
|
|
|
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: 0x17001E3C RID: 7740
|
|
// (get) Token: 0x0600C307 RID: 49927 RVA: 0x002C1748 File Offset: 0x002BF948
|
|
[Token(Token = "0x17001E3C")]
|
|
[Obsolete]
|
|
public int Size
|
|
{
|
|
[Token(Token = "0x600C307")]
|
|
[Address(RVA = "0x85E360", Offset = "0x85D360", VA = "0x18085E360")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C307)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::get_Size()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:IEnumerator(var_0_06, call:IEnumerator(IEnumerable::GetEnumerator, ldloc:Asn1Set[exp:IEnumerable](this)))
|
|
}
|
|
|
|
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: 0x17001E3D RID: 7741
|
|
// (get) Token: 0x0600C308 RID: 49928 RVA: 0x002C175C File Offset: 0x002BF95C
|
|
[Token(Token = "0x17001E3D")]
|
|
public virtual int Count
|
|
{
|
|
[Token(Token = "0x600C308")]
|
|
[Address(RVA = "0x2292020", Offset = "0x2291020", VA = "0x182292020", Slot = "12")]
|
|
get
|
|
{
|
|
IList set = this._set;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C309 RID: 49929 RVA: 0x002C1778 File Offset: 0x002BF978
|
|
[Token(Token = "0x600C309")]
|
|
[Address(RVA = "0x2291EA0", Offset = "0x2290EA0", VA = "0x182291EA0", Slot = "13")]
|
|
public virtual Asn1Encodable[] ToArray()
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
Asn1Encodable[] array = new Asn1Encodable[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (asn1Encodable2 > 0)
|
|
{
|
|
IEnumerator enumerator = this.GetEnumerator();
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = enumerator;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x17001E3E RID: 7742
|
|
// (get) Token: 0x0600C30A RID: 49930 RVA: 0x002C17B4 File Offset: 0x002BF9B4
|
|
[Token(Token = "0x17001E3E")]
|
|
public Asn1SetParser Parser
|
|
{
|
|
[Token(Token = "0x600C30A")]
|
|
[Address(RVA = "0x2292120", Offset = "0x2291120", VA = "0x182292120")]
|
|
get
|
|
{
|
|
Asn1Set.Asn1SetParserImpl asn1SetParserImpl;
|
|
asn1SetParserImpl.outer = this;
|
|
Asn1Encodable asn1Encodable;
|
|
asn1SetParserImpl.max = asn1Encodable;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C30B RID: 49931 RVA: 0x002C17D4 File Offset: 0x002BF9D4
|
|
[Token(Token = "0x600C30B")]
|
|
[Address(RVA = "0x2290F30", Offset = "0x228FF30", VA = "0x182290F30", Slot = "8")]
|
|
protected override int Asn1GetHashCode()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
IEnumerator enumerator = this.GetEnumerator();
|
|
if (enumerator != 0)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
long num2 = asn1Encodable * (uint)17;
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
DerNull.Instance.Finalize();
|
|
}
|
|
}
|
|
while (num != 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C30C RID: 49932 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600C30C")]
|
|
[Address(RVA = "0x2290D70", Offset = "0x228FD70", VA = "0x182290D70", Slot = "7")]
|
|
protected override bool Asn1Equals(Asn1Object asn1Object)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600C30D RID: 49933 RVA: 0x002C1814 File Offset: 0x002BFA14
|
|
[Token(Token = "0x600C30D")]
|
|
[Address(RVA = "0x22910B0", Offset = "0x22900B0", VA = "0x1822910B0")]
|
|
private Asn1Encodable GetCurrent(IEnumerator e)
|
|
{
|
|
while (e == 0)
|
|
{
|
|
}
|
|
DerNull instance = DerNull.Instance;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C30E RID: 49934 RVA: 0x002C1834 File Offset: 0x002BFA34
|
|
[Token(Token = "0x600C30E")]
|
|
[Address(RVA = "0x22919F0", Offset = "0x22909F0", VA = "0x1822919F0")]
|
|
protected internal void Sort()
|
|
{
|
|
Asn1Encodable[] array;
|
|
byte[][] array2;
|
|
int num;
|
|
do
|
|
{
|
|
IList set = this._set;
|
|
IList set2 = this._set;
|
|
array = new Asn1Encodable[0];
|
|
IList set3 = this._set;
|
|
array2 = new byte[array][];
|
|
IList set4 = this._set;
|
|
num = 0;
|
|
if (num < set3)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
if (num >= array2)
|
|
{
|
|
goto IL_B1;
|
|
}
|
|
IList set5 = this._set;
|
|
uint num2;
|
|
if (num < (int)num2)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
if (num == 0)
|
|
{
|
|
num++;
|
|
num += 19;
|
|
num += 19;
|
|
}
|
|
}
|
|
while (num == 0);
|
|
if (num != 0)
|
|
{
|
|
}
|
|
array[0] = num;
|
|
byte[] array3;
|
|
if (array3 != 0)
|
|
{
|
|
}
|
|
array2[0] = array3;
|
|
num++;
|
|
IList set6 = this._set;
|
|
IL_B1:
|
|
Asn1Set.DerComparer derComparer = new Asn1Set.DerComparer();
|
|
Array.Sort(array2, array, derComparer);
|
|
IList set7 = this._set;
|
|
if (num < derComparer)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
if (num < num)
|
|
{
|
|
IList set8 = this._set;
|
|
uint num3;
|
|
if (num < (int)num3)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
IList set9 = this._set;
|
|
num++;
|
|
while (set9 != 0)
|
|
{
|
|
}
|
|
num += num;
|
|
num++;
|
|
num += 19;
|
|
num += num;
|
|
num++;
|
|
num += 19;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C30F RID: 49935 RVA: 0x002C1980 File Offset: 0x002BFB80
|
|
[Token(Token = "0x600C30F")]
|
|
[Address(RVA = "0x2290D10", Offset = "0x228FD10", VA = "0x182290D10")]
|
|
protected internal void AddObject(Asn1Encodable obj)
|
|
{
|
|
IList set = this._set;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C310 RID: 49936 RVA: 0x002C199C File Offset: 0x002BFB9C
|
|
[Token(Token = "0x600C310")]
|
|
[Address(RVA = "0x22908E0", Offset = "0x228F8E0", VA = "0x1822908E0", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return CollectionUtilities.ToString(this._set);
|
|
}
|
|
|
|
// Token: 0x04007B1A RID: 31514
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007B1A")]
|
|
private readonly IList _set;
|
|
|
|
// Token: 0x02001E61 RID: 7777
|
|
[Token(Token = "0x2001E61")]
|
|
private class Asn1SetParserImpl : Asn1SetParser, IAsn1Convertible
|
|
{
|
|
// Token: 0x0600C311 RID: 49937 RVA: 0x002C19B4 File Offset: 0x002BFBB4
|
|
[Token(Token = "0x600C311")]
|
|
[Address(RVA = "0x2290CC0", Offset = "0x228FCC0", VA = "0x182290CC0")]
|
|
public Asn1SetParserImpl(Asn1Set outer)
|
|
{
|
|
this.outer = outer;
|
|
Asn1Encodable asn1Encodable;
|
|
this.max = asn1Encodable;
|
|
}
|
|
|
|
// Token: 0x0600C312 RID: 49938 RVA: 0x002C19DC File Offset: 0x002BFBDC
|
|
[Token(Token = "0x600C312")]
|
|
[Address(RVA = "0x2290AE0", Offset = "0x228FAE0", VA = "0x182290AE0", Slot = "4")]
|
|
public IAsn1Convertible ReadObject()
|
|
{
|
|
IEnumerator enumerator;
|
|
do
|
|
{
|
|
int num = this.index;
|
|
if (num == this.max)
|
|
{
|
|
return;
|
|
}
|
|
Asn1Set asn1Set = this.outer;
|
|
int num2 = num + 1;
|
|
this.index = num2;
|
|
enumerator = asn1Set.GetEnumerator();
|
|
if (enumerator == 0)
|
|
{
|
|
return;
|
|
}
|
|
if (enumerator == 0)
|
|
{
|
|
if (enumerator == 0)
|
|
{
|
|
return;
|
|
}
|
|
if (enumerator == 0)
|
|
{
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
while (enumerator == 0 || enumerator == 0);
|
|
bool flag = enumerator.MoveNext();
|
|
}
|
|
|
|
// Token: 0x0600C313 RID: 49939 RVA: 0x002C1A44 File Offset: 0x002BFC44
|
|
[Token(Token = "0x600C313")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
public virtual Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C313)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set/Asn1SetParserImpl::ToAsn1Object()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:Asn1Set(var_0_06, ldfld:Asn1Set(Asn1SetParserImpl::outer, ldloc:Asn1SetParserImpl(this)))
|
|
}
|
|
|
|
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: 0x04007B1B RID: 31515
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007B1B")]
|
|
private readonly Asn1Set outer;
|
|
|
|
// Token: 0x04007B1C RID: 31516
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007B1C")]
|
|
private readonly int max;
|
|
|
|
// Token: 0x04007B1D RID: 31517
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4007B1D")]
|
|
private int index;
|
|
}
|
|
|
|
// Token: 0x02001E62 RID: 7778
|
|
[Token(Token = "0x2001E62")]
|
|
private class DerComparer : IComparer
|
|
{
|
|
// Token: 0x0600C314 RID: 49940 RVA: 0x002C1A58 File Offset: 0x002BFC58
|
|
[Token(Token = "0x600C314")]
|
|
[Address(RVA = "0x229AE70", Offset = "0x2299E70", VA = "0x18229AE70", Slot = "4")]
|
|
public int Compare(object x, object y)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C314)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set/DerComparer::Compare(System.Object,System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_4:
|
|
stloc:int32(var_2, add:int32(ldloc:int32(var_2), ldc.i4:int32(1)))
|
|
}
|
|
|
|
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: 0x0600C315 RID: 49941 RVA: 0x002C1AA0 File Offset: 0x002BFCA0
|
|
[Token(Token = "0x600C315")]
|
|
[Address(RVA = "0x229AE20", Offset = "0x2299E20", VA = "0x18229AE20")]
|
|
private bool AllZeroesFrom(byte[] bs, int pos)
|
|
{
|
|
int length = bs.Length;
|
|
if (pos < length)
|
|
{
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600C316 RID: 49942 RVA: 0x002C1AC4 File Offset: 0x002BFCC4
|
|
[Token(Token = "0x600C316")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public DerComparer()
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|