Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Asn1Set.cs
T
2026-04-08 23:40:05 +02:00

512 lines
25 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
{
// Token: 0x020017A3 RID: 6051
[Token(Token = "0x20017A3")]
[StructLayout(3)]
public abstract class Asn1Set : Asn1Object, IEnumerable
{
// Token: 0x0600A358 RID: 41816 RVA: 0x002608C4 File Offset: 0x0025EAC4
[Token(Token = "0x600A358")]
[Address(RVA = "0x2679050", Offset = "0x2677A50", VA = "0x182679050")]
public static Asn1Set GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600A358)
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: 0x0600A359 RID: 41817 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600A359")]
[Address(RVA = "0x2678B60", Offset = "0x2677560", VA = "0x182678B60")]
public static Asn1Set GetInstance(Asn1TaggedObject obj, bool explicitly)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600A35A RID: 41818 RVA: 0x00260928 File Offset: 0x0025EB28
[Token(Token = "0x600A35A")]
[Address(RVA = "0x2679950", Offset = "0x2678350", VA = "0x182679950")]
protected internal Asn1Set(int capacity)
{
IList list = Platform.CreateArrayList(capacity);
this._set = list;
}
// Token: 0x0600A35B RID: 41819 RVA: 0x0026094C File Offset: 0x0025EB4C
[Token(Token = "0x600A35B")]
[Address(RVA = "0x2678B10", Offset = "0x2677510", VA = "0x182678B10", Slot = "10")]
public virtual IEnumerator GetEnumerator()
{
IList set = this._set;
throw new NullReferenceException();
}
// Token: 0x0600A35C RID: 41820 RVA: 0x00260968 File Offset: 0x0025EB68
[Token(Token = "0x600A35C")]
[Address(RVA = "0x5D3C80", Offset = "0x5D2680", VA = "0x1805D3C80")]
[Obsolete]
public IEnumerator GetObjects()
{
return ((IEnumerable)this).GetEnumerator();
}
// Token: 0x1700199D RID: 6557
[Token(Token = "0x1700199D")]
public virtual Asn1Encodable this[int index]
{
[Token(Token = "0x600A35D")]
[Address(RVA = "0x2679A10", Offset = "0x2678410", VA = "0x182679A10", Slot = "11")]
get
{
IList set;
do
{
set = this._set;
}
while (set == 0);
throw new NullReferenceException();
}
}
// Token: 0x0600A35E RID: 41822 RVA: 0x002609A0 File Offset: 0x0025EBA0
[Token(Token = "0x600A35E")]
[Address(RVA = "0x2679370", Offset = "0x2677D70", VA = "0x182679370")]
[Obsolete]
public Asn1Encodable GetObjectAt(int index)
{
/*
An exception occurred when decompiling this method (0600A35E)
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: 0x1700199E RID: 6558
// (get) Token: 0x0600A35F RID: 41823 RVA: 0x002609B4 File Offset: 0x0025EBB4
[Token(Token = "0x1700199E")]
[Obsolete]
public int Size
{
[Token(Token = "0x600A35F")]
[Address(RVA = "0xA69C00", Offset = "0xA68600", VA = "0x180A69C00")]
get
{
/*
An exception occurred when decompiling this method (0600A35F)
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: 0x1700199F RID: 6559
// (get) Token: 0x0600A360 RID: 41824 RVA: 0x002609C8 File Offset: 0x0025EBC8
[Token(Token = "0x1700199F")]
public virtual int Count
{
[Token(Token = "0x600A360")]
[Address(RVA = "0x26799C0", Offset = "0x26783C0", VA = "0x1826799C0", Slot = "12")]
get
{
IList set = this._set;
throw new NullReferenceException();
}
}
// Token: 0x0600A361 RID: 41825 RVA: 0x002609E4 File Offset: 0x0025EBE4
[Token(Token = "0x600A361")]
[Address(RVA = "0x2679840", Offset = "0x2678240", VA = "0x182679840", 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: 0x170019A0 RID: 6560
// (get) Token: 0x0600A362 RID: 41826 RVA: 0x00260A20 File Offset: 0x0025EC20
[Token(Token = "0x170019A0")]
public Asn1SetParser Parser
{
[Token(Token = "0x600A362")]
[Address(RVA = "0x2679AC0", Offset = "0x26784C0", VA = "0x182679AC0")]
get
{
Asn1Set.Asn1SetParserImpl asn1SetParserImpl;
asn1SetParserImpl.outer = this;
Asn1Encodable asn1Encodable;
asn1SetParserImpl.max = asn1Encodable;
throw new NullReferenceException();
}
}
// Token: 0x0600A363 RID: 41827 RVA: 0x00260A40 File Offset: 0x0025EC40
[Token(Token = "0x600A363")]
[Address(RVA = "0x2678880", Offset = "0x2677280", VA = "0x182678880", 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();
}
if (num != -1)
{
}
}
while (num != 0);
throw new NullReferenceException();
}
// Token: 0x0600A364 RID: 41828 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600A364")]
[Address(RVA = "0x26786C0", Offset = "0x26770C0", VA = "0x1826786C0", Slot = "7")]
protected override bool Asn1Equals(Asn1Object asn1Object)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600A365 RID: 41829 RVA: 0x00260A84 File Offset: 0x0025EC84
[Token(Token = "0x600A365")]
[Address(RVA = "0x2678A30", Offset = "0x2677430", VA = "0x182678A30")]
private Asn1Encodable GetCurrent(IEnumerator e)
{
while (e == 0)
{
}
DerNull instance = DerNull.Instance;
throw new NullReferenceException();
}
// Token: 0x0600A366 RID: 41830 RVA: 0x00260AA4 File Offset: 0x0025ECA4
[Token(Token = "0x600A366")]
[Address(RVA = "0x2679390", Offset = "0x2677D90", VA = "0x182679390")]
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: 0x0600A367 RID: 41831 RVA: 0x00260BF0 File Offset: 0x0025EDF0
[Token(Token = "0x600A367")]
[Address(RVA = "0x2678660", Offset = "0x2677060", VA = "0x182678660")]
protected internal void AddObject(Asn1Encodable obj)
{
IList set = this._set;
throw new NullReferenceException();
}
// Token: 0x0600A368 RID: 41832 RVA: 0x00260C0C File Offset: 0x0025EE0C
[Token(Token = "0x600A368")]
[Address(RVA = "0x2678230", Offset = "0x2676C30", VA = "0x182678230", Slot = "3")]
public override string ToString()
{
return CollectionUtilities.ToString(this._set);
}
// Token: 0x04006B1E RID: 27422
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006B1E")]
private readonly IList _set;
// Token: 0x020017A4 RID: 6052
[Token(Token = "0x20017A4")]
private class Asn1SetParserImpl : Asn1SetParser, IAsn1Convertible
{
// Token: 0x0600A369 RID: 41833 RVA: 0x00260C24 File Offset: 0x0025EE24
[Token(Token = "0x600A369")]
[Address(RVA = "0x2678610", Offset = "0x2677010", VA = "0x182678610")]
public Asn1SetParserImpl(Asn1Set outer)
{
this.outer = outer;
Asn1Encodable asn1Encodable;
this.max = asn1Encodable;
}
// Token: 0x0600A36A RID: 41834 RVA: 0x00260C4C File Offset: 0x0025EE4C
[Token(Token = "0x600A36A")]
[Address(RVA = "0x2678430", Offset = "0x2676E30", VA = "0x182678430", 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: 0x0600A36B RID: 41835 RVA: 0x00260CB4 File Offset: 0x0025EEB4
[Token(Token = "0x600A36B")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
public virtual Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600A36B)
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: 0x04006B1F RID: 27423
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006B1F")]
private readonly Asn1Set outer;
// Token: 0x04006B20 RID: 27424
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006B20")]
private readonly int max;
// Token: 0x04006B21 RID: 27425
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4006B21")]
private int index;
}
// Token: 0x020017A5 RID: 6053
[Token(Token = "0x20017A5")]
private class DerComparer : IComparer
{
// Token: 0x0600A36C RID: 41836 RVA: 0x00260CC8 File Offset: 0x0025EEC8
[Token(Token = "0x600A36C")]
[Address(RVA = "0x26847D0", Offset = "0x26831D0", VA = "0x1826847D0", Slot = "4")]
public int Compare(object x, object y)
{
/*
An exception occurred when decompiling this method (0600A36C)
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: 0x0600A36D RID: 41837 RVA: 0x00260D10 File Offset: 0x0025EF10
[Token(Token = "0x600A36D")]
[Address(RVA = "0x2684780", Offset = "0x2683180", VA = "0x182684780")]
private bool AllZeroesFrom(byte[] bs, int pos)
{
int length = bs.Length;
if (pos < length)
{
}
return true;
}
// Token: 0x0600A36E RID: 41838 RVA: 0x00260D34 File Offset: 0x0025EF34
[Token(Token = "0x600A36E")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public DerComparer()
{
}
}
}
}