oh dear
This commit is contained in:
+195
@@ -0,0 +1,195 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Anssi
|
||||
{
|
||||
// Token: 0x02001F71 RID: 8049
|
||||
[Token(Token = "0x2001F71")]
|
||||
public class AnssiNamedCurves
|
||||
{
|
||||
// Token: 0x0600CBA8 RID: 52136 RVA: 0x002EAB94 File Offset: 0x002E8D94
|
||||
[Token(Token = "0x600CBA8")]
|
||||
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0")]
|
||||
private static ECCurve ConfigureCurve(ECCurve curve)
|
||||
{
|
||||
return curve;
|
||||
}
|
||||
|
||||
// Token: 0x0600CBA9 RID: 52137 RVA: 0x002EABA4 File Offset: 0x002E8DA4
|
||||
[Token(Token = "0x600CBA9")]
|
||||
[Address(RVA = "0x263C320", Offset = "0x263B120", VA = "0x18263C320")]
|
||||
private static BigInteger FromHex(string hex)
|
||||
{
|
||||
byte[] array = Hex.Decode(hex);
|
||||
return new BigInteger(1, array);
|
||||
}
|
||||
|
||||
// Token: 0x0600CBAA RID: 52138 RVA: 0x002EABC0 File Offset: 0x002E8DC0
|
||||
[Token(Token = "0x600CBAA")]
|
||||
[Address(RVA = "0x263C1E0", Offset = "0x263AFE0", VA = "0x18263C1E0")]
|
||||
private static void DefineCurve(string name, DerObjectIdentifier oid, X9ECParametersHolder holder)
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.objIds;
|
||||
string text = Platform.ToUpperInvariant(name);
|
||||
IDictionary dictionary2 = AnssiNamedCurves.names;
|
||||
IDictionary dictionary3 = AnssiNamedCurves.curves;
|
||||
}
|
||||
|
||||
// Token: 0x0600CBAB RID: 52139 RVA: 0x002EABEC File Offset: 0x002E8DEC
|
||||
[Token(Token = "0x600CBAB")]
|
||||
[Address(RVA = "0x263C870", Offset = "0x263B670", VA = "0x18263C870")]
|
||||
static AnssiNamedCurves()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
AnssiNamedCurves.objIds = dictionary;
|
||||
IDictionary dictionary2 = Platform.CreateHashtable();
|
||||
AnssiNamedCurves.curves = dictionary2;
|
||||
AnssiNamedCurves.names = Platform.CreateHashtable();
|
||||
IDictionary dictionary3 = AnssiNamedCurves.objIds;
|
||||
string text = Platform.ToUpperInvariant("FRP256v1");
|
||||
IDictionary dictionary4 = AnssiNamedCurves.names;
|
||||
IDictionary dictionary5 = AnssiNamedCurves.curves;
|
||||
}
|
||||
|
||||
// Token: 0x0600CBAC RID: 52140 RVA: 0x002EAC4C File Offset: 0x002E8E4C
|
||||
[Token(Token = "0x600CBAC")]
|
||||
[Address(RVA = "0x263C3B0", Offset = "0x263B1B0", VA = "0x18263C3B0")]
|
||||
public static X9ECParameters GetByName(string name)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.objIds;
|
||||
text = Platform.ToUpperInvariant(name);
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_2A;
|
||||
}
|
||||
}
|
||||
while (text == 0);
|
||||
IDictionary dictionary2 = AnssiNamedCurves.curves;
|
||||
IDictionary dictionary3 = AnssiNamedCurves.objIds;
|
||||
IL_2A:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CBAD RID: 52141 RVA: 0x002EAC8C File Offset: 0x002E8E8C
|
||||
[Token(Token = "0x600CBAD")]
|
||||
[Address(RVA = "0x263C5F0", Offset = "0x263B3F0", VA = "0x18263C5F0")]
|
||||
public static X9ECParameters GetByOid(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.curves;
|
||||
IDictionary dictionary2 = AnssiNamedCurves.objIds;
|
||||
X9ECParameters x9ECParameters;
|
||||
return x9ECParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600CBAE RID: 52142 RVA: 0x002EACB4 File Offset: 0x002E8EB4
|
||||
[Token(Token = "0x600CBAE")]
|
||||
[Address(RVA = "0x263C770", Offset = "0x263B570", VA = "0x18263C770")]
|
||||
public static DerObjectIdentifier GetOid(string name)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.objIds;
|
||||
text = Platform.ToUpperInvariant(name);
|
||||
if (text == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (text == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CBAF RID: 52143 RVA: 0x002EACE0 File Offset: 0x002E8EE0
|
||||
[Token(Token = "0x600CBAF")]
|
||||
[Address(RVA = "0x263C6D0", Offset = "0x263B4D0", VA = "0x18263C6D0")]
|
||||
public static string GetName(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x1700205A RID: 8282
|
||||
// (get) Token: 0x0600CBB0 RID: 52144 RVA: 0x002EACF8 File Offset: 0x002E8EF8
|
||||
[Token(Token = "0x1700205A")]
|
||||
public static IEnumerable Names
|
||||
{
|
||||
[Token(Token = "0x600CBB0")]
|
||||
[Address(RVA = "0x263CA90", Offset = "0x263B890", VA = "0x18263CA90")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CBB1 RID: 52145 RVA: 0x002EAD10 File Offset: 0x002E8F10
|
||||
[Token(Token = "0x600CBB1")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public AnssiNamedCurves()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040081F2 RID: 33266
|
||||
[Token(Token = "0x40081F2")]
|
||||
private static readonly IDictionary objIds;
|
||||
|
||||
// Token: 0x040081F3 RID: 33267
|
||||
[Token(Token = "0x40081F3")]
|
||||
private static readonly IDictionary curves;
|
||||
|
||||
// Token: 0x040081F4 RID: 33268
|
||||
[Token(Token = "0x40081F4")]
|
||||
private static readonly IDictionary names;
|
||||
|
||||
// Token: 0x02001F72 RID: 8050
|
||||
[Token(Token = "0x2001F72")]
|
||||
internal class Frp256v1Holder : X9ECParametersHolder
|
||||
{
|
||||
// Token: 0x0600CBB2 RID: 52146 RVA: 0x002EAD24 File Offset: 0x002E8F24
|
||||
[Token(Token = "0x600CBB2")]
|
||||
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
||||
private Frp256v1Holder()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CBB3 RID: 52147 RVA: 0x002EAD38 File Offset: 0x002E8F38
|
||||
[Token(Token = "0x600CBB3")]
|
||||
[Address(RVA = "0x264D2C0", Offset = "0x264C0C0", VA = "0x18264D2C0", Slot = "4")]
|
||||
protected override X9ECParameters CreateParameters()
|
||||
{
|
||||
BigInteger bigInteger = AnssiNamedCurves.FromHex("F1FD178C0B3AD58F10126DE8CE42435B3961ADBCABC8CA6DE8FCF353D86E9C03");
|
||||
BigInteger bigInteger2 = AnssiNamedCurves.FromHex("F1FD178C0B3AD58F10126DE8CE42435B3961ADBCABC8CA6DE8FCF353D86E9C00");
|
||||
BigInteger bigInteger3 = AnssiNamedCurves.FromHex("EE353FCA5428A9300D4ABA754A44C00FDFEC0C9AE4B1A1803075ED967B7BB73F");
|
||||
BigInteger bigInteger4 = AnssiNamedCurves.FromHex("F1FD178C0B3AD58F10126DE8CE42435B53DC67E140D2BF941FFDD459C6D655E1");
|
||||
BigInteger one = BigInteger.One;
|
||||
FpCurve fpCurve = new FpCurve(bigInteger, bigInteger2, bigInteger3, bigInteger4, one);
|
||||
byte[] array = Hex.Decode("04B6B3D4C356C139EB31183D4749D423958C27D2DCAF98B70164C97A2DD98F5CFF6142E0F7C8B204911F9271F0F3ECEF8C2701C307E8E4C9E183115A1554062CFB");
|
||||
X9ECPoint x9ECPoint = new X9ECPoint(fpCurve, array);
|
||||
X9ECParameters x9ECParameters;
|
||||
return x9ECParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600CBB4 RID: 52148 RVA: 0x002EADA0 File Offset: 0x002E8FA0
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CBB4")]
|
||||
[Address(RVA = "0x264D460", Offset = "0x264C260", VA = "0x18264D460")]
|
||||
static Frp256v1Holder()
|
||||
{
|
||||
AnssiNamedCurves.Frp256v1Holder frp256v1Holder = new AnssiNamedCurves.Frp256v1Holder();
|
||||
}
|
||||
|
||||
// Token: 0x040081F5 RID: 33269
|
||||
[Token(Token = "0x40081F5")]
|
||||
internal static readonly X9ECParametersHolder Instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Anssi
|
||||
{
|
||||
// Token: 0x02001F73 RID: 8051
|
||||
[Token(Token = "0x2001F73")]
|
||||
public sealed class AnssiObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CBB5 RID: 52149 RVA: 0x002EADB4 File Offset: 0x002E8FB4
|
||||
[Token(Token = "0x600CBB5")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
private AnssiObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CBB6 RID: 52150 RVA: 0x002EADC8 File Offset: 0x002E8FC8
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CBB6")]
|
||||
[Address(RVA = "0x263CB40", Offset = "0x263B940", VA = "0x18263CB40")]
|
||||
static AnssiObjectIdentifiers()
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier("1.2.250.1.223.101.256.1");
|
||||
}
|
||||
|
||||
// Token: 0x040081F6 RID: 33270
|
||||
[Token(Token = "0x40081F6")]
|
||||
public static readonly DerObjectIdentifier FRP256v1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D75 RID: 7541
|
||||
[Token(Token = "0x2001D75")]
|
||||
public abstract class Asn1Encodable : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BEE5 RID: 48869 RVA: 0x002B7F4C File Offset: 0x002B614C
|
||||
[Token(Token = "0x600BEE5")]
|
||||
[Address(RVA = "0x263D480", Offset = "0x263C280", VA = "0x18263D480")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
new Asn1OutputStream(memoryStream).WriteObject(this);
|
||||
((IDisposable)memoryStream).Dispose();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BEE6 RID: 48870 RVA: 0x002B7F78 File Offset: 0x002B6178
|
||||
[Token(Token = "0x600BEE6")]
|
||||
[Address(RVA = "0x263D370", Offset = "0x263C170", VA = "0x18263D370")]
|
||||
public byte[] GetEncoded(string encoding)
|
||||
{
|
||||
if (!encoding.Equals("DER"))
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
}
|
||||
MemoryStream memoryStream2 = new MemoryStream();
|
||||
new DerOutputStream(memoryStream2).WriteObject(this);
|
||||
((IDisposable)memoryStream2).Dispose();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BEE7 RID: 48871 RVA: 0x002B7FB8 File Offset: 0x002B61B8
|
||||
[Token(Token = "0x600BEE7")]
|
||||
[Address(RVA = "0x263D310", Offset = "0x263C110", VA = "0x18263D310")]
|
||||
public byte[] GetDerEncoded()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BEE7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable::GetDerEncoded()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:uint8[](var_0_0B, call:uint8[](Asn1Encodable::GetEncoded, ldloc:Asn1Encodable(this), ldstr:string("DER")))
|
||||
}
|
||||
|
||||
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: 0x0600BEE8 RID: 48872 RVA: 0x002B7FD4 File Offset: 0x002B61D4
|
||||
[Token(Token = "0x600BEE8")]
|
||||
[Address(RVA = "0x263D530", Offset = "0x263C330", VA = "0x18263D530", Slot = "2")]
|
||||
public sealed override int GetHashCode()
|
||||
{
|
||||
return this.ToAsn1Object().Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600BEE9 RID: 48873 RVA: 0x002B7FF4 File Offset: 0x002B61F4
|
||||
[Token(Token = "0x600BEE9")]
|
||||
[Address(RVA = "0x263D230", Offset = "0x263C030", VA = "0x18263D230", Slot = "0")]
|
||||
public sealed override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
Asn1Object asn1Object = this.ToAsn1Object();
|
||||
return asn1Object == null || asn1Object.Asn1Equals(asn1Object);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEEA RID: 48874
|
||||
[Token(Token = "0x600BEEA")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract Asn1Object ToAsn1Object();
|
||||
|
||||
// Token: 0x0600BEEB RID: 48875 RVA: 0x002B8020 File Offset: 0x002B6220
|
||||
[Token(Token = "0x600BEEB")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected Asn1Encodable()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007957 RID: 31063
|
||||
[Token(Token = "0x4007957")]
|
||||
public const string Der = "DER";
|
||||
|
||||
// Token: 0x04007958 RID: 31064
|
||||
[Token(Token = "0x4007958")]
|
||||
public const string Ber = "BER";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D76 RID: 7542
|
||||
[Token(Token = "0x2001D76")]
|
||||
public class Asn1EncodableVector : IEnumerable
|
||||
{
|
||||
// Token: 0x0600BEEC RID: 48876 RVA: 0x002B8034 File Offset: 0x002B6234
|
||||
[Token(Token = "0x600BEEC")]
|
||||
[Address(RVA = "0x263CD70", Offset = "0x263BB70", VA = "0x18263CD70")]
|
||||
public static Asn1EncodableVector FromEnumerable(IEnumerable e)
|
||||
{
|
||||
int num;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
Asn1Encodable[] array;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
if (num < asn1EncodableVector)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_6B;
|
||||
}
|
||||
array = new Asn1Encodable[1];
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array[0] = num;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (array != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return asn1EncodableVector;
|
||||
IL_6B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BEED RID: 48877 RVA: 0x002B80B4 File Offset: 0x002B62B4
|
||||
[Token(Token = "0x600BEED")]
|
||||
[Address(RVA = "0x263D060", Offset = "0x263BE60", VA = "0x18263D060")]
|
||||
public Asn1EncodableVector(params Asn1Encodable[] v)
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.v = list;
|
||||
base..ctor();
|
||||
this.Add(v);
|
||||
}
|
||||
|
||||
// Token: 0x0600BEEE RID: 48878 RVA: 0x002B80E0 File Offset: 0x002B62E0
|
||||
[Token(Token = "0x600BEEE")]
|
||||
[Address(RVA = "0x263CC40", Offset = "0x263BA40", VA = "0x18263CC40")]
|
||||
public void Add(params Asn1Encodable[] objs)
|
||||
{
|
||||
int num = 0;
|
||||
int length = objs.Length;
|
||||
if (num < length)
|
||||
{
|
||||
IList list = this.v;
|
||||
Asn1Encodable asn1Encodable = objs[num];
|
||||
if (num < num)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
asn1Encodable += asn1Encodable;
|
||||
num += 2;
|
||||
num += 19;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BEEF RID: 48879 RVA: 0x002B812C File Offset: 0x002B632C
|
||||
[Token(Token = "0x600BEEF")]
|
||||
[Address(RVA = "0x263CBA0", Offset = "0x263B9A0", VA = "0x18263CBA0")]
|
||||
public void AddOptional(params Asn1Encodable[] objs)
|
||||
{
|
||||
if (objs != 0)
|
||||
{
|
||||
int num = 0;
|
||||
int length = objs.Length;
|
||||
if (num < length)
|
||||
{
|
||||
if (objs[num] != 0)
|
||||
{
|
||||
IList list = this.v;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001D96 RID: 7574
|
||||
[Token(Token = "0x17001D96")]
|
||||
public Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600BEF0")]
|
||||
[Address(RVA = "0x263D130", Offset = "0x263BF30", VA = "0x18263D130")]
|
||||
get
|
||||
{
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
list = this.v;
|
||||
}
|
||||
while (list == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BEF1 RID: 48881 RVA: 0x002B818C File Offset: 0x002B638C
|
||||
[Token(Token = "0x600BEF1")]
|
||||
[Address(RVA = "0x263D050", Offset = "0x263BE50", VA = "0x18263D050")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable Get(int index)
|
||||
{
|
||||
return this[index];
|
||||
}
|
||||
|
||||
// Token: 0x17001D97 RID: 7575
|
||||
// (get) Token: 0x0600BEF2 RID: 48882 RVA: 0x002B81A0 File Offset: 0x002B63A0
|
||||
[Token(Token = "0x17001D97")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600BEF2")]
|
||||
[Address(RVA = "0x263D1E0", Offset = "0x263BFE0", VA = "0x18263D1E0")]
|
||||
get
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001D98 RID: 7576
|
||||
// (get) Token: 0x0600BEF3 RID: 48883 RVA: 0x002B81BC File Offset: 0x002B63BC
|
||||
[Token(Token = "0x17001D98")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600BEF3")]
|
||||
[Address(RVA = "0x263D0E0", Offset = "0x263BEE0", VA = "0x18263D0E0")]
|
||||
get
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BEF4 RID: 48884 RVA: 0x002B81D8 File Offset: 0x002B63D8
|
||||
[Token(Token = "0x600BEF4")]
|
||||
[Address(RVA = "0x263D000", Offset = "0x263BE00", VA = "0x18263D000", Slot = "4")]
|
||||
public IEnumerator GetEnumerator()
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007959 RID: 31065
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007959")]
|
||||
private IList v;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D77 RID: 7543
|
||||
[Token(Token = "0x2001D77")]
|
||||
[Serializable]
|
||||
public class Asn1Exception : IOException
|
||||
{
|
||||
// Token: 0x0600BEF5 RID: 48885 RVA: 0x002B81F4 File Offset: 0x002B63F4
|
||||
[Token(Token = "0x600BEF5")]
|
||||
[Address(RVA = "0x18E71B0", Offset = "0x18E5FB0", VA = "0x1818E71B0")]
|
||||
public Asn1Exception()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BEF6 RID: 48886 RVA: 0x002B8208 File Offset: 0x002B6408
|
||||
[Token(Token = "0x600BEF6")]
|
||||
[Address(RVA = "0x424140", Offset = "0x422F40", VA = "0x180424140")]
|
||||
public Asn1Exception(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BEF7 RID: 48887 RVA: 0x002B821C File Offset: 0x002B641C
|
||||
[Token(Token = "0x600BEF7")]
|
||||
[Address(RVA = "0x18E71C0", Offset = "0x18E5FC0", VA = "0x1818E71C0")]
|
||||
public Asn1Exception(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D6F RID: 7535
|
||||
[Token(Token = "0x2001D6F")]
|
||||
public abstract class Asn1Generator
|
||||
{
|
||||
// Token: 0x0600BED2 RID: 48850 RVA: 0x002B7B24 File Offset: 0x002B5D24
|
||||
[Token(Token = "0x600BED2")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
protected Asn1Generator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
}
|
||||
|
||||
// Token: 0x17001D94 RID: 7572
|
||||
// (get) Token: 0x0600BED3 RID: 48851 RVA: 0x002B7B40 File Offset: 0x002B5D40
|
||||
[Token(Token = "0x17001D94")]
|
||||
protected Stream Out
|
||||
{
|
||||
[Token(Token = "0x600BED3")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this._out;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BED4 RID: 48852
|
||||
[Token(Token = "0x600BED4")]
|
||||
[Address(Slot = "4")]
|
||||
public abstract void AddObject(Asn1Encodable obj);
|
||||
|
||||
// Token: 0x0600BED5 RID: 48853
|
||||
[Token(Token = "0x600BED5")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract Stream GetRawOutputStream();
|
||||
|
||||
// Token: 0x0600BED6 RID: 48854
|
||||
[Token(Token = "0x600BED6")]
|
||||
[Address(Slot = "6")]
|
||||
public abstract void Close();
|
||||
|
||||
// Token: 0x04007953 RID: 31059
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007953")]
|
||||
private Stream _out;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,317 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D78 RID: 7544
|
||||
[Token(Token = "0x2001D78")]
|
||||
public class Asn1InputStream : FilterStream
|
||||
{
|
||||
// Token: 0x0600BEF8 RID: 48888 RVA: 0x002B8234 File Offset: 0x002B6434
|
||||
[Token(Token = "0x600BEF8")]
|
||||
[Address(RVA = "0x263E0C0", Offset = "0x263CEC0", VA = "0x18263E0C0")]
|
||||
internal static int FindLimit(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BEF8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1InputStream::FindLimit(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_5:
|
||||
stloc:JAAHPDGFADH(var_7_3E, call:JAAHPDGFADH(PJPHJNNOBBH::POCDCJMHEGL, ldloc:bool[exp:PJPHJNNOBBH](var_3)))
|
||||
}
|
||||
|
||||
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: 0x0600BEF9 RID: 48889 RVA: 0x002B8280 File Offset: 0x002B6480
|
||||
[Token(Token = "0x600BEF9")]
|
||||
[Address(RVA = "0x263EC10", Offset = "0x263DA10", VA = "0x18263EC10")]
|
||||
public Asn1InputStream(Stream inputStream)
|
||||
{
|
||||
int num = Asn1InputStream.FindLimit(inputStream);
|
||||
base..ctor(inputStream);
|
||||
this.limit = num;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEFA RID: 48890 RVA: 0x002B82B4 File Offset: 0x002B64B4
|
||||
[Token(Token = "0x600BEFA")]
|
||||
[Address(RVA = "0x263EBA0", Offset = "0x263D9A0", VA = "0x18263EBA0")]
|
||||
public Asn1InputStream(Stream inputStream, int limit)
|
||||
: base(inputStream)
|
||||
{
|
||||
this.limit = limit;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEFB RID: 48891 RVA: 0x002B82E0 File Offset: 0x002B64E0
|
||||
[Token(Token = "0x600BEFB")]
|
||||
[Address(RVA = "0x263EC90", Offset = "0x263DA90", VA = "0x18263EC90")]
|
||||
public Asn1InputStream(byte[] input)
|
||||
{
|
||||
int num;
|
||||
MemoryStream memoryStream = new MemoryStream(input, num != 0);
|
||||
num = 0;
|
||||
int length = input.Length;
|
||||
base..ctor(memoryStream);
|
||||
this.limit = length;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEFC RID: 48892 RVA: 0x002B8324 File Offset: 0x002B6524
|
||||
[Token(Token = "0x600BEFC")]
|
||||
[Address(RVA = "0x263D7D0", Offset = "0x263C5D0", VA = "0x18263D7D0")]
|
||||
private Asn1Object BuildObject(int tag, int tagNo, int length)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BEFC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1InputStream::BuildObject(System.Int32,System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_75:
|
||||
stloc:IOException(var_14_8A, newobj:IOException(IOException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("unknown tag "), ldloc:DefiniteLengthInputStream[exp:object](var_0_0C), ldstr:string[exp:object](" encountered"))))
|
||||
}
|
||||
|
||||
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.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: 0x0600BEFD RID: 48893 RVA: 0x002B83BC File Offset: 0x002B65BC
|
||||
[Token(Token = "0x600BEFD")]
|
||||
[Address(RVA = "0x263D6C0", Offset = "0x263C4C0", VA = "0x18263D6C0")]
|
||||
internal Asn1EncodableVector BuildEncodableVector()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
do
|
||||
{
|
||||
Asn1Object asn1Object = this.ReadObject();
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (asn1Object != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1Object;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
while (this.ReadObject() != 0);
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEFE RID: 48894 RVA: 0x002B8400 File Offset: 0x002B6600
|
||||
[Token(Token = "0x600BEFE")]
|
||||
[Address(RVA = "0x263D570", Offset = "0x263C370", VA = "0x18263D570", Slot = "31")]
|
||||
internal virtual Asn1EncodableVector BuildDerEncodableVector(DefiniteLengthInputStream dIn)
|
||||
{
|
||||
Asn1InputStream asn1InputStream;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
do
|
||||
{
|
||||
asn1InputStream = new Asn1InputStream(dIn);
|
||||
Asn1Object asn1Object = asn1InputStream.ReadObject();
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (asn1Object != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1Object;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
while (asn1InputStream.ReadObject() != 0);
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEFF RID: 48895 RVA: 0x002B844C File Offset: 0x002B664C
|
||||
[Token(Token = "0x600BEFF")]
|
||||
[Address(RVA = "0x263DA40", Offset = "0x263C840", VA = "0x18263DA40", Slot = "32")]
|
||||
internal virtual DerSequence CreateDerSequence(DefiniteLengthInputStream dIn)
|
||||
{
|
||||
DerSequence derSequence;
|
||||
return derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF00 RID: 48896 RVA: 0x002B845C File Offset: 0x002B665C
|
||||
[Token(Token = "0x600BF00")]
|
||||
[Address(RVA = "0x263DAC0", Offset = "0x263C8C0", VA = "0x18263DAC0", Slot = "33")]
|
||||
internal virtual DerSet CreateDerSet(DefiniteLengthInputStream dIn)
|
||||
{
|
||||
DerSet derSet;
|
||||
return derSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF01 RID: 48897 RVA: 0x002B846C File Offset: 0x002B666C
|
||||
[Token(Token = "0x600BF01")]
|
||||
[Address(RVA = "0x263E5C0", Offset = "0x263D3C0", VA = "0x18263E5C0")]
|
||||
public Asn1Object ReadObject()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF01)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1InputStream::ReadObject()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_115:
|
||||
stloc:IOException(var_21_11F, newobj:IOException(IOException::.ctor, ldstr:string("unexpected end-of-contents marker")))
|
||||
}
|
||||
|
||||
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: 0x0600BF02 RID: 48898 RVA: 0x002B859C File Offset: 0x002B679C
|
||||
[Token(Token = "0x600BF02")]
|
||||
[Address(RVA = "0x263EAA0", Offset = "0x263D8A0", VA = "0x18263EAA0")]
|
||||
internal static int ReadTagNumber(Stream s, int tag)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF02)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1InputStream::ReadTagNumber(System.IO.Stream,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:IOException(var_2_1C, newobj:IOException(IOException::.ctor, ldstr:string("Corrupted stream - invalid high tag number found")))
|
||||
}
|
||||
|
||||
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.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: 0x0600BF03 RID: 48899 RVA: 0x002B85C8 File Offset: 0x002B67C8
|
||||
[Token(Token = "0x600BF03")]
|
||||
[Address(RVA = "0x263E3B0", Offset = "0x263D1B0", VA = "0x18263E3B0")]
|
||||
internal static int ReadLength(Stream s, int limit)
|
||||
{
|
||||
int num;
|
||||
while (num != 128)
|
||||
{
|
||||
if (num > 127)
|
||||
{
|
||||
if (num > 4)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int num2 = 0;
|
||||
if (num != 0)
|
||||
{
|
||||
num2++;
|
||||
int num3;
|
||||
num2 += num3;
|
||||
}
|
||||
if (num2 >= limit)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return num;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF04 RID: 48900 RVA: 0x002B8600 File Offset: 0x002B6800
|
||||
[Token(Token = "0x600BF04")]
|
||||
[Address(RVA = "0x263E290", Offset = "0x263D090", VA = "0x18263E290")]
|
||||
internal static byte[] GetBuffer(DefiniteLengthInputStream defIn, byte[][] tmpBuffers)
|
||||
{
|
||||
int length = tmpBuffers.Length;
|
||||
byte[] array;
|
||||
if (array == 0)
|
||||
{
|
||||
byte[] array2 = new byte[0];
|
||||
if (array2 != 0)
|
||||
{
|
||||
}
|
||||
tmpBuffers[0] = array2;
|
||||
}
|
||||
defIn.ReadAllIntoByteArray(array);
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF05 RID: 48901 RVA: 0x002B8640 File Offset: 0x002B6840
|
||||
[Token(Token = "0x600BF05")]
|
||||
[Address(RVA = "0x263DB40", Offset = "0x263C940", VA = "0x18263DB40")]
|
||||
internal static Asn1Object CreatePrimitiveDerObject(int tagNo, DefiniteLengthInputStream defIn, byte[][] tmpBuffers)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF05)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1InputStream::CreatePrimitiveDerObject(System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DefiniteLengthInputStream,System.Byte[][])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_D9:
|
||||
stloc:IOException(var_24_EF, newobj:IOException(IOException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("unknown tag "), ldloc:NullReferenceException[exp:object](var_23), ldstr:string[exp:object](" encountered"))))
|
||||
}
|
||||
|
||||
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.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: 0x0400795A RID: 31066
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400795A")]
|
||||
private readonly int limit;
|
||||
|
||||
// Token: 0x0400795B RID: 31067
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400795B")]
|
||||
private readonly byte[][] tmpBuffers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D79 RID: 7545
|
||||
[Token(Token = "0x2001D79")]
|
||||
public abstract class Asn1Null : Asn1Object
|
||||
{
|
||||
// Token: 0x0600BF06 RID: 48902 RVA: 0x002B8740 File Offset: 0x002B6940
|
||||
[Token(Token = "0x600BF06")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
internal Asn1Null()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF07 RID: 48903 RVA: 0x002B8754 File Offset: 0x002B6954
|
||||
[Token(Token = "0x600BF07")]
|
||||
[Address(RVA = "0x263ED40", Offset = "0x263DB40", VA = "0x18263ED40", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return "NULL";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D7A RID: 7546
|
||||
[Token(Token = "0x2001D7A")]
|
||||
public abstract class Asn1Object : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600BF08 RID: 48904 RVA: 0x002B8768 File Offset: 0x002B6968
|
||||
[Token(Token = "0x600BF08")]
|
||||
[Address(RVA = "0x263ED70", Offset = "0x263DB70", VA = "0x18263ED70")]
|
||||
public static Asn1Object FromByteArray(byte[] data)
|
||||
{
|
||||
int num;
|
||||
MemoryStream memoryStream = new MemoryStream(data, num != 0);
|
||||
num = 0;
|
||||
Asn1InputStream asn1InputStream = new Asn1InputStream(memoryStream);
|
||||
int length = data.Length;
|
||||
asn1InputStream.limit = length;
|
||||
byte[][] array = new byte[16][];
|
||||
asn1InputStream.tmpBuffers = array;
|
||||
Asn1Object asn1Object = asn1InputStream.ReadObject();
|
||||
long length2 = memoryStream.Length;
|
||||
bool canWrite = memoryStream.CanWrite;
|
||||
if (length2 == (canWrite ? 1L : 0L))
|
||||
{
|
||||
return asn1Object;
|
||||
}
|
||||
IOException ex = new IOException("extra data found after object");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF09 RID: 48905 RVA: 0x002B87EC File Offset: 0x002B69EC
|
||||
[Token(Token = "0x600BF09")]
|
||||
[Address(RVA = "0x263EF00", Offset = "0x263DD00", VA = "0x18263EF00")]
|
||||
public static Asn1Object FromStream(Stream inStr)
|
||||
{
|
||||
return new Asn1InputStream(inStr).ReadObject();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF0A RID: 48906 RVA: 0x002B8818 File Offset: 0x002B6A18
|
||||
[Token(Token = "0x600BF0A")]
|
||||
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0", Slot = "5")]
|
||||
public sealed override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF0B RID: 48907
|
||||
[Token(Token = "0x600BF0B")]
|
||||
[Address(Slot = "6")]
|
||||
internal abstract void Encode(DerOutputStream derOut);
|
||||
|
||||
// Token: 0x0600BF0C RID: 48908
|
||||
[Token(Token = "0x600BF0C")]
|
||||
[Address(Slot = "7")]
|
||||
protected abstract bool Asn1Equals(Asn1Object asn1Object);
|
||||
|
||||
// Token: 0x0600BF0D RID: 48909
|
||||
[Token(Token = "0x600BF0D")]
|
||||
[Address(Slot = "8")]
|
||||
protected abstract int Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0600BF0E RID: 48910 RVA: 0x002B8828 File Offset: 0x002B6A28
|
||||
[Token(Token = "0x600BF0E")]
|
||||
[Address(RVA = "0x12417E0", Offset = "0x12405E0", VA = "0x1812417E0")]
|
||||
internal bool CallAsn1Equals(Asn1Object obj)
|
||||
{
|
||||
return this.Asn1Equals(obj);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF0F RID: 48911 RVA: 0x002B883C File Offset: 0x002B6A3C
|
||||
[Token(Token = "0x600BF0F")]
|
||||
[Address(RVA = "0x5C2230", Offset = "0x5C1030", VA = "0x1805C2230")]
|
||||
internal int CallAsn1GetHashCode()
|
||||
{
|
||||
return this.Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF10 RID: 48912 RVA: 0x002B8850 File Offset: 0x002B6A50
|
||||
[Token(Token = "0x600BF10")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected Asn1Object()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D7B RID: 7547
|
||||
[Token(Token = "0x2001D7B")]
|
||||
public abstract class Asn1OctetString : Asn1Object, Asn1OctetStringParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF11 RID: 48913 RVA: 0x002B8864 File Offset: 0x002B6A64
|
||||
[Token(Token = "0x600BF11")]
|
||||
[Address(RVA = "0x263F310", Offset = "0x263E110", VA = "0x18263F310")]
|
||||
public static Asn1OctetString GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
Asn1Encodable obj2 = obj.obj;
|
||||
if (obj2 == 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object = obj2.ToAsn1Object();
|
||||
if (!isExplicit && (asn1Object == 0 || asn1Object == 0))
|
||||
{
|
||||
BerOctetString berOctetString = BerOctetString.FromSequence(Asn1Sequence.GetInstance(asn1Object));
|
||||
}
|
||||
return Asn1OctetString.GetInstance(asn1Object);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF12 RID: 48914 RVA: 0x002B88AC File Offset: 0x002B6AAC
|
||||
[Token(Token = "0x600BF12")]
|
||||
[Address(RVA = "0x263F120", Offset = "0x263DF20", VA = "0x18263F120")]
|
||||
public static Asn1OctetString GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF12)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_25:
|
||||
stloc:ArgumentException(var_8_36, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("illegal object in GetInstance: "), ldloc:string(var_7))))
|
||||
}
|
||||
|
||||
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: 0x0600BF13 RID: 48915 RVA: 0x002B88F0 File Offset: 0x002B6AF0
|
||||
[Token(Token = "0x600BF13")]
|
||||
[Address(RVA = "0x263F4C0", Offset = "0x263E2C0", VA = "0x18263F4C0")]
|
||||
internal Asn1OctetString(byte[] str)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF13)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString::.ctor(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("str")))
|
||||
}
|
||||
|
||||
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.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: 0x0600BF14 RID: 48916 RVA: 0x002B891C File Offset: 0x002B6B1C
|
||||
[Token(Token = "0x600BF14")]
|
||||
[Address(RVA = "0x263F540", Offset = "0x263E340", VA = "0x18263F540")]
|
||||
internal Asn1OctetString(Asn1Encodable obj)
|
||||
{
|
||||
byte[] encoded = obj.GetEncoded("DER");
|
||||
this.str = encoded;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF15 RID: 48917 RVA: 0x002B8958 File Offset: 0x002B6B58
|
||||
[Token(Token = "0x600BF15")]
|
||||
[Address(RVA = "0x263F3F0", Offset = "0x263E1F0", VA = "0x18263F3F0", Slot = "9")]
|
||||
public Stream GetOctetStream()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF15)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString::GetOctetStream()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:MemoryStream(var_0_0C, newobj:MemoryStream(MemoryStream::.ctor, ldfld:uint8[](Asn1OctetString::str, ldloc:Asn1OctetString(this)), ldloc:int32[exp:bool](var_1)))
|
||||
stloc:int32(var_1, ldc.i4:int32(0))
|
||||
}
|
||||
|
||||
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: 0x17001D99 RID: 7577
|
||||
// (get) Token: 0x0600BF16 RID: 48918 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17001D99")]
|
||||
public Asn1OctetStringParser Parser
|
||||
{
|
||||
[Token(Token = "0x600BF16")]
|
||||
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF17 RID: 48919 RVA: 0x002B8974 File Offset: 0x002B6B74
|
||||
[Token(Token = "0x600BF17")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "10")]
|
||||
public virtual byte[] GetOctets()
|
||||
{
|
||||
return this.str;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF18 RID: 48920 RVA: 0x002B8988 File Offset: 0x002B6B88
|
||||
[Token(Token = "0x600BF18")]
|
||||
[Address(RVA = "0x263F0B0", Offset = "0x263DEB0", VA = "0x18263F0B0", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
Stream octetStream = this.GetOctetStream();
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF19 RID: 48921 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600BF19")]
|
||||
[Address(RVA = "0x263EFC0", Offset = "0x263DDC0", VA = "0x18263EFC0", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600BF1A RID: 48922 RVA: 0x002B89A0 File Offset: 0x002B6BA0
|
||||
[Token(Token = "0x600BF1A")]
|
||||
[Address(RVA = "0x263F450", Offset = "0x263E250", VA = "0x18263F450", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string text = Hex.ToHexString(this.str);
|
||||
return "#" + text;
|
||||
}
|
||||
|
||||
// Token: 0x0400795C RID: 31068
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400795C")]
|
||||
internal byte[] str;
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D70 RID: 7536
|
||||
[Token(Token = "0x2001D70")]
|
||||
public interface Asn1OctetStringParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BED7 RID: 48855
|
||||
[Token(Token = "0x600BED7")]
|
||||
[Address(Slot = "0")]
|
||||
Stream GetOctetStream();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D7C RID: 7548
|
||||
[Token(Token = "0x2001D7C")]
|
||||
public class Asn1OutputStream : DerOutputStream
|
||||
{
|
||||
// Token: 0x0600BF1B RID: 48923 RVA: 0x002B89C4 File Offset: 0x002B6BC4
|
||||
[Token(Token = "0x600BF1B")]
|
||||
[Address(RVA = "0x263F840", Offset = "0x263E640", VA = "0x18263F840")]
|
||||
public Asn1OutputStream(Stream os)
|
||||
: base(os)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF1C RID: 48924 RVA: 0x002B89D8 File Offset: 0x002B6BD8
|
||||
[Token(Token = "0x600BF1C")]
|
||||
[Address(RVA = "0x263F620", Offset = "0x263E420", VA = "0x18263F620", Slot = "31")]
|
||||
[Obsolete]
|
||||
public override void WriteObject(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF1C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OutputStream::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 Asn1Encodable")))
|
||||
}
|
||||
|
||||
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
|
||||
*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D7D RID: 7549
|
||||
[Token(Token = "0x2001D7D")]
|
||||
[Serializable]
|
||||
public class Asn1ParsingException : InvalidOperationException
|
||||
{
|
||||
// Token: 0x0600BF1D RID: 48925 RVA: 0x002B8A20 File Offset: 0x002B6C20
|
||||
[Token(Token = "0x600BF1D")]
|
||||
[Address(RVA = "0x2231DD0", Offset = "0x2230BD0", VA = "0x182231DD0")]
|
||||
public Asn1ParsingException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF1E RID: 48926 RVA: 0x002B8A34 File Offset: 0x002B6C34
|
||||
[Token(Token = "0x600BF1E")]
|
||||
[Address(RVA = "0x9483B0", Offset = "0x9471B0", VA = "0x1809483B0")]
|
||||
public Asn1ParsingException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF1F RID: 48927 RVA: 0x002B8A48 File Offset: 0x002B6C48
|
||||
[Token(Token = "0x600BF1F")]
|
||||
[Address(RVA = "0x9483A0", Offset = "0x9471A0", VA = "0x1809483A0")]
|
||||
public Asn1ParsingException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,369 @@
|
||||
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: 0x02001D7E RID: 7550
|
||||
[Token(Token = "0x2001D7E")]
|
||||
public abstract class Asn1Sequence : Asn1Object, IEnumerable
|
||||
{
|
||||
// Token: 0x0600BF20 RID: 48928 RVA: 0x002B8A60 File Offset: 0x002B6C60
|
||||
[Token(Token = "0x600BF20")]
|
||||
[Address(RVA = "0x2640220", Offset = "0x263F020", VA = "0x182640220")]
|
||||
public static Asn1Sequence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF20)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence::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: 0x0600BF21 RID: 48929 RVA: 0x002B8AC4 File Offset: 0x002B6CC4
|
||||
[Token(Token = "0x600BF21")]
|
||||
[Address(RVA = "0x263FF50", Offset = "0x263ED50", VA = "0x18263FF50")]
|
||||
public static Asn1Sequence GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF21)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence::GetInstance(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject,System.Boolean)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_6F:
|
||||
stloc:ArgumentException(var_11_79, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("object implicit - explicit expected.")))
|
||||
}
|
||||
|
||||
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: 0x0600BF22 RID: 48930 RVA: 0x002B8B4C File Offset: 0x002B6D4C
|
||||
[Token(Token = "0x600BF22")]
|
||||
[Address(RVA = "0x2640550", Offset = "0x263F350", VA = "0x182640550")]
|
||||
protected internal Asn1Sequence(int capacity)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(capacity);
|
||||
this.seq = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF23 RID: 48931 RVA: 0x002B8B70 File Offset: 0x002B6D70
|
||||
[Token(Token = "0x600BF23")]
|
||||
[Address(RVA = "0x263FF00", Offset = "0x263ED00", VA = "0x18263FF00", Slot = "10")]
|
||||
public virtual IEnumerator GetEnumerator()
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF24 RID: 48932 RVA: 0x002B8B8C File Offset: 0x002B6D8C
|
||||
[Token(Token = "0x600BF24")]
|
||||
[Address(RVA = "0x539EE0", Offset = "0x538CE0", VA = "0x180539EE0")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return ((IEnumerable)this).GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x17001D9A RID: 7578
|
||||
// (get) Token: 0x0600BF25 RID: 48933 RVA: 0x002B8BA0 File Offset: 0x002B6DA0
|
||||
[Token(Token = "0x17001D9A")]
|
||||
public virtual Asn1SequenceParser Parser
|
||||
{
|
||||
[Token(Token = "0x600BF25")]
|
||||
[Address(RVA = "0x26406C0", Offset = "0x263F4C0", VA = "0x1826406C0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
Asn1Sequence.Asn1SequenceParserImpl asn1SequenceParserImpl;
|
||||
asn1SequenceParserImpl.outer = this;
|
||||
Asn1Encodable asn1Encodable;
|
||||
asn1SequenceParserImpl.max = asn1Encodable;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001D9B RID: 7579
|
||||
[Token(Token = "0x17001D9B")]
|
||||
public virtual Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600BF26")]
|
||||
[Address(RVA = "0x2640610", Offset = "0x263F410", VA = "0x182640610", Slot = "12")]
|
||||
get
|
||||
{
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
list = this.seq;
|
||||
}
|
||||
while (list == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF27 RID: 48935 RVA: 0x002B8BE4 File Offset: 0x002B6DE4
|
||||
[Token(Token = "0x600BF27")]
|
||||
[Address(RVA = "0x1A34680", Offset = "0x1A33480", VA = "0x181A34680")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetObjectAt(int index)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF27)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence::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:Asn1Sequence[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: 0x17001D9C RID: 7580
|
||||
// (get) Token: 0x0600BF28 RID: 48936 RVA: 0x002B8BF8 File Offset: 0x002B6DF8
|
||||
[Token(Token = "0x17001D9C")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600BF28")]
|
||||
[Address(RVA = "0x51A220", Offset = "0x519020", VA = "0x18051A220")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF28)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence::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:Asn1Sequence[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: 0x17001D9D RID: 7581
|
||||
// (get) Token: 0x0600BF29 RID: 48937 RVA: 0x002B8C0C File Offset: 0x002B6E0C
|
||||
[Token(Token = "0x17001D9D")]
|
||||
public virtual int Count
|
||||
{
|
||||
[Token(Token = "0x600BF29")]
|
||||
[Address(RVA = "0x26405C0", Offset = "0x263F3C0", VA = "0x1826405C0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF2A RID: 48938 RVA: 0x002B8C28 File Offset: 0x002B6E28
|
||||
[Token(Token = "0x600BF2A")]
|
||||
[Address(RVA = "0x263FCA0", Offset = "0x263EAA0", VA = "0x18263FCA0", 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: 0x0600BF2B RID: 48939 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600BF2B")]
|
||||
[Address(RVA = "0x263FAE0", Offset = "0x263E8E0", VA = "0x18263FAE0", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600BF2C RID: 48940 RVA: 0x002B8C68 File Offset: 0x002B6E68
|
||||
[Token(Token = "0x600BF2C")]
|
||||
[Address(RVA = "0x263FE20", Offset = "0x263EC20", VA = "0x18263FE20")]
|
||||
private Asn1Encodable GetCurrent(IEnumerator e)
|
||||
{
|
||||
while (e == 0)
|
||||
{
|
||||
}
|
||||
DerNull instance = DerNull.Instance;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF2D RID: 48941 RVA: 0x002B8C88 File Offset: 0x002B6E88
|
||||
[Token(Token = "0x600BF2D")]
|
||||
[Address(RVA = "0x263FA80", Offset = "0x263E880", VA = "0x18263FA80")]
|
||||
protected internal void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF2E RID: 48942 RVA: 0x002B8CA4 File Offset: 0x002B6EA4
|
||||
[Token(Token = "0x600BF2E")]
|
||||
[Address(RVA = "0x2640540", Offset = "0x263F340", VA = "0x182640540", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return CollectionUtilities.ToString(this.seq);
|
||||
}
|
||||
|
||||
// Token: 0x0400795D RID: 31069
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400795D")]
|
||||
private readonly IList seq;
|
||||
|
||||
// Token: 0x02001D7F RID: 7551
|
||||
[Token(Token = "0x2001D7F")]
|
||||
private class Asn1SequenceParserImpl : Asn1SequenceParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF2F RID: 48943 RVA: 0x002B8CBC File Offset: 0x002B6EBC
|
||||
[Token(Token = "0x600BF2F")]
|
||||
[Address(RVA = "0x263FA30", Offset = "0x263E830", VA = "0x18263FA30")]
|
||||
public Asn1SequenceParserImpl(Asn1Sequence outer)
|
||||
{
|
||||
this.outer = outer;
|
||||
Asn1Encodable asn1Encodable;
|
||||
this.max = asn1Encodable;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF30 RID: 48944 RVA: 0x002B8CE4 File Offset: 0x002B6EE4
|
||||
[Token(Token = "0x600BF30")]
|
||||
[Address(RVA = "0x263F850", Offset = "0x263E650", VA = "0x18263F850", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
int num = this.index;
|
||||
if (num == this.max)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1Sequence asn1Sequence = this.outer;
|
||||
int num2 = num + 1;
|
||||
this.index = num2;
|
||||
parser = asn1Sequence.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (parser == 0)
|
||||
{
|
||||
if (parser == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (parser == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (parser == 0 || parser == 0);
|
||||
return parser.ReadObject();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF31 RID: 48945 RVA: 0x002B8D4C File Offset: 0x002B6F4C
|
||||
[Token(Token = "0x600BF31")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF31)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence/Asn1SequenceParserImpl::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(Asn1SequenceParserImpl::outer, ldloc:Asn1SequenceParserImpl(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: 0x0400795E RID: 31070
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400795E")]
|
||||
private readonly Asn1Sequence outer;
|
||||
|
||||
// Token: 0x0400795F RID: 31071
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400795F")]
|
||||
private readonly int max;
|
||||
|
||||
// Token: 0x04007960 RID: 31072
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4007960")]
|
||||
private int index;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D71 RID: 7537
|
||||
[Token(Token = "0x2001D71")]
|
||||
public interface Asn1SequenceParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BED8 RID: 48856
|
||||
[Token(Token = "0x600BED8")]
|
||||
[Address(Slot = "0")]
|
||||
IAsn1Convertible ReadObject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,506 @@
|
||||
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: 0x02001D80 RID: 7552
|
||||
[Token(Token = "0x2001D80")]
|
||||
public abstract class Asn1Set : Asn1Object, IEnumerable
|
||||
{
|
||||
// Token: 0x0600BF32 RID: 48946 RVA: 0x002B8D60 File Offset: 0x002B6F60
|
||||
[Token(Token = "0x600BF32")]
|
||||
[Address(RVA = "0x2641310", Offset = "0x2640110", VA = "0x182641310")]
|
||||
public static Asn1Set GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF32)
|
||||
|
||||
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: 0x0600BF33 RID: 48947 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600BF33")]
|
||||
[Address(RVA = "0x2640E40", Offset = "0x263FC40", VA = "0x182640E40")]
|
||||
public static Asn1Set GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600BF34 RID: 48948 RVA: 0x002B8DC4 File Offset: 0x002B6FC4
|
||||
[Token(Token = "0x600BF34")]
|
||||
[Address(RVA = "0x2641C10", Offset = "0x2640A10", VA = "0x182641C10")]
|
||||
protected internal Asn1Set(int capacity)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(capacity);
|
||||
this._set = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF35 RID: 48949 RVA: 0x002B8DE8 File Offset: 0x002B6FE8
|
||||
[Token(Token = "0x600BF35")]
|
||||
[Address(RVA = "0x2640DF0", Offset = "0x263FBF0", VA = "0x182640DF0", Slot = "10")]
|
||||
public virtual IEnumerator GetEnumerator()
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF36 RID: 48950 RVA: 0x002B8E04 File Offset: 0x002B7004
|
||||
[Token(Token = "0x600BF36")]
|
||||
[Address(RVA = "0x539EE0", Offset = "0x538CE0", VA = "0x180539EE0")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return ((IEnumerable)this).GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x17001D9E RID: 7582
|
||||
[Token(Token = "0x17001D9E")]
|
||||
public virtual Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600BF37")]
|
||||
[Address(RVA = "0x2641CD0", Offset = "0x2640AD0", VA = "0x182641CD0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
IList set;
|
||||
do
|
||||
{
|
||||
set = this._set;
|
||||
}
|
||||
while (set == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF38 RID: 48952 RVA: 0x002B8E3C File Offset: 0x002B703C
|
||||
[Token(Token = "0x600BF38")]
|
||||
[Address(RVA = "0x2641630", Offset = "0x2640430", VA = "0x182641630")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetObjectAt(int index)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF38)
|
||||
|
||||
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: 0x17001D9F RID: 7583
|
||||
// (get) Token: 0x0600BF39 RID: 48953 RVA: 0x002B8E50 File Offset: 0x002B7050
|
||||
[Token(Token = "0x17001D9F")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600BF39")]
|
||||
[Address(RVA = "0x53B2E0", Offset = "0x53A0E0", VA = "0x18053B2E0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF39)
|
||||
|
||||
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: 0x17001DA0 RID: 7584
|
||||
// (get) Token: 0x0600BF3A RID: 48954 RVA: 0x002B8E64 File Offset: 0x002B7064
|
||||
[Token(Token = "0x17001DA0")]
|
||||
public virtual int Count
|
||||
{
|
||||
[Token(Token = "0x600BF3A")]
|
||||
[Address(RVA = "0x2641C80", Offset = "0x2640A80", VA = "0x182641C80", Slot = "12")]
|
||||
get
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF3B RID: 48955 RVA: 0x002B8E80 File Offset: 0x002B7080
|
||||
[Token(Token = "0x600BF3B")]
|
||||
[Address(RVA = "0x2641B00", Offset = "0x2640900", VA = "0x182641B00", 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: 0x17001DA1 RID: 7585
|
||||
// (get) Token: 0x0600BF3C RID: 48956 RVA: 0x002B8EBC File Offset: 0x002B70BC
|
||||
[Token(Token = "0x17001DA1")]
|
||||
public Asn1SetParser Parser
|
||||
{
|
||||
[Token(Token = "0x600BF3C")]
|
||||
[Address(RVA = "0x2641D80", Offset = "0x2640B80", VA = "0x182641D80")]
|
||||
get
|
||||
{
|
||||
Asn1Set.Asn1SetParserImpl asn1SetParserImpl;
|
||||
asn1SetParserImpl.outer = this;
|
||||
Asn1Encodable asn1Encodable;
|
||||
asn1SetParserImpl.max = asn1Encodable;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF3D RID: 48957 RVA: 0x002B8EDC File Offset: 0x002B70DC
|
||||
[Token(Token = "0x600BF3D")]
|
||||
[Address(RVA = "0x2640B90", Offset = "0x263F990", VA = "0x182640B90", 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: 0x0600BF3E RID: 48958 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600BF3E")]
|
||||
[Address(RVA = "0x26409D0", Offset = "0x263F7D0", VA = "0x1826409D0", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600BF3F RID: 48959 RVA: 0x002B8F1C File Offset: 0x002B711C
|
||||
[Token(Token = "0x600BF3F")]
|
||||
[Address(RVA = "0x2640D10", Offset = "0x263FB10", VA = "0x182640D10")]
|
||||
private Asn1Encodable GetCurrent(IEnumerator e)
|
||||
{
|
||||
while (e == 0)
|
||||
{
|
||||
}
|
||||
DerNull instance = DerNull.Instance;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF40 RID: 48960 RVA: 0x002B8F3C File Offset: 0x002B713C
|
||||
[Token(Token = "0x600BF40")]
|
||||
[Address(RVA = "0x2641650", Offset = "0x2640450", VA = "0x182641650")]
|
||||
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: 0x0600BF41 RID: 48961 RVA: 0x002B9088 File Offset: 0x002B7288
|
||||
[Token(Token = "0x600BF41")]
|
||||
[Address(RVA = "0x2640970", Offset = "0x263F770", VA = "0x182640970")]
|
||||
protected internal void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF42 RID: 48962 RVA: 0x002B90A4 File Offset: 0x002B72A4
|
||||
[Token(Token = "0x600BF42")]
|
||||
[Address(RVA = "0x2640540", Offset = "0x263F340", VA = "0x182640540", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return CollectionUtilities.ToString(this._set);
|
||||
}
|
||||
|
||||
// Token: 0x04007961 RID: 31073
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007961")]
|
||||
private readonly IList _set;
|
||||
|
||||
// Token: 0x02001D81 RID: 7553
|
||||
[Token(Token = "0x2001D81")]
|
||||
private class Asn1SetParserImpl : Asn1SetParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF43 RID: 48963 RVA: 0x002B90BC File Offset: 0x002B72BC
|
||||
[Token(Token = "0x600BF43")]
|
||||
[Address(RVA = "0x2640920", Offset = "0x263F720", VA = "0x182640920")]
|
||||
public Asn1SetParserImpl(Asn1Set outer)
|
||||
{
|
||||
this.outer = outer;
|
||||
Asn1Encodable asn1Encodable;
|
||||
this.max = asn1Encodable;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF44 RID: 48964 RVA: 0x002B90E4 File Offset: 0x002B72E4
|
||||
[Token(Token = "0x600BF44")]
|
||||
[Address(RVA = "0x2640740", Offset = "0x263F540", VA = "0x182640740", 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: 0x0600BF45 RID: 48965 RVA: 0x002B914C File Offset: 0x002B734C
|
||||
[Token(Token = "0x600BF45")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
public virtual Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF45)
|
||||
|
||||
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: 0x04007962 RID: 31074
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007962")]
|
||||
private readonly Asn1Set outer;
|
||||
|
||||
// Token: 0x04007963 RID: 31075
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007963")]
|
||||
private readonly int max;
|
||||
|
||||
// Token: 0x04007964 RID: 31076
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4007964")]
|
||||
private int index;
|
||||
}
|
||||
|
||||
// Token: 0x02001D82 RID: 7554
|
||||
[Token(Token = "0x2001D82")]
|
||||
private class DerComparer : IComparer
|
||||
{
|
||||
// Token: 0x0600BF46 RID: 48966 RVA: 0x002B9160 File Offset: 0x002B7360
|
||||
[Token(Token = "0x600BF46")]
|
||||
[Address(RVA = "0x264C9D0", Offset = "0x264B7D0", VA = "0x18264C9D0", Slot = "4")]
|
||||
public int Compare(object x, object y)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF46)
|
||||
|
||||
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: 0x0600BF47 RID: 48967 RVA: 0x002B91A8 File Offset: 0x002B73A8
|
||||
[Token(Token = "0x600BF47")]
|
||||
[Address(RVA = "0x264C980", Offset = "0x264B780", VA = "0x18264C980")]
|
||||
private bool AllZeroesFrom(byte[] bs, int pos)
|
||||
{
|
||||
int length = bs.Length;
|
||||
if (pos < length)
|
||||
{
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF48 RID: 48968 RVA: 0x002B91CC File Offset: 0x002B73CC
|
||||
[Token(Token = "0x600BF48")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public DerComparer()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D72 RID: 7538
|
||||
[Token(Token = "0x2001D72")]
|
||||
public interface Asn1SetParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BED9 RID: 48857
|
||||
[Token(Token = "0x600BED9")]
|
||||
[Address(Slot = "0")]
|
||||
IAsn1Convertible ReadObject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,286 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D73 RID: 7539
|
||||
[Token(Token = "0x2001D73")]
|
||||
public class Asn1StreamParser
|
||||
{
|
||||
// Token: 0x0600BEDA RID: 48858 RVA: 0x002B7B54 File Offset: 0x002B5D54
|
||||
[Token(Token = "0x600BEDA")]
|
||||
[Address(RVA = "0x2642F00", Offset = "0x2641D00", VA = "0x182642F00")]
|
||||
public Asn1StreamParser(Stream inStream)
|
||||
{
|
||||
int num = Asn1InputStream.FindLimit(inStream);
|
||||
}
|
||||
|
||||
// Token: 0x0600BEDB RID: 48859 RVA: 0x002B7B68 File Offset: 0x002B5D68
|
||||
[Token(Token = "0x600BEDB")]
|
||||
[Address(RVA = "0x2642DB0", Offset = "0x2641BB0", VA = "0x182642DB0")]
|
||||
public Asn1StreamParser(Stream inStream, int limit)
|
||||
{
|
||||
inStream.Dispose();
|
||||
this._in = inStream;
|
||||
this._limit = limit;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEDC RID: 48860 RVA: 0x002B7BB4 File Offset: 0x002B5DB4
|
||||
[Token(Token = "0x600BEDC")]
|
||||
[Address(RVA = "0x2642E80", Offset = "0x2641C80", VA = "0x182642E80")]
|
||||
public Asn1StreamParser(byte[] encoding)
|
||||
{
|
||||
int num;
|
||||
MemoryStream memoryStream = new MemoryStream(encoding, num != 0);
|
||||
num = 0;
|
||||
int length = encoding.Length;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEDD RID: 48861 RVA: 0x002B7BD8 File Offset: 0x002B5DD8
|
||||
[Token(Token = "0x600BEDD")]
|
||||
[Address(RVA = "0x2642040", Offset = "0x2640E40", VA = "0x182642040")]
|
||||
internal IAsn1Convertible ReadIndef(int tagValue)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BEDD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IAsn1Convertible BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1StreamParser::ReadIndef(System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stfld:Asn1StreamParser(BerOctetStringParser::_parser, ldloc:BerOctetStringParser(var_0), ldloc:Asn1StreamParser(this))
|
||||
stloc:DerExternalParser(var_1_0D, newobj:DerExternalParser(DerExternalParser::.ctor, ldloc:Asn1StreamParser(this)))
|
||||
stloc:Asn1Exception(var_3_1E, newobj:Asn1Exception(Asn1Exception::.ctor, call:string(string::Concat, ldstr:string("unknown BER object encountered: 0x"), ldloc:string(var_2))))
|
||||
}
|
||||
|
||||
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: 0x0600BEDE RID: 48862 RVA: 0x002B7C04 File Offset: 0x002B5E04
|
||||
[Token(Token = "0x600BEDE")]
|
||||
[Address(RVA = "0x2641E00", Offset = "0x2640C00", VA = "0x182641E00")]
|
||||
internal IAsn1Convertible ReadImplicit(bool constructed, int tag)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BEDE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IAsn1Convertible BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1StreamParser::ReadImplicit(System.Boolean,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_79:
|
||||
stloc:Asn1Exception(var_10_83, newobj:Asn1Exception(Asn1Exception::.ctor, ldstr:string("implicit tagging not implemented")))
|
||||
}
|
||||
|
||||
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: 0x0600BEDF RID: 48863 RVA: 0x002B7C98 File Offset: 0x002B5E98
|
||||
[Token(Token = "0x600BEDF")]
|
||||
[Address(RVA = "0x2642720", Offset = "0x2641520", VA = "0x182642720")]
|
||||
internal Asn1Object ReadTaggedObject(bool constructed, int tag)
|
||||
{
|
||||
Stream in2;
|
||||
do
|
||||
{
|
||||
if (constructed)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = this.ReadVector();
|
||||
Stream @in = this._in;
|
||||
if (@in != 0 && @in != 0)
|
||||
{
|
||||
IList v = asn1EncodableVector.v;
|
||||
if (@in == (ulong)1L)
|
||||
{
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable = asn1EncodableVector[num];
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(true, tag, asn1Encodable);
|
||||
}
|
||||
IList v2 = asn1EncodableVector.v;
|
||||
if (@in < (ulong)1L)
|
||||
{
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
}
|
||||
IList v3 = asn1EncodableVector.v;
|
||||
if (asn1EncodableVector == (ulong)1L)
|
||||
{
|
||||
int num2 = 0;
|
||||
Asn1Encodable asn1Encodable2 = asn1EncodableVector[num2];
|
||||
}
|
||||
DerSequence derSequence = DerSequence.FromVector(asn1EncodableVector);
|
||||
}
|
||||
in2 = this._in;
|
||||
}
|
||||
while (in2 == 0);
|
||||
byte[] array;
|
||||
DerOctetString derOctetString = new DerOctetString(array);
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num3 != 0, tag, derOctetString);
|
||||
num3 = 0;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BEE0 RID: 48864 RVA: 0x002B7D5C File Offset: 0x002B5F5C
|
||||
[Token(Token = "0x600BEE0")]
|
||||
[Address(RVA = "0x2642150", Offset = "0x2640F50", VA = "0x182642150", Slot = "4")]
|
||||
public virtual IAsn1Convertible ReadObject()
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
int num8;
|
||||
for (;;)
|
||||
{
|
||||
Stream @in = this._in;
|
||||
if (num == -1)
|
||||
{
|
||||
goto IL_164;
|
||||
}
|
||||
Stream in2 = this._in;
|
||||
if (in2 == 0 || in2 == 0 || (in2 != 0 && in2 != 0))
|
||||
{
|
||||
num2 = Asn1InputStream.ReadTagNumber(in2, num);
|
||||
int num3 = 0;
|
||||
int limit = this._limit;
|
||||
int num4 = Asn1InputStream.ReadLength(this._in, limit);
|
||||
DefiniteLengthInputStream definiteLengthInputStream = new DefiniteLengthInputStream(this._in, num3);
|
||||
if (num == 64)
|
||||
{
|
||||
if (num == 0)
|
||||
{
|
||||
if (num2 != 4)
|
||||
{
|
||||
byte[][] array = this.tmpBuffers;
|
||||
Asn1Object asn1Object = Asn1InputStream.CreatePrimitiveDerObject(num2, definiteLengthInputStream, array);
|
||||
}
|
||||
DerOctetStringParser derOctetStringParser = new DerOctetStringParser(definiteLengthInputStream);
|
||||
}
|
||||
if (num2 > 8)
|
||||
{
|
||||
if (num2 == 16)
|
||||
{
|
||||
int num5 = Asn1InputStream.FindLimit(definiteLengthInputStream);
|
||||
Asn1StreamParser asn1StreamParser;
|
||||
DerSequenceParser derSequenceParser = new DerSequenceParser(asn1StreamParser);
|
||||
}
|
||||
if (num2 != 17)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int num6 = Asn1InputStream.FindLimit(definiteLengthInputStream);
|
||||
Asn1StreamParser asn1StreamParser2;
|
||||
DerSetParser derSetParser = new DerSetParser(asn1StreamParser2);
|
||||
}
|
||||
int num7;
|
||||
if (num2 == 4)
|
||||
{
|
||||
num7 = Asn1InputStream.FindLimit(definiteLengthInputStream);
|
||||
BerOctetStringParser berOctetStringParser;
|
||||
Asn1StreamParser asn1StreamParser3;
|
||||
berOctetStringParser._parser = asn1StreamParser3;
|
||||
}
|
||||
if (num2 != 8)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
num7 = Asn1InputStream.FindLimit(definiteLengthInputStream);
|
||||
Asn1StreamParser asn1StreamParser4;
|
||||
DerExternalParser derExternalParser = new DerExternalParser(asn1StreamParser4);
|
||||
num8 = Asn1InputStream.FindLimit(definiteLengthInputStream);
|
||||
num8 = num2;
|
||||
}
|
||||
int num9 = 0;
|
||||
byte[] array2 = definiteLengthInputStream.ToArray();
|
||||
DerApplicationSpecific derApplicationSpecific = new DerApplicationSpecific(num9 != 0, num8, array2);
|
||||
num8 = num2;
|
||||
if (derApplicationSpecific != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1StreamParser asn1StreamParser5 = new Asn1StreamParser(new IndefiniteLengthInputStream(this._in, num8), num8);
|
||||
if (num == 64)
|
||||
{
|
||||
IAsn1Convertible asn1Convertible = asn1StreamParser5.ReadIndef(num2);
|
||||
}
|
||||
BerApplicationSpecificParser berApplicationSpecificParser;
|
||||
berApplicationSpecificParser.tag = num2;
|
||||
berApplicationSpecificParser.parser = asn1StreamParser5;
|
||||
IL_164:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BEE1 RID: 48865 RVA: 0x002B7ED4 File Offset: 0x002B60D4
|
||||
[Token(Token = "0x600BEE1")]
|
||||
[Address(RVA = "0x2642C90", Offset = "0x2641A90", VA = "0x182642C90")]
|
||||
private void Set00Check(bool enabled)
|
||||
{
|
||||
Stream @in;
|
||||
do
|
||||
{
|
||||
@in = this._in;
|
||||
}
|
||||
while (@in != 0 && @in != 0 && (@in == 0 || @in == 0));
|
||||
}
|
||||
|
||||
// Token: 0x0600BEE2 RID: 48866 RVA: 0x002B7F04 File Offset: 0x002B6104
|
||||
[Token(Token = "0x600BEE2")]
|
||||
[Address(RVA = "0x2642AC0", Offset = "0x26418C0", VA = "0x182642AC0")]
|
||||
internal Asn1EncodableVector ReadVector()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
while (asn1EncodableVector != 0)
|
||||
{
|
||||
int num = 0;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
num += num;
|
||||
num++;
|
||||
if (array != 0)
|
||||
{
|
||||
}
|
||||
array[0] = array;
|
||||
asn1EncodableVector.Add(array);
|
||||
if (this.ToString() == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
|
||||
// Token: 0x04007954 RID: 31060
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007954")]
|
||||
private readonly Stream _in;
|
||||
|
||||
// Token: 0x04007955 RID: 31061
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007955")]
|
||||
private readonly int _limit;
|
||||
|
||||
// Token: 0x04007956 RID: 31062
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007956")]
|
||||
private readonly byte[][] tmpBuffers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,284 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D83 RID: 7555
|
||||
[Token(Token = "0x2001D83")]
|
||||
public abstract class Asn1TaggedObject : Asn1Object, Asn1TaggedObjectParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF49 RID: 48969 RVA: 0x002B91E0 File Offset: 0x002B73E0
|
||||
[Token(Token = "0x600BF49")]
|
||||
[Address(RVA = "0x2643500", Offset = "0x2642300", VA = "0x182643500")]
|
||||
internal static bool IsConstructed(bool isExplicit, Asn1Object obj)
|
||||
{
|
||||
if (!isExplicit)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
if (obj == 0 && obj == 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (obj != 0)
|
||||
{
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF4A RID: 48970 RVA: 0x002B9214 File Offset: 0x002B7414
|
||||
[Token(Token = "0x600BF4A")]
|
||||
[Address(RVA = "0x2643090", Offset = "0x2641E90", VA = "0x182643090")]
|
||||
public static Asn1TaggedObject GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF4A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject::GetInstance(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject,System.Boolean)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:ArgumentException(var_3_30, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("implicitly tagged tagged object")))
|
||||
}
|
||||
|
||||
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: 0x0600BF4B RID: 48971 RVA: 0x002B9254 File Offset: 0x002B7454
|
||||
[Token(Token = "0x600BF4B")]
|
||||
[Address(RVA = "0x2643180", Offset = "0x2641F80", VA = "0x182643180")]
|
||||
public static Asn1TaggedObject GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF4B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_16:
|
||||
stloc:string(var_3_1C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_4_32, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_3_1C)), 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.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: 0x0600BF4C RID: 48972 RVA: 0x002B9294 File Offset: 0x002B7494
|
||||
[Token(Token = "0x600BF4C")]
|
||||
[Address(RVA = "0x26438C0", Offset = "0x26426C0", VA = "0x1826438C0")]
|
||||
protected Asn1TaggedObject(int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
this.tagNo = tagNo;
|
||||
this.obj = obj;
|
||||
this.explicitly = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF4D RID: 48973 RVA: 0x002B92C4 File Offset: 0x002B74C4
|
||||
[Token(Token = "0x600BF4D")]
|
||||
[Address(RVA = "0x2643830", Offset = "0x2642630", VA = "0x182643830")]
|
||||
protected Asn1TaggedObject(bool explicitly, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (explicitly)
|
||||
{
|
||||
}
|
||||
bool flag;
|
||||
this.explicitly = flag;
|
||||
this.tagNo = tagNo;
|
||||
this.obj = obj;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF4E RID: 48974 RVA: 0x002B92F8 File Offset: 0x002B74F8
|
||||
[Token(Token = "0x600BF4E")]
|
||||
[Address(RVA = "0x2642F40", Offset = "0x2641D40", VA = "0x182642F40", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num = 0;
|
||||
if (asn1Object == 0 || this.tagNo != num || (this.explicitly ? 1 : 0) != num)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1Encodable asn1Encodable = this.obj;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object2 = asn1Encodable.ToAsn1Object();
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
Asn1Object asn1Object3 = asn1Encodable.ToAsn1Object();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF4F RID: 48975 RVA: 0x002B9340 File Offset: 0x002B7540
|
||||
[Token(Token = "0x600BF4F")]
|
||||
[Address(RVA = "0x2643040", Offset = "0x2641E40", VA = "0x182643040", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF4F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject::Asn1GetHashCode()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
callvirt:void(object::Finalize, ldloc:Asn1Encodable[exp:object](var_0_06))
|
||||
}
|
||||
|
||||
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: 0x17001DA2 RID: 7586
|
||||
// (get) Token: 0x0600BF50 RID: 48976 RVA: 0x002B9360 File Offset: 0x002B7560
|
||||
[Token(Token = "0x17001DA2")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600BF50")]
|
||||
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF51 RID: 48977 RVA: 0x002B9374 File Offset: 0x002B7574
|
||||
[Token(Token = "0x600BF51")]
|
||||
[Address(RVA = "0x40B710", Offset = "0x40A510", VA = "0x18040B710")]
|
||||
public bool IsExplicit()
|
||||
{
|
||||
return this.explicitly;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF52 RID: 48978 RVA: 0x002B9388 File Offset: 0x002B7588
|
||||
[Token(Token = "0x600BF52")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
|
||||
public bool IsEmpty()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF53 RID: 48979 RVA: 0x002B9398 File Offset: 0x002B7598
|
||||
[Token(Token = "0x600BF53")]
|
||||
[Address(RVA = "0x26434E0", Offset = "0x26422E0", VA = "0x1826434E0")]
|
||||
public Asn1Object GetObject()
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.obj;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
}
|
||||
return asn1Encodable.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF54 RID: 48980 RVA: 0x002B93B8 File Offset: 0x002B75B8
|
||||
[Token(Token = "0x600BF54")]
|
||||
[Address(RVA = "0x26432C0", Offset = "0x26420C0", VA = "0x1826432C0", Slot = "10")]
|
||||
public IAsn1Convertible GetObjectParser(int tag, bool isExplicit)
|
||||
{
|
||||
if (tag == 4)
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.obj;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object = asn1Encodable.ToAsn1Object();
|
||||
if (!isExplicit && (asn1Object == 0 || asn1Object == 0))
|
||||
{
|
||||
BerOctetString berOctetString = BerOctetString.FromSequence(Asn1Sequence.GetInstance(asn1Object));
|
||||
}
|
||||
Asn1OctetString instance = Asn1OctetString.GetInstance(asn1Object);
|
||||
}
|
||||
Asn1Sequence instance2;
|
||||
if (tag == 16)
|
||||
{
|
||||
instance2 = Asn1Sequence.GetInstance(this, isExplicit);
|
||||
IEnumerator enumerator = ((IEnumerable)instance2).GetEnumerator();
|
||||
}
|
||||
if (tag != 17)
|
||||
{
|
||||
if (instance2 == 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object2 = instance2.ToAsn1Object();
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
Asn1SetParser parser = asn1Set.Parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF55 RID: 48981 RVA: 0x002B944C File Offset: 0x002B764C
|
||||
[Token(Token = "0x600BF55")]
|
||||
[Address(RVA = "0x2643650", Offset = "0x2642450", VA = "0x182643650", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
object[] array = new object[4];
|
||||
if ("[" != 0)
|
||||
{
|
||||
}
|
||||
array[0] = "[";
|
||||
int num = this.tagNo;
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array[1] = num;
|
||||
if ("]" != 0)
|
||||
{
|
||||
}
|
||||
array[2] = "]";
|
||||
Asn1Encodable asn1Encodable = this.obj;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array[3] = asn1Encodable;
|
||||
return string.Concat(array);
|
||||
}
|
||||
|
||||
// Token: 0x04007965 RID: 31077
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007965")]
|
||||
internal int tagNo;
|
||||
|
||||
// Token: 0x04007966 RID: 31078
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4007966")]
|
||||
internal bool explicitly = true;
|
||||
|
||||
// Token: 0x04007967 RID: 31079
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007967")]
|
||||
internal Asn1Encodable obj;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D74 RID: 7540
|
||||
[Token(Token = "0x2001D74")]
|
||||
public interface Asn1TaggedObjectParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x17001D95 RID: 7573
|
||||
// (get) Token: 0x0600BEE3 RID: 48867
|
||||
[Token(Token = "0x17001D95")]
|
||||
int TagNo
|
||||
{
|
||||
[Token(Token = "0x600BEE3")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600BEE4 RID: 48868
|
||||
[Token(Token = "0x600BEE4")]
|
||||
[Address(Slot = "1")]
|
||||
IAsn1Convertible GetObjectParser(int tag, bool isExplicit);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D84 RID: 7556
|
||||
[Token(Token = "0x2001D84")]
|
||||
public class Asn1Tags
|
||||
{
|
||||
// Token: 0x0600BF56 RID: 48982 RVA: 0x002B94BC File Offset: 0x002B76BC
|
||||
[Token(Token = "0x600BF56")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public Asn1Tags()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007968 RID: 31080
|
||||
[Token(Token = "0x4007968")]
|
||||
public const int Boolean = 1;
|
||||
|
||||
// Token: 0x04007969 RID: 31081
|
||||
[Token(Token = "0x4007969")]
|
||||
public const int Integer = 2;
|
||||
|
||||
// Token: 0x0400796A RID: 31082
|
||||
[Token(Token = "0x400796A")]
|
||||
public const int BitString = 3;
|
||||
|
||||
// Token: 0x0400796B RID: 31083
|
||||
[Token(Token = "0x400796B")]
|
||||
public const int OctetString = 4;
|
||||
|
||||
// Token: 0x0400796C RID: 31084
|
||||
[Token(Token = "0x400796C")]
|
||||
public const int Null = 5;
|
||||
|
||||
// Token: 0x0400796D RID: 31085
|
||||
[Token(Token = "0x400796D")]
|
||||
public const int ObjectIdentifier = 6;
|
||||
|
||||
// Token: 0x0400796E RID: 31086
|
||||
[Token(Token = "0x400796E")]
|
||||
public const int External = 8;
|
||||
|
||||
// Token: 0x0400796F RID: 31087
|
||||
[Token(Token = "0x400796F")]
|
||||
public const int Enumerated = 10;
|
||||
|
||||
// Token: 0x04007970 RID: 31088
|
||||
[Token(Token = "0x4007970")]
|
||||
public const int Sequence = 16;
|
||||
|
||||
// Token: 0x04007971 RID: 31089
|
||||
[Token(Token = "0x4007971")]
|
||||
public const int SequenceOf = 16;
|
||||
|
||||
// Token: 0x04007972 RID: 31090
|
||||
[Token(Token = "0x4007972")]
|
||||
public const int Set = 17;
|
||||
|
||||
// Token: 0x04007973 RID: 31091
|
||||
[Token(Token = "0x4007973")]
|
||||
public const int SetOf = 17;
|
||||
|
||||
// Token: 0x04007974 RID: 31092
|
||||
[Token(Token = "0x4007974")]
|
||||
public const int NumericString = 18;
|
||||
|
||||
// Token: 0x04007975 RID: 31093
|
||||
[Token(Token = "0x4007975")]
|
||||
public const int PrintableString = 19;
|
||||
|
||||
// Token: 0x04007976 RID: 31094
|
||||
[Token(Token = "0x4007976")]
|
||||
public const int T61String = 20;
|
||||
|
||||
// Token: 0x04007977 RID: 31095
|
||||
[Token(Token = "0x4007977")]
|
||||
public const int VideotexString = 21;
|
||||
|
||||
// Token: 0x04007978 RID: 31096
|
||||
[Token(Token = "0x4007978")]
|
||||
public const int IA5String = 22;
|
||||
|
||||
// Token: 0x04007979 RID: 31097
|
||||
[Token(Token = "0x4007979")]
|
||||
public const int UtcTime = 23;
|
||||
|
||||
// Token: 0x0400797A RID: 31098
|
||||
[Token(Token = "0x400797A")]
|
||||
public const int GeneralizedTime = 24;
|
||||
|
||||
// Token: 0x0400797B RID: 31099
|
||||
[Token(Token = "0x400797B")]
|
||||
public const int GraphicString = 25;
|
||||
|
||||
// Token: 0x0400797C RID: 31100
|
||||
[Token(Token = "0x400797C")]
|
||||
public const int VisibleString = 26;
|
||||
|
||||
// Token: 0x0400797D RID: 31101
|
||||
[Token(Token = "0x400797D")]
|
||||
public const int GeneralString = 27;
|
||||
|
||||
// Token: 0x0400797E RID: 31102
|
||||
[Token(Token = "0x400797E")]
|
||||
public const int UniversalString = 28;
|
||||
|
||||
// Token: 0x0400797F RID: 31103
|
||||
[Token(Token = "0x400797F")]
|
||||
public const int BmpString = 30;
|
||||
|
||||
// Token: 0x04007980 RID: 31104
|
||||
[Token(Token = "0x4007980")]
|
||||
public const int Utf8String = 12;
|
||||
|
||||
// Token: 0x04007981 RID: 31105
|
||||
[Token(Token = "0x4007981")]
|
||||
public const int Constructed = 32;
|
||||
|
||||
// Token: 0x04007982 RID: 31106
|
||||
[Token(Token = "0x4007982")]
|
||||
public const int Application = 64;
|
||||
|
||||
// Token: 0x04007983 RID: 31107
|
||||
[Token(Token = "0x4007983")]
|
||||
public const int Tagged = 128;
|
||||
}
|
||||
}
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.BC
|
||||
{
|
||||
// Token: 0x02001F70 RID: 8048
|
||||
[Token(Token = "0x2001F70")]
|
||||
public abstract class BCObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CBA6 RID: 52134 RVA: 0x002EA96C File Offset: 0x002E8B6C
|
||||
[Token(Token = "0x600CBA6")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected BCObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040081D0 RID: 33232
|
||||
[Token(Token = "0x40081D0")]
|
||||
public static readonly DerObjectIdentifier bc = new DerObjectIdentifier("1.3.6.1.4.1.22554");
|
||||
|
||||
// Token: 0x040081D1 RID: 33233
|
||||
[Token(Token = "0x40081D1")]
|
||||
public static readonly DerObjectIdentifier bc_pbe = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081D2 RID: 33234
|
||||
[Token(Token = "0x40081D2")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081D3 RID: 33235
|
||||
[Token(Token = "0x40081D3")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081D4 RID: 33236
|
||||
[Token(Token = "0x40081D4")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha384 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081D5 RID: 33237
|
||||
[Token(Token = "0x40081D5")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha512 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081D6 RID: 33238
|
||||
[Token(Token = "0x40081D6")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha224 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081D7 RID: 33239
|
||||
[Token(Token = "0x40081D7")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs5 = BCObjectIdentifiers.bc_pbe_sha1.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081D8 RID: 33240
|
||||
[Token(Token = "0x40081D8")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12 = BCObjectIdentifiers.bc_pbe_sha1.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081D9 RID: 33241
|
||||
[Token(Token = "0x40081D9")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs5 = BCObjectIdentifiers.bc_pbe_sha256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081DA RID: 33242
|
||||
[Token(Token = "0x40081DA")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12 = BCObjectIdentifiers.bc_pbe_sha256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081DB RID: 33243
|
||||
[Token(Token = "0x40081DB")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes128_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081DC RID: 33244
|
||||
[Token(Token = "0x40081DC")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes192_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081DD RID: 33245
|
||||
[Token(Token = "0x40081DD")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes256_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081DE RID: 33246
|
||||
[Token(Token = "0x40081DE")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes128_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081DF RID: 33247
|
||||
[Token(Token = "0x40081DF")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes192_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E0 RID: 33248
|
||||
[Token(Token = "0x40081E0")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes256_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E1 RID: 33249
|
||||
[Token(Token = "0x40081E1")]
|
||||
public static readonly DerObjectIdentifier bc_sig = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E2 RID: 33250
|
||||
[Token(Token = "0x40081E2")]
|
||||
public static readonly DerObjectIdentifier sphincs256 = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E3 RID: 33251
|
||||
[Token(Token = "0x40081E3")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_BLAKE512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E4 RID: 33252
|
||||
[Token(Token = "0x40081E4")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_SHA512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E5 RID: 33253
|
||||
[Token(Token = "0x40081E5")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_SHA3_512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E6 RID: 33254
|
||||
[Token(Token = "0x40081E6")]
|
||||
public static readonly DerObjectIdentifier xmss = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E7 RID: 33255
|
||||
[Token(Token = "0x40081E7")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHA256 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E8 RID: 33256
|
||||
[Token(Token = "0x40081E8")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHA512 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081E9 RID: 33257
|
||||
[Token(Token = "0x40081E9")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHAKE128 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081EA RID: 33258
|
||||
[Token(Token = "0x40081EA")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHAKE256 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081EB RID: 33259
|
||||
[Token(Token = "0x40081EB")]
|
||||
public static readonly DerObjectIdentifier xmss_mt = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081EC RID: 33260
|
||||
[Token(Token = "0x40081EC")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHA256 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081ED RID: 33261
|
||||
[Token(Token = "0x40081ED")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHA512 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081EE RID: 33262
|
||||
[Token(Token = "0x40081EE")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHAKE128 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081EF RID: 33263
|
||||
[Token(Token = "0x40081EF")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHAKE256 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081F0 RID: 33264
|
||||
[Token(Token = "0x40081F0")]
|
||||
public static readonly DerObjectIdentifier bc_exch = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081F1 RID: 33265
|
||||
[Token(Token = "0x40081F1")]
|
||||
public static readonly DerObjectIdentifier newHope = BCObjectIdentifiers.bc_exch.Asn1GetHashCode();
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D8F RID: 7567
|
||||
[Token(Token = "0x2001D8F")]
|
||||
public class BerApplicationSpecific : DerApplicationSpecific
|
||||
{
|
||||
// Token: 0x0600BF81 RID: 49025 RVA: 0x002B9C18 File Offset: 0x002B7E18
|
||||
[Token(Token = "0x600BF81")]
|
||||
[Address(RVA = "0x2644300", Offset = "0x2643100", VA = "0x182644300")]
|
||||
public BerApplicationSpecific(int tagNo, Asn1EncodableVector vec)
|
||||
: base(tagNo, vec)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D90 RID: 7568
|
||||
[Token(Token = "0x2001D90")]
|
||||
public class BerApplicationSpecificParser : IAsn1ApplicationSpecificParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF82 RID: 49026 RVA: 0x002B9C30 File Offset: 0x002B7E30
|
||||
[Token(Token = "0x600BF82")]
|
||||
[Address(RVA = "0x4E6E10", Offset = "0x4E5C10", VA = "0x1804E6E10")]
|
||||
internal BerApplicationSpecificParser(int tag, Asn1StreamParser parser)
|
||||
{
|
||||
this.tag = tag;
|
||||
this.parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF83 RID: 49027 RVA: 0x002B9C54 File Offset: 0x002B7E54
|
||||
[Token(Token = "0x600BF83")]
|
||||
[Address(RVA = "0xEE7CC0", Offset = "0xEE6AC0", VA = "0x180EE7CC0", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser asn1StreamParser = this.parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF84 RID: 49028 RVA: 0x002B9C70 File Offset: 0x002B7E70
|
||||
[Token(Token = "0x600BF84")]
|
||||
[Address(RVA = "0x2644280", Offset = "0x2643080", VA = "0x182644280", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1StreamParser asn1StreamParser = this.parser;
|
||||
int num = this.tag;
|
||||
Asn1EncodableVector asn1EncodableVector = asn1StreamParser.ReadVector();
|
||||
BerApplicationSpecific berApplicationSpecific = new BerApplicationSpecific(num, asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007991 RID: 31121
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007991")]
|
||||
private readonly int tag;
|
||||
|
||||
// Token: 0x04007992 RID: 31122
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007992")]
|
||||
private readonly Asn1StreamParser parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D85 RID: 7557
|
||||
[Token(Token = "0x2001D85")]
|
||||
public class BerBitString : DerBitString
|
||||
{
|
||||
// Token: 0x0600BF57 RID: 48983 RVA: 0x002B94D0 File Offset: 0x002B76D0
|
||||
[Token(Token = "0x600BF57")]
|
||||
[Address(RVA = "0x2644410", Offset = "0x2643210", VA = "0x182644410")]
|
||||
public BerBitString(byte[] data, int padBits)
|
||||
: base(data, padBits)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF58 RID: 48984 RVA: 0x002B94E8 File Offset: 0x002B76E8
|
||||
[Token(Token = "0x600BF58")]
|
||||
[Address(RVA = "0x2644490", Offset = "0x2643290", VA = "0x182644490")]
|
||||
public BerBitString(byte[] data)
|
||||
: base(data)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF59 RID: 48985 RVA: 0x002B94FC File Offset: 0x002B76FC
|
||||
[Token(Token = "0x600BF59")]
|
||||
[Address(RVA = "0x2644500", Offset = "0x2643300", VA = "0x182644500")]
|
||||
public BerBitString(int namedBits)
|
||||
: base(namedBits)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF5A RID: 48986 RVA: 0x002B9510 File Offset: 0x002B7710
|
||||
[Token(Token = "0x600BF5A")]
|
||||
[Address(RVA = "0x2644560", Offset = "0x2643360", VA = "0x182644560")]
|
||||
public BerBitString(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF5B RID: 48987 RVA: 0x002B9524 File Offset: 0x002B7724
|
||||
[Token(Token = "0x600BF5B")]
|
||||
[Address(RVA = "0x2644310", Offset = "0x2643110", VA = "0x182644310", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
if (derOut != 0 && (derOut != 0 || derOut != 0))
|
||||
{
|
||||
byte[] mData = this.mData;
|
||||
int mPadBits = this.mPadBits;
|
||||
derOut.WriteEncoded(3, (byte)mPadBits, mData);
|
||||
return;
|
||||
}
|
||||
base.Encode(derOut);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D86 RID: 7558
|
||||
[Token(Token = "0x2001D86")]
|
||||
public class BerGenerator : Asn1Generator
|
||||
{
|
||||
// Token: 0x0600BF5C RID: 48988 RVA: 0x002B9560 File Offset: 0x002B7760
|
||||
[Token(Token = "0x600BF5C")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
protected BerGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF5D RID: 48989 RVA: 0x002B957C File Offset: 0x002B777C
|
||||
[Token(Token = "0x600BF5D")]
|
||||
[Address(RVA = "0x2644860", Offset = "0x2643660", VA = "0x182644860")]
|
||||
public BerGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
this._tagged = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF5E RID: 48990 RVA: 0x002B95AC File Offset: 0x002B77AC
|
||||
[Token(Token = "0x600BF5E")]
|
||||
[Address(RVA = "0x26445D0", Offset = "0x26433D0", VA = "0x1826445D0", Slot = "4")]
|
||||
public override void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
((IDisposable)new BerOutputStream(this._out)).Dispose();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF5F RID: 48991 RVA: 0x002B95D0 File Offset: 0x002B77D0
|
||||
[Token(Token = "0x600BF5F")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Stream GetRawOutputStream()
|
||||
{
|
||||
return this._out;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF60 RID: 48992 RVA: 0x002B95E4 File Offset: 0x002B77E4
|
||||
[Token(Token = "0x600BF60")]
|
||||
[Address(RVA = "0x2644660", Offset = "0x2643460", VA = "0x182644660", Slot = "6")]
|
||||
public override void Close()
|
||||
{
|
||||
this.WriteBerEnd();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF61 RID: 48993 RVA: 0x002B95F8 File Offset: 0x002B77F8
|
||||
[Token(Token = "0x600BF61")]
|
||||
[Address(RVA = "0x2644810", Offset = "0x2643610", VA = "0x182644810")]
|
||||
private void WriteHdr(int tag)
|
||||
{
|
||||
Stream @out = this._out;
|
||||
bool canRead = this._out.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF62 RID: 48994 RVA: 0x002B9620 File Offset: 0x002B7820
|
||||
[Token(Token = "0x600BF62")]
|
||||
[Address(RVA = "0x2644730", Offset = "0x2643530", VA = "0x182644730")]
|
||||
protected void WriteBerHeader(int tag)
|
||||
{
|
||||
if (!this._tagged)
|
||||
{
|
||||
Stream @out = this._out;
|
||||
}
|
||||
if (!this._isExplicit)
|
||||
{
|
||||
if (tag != 32)
|
||||
{
|
||||
}
|
||||
this.WriteHdr(tag);
|
||||
return;
|
||||
}
|
||||
Stream out2 = this._out;
|
||||
Stream out3 = this._out;
|
||||
Stream out4 = this._out;
|
||||
bool canRead = this._out.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF63 RID: 48995 RVA: 0x002B967C File Offset: 0x002B787C
|
||||
[Token(Token = "0x600BF63")]
|
||||
[Address(RVA = "0x2644670", Offset = "0x2643470", VA = "0x182644670")]
|
||||
protected void WriteBerBody(Stream contentStream)
|
||||
{
|
||||
Stream @out = this._out;
|
||||
Streams.PipeAll(contentStream, @out);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF64 RID: 48996 RVA: 0x002B9698 File Offset: 0x002B7898
|
||||
[Token(Token = "0x600BF64")]
|
||||
[Address(RVA = "0x2644690", Offset = "0x2643490", VA = "0x182644690")]
|
||||
protected void WriteBerEnd()
|
||||
{
|
||||
Stream @out = this._out;
|
||||
Stream out2 = this._out;
|
||||
if (this._tagged && this._isExplicit)
|
||||
{
|
||||
Stream out3 = this._out;
|
||||
bool canRead = this._out.CanRead;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007984 RID: 31108
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007984")]
|
||||
private bool _tagged;
|
||||
|
||||
// Token: 0x04007985 RID: 31109
|
||||
[FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x4007985")]
|
||||
private bool _isExplicit;
|
||||
|
||||
// Token: 0x04007986 RID: 31110
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4007986")]
|
||||
private int _tagNo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D91 RID: 7569
|
||||
[Token(Token = "0x2001D91")]
|
||||
public class BerNull : DerNull
|
||||
{
|
||||
// Token: 0x0600BF85 RID: 49029 RVA: 0x002B9CA0 File Offset: 0x002B7EA0
|
||||
[Token(Token = "0x600BF85")]
|
||||
[Address(RVA = "0x2644A90", Offset = "0x2643890", VA = "0x182644A90")]
|
||||
[Obsolete]
|
||||
public BerNull()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF86 RID: 49030 RVA: 0x002B9CB4 File Offset: 0x002B7EB4
|
||||
[Token(Token = "0x600BF86")]
|
||||
[Address(RVA = "0x2644A30", Offset = "0x2643830", VA = "0x182644A30")]
|
||||
private BerNull(int dummy)
|
||||
: base(dummy)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF87 RID: 49031 RVA: 0x002B9CC8 File Offset: 0x002B7EC8
|
||||
[Token(Token = "0x600BF87")]
|
||||
[Address(RVA = "0x26448B0", Offset = "0x26436B0", VA = "0x1826448B0", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
if (derOut != 0 && (derOut != 0 || derOut != 0))
|
||||
{
|
||||
((IDisposable)derOut).Dispose();
|
||||
return;
|
||||
}
|
||||
base.Encode(derOut);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF88 RID: 49032 RVA: 0x002B9CF4 File Offset: 0x002B7EF4
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600BF88")]
|
||||
[Address(RVA = "0x26449A0", Offset = "0x26437A0", VA = "0x1826449A0")]
|
||||
static BerNull()
|
||||
{
|
||||
int num;
|
||||
BerNull berNull = new BerNull(num);
|
||||
num = 0;
|
||||
}
|
||||
|
||||
// Token: 0x04007993 RID: 31123
|
||||
[Token(Token = "0x4007993")]
|
||||
public new static readonly BerNull Instance;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D92 RID: 7570
|
||||
[Token(Token = "0x2001D92")]
|
||||
public class BerOctetString : DerOctetString, IEnumerable
|
||||
{
|
||||
// Token: 0x0600BF89 RID: 49033 RVA: 0x002B9D0C File Offset: 0x002B7F0C
|
||||
[Token(Token = "0x600BF89")]
|
||||
[Address(RVA = "0x2645170", Offset = "0x2643F70", VA = "0x182645170")]
|
||||
public static BerOctetString FromSequence(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
list = Platform.CreateArrayList();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_6C;
|
||||
}
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
enumerator += enumerator;
|
||||
num += 2;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
byte[] array = BerOctetString.ToBytes(list);
|
||||
BerOctetString berOctetString;
|
||||
berOctetString.octs = list;
|
||||
return berOctetString;
|
||||
IL_6C:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF8A RID: 49034 RVA: 0x002B9D8C File Offset: 0x002B7F8C
|
||||
[Token(Token = "0x600BF8A")]
|
||||
[Address(RVA = "0x2645760", Offset = "0x2644560", VA = "0x182645760")]
|
||||
private static byte[] ToBytes(IEnumerable octs)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
if (memoryStream != 0)
|
||||
{
|
||||
if (num < memoryStream)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
num += 19;
|
||||
ulong num2;
|
||||
num = (int)((ulong)num + num2);
|
||||
if (num == 0 || num == 0)
|
||||
{
|
||||
goto IL_51;
|
||||
}
|
||||
if (memoryStream.ReadByte() != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
IL_51:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF8B RID: 49035 RVA: 0x002B9DF8 File Offset: 0x002B7FF8
|
||||
[Token(Token = "0x600BF8B")]
|
||||
[Address(RVA = "0x2645A50", Offset = "0x2644850", VA = "0x182645A50")]
|
||||
public BerOctetString(byte[] str)
|
||||
: base(str)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF8C RID: 49036 RVA: 0x002B9E0C File Offset: 0x002B800C
|
||||
[Token(Token = "0x600BF8C")]
|
||||
[Address(RVA = "0x2645A00", Offset = "0x2644800", VA = "0x182645A00")]
|
||||
public BerOctetString(IEnumerable octets)
|
||||
{
|
||||
byte[] array = BerOctetString.ToBytes(octets);
|
||||
base..ctor(array);
|
||||
this.octs = octets;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF8D RID: 49037 RVA: 0x002B9E30 File Offset: 0x002B8030
|
||||
[Token(Token = "0x600BF8D")]
|
||||
[Address(RVA = "0x2645A40", Offset = "0x2644840", VA = "0x182645A40")]
|
||||
public BerOctetString(Asn1Object obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF8E RID: 49038 RVA: 0x002B9E44 File Offset: 0x002B8044
|
||||
[Token(Token = "0x600BF8E")]
|
||||
[Address(RVA = "0x2645A60", Offset = "0x2644860", VA = "0x182645A60")]
|
||||
public BerOctetString(Asn1Encodable obj)
|
||||
{
|
||||
Asn1Object asn1Object = obj.ToAsn1Object();
|
||||
base..ctor(asn1Object);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF8F RID: 49039 RVA: 0x002B9E68 File Offset: 0x002B8068
|
||||
[Token(Token = "0x600BF8F")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "10")]
|
||||
public override byte[] GetOctets()
|
||||
{
|
||||
return this.str;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF90 RID: 49040 RVA: 0x002B9E7C File Offset: 0x002B807C
|
||||
[Token(Token = "0x600BF90")]
|
||||
[Address(RVA = "0x2645590", Offset = "0x2644390", VA = "0x182645590", Slot = "11")]
|
||||
public IEnumerator GetEnumerator()
|
||||
{
|
||||
if (this.octs != 0)
|
||||
{
|
||||
}
|
||||
IList list = Platform.CreateArrayList();
|
||||
byte[] str = this.str;
|
||||
int num = 0;
|
||||
if (num < str.Length)
|
||||
{
|
||||
int num2 = Math.Min(str.Length, 1000);
|
||||
num2 -= num;
|
||||
num = num2;
|
||||
byte[] array = new byte[num2];
|
||||
int length = array.Length;
|
||||
int num3 = 0;
|
||||
Array.Copy(this.str, num, array, num3, length);
|
||||
DerOctetString derOctetString = new DerOctetString(array);
|
||||
byte[] str2 = this.str;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF91 RID: 49041 RVA: 0x002B9F04 File Offset: 0x002B8104
|
||||
[Token(Token = "0x600BF91")]
|
||||
[Address(RVA = "0x2645750", Offset = "0x2644550", VA = "0x182645750")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return this.GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF92 RID: 49042 RVA: 0x002B9F18 File Offset: 0x002B8118
|
||||
[Token(Token = "0x600BF92")]
|
||||
[Address(RVA = "0x2645420", Offset = "0x2644220", VA = "0x182645420")]
|
||||
private IList GenerateOcts()
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
byte[] str = this.str;
|
||||
int num = 0;
|
||||
if (num < str.Length)
|
||||
{
|
||||
int num2 = Math.Min(str.Length, 1000);
|
||||
num2 -= num;
|
||||
num = num2;
|
||||
byte[] array = new byte[num2];
|
||||
int length = array.Length;
|
||||
int num3 = 0;
|
||||
Array.Copy(this.str, num, array, num3, length);
|
||||
DerOctetString derOctetString = new DerOctetString(array);
|
||||
byte[] str2 = this.str;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF93 RID: 49043 RVA: 0x002B9F9C File Offset: 0x002B819C
|
||||
[Token(Token = "0x600BF93")]
|
||||
[Address(RVA = "0x2644EA0", Offset = "0x2643CA0", VA = "0x182644EA0", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (derOut == 0 || (derOut == 0 && derOut == 0))
|
||||
{
|
||||
goto IL_4D;
|
||||
}
|
||||
IEnumerator enumerator = this.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_55;
|
||||
}
|
||||
derOut.WriteObject(num);
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_4D:
|
||||
base.Encode(derOut);
|
||||
return;
|
||||
IL_55:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007994 RID: 31124
|
||||
[Token(Token = "0x4007994")]
|
||||
private const int MaxLength = 1000;
|
||||
|
||||
// Token: 0x04007995 RID: 31125
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007995")]
|
||||
private readonly IEnumerable octs;
|
||||
}
|
||||
}
|
||||
+170
@@ -0,0 +1,170 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D87 RID: 7559
|
||||
[Token(Token = "0x2001D87")]
|
||||
public class BerOctetStringGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600BF65 RID: 48997 RVA: 0x002B96E0 File Offset: 0x002B78E0
|
||||
[Token(Token = "0x600BF65")]
|
||||
[Address(RVA = "0x2644C80", Offset = "0x2643A80", VA = "0x182644C80")]
|
||||
public BerOctetStringGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(36);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF66 RID: 48998 RVA: 0x002B9704 File Offset: 0x002B7904
|
||||
[Token(Token = "0x600BF66")]
|
||||
[Address(RVA = "0x2644CC0", Offset = "0x2643AC0", VA = "0x182644CC0")]
|
||||
public BerOctetStringGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
base.WriteBerHeader(36);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF67 RID: 48999 RVA: 0x002B9734 File Offset: 0x002B7934
|
||||
[Token(Token = "0x600BF67")]
|
||||
[Address(RVA = "0x2644AF0", Offset = "0x26438F0", VA = "0x182644AF0")]
|
||||
public Stream GetOctetOutputStream()
|
||||
{
|
||||
byte[] array = new byte[1000];
|
||||
return this.GetOctetOutputStream(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF68 RID: 49000 RVA: 0x002B9754 File Offset: 0x002B7954
|
||||
[Token(Token = "0x600BF68")]
|
||||
[Address(RVA = "0x2644B40", Offset = "0x2643940", VA = "0x182644B40")]
|
||||
public Stream GetOctetOutputStream(int bufSize)
|
||||
{
|
||||
if (bufSize < 1)
|
||||
{
|
||||
}
|
||||
byte[] array = new byte[bufSize];
|
||||
return this.GetOctetOutputStream(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF69 RID: 49001 RVA: 0x002B9774 File Offset: 0x002B7974
|
||||
[Token(Token = "0x600BF69")]
|
||||
[Address(RVA = "0x2644BC0", Offset = "0x26439C0", VA = "0x182644BC0")]
|
||||
public Stream GetOctetOutputStream(byte[] buf)
|
||||
{
|
||||
BerOctetStringGenerator.BufferedBerOctetStream bufferedBerOctetStream;
|
||||
bufferedBerOctetStream._gen = this;
|
||||
bufferedBerOctetStream._buf = buf;
|
||||
bufferedBerOctetStream._off = (int)((ulong)0L);
|
||||
DerOutputStream derOutputStream = new DerOutputStream(this._out);
|
||||
bufferedBerOctetStream._derOut = derOutputStream;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x02001D88 RID: 7560
|
||||
[Token(Token = "0x2001D88")]
|
||||
private class BufferedBerOctetStream : BaseOutputStream
|
||||
{
|
||||
// Token: 0x0600BF6A RID: 49002 RVA: 0x002B97B0 File Offset: 0x002B79B0
|
||||
[Token(Token = "0x600BF6A")]
|
||||
[Address(RVA = "0x2647C70", Offset = "0x2646A70", VA = "0x182647C70")]
|
||||
internal BufferedBerOctetStream(BerOctetStringGenerator gen, byte[] buf)
|
||||
{
|
||||
this._gen = gen;
|
||||
this._buf = buf;
|
||||
this._off = (int)((ulong)0L);
|
||||
DerOutputStream derOutputStream = new DerOutputStream(gen._out);
|
||||
this._derOut = derOutputStream;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF6B RID: 49003 RVA: 0x002B97F4 File Offset: 0x002B79F4
|
||||
[Token(Token = "0x600BF6B")]
|
||||
[Address(RVA = "0x2647AB0", Offset = "0x26468B0", VA = "0x182647AB0", Slot = "30")]
|
||||
public override void WriteByte(byte b)
|
||||
{
|
||||
byte[] buf = this._buf;
|
||||
int num = this._off + 1;
|
||||
this._off = num;
|
||||
byte[] buf2 = this._buf;
|
||||
int off = this._off;
|
||||
if (off == buf2.Length)
|
||||
{
|
||||
DerOutputStream derOut = this._derOut;
|
||||
int num2 = 0;
|
||||
DerOctetString.Encode(derOut, buf2, num2, off);
|
||||
this._off = (int)((ulong)0L);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF6C RID: 49004 RVA: 0x002B9854 File Offset: 0x002B7A54
|
||||
[Token(Token = "0x600BF6C")]
|
||||
[Address(RVA = "0x2647B30", Offset = "0x2646930", VA = "0x182647B30", Slot = "29")]
|
||||
public override void Write(byte[] buf, int offset, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
int num = 0;
|
||||
byte[] buf2 = this._buf;
|
||||
int off = this._off;
|
||||
int num2 = buf2.Length;
|
||||
num2 -= off;
|
||||
int num3 = Math.Min(len, num2);
|
||||
byte[] buf3 = this._buf;
|
||||
if (num3 != buf3.Length)
|
||||
{
|
||||
int off2 = this._off;
|
||||
Array.Copy(buf, offset, buf3, off2, num3);
|
||||
int num4 = this._off;
|
||||
byte[] buf4 = this._buf;
|
||||
num4 += num3;
|
||||
this._off = num4;
|
||||
DerOutputStream derOut = this._derOut;
|
||||
int num5 = 0;
|
||||
DerOctetString.Encode(derOut, buf4, num5, num4);
|
||||
this._off = num;
|
||||
}
|
||||
DerOctetString.Encode(this._derOut, buf, offset, len);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF6D RID: 49005 RVA: 0x002B9908 File Offset: 0x002B7B08
|
||||
[Token(Token = "0x600BF6D")]
|
||||
[Address(RVA = "0x2647A60", Offset = "0x2646860", VA = "0x182647A60", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
int off = this._off;
|
||||
if (off != 0)
|
||||
{
|
||||
byte[] buf = this._buf;
|
||||
int num = 0;
|
||||
DerOctetString.Encode(this._derOut, buf, num, off);
|
||||
}
|
||||
this._gen.WriteBerEnd();
|
||||
base.Close();
|
||||
}
|
||||
|
||||
// Token: 0x04007987 RID: 31111
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007987")]
|
||||
private byte[] _buf;
|
||||
|
||||
// Token: 0x04007988 RID: 31112
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007988")]
|
||||
private int _off;
|
||||
|
||||
// Token: 0x04007989 RID: 31113
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007989")]
|
||||
private readonly BerOctetStringGenerator _gen;
|
||||
|
||||
// Token: 0x0400798A RID: 31114
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400798A")]
|
||||
private readonly DerOutputStream _derOut;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D89 RID: 7561
|
||||
[Token(Token = "0x2001D89")]
|
||||
public class BerOctetStringParser : Asn1OctetStringParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF6E RID: 49006 RVA: 0x002B9950 File Offset: 0x002B7B50
|
||||
[Token(Token = "0x600BF6E")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
internal BerOctetStringParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF6F RID: 49007 RVA: 0x002B996C File Offset: 0x002B7B6C
|
||||
[Token(Token = "0x600BF6F")]
|
||||
[Address(RVA = "0x2644D20", Offset = "0x2643B20", VA = "0x182644D20", Slot = "4")]
|
||||
public Stream GetOctetStream()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF6F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.BerOctetStringParser::GetOctetStream()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:ConstructedOctetStream(var_0_0B, newobj:ConstructedOctetStream(ConstructedOctetStream::.ctor, ldfld:Asn1StreamParser(BerOctetStringParser::_parser, ldloc:BerOctetStringParser(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: 0x0600BF70 RID: 49008 RVA: 0x002B9984 File Offset: 0x002B7B84
|
||||
[Token(Token = "0x600BF70")]
|
||||
[Address(RVA = "0x2644D80", Offset = "0x2643B80", VA = "0x182644D80", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
BerOctetString berOctetString = new BerOctetString(Streams.ReadAll(new ConstructedOctetStream(this._parser)));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400798B RID: 31115
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400798B")]
|
||||
private readonly Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D93 RID: 7571
|
||||
[Token(Token = "0x2001D93")]
|
||||
public class BerOutputStream : DerOutputStream
|
||||
{
|
||||
// Token: 0x0600BF94 RID: 49044 RVA: 0x002BA004 File Offset: 0x002B8204
|
||||
[Token(Token = "0x600BF94")]
|
||||
[Address(RVA = "0x263F840", Offset = "0x263E640", VA = "0x18263F840")]
|
||||
public BerOutputStream(Stream os)
|
||||
: base(os)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF95 RID: 49045 RVA: 0x002BA018 File Offset: 0x002B8218
|
||||
[Token(Token = "0x600BF95")]
|
||||
[Address(RVA = "0x2645AA0", Offset = "0x26448A0", VA = "0x182645AA0", Slot = "31")]
|
||||
[Obsolete]
|
||||
public override void WriteObject(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF95)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.BerOutputStream::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 BerEncodable")))
|
||||
}
|
||||
|
||||
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
|
||||
*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D94 RID: 7572
|
||||
[Token(Token = "0x2001D94")]
|
||||
public class BerSequence : DerSequence
|
||||
{
|
||||
// Token: 0x0600BF96 RID: 49046 RVA: 0x002BA060 File Offset: 0x002B8260
|
||||
[Token(Token = "0x600BF96")]
|
||||
[Address(RVA = "0x26460F0", Offset = "0x2644EF0", VA = "0x1826460F0")]
|
||||
public new static BerSequence FromVector(Asn1EncodableVector v)
|
||||
{
|
||||
IList v2 = v.v;
|
||||
return new BerSequence(v);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF97 RID: 49047 RVA: 0x002BA080 File Offset: 0x002B8280
|
||||
[Token(Token = "0x600BF97")]
|
||||
[Address(RVA = "0x26462A0", Offset = "0x26450A0", VA = "0x1826462A0")]
|
||||
public BerSequence()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF98 RID: 49048 RVA: 0x002BA094 File Offset: 0x002B8294
|
||||
[Token(Token = "0x600BF98")]
|
||||
[Address(RVA = "0x2646300", Offset = "0x2645100", VA = "0x182646300")]
|
||||
public BerSequence(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF99 RID: 49049 RVA: 0x002BA0A8 File Offset: 0x002B82A8
|
||||
[Token(Token = "0x600BF99")]
|
||||
[Address(RVA = "0x2646370", Offset = "0x2645170", VA = "0x182646370")]
|
||||
public BerSequence(params Asn1Encodable[] v)
|
||||
: base(v)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF9A RID: 49050 RVA: 0x002BA0BC File Offset: 0x002B82BC
|
||||
[Token(Token = "0x600BF9A")]
|
||||
[Address(RVA = "0x26463E0", Offset = "0x26451E0", VA = "0x1826463E0")]
|
||||
public BerSequence(Asn1EncodableVector v)
|
||||
: base(v)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BF9B RID: 49051 RVA: 0x002BA0D0 File Offset: 0x002B82D0
|
||||
[Token(Token = "0x600BF9B")]
|
||||
[Address(RVA = "0x2645E10", Offset = "0x2644C10", VA = "0x182645E10", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (derOut == 0 || (derOut == 0 && derOut == 0))
|
||||
{
|
||||
goto IL_4D;
|
||||
}
|
||||
IEnumerator enumerator = this.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_55;
|
||||
}
|
||||
derOut.WriteObject(num);
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_4D:
|
||||
base.Encode(derOut);
|
||||
return;
|
||||
IL_55:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF9C RID: 49052 RVA: 0x002BA138 File Offset: 0x002B8338
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600BF9C")]
|
||||
[Address(RVA = "0x2646210", Offset = "0x2645010", VA = "0x182646210")]
|
||||
static BerSequence()
|
||||
{
|
||||
BerSequence berSequence = new BerSequence();
|
||||
}
|
||||
|
||||
// Token: 0x04007996 RID: 31126
|
||||
[Token(Token = "0x4007996")]
|
||||
public new static readonly BerSequence Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D8A RID: 7562
|
||||
[Token(Token = "0x2001D8A")]
|
||||
public class BerSequenceGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600BF71 RID: 49009 RVA: 0x002B99B8 File Offset: 0x002B7BB8
|
||||
[Token(Token = "0x600BF71")]
|
||||
[Address(RVA = "0x2645D20", Offset = "0x2644B20", VA = "0x182645D20")]
|
||||
public BerSequenceGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(48);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF72 RID: 49010 RVA: 0x002B99DC File Offset: 0x002B7BDC
|
||||
[Token(Token = "0x600BF72")]
|
||||
[Address(RVA = "0x2645CC0", Offset = "0x2644AC0", VA = "0x182645CC0")]
|
||||
public BerSequenceGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
base.WriteBerHeader(48);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D8B RID: 7563
|
||||
[Token(Token = "0x2001D8B")]
|
||||
public class BerSequenceParser : Asn1SequenceParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF73 RID: 49011 RVA: 0x002B9A0C File Offset: 0x002B7C0C
|
||||
[Token(Token = "0x600BF73")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
internal BerSequenceParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF74 RID: 49012 RVA: 0x002B9A28 File Offset: 0x002B7C28
|
||||
[Token(Token = "0x600BF74")]
|
||||
[Address(RVA = "0xDE44B0", Offset = "0xDE32B0", VA = "0x180DE44B0", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF75 RID: 49013 RVA: 0x002B9A44 File Offset: 0x002B7C44
|
||||
[Token(Token = "0x600BF75")]
|
||||
[Address(RVA = "0x2645D60", Offset = "0x2644B60", VA = "0x182645D60", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
BerSequence berSequence = new BerSequence(this._parser.ReadVector());
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400798C RID: 31116
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400798C")]
|
||||
private readonly Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D95 RID: 7573
|
||||
[Token(Token = "0x2001D95")]
|
||||
public class BerSet : DerSet
|
||||
{
|
||||
// Token: 0x0600BF9D RID: 49053 RVA: 0x002BA14C File Offset: 0x002B834C
|
||||
[Token(Token = "0x600BF9D")]
|
||||
[Address(RVA = "0x2646970", Offset = "0x2645770", VA = "0x182646970")]
|
||||
public new static BerSet FromVector(Asn1EncodableVector v)
|
||||
{
|
||||
IList v2 = v.v;
|
||||
int num;
|
||||
BerSet berSet = new BerSet(v, num != 0);
|
||||
num = 0;
|
||||
return berSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF9E RID: 49054 RVA: 0x002BA174 File Offset: 0x002B8374
|
||||
[Token(Token = "0x600BF9E")]
|
||||
[Address(RVA = "0x2646880", Offset = "0x2645680", VA = "0x182646880")]
|
||||
internal new static BerSet FromVector(Asn1EncodableVector v, bool needsSorting)
|
||||
{
|
||||
IList v2 = v.v;
|
||||
return new BerSet(v, needsSorting);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF9F RID: 49055 RVA: 0x002BA198 File Offset: 0x002B8398
|
||||
[Token(Token = "0x600BF9F")]
|
||||
[Address(RVA = "0x2646B90", Offset = "0x2645990", VA = "0x182646B90")]
|
||||
public BerSet()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BFA0 RID: 49056 RVA: 0x002BA1AC File Offset: 0x002B83AC
|
||||
[Token(Token = "0x600BFA0")]
|
||||
[Address(RVA = "0x2646B20", Offset = "0x2645920", VA = "0x182646B20")]
|
||||
public BerSet(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BFA1 RID: 49057 RVA: 0x002BA1C0 File Offset: 0x002B83C0
|
||||
[Token(Token = "0x600BFA1")]
|
||||
[Address(RVA = "0x2646BF0", Offset = "0x26459F0", VA = "0x182646BF0")]
|
||||
public BerSet(Asn1EncodableVector v)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(v, num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600BFA2 RID: 49058 RVA: 0x002BA1D8 File Offset: 0x002B83D8
|
||||
[Token(Token = "0x600BFA2")]
|
||||
[Address(RVA = "0x2646C60", Offset = "0x2645A60", VA = "0x182646C60")]
|
||||
internal BerSet(Asn1EncodableVector v, bool needsSorting)
|
||||
: base(v, needsSorting)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BFA3 RID: 49059 RVA: 0x002BA1F0 File Offset: 0x002B83F0
|
||||
[Token(Token = "0x600BFA3")]
|
||||
[Address(RVA = "0x26465A0", Offset = "0x26453A0", VA = "0x1826465A0", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (derOut == 0 || (derOut == 0 && derOut == 0))
|
||||
{
|
||||
goto IL_4D;
|
||||
}
|
||||
IEnumerator enumerator = this.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_55;
|
||||
}
|
||||
derOut.WriteObject(num);
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_4D:
|
||||
base.Encode(derOut);
|
||||
return;
|
||||
IL_55:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BFA4 RID: 49060 RVA: 0x002BA258 File Offset: 0x002B8458
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600BFA4")]
|
||||
[Address(RVA = "0x2646A90", Offset = "0x2645890", VA = "0x182646A90")]
|
||||
static BerSet()
|
||||
{
|
||||
BerSet berSet = new BerSet();
|
||||
}
|
||||
|
||||
// Token: 0x04007997 RID: 31127
|
||||
[Token(Token = "0x4007997")]
|
||||
public new static readonly BerSet Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D8C RID: 7564
|
||||
[Token(Token = "0x2001D8C")]
|
||||
public class BerSetGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600BF76 RID: 49014 RVA: 0x002B9A68 File Offset: 0x002B7C68
|
||||
[Token(Token = "0x600BF76")]
|
||||
[Address(RVA = "0x26464B0", Offset = "0x26452B0", VA = "0x1826464B0")]
|
||||
public BerSetGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(49);
|
||||
}
|
||||
|
||||
// Token: 0x0600BF77 RID: 49015 RVA: 0x002B9A8C File Offset: 0x002B7C8C
|
||||
[Token(Token = "0x600BF77")]
|
||||
[Address(RVA = "0x2646450", Offset = "0x2645250", VA = "0x182646450")]
|
||||
public BerSetGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
base.WriteBerHeader(49);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D8D RID: 7565
|
||||
[Token(Token = "0x2001D8D")]
|
||||
public class BerSetParser : Asn1SetParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF78 RID: 49016 RVA: 0x002B9ABC File Offset: 0x002B7CBC
|
||||
[Token(Token = "0x600BF78")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
internal BerSetParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF79 RID: 49017 RVA: 0x002B9AD8 File Offset: 0x002B7CD8
|
||||
[Token(Token = "0x600BF79")]
|
||||
[Address(RVA = "0xDE44B0", Offset = "0xDE32B0", VA = "0x180DE44B0", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600BF7A RID: 49018 RVA: 0x002B9AF4 File Offset: 0x002B7CF4
|
||||
[Token(Token = "0x600BF7A")]
|
||||
[Address(RVA = "0x26464F0", Offset = "0x26452F0", VA = "0x1826464F0", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
int num;
|
||||
BerSet berSet = new BerSet(this._parser.ReadVector(), num != 0);
|
||||
num = 0;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400798D RID: 31117
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400798D")]
|
||||
private readonly Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D96 RID: 7574
|
||||
[Token(Token = "0x2001D96")]
|
||||
public class BerTaggedObject : DerTaggedObject
|
||||
{
|
||||
// Token: 0x0600BFA5 RID: 49061 RVA: 0x002BA26C File Offset: 0x002B846C
|
||||
[Token(Token = "0x600BFA5")]
|
||||
[Address(RVA = "0x2647380", Offset = "0x2646180", VA = "0x182647380")]
|
||||
public BerTaggedObject(int tagNo, Asn1Encodable obj)
|
||||
: base(tagNo, obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BFA6 RID: 49062 RVA: 0x002BA284 File Offset: 0x002B8484
|
||||
[Token(Token = "0x600BFA6")]
|
||||
[Address(RVA = "0x2647370", Offset = "0x2646170", VA = "0x182647370")]
|
||||
public BerTaggedObject(bool explicitly, int tagNo, Asn1Encodable obj)
|
||||
: base(explicitly, tagNo, obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BFA7 RID: 49063 RVA: 0x002BA29C File Offset: 0x002B849C
|
||||
[Token(Token = "0x600BFA7")]
|
||||
[Address(RVA = "0x2647390", Offset = "0x2646190", VA = "0x182647390")]
|
||||
public BerTaggedObject(int tagNo)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600BFA8 RID: 49064 RVA: 0x002BA2AC File Offset: 0x002B84AC
|
||||
[Token(Token = "0x600BFA8")]
|
||||
[Address(RVA = "0x2646F20", Offset = "0x2645D20", VA = "0x182646F20", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (derOut == 0 || (derOut == 0 && derOut == 0))
|
||||
{
|
||||
goto IL_82;
|
||||
}
|
||||
int tagNo = this.tagNo;
|
||||
derOut.WriteTag(160, tagNo);
|
||||
Asn1Encodable obj = this.obj;
|
||||
if (obj == 0 || obj == 0 || obj == 0)
|
||||
{
|
||||
}
|
||||
BerOctetString berOctetString;
|
||||
if (berOctetString == 0 && berOctetString == 0)
|
||||
{
|
||||
goto IL_90;
|
||||
}
|
||||
if (berOctetString != 0)
|
||||
{
|
||||
if (berOctetString == 0)
|
||||
{
|
||||
}
|
||||
if (berOctetString == 0)
|
||||
{
|
||||
goto IL_99;
|
||||
}
|
||||
derOut.WriteObject(berOctetString);
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
Asn1Encodable obj2 = this.obj;
|
||||
derOut.WriteObject(obj2);
|
||||
return;
|
||||
IL_82:
|
||||
base.Encode(derOut);
|
||||
return;
|
||||
IL_90:
|
||||
string text;
|
||||
Exception ex = Platform.CreateNotImplementedException(text);
|
||||
IL_99:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
}
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001D8E RID: 7566
|
||||
[Token(Token = "0x2001D8E")]
|
||||
public class BerTaggedObjectParser : Asn1TaggedObjectParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600BF7B RID: 49019 RVA: 0x002B9B1C File Offset: 0x002B7D1C
|
||||
[Token(Token = "0x600BF7B")]
|
||||
[Address(RVA = "0x2646E70", Offset = "0x2645C70", VA = "0x182646E70")]
|
||||
[Obsolete]
|
||||
internal BerTaggedObjectParser(int baseTag, int tagNumber, Stream contentStream)
|
||||
{
|
||||
int num = Asn1InputStream.FindLimit(contentStream);
|
||||
base..ctor();
|
||||
this._tagNumber = tagNumber;
|
||||
Asn1StreamParser asn1StreamParser;
|
||||
this._parser = asn1StreamParser;
|
||||
this._constructed = num != 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600BF7C RID: 49020 RVA: 0x002B9B4C File Offset: 0x002B7D4C
|
||||
[Token(Token = "0x600BF7C")]
|
||||
[Address(RVA = "0xBEE070", Offset = "0xBECE70", VA = "0x180BEE070")]
|
||||
internal BerTaggedObjectParser(bool constructed, int tagNumber, Asn1StreamParser parser)
|
||||
{
|
||||
this._constructed = constructed;
|
||||
this._tagNumber = tagNumber;
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x17001DA3 RID: 7587
|
||||
// (get) Token: 0x0600BF7D RID: 49021 RVA: 0x002B9B74 File Offset: 0x002B7D74
|
||||
[Token(Token = "0x17001DA3")]
|
||||
public bool IsConstructed
|
||||
{
|
||||
[Token(Token = "0x600BF7D")]
|
||||
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0")]
|
||||
get
|
||||
{
|
||||
return this._constructed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DA4 RID: 7588
|
||||
// (get) Token: 0x0600BF7E RID: 49022 RVA: 0x002B9B88 File Offset: 0x002B7D88
|
||||
[Token(Token = "0x17001DA4")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600BF7E")]
|
||||
[Address(RVA = "0x495080", Offset = "0x493E80", VA = "0x180495080", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this._tagNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600BF7F RID: 49023 RVA: 0x002B9B9C File Offset: 0x002B7D9C
|
||||
[Token(Token = "0x600BF7F")]
|
||||
[Address(RVA = "0x2646CE0", Offset = "0x2645AE0", VA = "0x182646CE0", Slot = "5")]
|
||||
public IAsn1Convertible GetObjectParser(int tag, bool isExplicit)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600BF7F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IAsn1Convertible BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.BerTaggedObjectParser::GetObjectParser(System.Int32,System.Boolean)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2B:
|
||||
stloc:IOException(var_3_35, newobj:IOException(IOException::.ctor, ldstr:string("Explicit tags must be constructed (see X.690 8.14.2)")))
|
||||
}
|
||||
|
||||
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.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: 0x0600BF80 RID: 49024 RVA: 0x002B9BE0 File Offset: 0x002B7DE0
|
||||
[Token(Token = "0x600BF80")]
|
||||
[Address(RVA = "0x2646DB0", Offset = "0x2645BB0", VA = "0x182646DB0", Slot = "6")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
int tagNumber = this._tagNumber;
|
||||
bool constructed = this._constructed;
|
||||
return parser.ReadTaggedObject(constructed, tagNumber);
|
||||
}
|
||||
|
||||
// Token: 0x0400798E RID: 31118
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400798E")]
|
||||
private bool _constructed;
|
||||
|
||||
// Token: 0x0400798F RID: 31119
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x400798F")]
|
||||
private int _tagNumber;
|
||||
|
||||
// Token: 0x04007990 RID: 31120
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007990")]
|
||||
private Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Bsi
|
||||
{
|
||||
// Token: 0x02001F6F RID: 8047
|
||||
[Token(Token = "0x2001F6F")]
|
||||
public abstract class BsiObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CBA4 RID: 52132 RVA: 0x002EA7EC File Offset: 0x002E89EC
|
||||
[Token(Token = "0x600CBA4")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected BsiObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040081B9 RID: 33209
|
||||
[Token(Token = "0x40081B9")]
|
||||
public static readonly DerObjectIdentifier bsi_de = new DerObjectIdentifier("0.4.0.127.0.7");
|
||||
|
||||
// Token: 0x040081BA RID: 33210
|
||||
[Token(Token = "0x40081BA")]
|
||||
public static readonly DerObjectIdentifier id_ecc = BsiObjectIdentifiers.bsi_de.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081BB RID: 33211
|
||||
[Token(Token = "0x40081BB")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_signatures = BsiObjectIdentifiers.id_ecc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081BC RID: 33212
|
||||
[Token(Token = "0x40081BC")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA1 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081BD RID: 33213
|
||||
[Token(Token = "0x40081BD")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA224 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081BE RID: 33214
|
||||
[Token(Token = "0x40081BE")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA256 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081BF RID: 33215
|
||||
[Token(Token = "0x40081BF")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA384 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C0 RID: 33216
|
||||
[Token(Token = "0x40081C0")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA512 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C1 RID: 33217
|
||||
[Token(Token = "0x40081C1")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_RIPEMD160 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C2 RID: 33218
|
||||
[Token(Token = "0x40081C2")]
|
||||
public static readonly DerObjectIdentifier algorithm = BsiObjectIdentifiers.bsi_de.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C3 RID: 33219
|
||||
[Token(Token = "0x40081C3")]
|
||||
public static readonly DerObjectIdentifier ecka_eg = BsiObjectIdentifiers.id_ecc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C4 RID: 33220
|
||||
[Token(Token = "0x40081C4")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf = BsiObjectIdentifiers.ecka_eg.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C5 RID: 33221
|
||||
[Token(Token = "0x40081C5")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA1 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C6 RID: 33222
|
||||
[Token(Token = "0x40081C6")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA224 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C7 RID: 33223
|
||||
[Token(Token = "0x40081C7")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA256 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C8 RID: 33224
|
||||
[Token(Token = "0x40081C8")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA384 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081C9 RID: 33225
|
||||
[Token(Token = "0x40081C9")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA512 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081CA RID: 33226
|
||||
[Token(Token = "0x40081CA")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_RIPEMD160 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081CB RID: 33227
|
||||
[Token(Token = "0x40081CB")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF = BsiObjectIdentifiers.ecka_eg.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081CC RID: 33228
|
||||
[Token(Token = "0x40081CC")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_3DES = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081CD RID: 33229
|
||||
[Token(Token = "0x40081CD")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES128 = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081CE RID: 33230
|
||||
[Token(Token = "0x40081CE")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES192 = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040081CF RID: 33231
|
||||
[Token(Token = "0x40081CF")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES256 = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F48 RID: 8008
|
||||
[Token(Token = "0x2001F48")]
|
||||
public class CAKeyUpdAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA9A RID: 51866 RVA: 0x002E6844 File Offset: 0x002E4A44
|
||||
[Token(Token = "0x600CA9A")]
|
||||
[Address(RVA = "0x26480D0", Offset = "0x2646ED0", VA = "0x1826480D0")]
|
||||
private CAKeyUpdAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
this.oldWithNew = cmpCertificate;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
CmpCertificate cmpCertificate2;
|
||||
this.newWithOld = cmpCertificate2;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
CmpCertificate cmpCertificate3;
|
||||
this.newWithNew = cmpCertificate3;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA9B RID: 51867 RVA: 0x002E688C File Offset: 0x002E4A8C
|
||||
[Token(Token = "0x600CA9B")]
|
||||
[Address(RVA = "0x2647D00", Offset = "0x2646B00", VA = "0x182647D00")]
|
||||
public static CAKeyUpdAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA9B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CAKeyUpdAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CAKeyUpdAnnContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_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.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: 0x17002018 RID: 8216
|
||||
// (get) Token: 0x0600CA9C RID: 51868 RVA: 0x002E68F4 File Offset: 0x002E4AF4
|
||||
[Token(Token = "0x17002018")]
|
||||
public virtual CmpCertificate OldWithNew
|
||||
{
|
||||
[Token(Token = "0x600CA9C")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.oldWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002019 RID: 8217
|
||||
// (get) Token: 0x0600CA9D RID: 51869 RVA: 0x002E6908 File Offset: 0x002E4B08
|
||||
[Token(Token = "0x17002019")]
|
||||
public virtual CmpCertificate NewWithOld
|
||||
{
|
||||
[Token(Token = "0x600CA9D")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newWithOld;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700201A RID: 8218
|
||||
// (get) Token: 0x0600CA9E RID: 51870 RVA: 0x002E691C File Offset: 0x002E4B1C
|
||||
[Token(Token = "0x1700201A")]
|
||||
public virtual CmpCertificate NewWithNew
|
||||
{
|
||||
[Token(Token = "0x600CA9E")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.newWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA9F RID: 51871 RVA: 0x002E6930 File Offset: 0x002E4B30
|
||||
[Token(Token = "0x600CA9F")]
|
||||
[Address(RVA = "0x2647F60", Offset = "0x2646D60", VA = "0x182647F60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
CmpCertificate cmpCertificate = this.oldWithNew;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
array[0] = cmpCertificate;
|
||||
CmpCertificate cmpCertificate2 = this.newWithOld;
|
||||
if (cmpCertificate2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = cmpCertificate2;
|
||||
CmpCertificate cmpCertificate3 = this.newWithNew;
|
||||
if (cmpCertificate3 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = cmpCertificate3;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080F3 RID: 33011
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080F3")]
|
||||
private readonly CmpCertificate oldWithNew;
|
||||
|
||||
// Token: 0x040080F4 RID: 33012
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080F4")]
|
||||
private readonly CmpCertificate newWithOld;
|
||||
|
||||
// Token: 0x040080F5 RID: 33013
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080F5")]
|
||||
private readonly CmpCertificate newWithNew;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F49 RID: 8009
|
||||
[Token(Token = "0x2001F49")]
|
||||
public class CertConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAA0 RID: 51872 RVA: 0x002E698C File Offset: 0x002E4B8C
|
||||
[Token(Token = "0x600CAA0")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
private CertConfirmContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAA1 RID: 51873 RVA: 0x002E69A8 File Offset: 0x002E4BA8
|
||||
[Token(Token = "0x600CAA1")]
|
||||
[Address(RVA = "0x2648170", Offset = "0x2646F70", VA = "0x182648170")]
|
||||
public static CertConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAA1)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CAA2 RID: 51874 RVA: 0x002E6A00 File Offset: 0x002E4C00
|
||||
[Token(Token = "0x600CAA2")]
|
||||
[Address(RVA = "0x2648360", Offset = "0x2647160", VA = "0x182648360", Slot = "6")]
|
||||
public virtual CertStatus[] ToCertStatusArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertStatus[] array = new CertStatus[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
CertStatus certStatus;
|
||||
if (certStatus != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certStatus;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAA3 RID: 51875 RVA: 0x002E6A4C File Offset: 0x002E4C4C
|
||||
[Token(Token = "0x600CAA3")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAA3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CertConfirmContent::content, ldloc:CertConfirmContent(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: 0x040080F6 RID: 33014
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080F6")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F4A RID: 8010
|
||||
[Token(Token = "0x2001F4A")]
|
||||
public class CertOrEncCert : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CAA4 RID: 51876 RVA: 0x002E6A60 File Offset: 0x002E4C60
|
||||
[Token(Token = "0x600CAA4")]
|
||||
[Address(RVA = "0x2648880", Offset = "0x2647680", VA = "0x182648880")]
|
||||
private CertOrEncCert(Asn1TaggedObject tagged)
|
||||
{
|
||||
int tagNo = tagged.tagNo;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo == 1)
|
||||
{
|
||||
Asn1Encodable obj = tagged.obj;
|
||||
if (obj == 0)
|
||||
{
|
||||
}
|
||||
EncryptedValue instance = EncryptedValue.GetInstance(obj.ToAsn1Object());
|
||||
this.encryptedCert = instance;
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tagged.obj == 0)
|
||||
{
|
||||
CmpCertificate instance2 = CmpCertificate.GetInstance(0);
|
||||
this.certificate = instance2;
|
||||
return;
|
||||
}
|
||||
int num;
|
||||
CmpCertificate instance3 = CmpCertificate.GetInstance(num);
|
||||
this.certificate = instance3;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAA5 RID: 51877 RVA: 0x002E6AF8 File Offset: 0x002E4CF8
|
||||
[Token(Token = "0x600CAA5")]
|
||||
[Address(RVA = "0x2648470", Offset = "0x2647270", VA = "0x182648470")]
|
||||
public static CertOrEncCert GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (obj != 0)
|
||||
{
|
||||
CertOrEncCert certOrEncCert;
|
||||
Asn1Object asn1Object;
|
||||
if (typeof(Asn1TaggedObject).TypeHandle != 0)
|
||||
{
|
||||
if (typeof(Asn1TaggedObject).TypeHandle != (ulong)1L)
|
||||
{
|
||||
IL_96:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
if (certOrEncCert != 0)
|
||||
{
|
||||
asn1Object = certOrEncCert.ToAsn1Object();
|
||||
}
|
||||
EncryptedValue instance = EncryptedValue.GetInstance(asn1Object);
|
||||
certOrEncCert.encryptedCert = instance;
|
||||
}
|
||||
Asn1Object asn1Object2;
|
||||
if (asn1Object != 0)
|
||||
{
|
||||
asn1Object2 = asn1Object.ToAsn1Object();
|
||||
}
|
||||
CmpCertificate instance2 = CmpCertificate.GetInstance(asn1Object2);
|
||||
certOrEncCert.certificate = instance2;
|
||||
return certOrEncCert;
|
||||
}
|
||||
}
|
||||
else if (obj != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
string typeName = Platform.GetTypeName(obj);
|
||||
ArgumentException ex = new ArgumentException("Invalid object: " + typeName, "obj");
|
||||
goto IL_96;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAA6 RID: 51878 RVA: 0x002E6BB8 File Offset: 0x002E4DB8
|
||||
[Token(Token = "0x600CAA6")]
|
||||
[Address(RVA = "0x26489D0", Offset = "0x26477D0", VA = "0x1826489D0")]
|
||||
public CertOrEncCert(CmpCertificate certificate)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAA6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certificate")))
|
||||
}
|
||||
|
||||
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.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: 0x0600CAA7 RID: 51879 RVA: 0x002E6BE4 File Offset: 0x002E4DE4
|
||||
[Token(Token = "0x600CAA7")]
|
||||
[Address(RVA = "0x2648800", Offset = "0x2647600", VA = "0x182648800")]
|
||||
public CertOrEncCert(EncryptedValue encryptedCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAA7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.EncryptedValue)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("encryptedCert")))
|
||||
}
|
||||
|
||||
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.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: 0x1700201B RID: 8219
|
||||
// (get) Token: 0x0600CAA8 RID: 51880 RVA: 0x002E6C10 File Offset: 0x002E4E10
|
||||
[Token(Token = "0x1700201B")]
|
||||
public virtual CmpCertificate Certificate
|
||||
{
|
||||
[Token(Token = "0x600CAA8")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certificate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700201C RID: 8220
|
||||
// (get) Token: 0x0600CAA9 RID: 51881 RVA: 0x002E6C24 File Offset: 0x002E4E24
|
||||
[Token(Token = "0x1700201C")]
|
||||
public virtual EncryptedValue EncryptedCert
|
||||
{
|
||||
[Token(Token = "0x600CAA9")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAAA RID: 51882 RVA: 0x002E6C38 File Offset: 0x002E4E38
|
||||
[Token(Token = "0x600CAAA")]
|
||||
[Address(RVA = "0x2648760", Offset = "0x2647560", VA = "0x182648760", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAAA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_23:
|
||||
stloc:DerTaggedObject(var_4_2C, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldc.i4:bool(1), ldloc:int32(var_6), ldloc:CmpCertificate[exp:Asn1Encodable](var_0_06)))
|
||||
stloc:int32(var_6, ldc.i4:int32(0))
|
||||
}
|
||||
|
||||
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: 0x040080F7 RID: 33015
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080F7")]
|
||||
private readonly CmpCertificate certificate;
|
||||
|
||||
// Token: 0x040080F8 RID: 33016
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080F8")]
|
||||
private readonly EncryptedValue encryptedCert;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F4B RID: 8011
|
||||
[Token(Token = "0x2001F4B")]
|
||||
public class CertRepMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAAB RID: 51883 RVA: 0x002E6C78 File Offset: 0x002E4E78
|
||||
[Token(Token = "0x600CAAB")]
|
||||
[Address(RVA = "0x2649130", Offset = "0x2647F30", VA = "0x182649130")]
|
||||
private CertRepMessage(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
num = 0;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)1L)
|
||||
{
|
||||
goto IL_30;
|
||||
}
|
||||
parser = seq.Parser;
|
||||
}
|
||||
while (parser != 0 && parser == 0);
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(num, true);
|
||||
this.caPubs = instance;
|
||||
IL_30:
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.response = asn1Sequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAAC RID: 51884 RVA: 0x002E6CCC File Offset: 0x002E4ECC
|
||||
[Token(Token = "0x600CAAC")]
|
||||
[Address(RVA = "0x2648B70", Offset = "0x2647970", VA = "0x182648B70")]
|
||||
public static CertRepMessage GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAAC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3F:
|
||||
stloc:string(var_11_45, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_5D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_45)), 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.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: 0x0600CAAD RID: 51885 RVA: 0x002E6D38 File Offset: 0x002E4F38
|
||||
[Token(Token = "0x600CAAD")]
|
||||
[Address(RVA = "0x2649250", Offset = "0x2648050", VA = "0x182649250")]
|
||||
public CertRepMessage(CmpCertificate[] caPubs, CertResponse[] response)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAAD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate[],BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2B:
|
||||
stloc:ArgumentNullException(var_2_35, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("response")))
|
||||
}
|
||||
|
||||
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.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: 0x0600CAAE RID: 51886 RVA: 0x002E6D7C File Offset: 0x002E4F7C
|
||||
[Token(Token = "0x600CAAE")]
|
||||
[Address(RVA = "0x2648A50", Offset = "0x2647850", VA = "0x182648A50", Slot = "6")]
|
||||
public virtual CmpCertificate[] GetCAPubs()
|
||||
{
|
||||
if (this.caPubs != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.caPubs.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = cmpCertificate;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CAAF RID: 51887 RVA: 0x002E6DCC File Offset: 0x002E4FCC
|
||||
[Token(Token = "0x600CAAF")]
|
||||
[Address(RVA = "0x2648E40", Offset = "0x2647C40", VA = "0x182648E40", Slot = "7")]
|
||||
public virtual CertResponse[] GetResponse()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.response;
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertResponse[] array = new CertResponse[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.response.Parser;
|
||||
CertResponse certResponse;
|
||||
if (certResponse != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certResponse;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAB0 RID: 51888 RVA: 0x002E6E18 File Offset: 0x002E5018
|
||||
[Token(Token = "0x600CAB0")]
|
||||
[Address(RVA = "0x2648F50", Offset = "0x2647D50", VA = "0x182648F50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.caPubs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence = this.caPubs;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(16777216 != 0, 16777216, asn1Sequence);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence2 = this.response;
|
||||
if (asn1Sequence2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1Sequence2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080F9 RID: 33017
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080F9")]
|
||||
private readonly Asn1Sequence caPubs;
|
||||
|
||||
// Token: 0x040080FA RID: 33018
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080FA")]
|
||||
private readonly Asn1Sequence response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F4C RID: 8012
|
||||
[Token(Token = "0x2001F4C")]
|
||||
public class CertResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAB1 RID: 51889 RVA: 0x002E6E98 File Offset: 0x002E5098
|
||||
[Token(Token = "0x600CAB1")]
|
||||
[Address(RVA = "0x2649740", Offset = "0x2648540", VA = "0x182649740")]
|
||||
private CertResponse(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.certReqId = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
this.status = pkiStatusInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
CertifiedKeyPair certifiedKeyPair;
|
||||
this.certifiedKeyPair = certifiedKeyPair;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.rspInfo = asn1OctetString;
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 == 0 || parser5 != 0)
|
||||
{
|
||||
}
|
||||
CertifiedKeyPair certifiedKeyPair2;
|
||||
this.certifiedKeyPair = certifiedKeyPair2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAB2 RID: 51890 RVA: 0x002E6F14 File Offset: 0x002E5114
|
||||
[Token(Token = "0x600CAB2")]
|
||||
[Address(RVA = "0x2649330", Offset = "0x2648130", VA = "0x182649330")]
|
||||
public static CertResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAB2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_28)), 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.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: 0x0600CAB3 RID: 51891 RVA: 0x002E6F64 File Offset: 0x002E5164
|
||||
[Token(Token = "0x600CAB3")]
|
||||
[Address(RVA = "0x26498D0", Offset = "0x26486D0", VA = "0x1826498D0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAB3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_38:
|
||||
stloc:ArgumentNullException(var_2_42, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status")))
|
||||
}
|
||||
|
||||
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: 0x0600CAB4 RID: 51892 RVA: 0x002E6FB4 File Offset: 0x002E51B4
|
||||
[Token(Token = "0x600CAB4")]
|
||||
[Address(RVA = "0x26499A0", Offset = "0x26487A0", VA = "0x1826499A0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAB4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_36:
|
||||
stloc:ArgumentNullException(var_1_40, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status")))
|
||||
}
|
||||
|
||||
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: 0x1700201D RID: 8221
|
||||
// (get) Token: 0x0600CAB5 RID: 51893 RVA: 0x002E7004 File Offset: 0x002E5204
|
||||
[Token(Token = "0x1700201D")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CAB5")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700201E RID: 8222
|
||||
// (get) Token: 0x0600CAB6 RID: 51894 RVA: 0x002E7018 File Offset: 0x002E5218
|
||||
[Token(Token = "0x1700201E")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600CAB6")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700201F RID: 8223
|
||||
// (get) Token: 0x0600CAB7 RID: 51895 RVA: 0x002E702C File Offset: 0x002E522C
|
||||
[Token(Token = "0x1700201F")]
|
||||
public virtual CertifiedKeyPair CertifiedKeyPair
|
||||
{
|
||||
[Token(Token = "0x600CAB7")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.certifiedKeyPair;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAB8 RID: 51896 RVA: 0x002E7040 File Offset: 0x002E5240
|
||||
[Token(Token = "0x600CAB8")]
|
||||
[Address(RVA = "0x2649520", Offset = "0x2648320", VA = "0x182649520", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.certReqId;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
PkiStatusInfo pkiStatusInfo = this.status;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array[1] = pkiStatusInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
||||
CertifiedKeyPair certifiedKeyPair = this.certifiedKeyPair;
|
||||
if (certifiedKeyPair != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = certifiedKeyPair;
|
||||
Asn1OctetString asn1OctetString = this.rspInfo;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = asn1OctetString;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080FB RID: 33019
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080FB")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040080FC RID: 33020
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080FC")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040080FD RID: 33021
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080FD")]
|
||||
private readonly CertifiedKeyPair certifiedKeyPair;
|
||||
|
||||
// Token: 0x040080FE RID: 33022
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080FE")]
|
||||
private readonly Asn1OctetString rspInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F4D RID: 8013
|
||||
[Token(Token = "0x2001F4D")]
|
||||
public class CertStatus : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAB9 RID: 51897 RVA: 0x002E70CC File Offset: 0x002E52CC
|
||||
[Token(Token = "0x600CAB9")]
|
||||
[Address(RVA = "0x2649F60", Offset = "0x2648D60", VA = "0x182649F60")]
|
||||
private CertStatus(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.certHash = asn1OctetString;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.certReqId = derInteger;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
this.statusInfo = pkiStatusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CABA RID: 51898 RVA: 0x002E7118 File Offset: 0x002E5318
|
||||
[Token(Token = "0x600CABA")]
|
||||
[Address(RVA = "0x2649EC0", Offset = "0x2648CC0", VA = "0x182649EC0")]
|
||||
public CertStatus(byte[] certHash, BigInteger certReqId)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(certHash);
|
||||
this.certHash = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(certReqId);
|
||||
this.certReqId = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CABB RID: 51899 RVA: 0x002E7148 File Offset: 0x002E5348
|
||||
[Token(Token = "0x600CABB")]
|
||||
[Address(RVA = "0x264A020", Offset = "0x2648E20", VA = "0x18264A020")]
|
||||
public CertStatus(byte[] certHash, BigInteger certReqId, PkiStatusInfo statusInfo)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(certHash);
|
||||
this.certHash = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(certReqId);
|
||||
this.certReqId = derInteger;
|
||||
this.statusInfo = statusInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CABC RID: 51900 RVA: 0x002E7180 File Offset: 0x002E5380
|
||||
[Token(Token = "0x600CABC")]
|
||||
[Address(RVA = "0x2649A80", Offset = "0x2648880", VA = "0x182649A80")]
|
||||
public static CertStatus GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CABC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertStatus BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertStatus::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_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.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: 0x17002020 RID: 8224
|
||||
// (get) Token: 0x0600CABD RID: 51901 RVA: 0x002E71E8 File Offset: 0x002E53E8
|
||||
[Token(Token = "0x17002020")]
|
||||
public virtual Asn1OctetString CertHash
|
||||
{
|
||||
[Token(Token = "0x600CABD")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certHash;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002021 RID: 8225
|
||||
// (get) Token: 0x0600CABE RID: 51902 RVA: 0x002E71FC File Offset: 0x002E53FC
|
||||
[Token(Token = "0x17002021")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CABE")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002022 RID: 8226
|
||||
// (get) Token: 0x0600CABF RID: 51903 RVA: 0x002E7210 File Offset: 0x002E5410
|
||||
[Token(Token = "0x17002022")]
|
||||
public virtual PkiStatusInfo StatusInfo
|
||||
{
|
||||
[Token(Token = "0x600CABF")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.statusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAC0 RID: 51904 RVA: 0x002E7224 File Offset: 0x002E5424
|
||||
[Token(Token = "0x600CAC0")]
|
||||
[Address(RVA = "0x2649D00", Offset = "0x2648B00", VA = "0x182649D00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
Asn1OctetString asn1OctetString = this.certHash;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
DerInteger derInteger = this.certReqId;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
PkiStatusInfo pkiStatusInfo = this.statusInfo;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = pkiStatusInfo;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080FF RID: 33023
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080FF")]
|
||||
private readonly Asn1OctetString certHash;
|
||||
|
||||
// Token: 0x04008100 RID: 33024
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008100")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x04008101 RID: 33025
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008101")]
|
||||
private readonly PkiStatusInfo statusInfo;
|
||||
}
|
||||
}
|
||||
+232
@@ -0,0 +1,232 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F4E RID: 8014
|
||||
[Token(Token = "0x2001F4E")]
|
||||
public class CertifiedKeyPair : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAC1 RID: 51905 RVA: 0x002E729C File Offset: 0x002E549C
|
||||
[Token(Token = "0x600CAC1")]
|
||||
[Address(RVA = "0x264A5D0", Offset = "0x26493D0", VA = "0x18264A5D0")]
|
||||
private CertifiedKeyPair(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertOrEncCert certOrEncCert;
|
||||
this.certOrEncCert = certOrEncCert;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
EncryptedValue instance = EncryptedValue.GetInstance(asn1TaggedObject);
|
||||
this.privateKey = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject2;
|
||||
PkiPublicationInfo instance2 = PkiPublicationInfo.GetInstance(asn1TaggedObject2);
|
||||
this.publicationInfo = instance2;
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject3;
|
||||
Asn1Encodable obj = asn1TaggedObject3.obj;
|
||||
if (asn1TaggedObject3.tagNo != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object = obj.ToAsn1Object();
|
||||
}
|
||||
if (obj == 0)
|
||||
{
|
||||
EncryptedValue instance3 = EncryptedValue.GetInstance(0);
|
||||
this.privateKey = instance3;
|
||||
return;
|
||||
}
|
||||
int num;
|
||||
EncryptedValue instance4 = EncryptedValue.GetInstance(num);
|
||||
this.privateKey = instance4;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAC2 RID: 51906 RVA: 0x002E734C File Offset: 0x002E554C
|
||||
[Token(Token = "0x600CAC2")]
|
||||
[Address(RVA = "0x264A0D0", Offset = "0x2648ED0", VA = "0x18264A0D0")]
|
||||
public static CertifiedKeyPair GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAC2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_28)), 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.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: 0x0600CAC3 RID: 51907 RVA: 0x002E739C File Offset: 0x002E559C
|
||||
[Token(Token = "0x600CAC3")]
|
||||
[Address(RVA = "0x264A740", Offset = "0x2649540", VA = "0x18264A740")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAC3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:ArgumentNullException(var_1_2C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certOrEncCert")))
|
||||
}
|
||||
|
||||
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.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: 0x0600CAC4 RID: 51908 RVA: 0x002E73D8 File Offset: 0x002E55D8
|
||||
[Token(Token = "0x600CAC4")]
|
||||
[Address(RVA = "0x264A530", Offset = "0x2649330", VA = "0x18264A530")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert, EncryptedValue privateKey, PkiPublicationInfo publicationInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAC4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.EncryptedValue,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PkiPublicationInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:ArgumentNullException(var_0_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certOrEncCert")))
|
||||
}
|
||||
|
||||
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.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: 0x17002023 RID: 8227
|
||||
// (get) Token: 0x0600CAC5 RID: 51909 RVA: 0x002E7410 File Offset: 0x002E5610
|
||||
[Token(Token = "0x17002023")]
|
||||
public virtual CertOrEncCert CertOrEncCert
|
||||
{
|
||||
[Token(Token = "0x600CAC5")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certOrEncCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002024 RID: 8228
|
||||
// (get) Token: 0x0600CAC6 RID: 51910 RVA: 0x002E7424 File Offset: 0x002E5624
|
||||
[Token(Token = "0x17002024")]
|
||||
public virtual EncryptedValue PrivateKey
|
||||
{
|
||||
[Token(Token = "0x600CAC6")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.privateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002025 RID: 8229
|
||||
// (get) Token: 0x0600CAC7 RID: 51911 RVA: 0x002E7438 File Offset: 0x002E5638
|
||||
[Token(Token = "0x17002025")]
|
||||
public virtual PkiPublicationInfo PublicationInfo
|
||||
{
|
||||
[Token(Token = "0x600CAC7")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.publicationInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAC8 RID: 51912 RVA: 0x002E744C File Offset: 0x002E564C
|
||||
[Token(Token = "0x600CAC8")]
|
||||
[Address(RVA = "0x264A2C0", Offset = "0x26490C0", VA = "0x18264A2C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
CertOrEncCert certOrEncCert = this.certOrEncCert;
|
||||
if (certOrEncCert != 0)
|
||||
{
|
||||
}
|
||||
array[0] = certOrEncCert;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.privateKey != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
EncryptedValue encryptedValue = this.privateKey;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, encryptedValue);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.publicationInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
PkiPublicationInfo pkiPublicationInfo = this.publicationInfo;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, pkiPublicationInfo);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008102 RID: 33026
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008102")]
|
||||
private readonly CertOrEncCert certOrEncCert;
|
||||
|
||||
// Token: 0x04008103 RID: 33027
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008103")]
|
||||
private readonly EncryptedValue privateKey;
|
||||
|
||||
// Token: 0x04008104 RID: 33028
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008104")]
|
||||
private readonly PkiPublicationInfo publicationInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F4F RID: 8015
|
||||
[Token(Token = "0x2001F4F")]
|
||||
public class Challenge : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAC9 RID: 51913 RVA: 0x002E750C File Offset: 0x002E570C
|
||||
[Token(Token = "0x600CAC9")]
|
||||
[Address(RVA = "0x264AC60", Offset = "0x2649A60", VA = "0x18264AC60")]
|
||||
private Challenge(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable == (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.owf = algorithmIdentifier;
|
||||
}
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.witness = asn1OctetString;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
Asn1OctetString asn1OctetString2;
|
||||
this.challenge = asn1OctetString2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CACA RID: 51914 RVA: 0x002E7558 File Offset: 0x002E5758
|
||||
[Token(Token = "0x600CACA")]
|
||||
[Address(RVA = "0x264A7D0", Offset = "0x26495D0", VA = "0x18264A7D0")]
|
||||
public static Challenge GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CACA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.Challenge BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.Challenge::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_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.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: 0x17002026 RID: 8230
|
||||
// (get) Token: 0x0600CACB RID: 51915 RVA: 0x002E75C0 File Offset: 0x002E57C0
|
||||
[Token(Token = "0x17002026")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600CACB")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CACC RID: 51916 RVA: 0x002E75D4 File Offset: 0x002E57D4
|
||||
[Token(Token = "0x600CACC")]
|
||||
[Address(RVA = "0x264AA50", Offset = "0x2649850", VA = "0x18264AA50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.owf;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = algorithmIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
asn1EncodableVector.AddOptional(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.witness;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array2);
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString2 = this.challenge;
|
||||
if (asn1OctetString2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1OctetString2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008105 RID: 33029
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008105")]
|
||||
private readonly AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x04008106 RID: 33030
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008106")]
|
||||
private readonly Asn1OctetString witness;
|
||||
|
||||
// Token: 0x04008107 RID: 33031
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008107")]
|
||||
private readonly Asn1OctetString challenge;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F50 RID: 8016
|
||||
[Token(Token = "0x2001F50")]
|
||||
public class CmpCertificate : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CACD RID: 51917 RVA: 0x002E765C File Offset: 0x002E585C
|
||||
[Token(Token = "0x600CACD")]
|
||||
[Address(RVA = "0x445BC0", Offset = "0x4449C0", VA = "0x180445BC0")]
|
||||
public CmpCertificate(AttributeCertificate x509v2AttrCert)
|
||||
{
|
||||
this.x509v2AttrCert = x509v2AttrCert;
|
||||
}
|
||||
|
||||
// Token: 0x0600CACE RID: 51918 RVA: 0x002E7678 File Offset: 0x002E5878
|
||||
[Token(Token = "0x600CACE")]
|
||||
[Address(RVA = "0x264B0C0", Offset = "0x2649EC0", VA = "0x18264B0C0")]
|
||||
public CmpCertificate(X509CertificateStructure x509v3PKCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CACE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1D:
|
||||
stloc:ArgumentException(var_0_2C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
|
||||
}
|
||||
|
||||
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.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: 0x0600CACF RID: 51919 RVA: 0x002E76B4 File Offset: 0x002E58B4
|
||||
[Token(Token = "0x600CACF")]
|
||||
[Address(RVA = "0x264AD30", Offset = "0x2649B30", VA = "0x18264AD30")]
|
||||
public static CmpCertificate GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CACF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_79:
|
||||
stloc:ArgumentException(var_12_88, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
|
||||
}
|
||||
|
||||
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.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: 0x17002027 RID: 8231
|
||||
// (get) Token: 0x0600CAD0 RID: 51920 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17002027")]
|
||||
public virtual bool IsX509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600CAD0")]
|
||||
[Address(RVA = "0x111F720", Offset = "0x111E520", VA = "0x18111F720", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002028 RID: 8232
|
||||
// (get) Token: 0x0600CAD1 RID: 51921 RVA: 0x002E774C File Offset: 0x002E594C
|
||||
[Token(Token = "0x17002028")]
|
||||
public virtual X509CertificateStructure X509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600CAD1")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.x509v3PKCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002029 RID: 8233
|
||||
// (get) Token: 0x0600CAD2 RID: 51922 RVA: 0x002E7760 File Offset: 0x002E5960
|
||||
[Token(Token = "0x17002029")]
|
||||
public virtual AttributeCertificate X509v2AttrCert
|
||||
{
|
||||
[Token(Token = "0x600CAD2")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAD3 RID: 51923 RVA: 0x002E7774 File Offset: 0x002E5974
|
||||
[Token(Token = "0x600CAD3")]
|
||||
[Address(RVA = "0x264B020", Offset = "0x2649E20", VA = "0x18264B020", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
AttributeCertificate attributeCertificate = this.x509v2AttrCert;
|
||||
if (attributeCertificate == 0)
|
||||
{
|
||||
return this.x509v3PKCert.ToAsn1Object();
|
||||
}
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(16777216 != 0, 16777216, attributeCertificate);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008108 RID: 33032
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008108")]
|
||||
private readonly X509CertificateStructure x509v3PKCert;
|
||||
|
||||
// Token: 0x04008109 RID: 33033
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008109")]
|
||||
private readonly AttributeCertificate x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F51 RID: 8017
|
||||
[Token(Token = "0x2001F51")]
|
||||
public abstract class CmpObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CAD4 RID: 51924 RVA: 0x002E77B0 File Offset: 0x002E59B0
|
||||
[Token(Token = "0x600CAD4")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected CmpObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400810A RID: 33034
|
||||
[Token(Token = "0x400810A")]
|
||||
public static readonly DerObjectIdentifier passwordBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.13");
|
||||
|
||||
// Token: 0x0400810B RID: 33035
|
||||
[Token(Token = "0x400810B")]
|
||||
public static readonly DerObjectIdentifier dhBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.30");
|
||||
|
||||
// Token: 0x0400810C RID: 33036
|
||||
[Token(Token = "0x400810C")]
|
||||
public static readonly DerObjectIdentifier it_caProtEncCert = new DerObjectIdentifier("1.3.6.1.5.5.7.4.1");
|
||||
|
||||
// Token: 0x0400810D RID: 33037
|
||||
[Token(Token = "0x400810D")]
|
||||
public static readonly DerObjectIdentifier it_signKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.2");
|
||||
|
||||
// Token: 0x0400810E RID: 33038
|
||||
[Token(Token = "0x400810E")]
|
||||
public static readonly DerObjectIdentifier it_encKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.3");
|
||||
|
||||
// Token: 0x0400810F RID: 33039
|
||||
[Token(Token = "0x400810F")]
|
||||
public static readonly DerObjectIdentifier it_preferredSymAlg = new DerObjectIdentifier("1.3.6.1.5.5.7.4.4");
|
||||
|
||||
// Token: 0x04008110 RID: 33040
|
||||
[Token(Token = "0x4008110")]
|
||||
public static readonly DerObjectIdentifier it_caKeyUpdateInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.4.5");
|
||||
|
||||
// Token: 0x04008111 RID: 33041
|
||||
[Token(Token = "0x4008111")]
|
||||
public static readonly DerObjectIdentifier it_currentCRL = new DerObjectIdentifier("1.3.6.1.5.5.7.4.6");
|
||||
|
||||
// Token: 0x04008112 RID: 33042
|
||||
[Token(Token = "0x4008112")]
|
||||
public static readonly DerObjectIdentifier it_unsupportedOIDs = new DerObjectIdentifier("1.3.6.1.5.5.7.4.7");
|
||||
|
||||
// Token: 0x04008113 RID: 33043
|
||||
[Token(Token = "0x4008113")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamReq = new DerObjectIdentifier("1.3.6.1.5.5.7.4.10");
|
||||
|
||||
// Token: 0x04008114 RID: 33044
|
||||
[Token(Token = "0x4008114")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamRep = new DerObjectIdentifier("1.3.6.1.5.5.7.4.11");
|
||||
|
||||
// Token: 0x04008115 RID: 33045
|
||||
[Token(Token = "0x4008115")]
|
||||
public static readonly DerObjectIdentifier it_revPassphrase = new DerObjectIdentifier("1.3.6.1.5.5.7.4.12");
|
||||
|
||||
// Token: 0x04008116 RID: 33046
|
||||
[Token(Token = "0x4008116")]
|
||||
public static readonly DerObjectIdentifier it_implicitConfirm = new DerObjectIdentifier("1.3.6.1.5.5.7.4.13");
|
||||
|
||||
// Token: 0x04008117 RID: 33047
|
||||
[Token(Token = "0x4008117")]
|
||||
public static readonly DerObjectIdentifier it_confirmWaitTime = new DerObjectIdentifier("1.3.6.1.5.5.7.4.14");
|
||||
|
||||
// Token: 0x04008118 RID: 33048
|
||||
[Token(Token = "0x4008118")]
|
||||
public static readonly DerObjectIdentifier it_origPKIMessage = new DerObjectIdentifier("1.3.6.1.5.5.7.4.15");
|
||||
|
||||
// Token: 0x04008119 RID: 33049
|
||||
[Token(Token = "0x4008119")]
|
||||
public static readonly DerObjectIdentifier it_suppLangTags = new DerObjectIdentifier("1.3.6.1.5.5.7.4.16");
|
||||
|
||||
// Token: 0x0400811A RID: 33050
|
||||
[Token(Token = "0x400811A")]
|
||||
public static readonly DerObjectIdentifier regCtrl_regToken = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.1");
|
||||
|
||||
// Token: 0x0400811B RID: 33051
|
||||
[Token(Token = "0x400811B")]
|
||||
public static readonly DerObjectIdentifier regCtrl_authenticator = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.2");
|
||||
|
||||
// Token: 0x0400811C RID: 33052
|
||||
[Token(Token = "0x400811C")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiPublicationInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.3");
|
||||
|
||||
// Token: 0x0400811D RID: 33053
|
||||
[Token(Token = "0x400811D")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiArchiveOptions = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.4");
|
||||
|
||||
// Token: 0x0400811E RID: 33054
|
||||
[Token(Token = "0x400811E")]
|
||||
public static readonly DerObjectIdentifier regCtrl_oldCertID = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.5");
|
||||
|
||||
// Token: 0x0400811F RID: 33055
|
||||
[Token(Token = "0x400811F")]
|
||||
public static readonly DerObjectIdentifier regCtrl_protocolEncrKey = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.6");
|
||||
|
||||
// Token: 0x04008120 RID: 33056
|
||||
[Token(Token = "0x4008120")]
|
||||
public static readonly DerObjectIdentifier regCtrl_altCertTemplate = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.7");
|
||||
|
||||
// Token: 0x04008121 RID: 33057
|
||||
[Token(Token = "0x4008121")]
|
||||
public static readonly DerObjectIdentifier regInfo_utf8Pairs = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.1");
|
||||
|
||||
// Token: 0x04008122 RID: 33058
|
||||
[Token(Token = "0x4008122")]
|
||||
public static readonly DerObjectIdentifier regInfo_certReq = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.2");
|
||||
|
||||
// Token: 0x04008123 RID: 33059
|
||||
[Token(Token = "0x4008123")]
|
||||
public static readonly DerObjectIdentifier ct_encKeyWithID = new DerObjectIdentifier("1.2.840.113549.1.9.16.1.21");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F52 RID: 8018
|
||||
[Token(Token = "0x2001F52")]
|
||||
public class CrlAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAD6 RID: 51926 RVA: 0x002E7958 File Offset: 0x002E5B58
|
||||
[Token(Token = "0x600CAD6")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
private CrlAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAD7 RID: 51927 RVA: 0x002E7974 File Offset: 0x002E5B74
|
||||
[Token(Token = "0x600CAD7")]
|
||||
[Address(RVA = "0x264B6E0", Offset = "0x264A4E0", VA = "0x18264B6E0")]
|
||||
public static CrlAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAD7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CAD8 RID: 51928 RVA: 0x002E79CC File Offset: 0x002E5BCC
|
||||
[Token(Token = "0x600CAD8")]
|
||||
[Address(RVA = "0x264B8D0", Offset = "0x264A6D0", VA = "0x18264B8D0", Slot = "6")]
|
||||
public virtual CertificateList[] ToCertificateListArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertificateList[] array = new CertificateList[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
CertificateList certificateList;
|
||||
if (certificateList != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certificateList;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAD9 RID: 51929 RVA: 0x002E7A18 File Offset: 0x002E5C18
|
||||
[Token(Token = "0x600CAD9")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAD9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CrlAnnContent::content, ldloc:CrlAnnContent(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: 0x04008124 RID: 33060
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008124")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F53 RID: 8019
|
||||
[Token(Token = "0x2001F53")]
|
||||
public class ErrorMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CADA RID: 51930 RVA: 0x002E7A2C File Offset: 0x002E5C2C
|
||||
[Token(Token = "0x600CADA")]
|
||||
[Address(RVA = "0x264D060", Offset = "0x264BE60", VA = "0x18264D060")]
|
||||
private ErrorMsgContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
this.pkiStatusInfo = pkiStatusInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)1 < asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
DerInteger derInteger;
|
||||
this.errorCode = derInteger;
|
||||
}
|
||||
PkiFreeText pkiFreeText;
|
||||
this.errorDetails = pkiFreeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CADB RID: 51931 RVA: 0x002E7A7C File Offset: 0x002E5C7C
|
||||
[Token(Token = "0x600CADB")]
|
||||
[Address(RVA = "0x264CBA0", Offset = "0x264B9A0", VA = "0x18264CBA0")]
|
||||
public static ErrorMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CADB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_44:
|
||||
stloc:string(var_11_4A, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_62, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_4A)), 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.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: 0x0600CADC RID: 51932 RVA: 0x002E7AEC File Offset: 0x002E5CEC
|
||||
[Token(Token = "0x600CADC")]
|
||||
[Address(RVA = "0x264D190", Offset = "0x264BF90", VA = "0x18264D190")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CADC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:ArgumentNullException(var_1_2C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("pkiStatusInfo")))
|
||||
}
|
||||
|
||||
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.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: 0x0600CADD RID: 51933 RVA: 0x002E7B28 File Offset: 0x002E5D28
|
||||
[Token(Token = "0x600CADD")]
|
||||
[Address(RVA = "0x264D220", Offset = "0x264C020", VA = "0x18264D220")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo, DerInteger errorCode, PkiFreeText errorDetails)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CADD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:ArgumentNullException(var_0_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("pkiStatusInfo")))
|
||||
}
|
||||
|
||||
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.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: 0x1700202A RID: 8234
|
||||
// (get) Token: 0x0600CADE RID: 51934 RVA: 0x002E7B60 File Offset: 0x002E5D60
|
||||
[Token(Token = "0x1700202A")]
|
||||
public virtual PkiStatusInfo PkiStatusInfo
|
||||
{
|
||||
[Token(Token = "0x600CADE")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pkiStatusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700202B RID: 8235
|
||||
// (get) Token: 0x0600CADF RID: 51935 RVA: 0x002E7B74 File Offset: 0x002E5D74
|
||||
[Token(Token = "0x1700202B")]
|
||||
public virtual DerInteger ErrorCode
|
||||
{
|
||||
[Token(Token = "0x600CADF")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.errorCode;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700202C RID: 8236
|
||||
// (get) Token: 0x0600CAE0 RID: 51936 RVA: 0x002E7B88 File Offset: 0x002E5D88
|
||||
[Token(Token = "0x1700202C")]
|
||||
public virtual PkiFreeText ErrorDetails
|
||||
{
|
||||
[Token(Token = "0x600CAE0")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.errorDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAE1 RID: 51937 RVA: 0x002E7B9C File Offset: 0x002E5D9C
|
||||
[Token(Token = "0x600CAE1")]
|
||||
[Address(RVA = "0x264CE90", Offset = "0x264BC90", VA = "0x18264CE90", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
PkiStatusInfo pkiStatusInfo = this.pkiStatusInfo;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiStatusInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.errorCode;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derInteger;
|
||||
PkiFreeText pkiFreeText = this.errorDetails;
|
||||
if (pkiFreeText != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = pkiFreeText;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008125 RID: 33061
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008125")]
|
||||
private readonly PkiStatusInfo pkiStatusInfo;
|
||||
|
||||
// Token: 0x04008126 RID: 33062
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008126")]
|
||||
private readonly DerInteger errorCode;
|
||||
|
||||
// Token: 0x04008127 RID: 33063
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008127")]
|
||||
private readonly PkiFreeText errorDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F54 RID: 8020
|
||||
[Token(Token = "0x2001F54")]
|
||||
public class GenMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAE2 RID: 51938 RVA: 0x002E7C14 File Offset: 0x002E5E14
|
||||
[Token(Token = "0x600CAE2")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
private GenMsgContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAE3 RID: 51939 RVA: 0x002E7C30 File Offset: 0x002E5E30
|
||||
[Token(Token = "0x600CAE3")]
|
||||
[Address(RVA = "0x264D4C0", Offset = "0x264C2C0", VA = "0x18264D4C0")]
|
||||
public static GenMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAE3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CAE4 RID: 51940 RVA: 0x002E7C88 File Offset: 0x002E5E88
|
||||
[Token(Token = "0x600CAE4")]
|
||||
[Address(RVA = "0x264D7C0", Offset = "0x264C5C0", VA = "0x18264D7C0")]
|
||||
public GenMsgContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAE5 RID: 51941 RVA: 0x002E7CAC File Offset: 0x002E5EAC
|
||||
[Token(Token = "0x600CAE5")]
|
||||
[Address(RVA = "0x264D6B0", Offset = "0x264C4B0", VA = "0x18264D6B0", Slot = "6")]
|
||||
public virtual InfoTypeAndValue[] ToInfoTypeAndValueArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
InfoTypeAndValue infoTypeAndValue;
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = infoTypeAndValue;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAE6 RID: 51942 RVA: 0x002E7CF8 File Offset: 0x002E5EF8
|
||||
[Token(Token = "0x600CAE6")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAE6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(GenMsgContent::content, ldloc:GenMsgContent(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: 0x04008128 RID: 33064
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008128")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F55 RID: 8021
|
||||
[Token(Token = "0x2001F55")]
|
||||
public class GenRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAE7 RID: 51943 RVA: 0x002E7D0C File Offset: 0x002E5F0C
|
||||
[Token(Token = "0x600CAE7")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
private GenRepContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAE8 RID: 51944 RVA: 0x002E7D28 File Offset: 0x002E5F28
|
||||
[Token(Token = "0x600CAE8")]
|
||||
[Address(RVA = "0x264D830", Offset = "0x264C630", VA = "0x18264D830")]
|
||||
public static GenRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAE8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CAE9 RID: 51945 RVA: 0x002E7D80 File Offset: 0x002E5F80
|
||||
[Token(Token = "0x600CAE9")]
|
||||
[Address(RVA = "0x264DB30", Offset = "0x264C930", VA = "0x18264DB30")]
|
||||
public GenRepContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAEA RID: 51946 RVA: 0x002E7DA4 File Offset: 0x002E5FA4
|
||||
[Token(Token = "0x600CAEA")]
|
||||
[Address(RVA = "0x264DA20", Offset = "0x264C820", VA = "0x18264DA20", Slot = "6")]
|
||||
public virtual InfoTypeAndValue[] ToInfoTypeAndValueArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
InfoTypeAndValue infoTypeAndValue;
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = infoTypeAndValue;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAEB RID: 51947 RVA: 0x002E7DF0 File Offset: 0x002E5FF0
|
||||
[Token(Token = "0x600CAEB")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAEB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(GenRepContent::content, ldloc:GenRepContent(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: 0x04008129 RID: 33065
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008129")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F56 RID: 8022
|
||||
[Token(Token = "0x2001F56")]
|
||||
public class InfoTypeAndValue : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAEC RID: 51948 RVA: 0x002E7E04 File Offset: 0x002E6004
|
||||
[Token(Token = "0x600CAEC")]
|
||||
[Address(RVA = "0x264F300", Offset = "0x264E100", VA = "0x18264F300")]
|
||||
private InfoTypeAndValue(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.infoType = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.infoValue = parser2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAED RID: 51949 RVA: 0x002E7E40 File Offset: 0x002E6040
|
||||
[Token(Token = "0x600CAED")]
|
||||
[Address(RVA = "0x264EF10", Offset = "0x264DD10", VA = "0x18264EF10")]
|
||||
public static InfoTypeAndValue GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAED)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_23:
|
||||
stloc:string(var_6_29, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_41, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_29)), 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.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: 0x0600CAEE RID: 51950 RVA: 0x002E7E90 File Offset: 0x002E6090
|
||||
[Token(Token = "0x600CAEE")]
|
||||
[Address(RVA = "0x1B151E0", Offset = "0x1B13FE0", VA = "0x181B151E0")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAEF RID: 51951 RVA: 0x002E7EB4 File Offset: 0x002E60B4
|
||||
[Token(Token = "0x600CAEF")]
|
||||
[Address(RVA = "0x4089A0", Offset = "0x4077A0", VA = "0x1804089A0")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType, Asn1Encodable optionalValue)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = optionalValue;
|
||||
}
|
||||
|
||||
// Token: 0x1700202D RID: 8237
|
||||
// (get) Token: 0x0600CAF0 RID: 51952 RVA: 0x002E7ED8 File Offset: 0x002E60D8
|
||||
[Token(Token = "0x1700202D")]
|
||||
public virtual DerObjectIdentifier InfoType
|
||||
{
|
||||
[Token(Token = "0x600CAF0")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.infoType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700202E RID: 8238
|
||||
// (get) Token: 0x0600CAF1 RID: 51953 RVA: 0x002E7EEC File Offset: 0x002E60EC
|
||||
[Token(Token = "0x1700202E")]
|
||||
public virtual Asn1Encodable InfoValue
|
||||
{
|
||||
[Token(Token = "0x600CAF1")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.infoValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAF2 RID: 51954 RVA: 0x002E7F00 File Offset: 0x002E6100
|
||||
[Token(Token = "0x600CAF2")]
|
||||
[Address(RVA = "0x264F190", Offset = "0x264DF90", VA = "0x18264F190", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.infoType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.infoValue != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Encodable asn1Encodable = this.infoValue;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1Encodable;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400812A RID: 33066
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400812A")]
|
||||
private readonly DerObjectIdentifier infoType;
|
||||
|
||||
// Token: 0x0400812B RID: 33067
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400812B")]
|
||||
private readonly Asn1Encodable infoValue;
|
||||
}
|
||||
}
|
||||
+228
@@ -0,0 +1,228 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F57 RID: 8023
|
||||
[Token(Token = "0x2001F57")]
|
||||
public class KeyRecRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAF3 RID: 51955 RVA: 0x002E7F6C File Offset: 0x002E616C
|
||||
[Token(Token = "0x600CAF3")]
|
||||
[Address(RVA = "0x2651780", Offset = "0x2650580", VA = "0x182651780")]
|
||||
private KeyRecRepContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
this.status = pkiStatusInfo;
|
||||
uint num;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num < asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
int tagNo = asn1TaggedObject.tagNo;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 1)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
Asn1Encodable obj = asn1TaggedObject.obj;
|
||||
if (obj == 0)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(0);
|
||||
this.keyPairHist = instance;
|
||||
num += (uint)1;
|
||||
}
|
||||
Asn1Sequence instance2 = Asn1Sequence.GetInstance(obj.ToAsn1Object());
|
||||
this.keyPairHist = instance2;
|
||||
num += (uint)1;
|
||||
}
|
||||
if (asn1TaggedObject.obj == 0)
|
||||
{
|
||||
Asn1Sequence instance3 = Asn1Sequence.GetInstance(0);
|
||||
this.caCerts = instance3;
|
||||
num += (uint)1;
|
||||
}
|
||||
int num2;
|
||||
Asn1Sequence instance4 = Asn1Sequence.GetInstance(num2);
|
||||
this.caCerts = instance4;
|
||||
num += (uint)1;
|
||||
}
|
||||
Asn1Encodable obj2 = asn1TaggedObject.obj;
|
||||
if (obj2 == 0)
|
||||
{
|
||||
}
|
||||
CmpCertificate instance5 = CmpCertificate.GetInstance(obj2.ToAsn1Object());
|
||||
this.newSigCert = instance5;
|
||||
num += (uint)1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAF4 RID: 51956 RVA: 0x002E8080 File Offset: 0x002E6280
|
||||
[Token(Token = "0x600CAF4")]
|
||||
[Address(RVA = "0x2651330", Offset = "0x2650130", VA = "0x182651330")]
|
||||
public static KeyRecRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAF4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.KeyRecRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.KeyRecRepContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_28)), 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.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: 0x1700202F RID: 8239
|
||||
// (get) Token: 0x0600CAF5 RID: 51957 RVA: 0x002E80D0 File Offset: 0x002E62D0
|
||||
[Token(Token = "0x1700202F")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600CAF5")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002030 RID: 8240
|
||||
// (get) Token: 0x0600CAF6 RID: 51958 RVA: 0x002E80E4 File Offset: 0x002E62E4
|
||||
[Token(Token = "0x17002030")]
|
||||
public virtual CmpCertificate NewSigCert
|
||||
{
|
||||
[Token(Token = "0x600CAF6")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newSigCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAF7 RID: 51959 RVA: 0x002E80F8 File Offset: 0x002E62F8
|
||||
[Token(Token = "0x600CAF7")]
|
||||
[Address(RVA = "0x2651210", Offset = "0x2650010", VA = "0x182651210", Slot = "8")]
|
||||
public virtual CmpCertificate[] GetCACerts()
|
||||
{
|
||||
if (this.caCerts != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.caCerts.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = cmpCertificate;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CAF8 RID: 51960 RVA: 0x002E8148 File Offset: 0x002E6348
|
||||
[Token(Token = "0x600CAF8")]
|
||||
[Address(RVA = "0x2651520", Offset = "0x2650320", VA = "0x182651520", Slot = "9")]
|
||||
public virtual CertifiedKeyPair[] GetKeyPairHist()
|
||||
{
|
||||
if (this.keyPairHist != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertifiedKeyPair[] array = new CertifiedKeyPair[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.keyPairHist.Parser;
|
||||
CertifiedKeyPair certifiedKeyPair;
|
||||
if (certifiedKeyPair != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certifiedKeyPair;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CAF9 RID: 51961 RVA: 0x002E8198 File Offset: 0x002E6398
|
||||
[Token(Token = "0x600CAF9")]
|
||||
[Address(RVA = "0x2651640", Offset = "0x2650440", VA = "0x182651640", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
PkiStatusInfo pkiStatusInfo = this.status;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiStatusInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
CmpCertificate cmpCertificate = this.newSigCert;
|
||||
int num = 0;
|
||||
this.AddOptional(asn1EncodableVector, num, cmpCertificate);
|
||||
Asn1Sequence asn1Sequence = this.caCerts;
|
||||
this.AddOptional(asn1EncodableVector, 1, asn1Sequence);
|
||||
Asn1Sequence asn1Sequence2 = this.keyPairHist;
|
||||
this.AddOptional(asn1EncodableVector, 2, asn1Sequence2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CAFA RID: 51962 RVA: 0x002E8210 File Offset: 0x002E6410
|
||||
[Token(Token = "0x600CAFA")]
|
||||
[Address(RVA = "0x2651110", Offset = "0x264FF10", VA = "0x182651110")]
|
||||
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400812C RID: 33068
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400812C")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x0400812D RID: 33069
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400812D")]
|
||||
private readonly CmpCertificate newSigCert;
|
||||
|
||||
// Token: 0x0400812E RID: 33070
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400812E")]
|
||||
private readonly Asn1Sequence caCerts;
|
||||
|
||||
// Token: 0x0400812F RID: 33071
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400812F")]
|
||||
private readonly Asn1Sequence keyPairHist;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F58 RID: 8024
|
||||
[Token(Token = "0x2001F58")]
|
||||
public class OobCertHash : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAFB RID: 51963 RVA: 0x002E824C File Offset: 0x002E644C
|
||||
[Token(Token = "0x600CAFB")]
|
||||
[Address(RVA = "0x2652350", Offset = "0x2651150", VA = "0x182652350")]
|
||||
private OobCertHash(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.hashVal = derBitString;
|
||||
parser2 = seq.Parser;
|
||||
}
|
||||
while (parser2 == 0);
|
||||
CertId certId;
|
||||
this.certId = certId;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.hashAlg = algorithmIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600CAFC RID: 51964 RVA: 0x002E8298 File Offset: 0x002E6498
|
||||
[Token(Token = "0x600CAFC")]
|
||||
[Address(RVA = "0x2651EE0", Offset = "0x2650CE0", VA = "0x182651EE0")]
|
||||
public static OobCertHash GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CAFC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.OobCertHash BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.OobCertHash::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_42:
|
||||
stloc:string(var_11_48, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_48)), 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.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: 0x17002031 RID: 8241
|
||||
// (get) Token: 0x0600CAFD RID: 51965 RVA: 0x002E8308 File Offset: 0x002E6508
|
||||
[Token(Token = "0x17002031")]
|
||||
public virtual AlgorithmIdentifier HashAlg
|
||||
{
|
||||
[Token(Token = "0x600CAFD")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.hashAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002032 RID: 8242
|
||||
// (get) Token: 0x0600CAFE RID: 51966 RVA: 0x002E831C File Offset: 0x002E651C
|
||||
[Token(Token = "0x17002032")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600CAFE")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAFF RID: 51967 RVA: 0x002E8330 File Offset: 0x002E6530
|
||||
[Token(Token = "0x600CAFF")]
|
||||
[Address(RVA = "0x2652210", Offset = "0x2651010", VA = "0x182652210", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier = this.hashAlg;
|
||||
int num = 0;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
this.AddOptional(asn1EncodableVector, num, algorithmIdentifier);
|
||||
CertId certId = this.certId;
|
||||
this.AddOptional(asn1EncodableVector, 1, certId);
|
||||
Asn1Encodable[] array = new Asn1Encodable[0];
|
||||
DerBitString derBitString = this.hashVal;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derBitString;
|
||||
asn1EncodableVector.Add(array);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB00 RID: 51968 RVA: 0x002E8398 File Offset: 0x002E6598
|
||||
[Token(Token = "0x600CB00")]
|
||||
[Address(RVA = "0x2651DE0", Offset = "0x2650BE0", VA = "0x182651DE0")]
|
||||
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04008130 RID: 33072
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008130")]
|
||||
private readonly AlgorithmIdentifier hashAlg;
|
||||
|
||||
// Token: 0x04008131 RID: 33073
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008131")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x04008132 RID: 33074
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008132")]
|
||||
private readonly DerBitString hashVal;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F64 RID: 8036
|
||||
[Token(Token = "0x2001F64")]
|
||||
public class PbmParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB60 RID: 52064 RVA: 0x002E9770 File Offset: 0x002E7970
|
||||
[Token(Token = "0x600CB60")]
|
||||
[Address(RVA = "0x26528F0", Offset = "0x26516F0", VA = "0x1826528F0")]
|
||||
private PbmParameter(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.salt = asn1OctetString;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.owf = algorithmIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.iterationCount = derInteger;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier2;
|
||||
this.mac = algorithmIdentifier2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB61 RID: 52065 RVA: 0x002E97C8 File Offset: 0x002E79C8
|
||||
[Token(Token = "0x600CB61")]
|
||||
[Address(RVA = "0x26524B0", Offset = "0x26512B0", VA = "0x1826524B0")]
|
||||
public static PbmParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB61)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PbmParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PbmParameter::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_42:
|
||||
stloc:string(var_10_48, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_48)), 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.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: 0x0600CB62 RID: 52066 RVA: 0x002E9838 File Offset: 0x002E7A38
|
||||
[Token(Token = "0x600CB62")]
|
||||
[Address(RVA = "0x26529C0", Offset = "0x26517C0", VA = "0x1826529C0")]
|
||||
public PbmParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(salt);
|
||||
DerInteger derInteger = new DerInteger(iterationCount);
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
base.FieldGetter(num2, num, iterationCount);
|
||||
this.salt = derOctetString;
|
||||
this.iterationCount = derInteger;
|
||||
this.mac = 0;
|
||||
this.owf = owf;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB63 RID: 52067 RVA: 0x002E987C File Offset: 0x002E7A7C
|
||||
[Token(Token = "0x600CB63")]
|
||||
[Address(RVA = "0xBD6F30", Offset = "0xBD5D30", VA = "0x180BD6F30")]
|
||||
public PbmParameter(Asn1OctetString salt, AlgorithmIdentifier owf, DerInteger iterationCount, AlgorithmIdentifier mac)
|
||||
{
|
||||
this.salt = salt;
|
||||
this.iterationCount = iterationCount;
|
||||
this.mac = 0;
|
||||
this.owf = owf;
|
||||
}
|
||||
|
||||
// Token: 0x1700204A RID: 8266
|
||||
// (get) Token: 0x0600CB64 RID: 52068 RVA: 0x002E98AC File Offset: 0x002E7AAC
|
||||
[Token(Token = "0x1700204A")]
|
||||
public virtual Asn1OctetString Salt
|
||||
{
|
||||
[Token(Token = "0x600CB64")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.salt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204B RID: 8267
|
||||
// (get) Token: 0x0600CB65 RID: 52069 RVA: 0x002E98C0 File Offset: 0x002E7AC0
|
||||
[Token(Token = "0x1700204B")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600CB65")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204C RID: 8268
|
||||
// (get) Token: 0x0600CB66 RID: 52070 RVA: 0x002E98D4 File Offset: 0x002E7AD4
|
||||
[Token(Token = "0x1700204C")]
|
||||
public virtual DerInteger IterationCount
|
||||
{
|
||||
[Token(Token = "0x600CB66")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.iterationCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204D RID: 8269
|
||||
// (get) Token: 0x0600CB67 RID: 52071 RVA: 0x002E98E8 File Offset: 0x002E7AE8
|
||||
[Token(Token = "0x1700204D")]
|
||||
public virtual AlgorithmIdentifier Mac
|
||||
{
|
||||
[Token(Token = "0x600CB67")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB68 RID: 52072 RVA: 0x002E98FC File Offset: 0x002E7AFC
|
||||
[Token(Token = "0x600CB68")]
|
||||
[Address(RVA = "0x2652730", Offset = "0x2651530", VA = "0x182652730", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[4];
|
||||
Asn1OctetString asn1OctetString = this.salt;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.owf;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
DerInteger derInteger = this.iterationCount;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derInteger;
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.mac;
|
||||
if (algorithmIdentifier2 != 0)
|
||||
{
|
||||
}
|
||||
array[3] = algorithmIdentifier2;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400819F RID: 33183
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400819F")]
|
||||
private Asn1OctetString salt;
|
||||
|
||||
// Token: 0x040081A0 RID: 33184
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081A0")]
|
||||
private AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x040081A1 RID: 33185
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40081A1")]
|
||||
private DerInteger iterationCount;
|
||||
|
||||
// Token: 0x040081A2 RID: 33186
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40081A2")]
|
||||
private AlgorithmIdentifier mac;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F59 RID: 8025
|
||||
[Token(Token = "0x2001F59")]
|
||||
public class PkiBody : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CB01 RID: 51969 RVA: 0x002E83D4 File Offset: 0x002E65D4
|
||||
[Token(Token = "0x600CB01")]
|
||||
[Address(RVA = "0x2652D30", Offset = "0x2651B30", VA = "0x182652D30")]
|
||||
public static PkiBody GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB01)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3D:
|
||||
stloc:string(var_8_43, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_5B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_43)), 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.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: 0x0600CB02 RID: 51970 RVA: 0x002E8440 File Offset: 0x002E6640
|
||||
[Token(Token = "0x600CB02")]
|
||||
[Address(RVA = "0x2652FD0", Offset = "0x2651DD0", VA = "0x182652FD0")]
|
||||
private PkiBody(Asn1TaggedObject tagged)
|
||||
{
|
||||
int num = tagged.tagNo;
|
||||
this.tagNo = num;
|
||||
Asn1Encodable obj = tagged.obj;
|
||||
if (obj == 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object = obj.ToAsn1Object();
|
||||
Asn1Encodable bodyForType = PkiBody.GetBodyForType(num, asn1Object);
|
||||
this.body = bodyForType;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB03 RID: 51971 RVA: 0x002E8488 File Offset: 0x002E6688
|
||||
[Token(Token = "0x600CB03")]
|
||||
[Address(RVA = "0x2653040", Offset = "0x2651E40", VA = "0x182653040")]
|
||||
public PkiBody(int type, Asn1Encodable content)
|
||||
{
|
||||
this.tagNo = type;
|
||||
Asn1Encodable bodyForType = PkiBody.GetBodyForType(type, content);
|
||||
this.body = bodyForType;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB04 RID: 51972 RVA: 0x002E84B4 File Offset: 0x002E66B4
|
||||
[Token(Token = "0x600CB04")]
|
||||
[Address(RVA = "0x2652A80", Offset = "0x2651880", VA = "0x182652A80")]
|
||||
private static Asn1Encodable GetBodyForType(int type, Asn1Encodable o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB04)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::GetBodyForType(System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0C:
|
||||
stloc:ArgumentException(var_20_21, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("unknown tag number: "), ldloc:int32[exp:object](type)), ldstr:string("type")))
|
||||
}
|
||||
|
||||
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: 0x17002033 RID: 8243
|
||||
// (get) Token: 0x0600CB05 RID: 51973 RVA: 0x002E84E4 File Offset: 0x002E66E4
|
||||
[Token(Token = "0x17002033")]
|
||||
public virtual int Type
|
||||
{
|
||||
[Token(Token = "0x600CB05")]
|
||||
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002034 RID: 8244
|
||||
// (get) Token: 0x0600CB06 RID: 51974 RVA: 0x002E84F8 File Offset: 0x002E66F8
|
||||
[Token(Token = "0x17002034")]
|
||||
public virtual Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600CB06")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB07 RID: 51975 RVA: 0x002E850C File Offset: 0x002E670C
|
||||
[Token(Token = "0x600CB07")]
|
||||
[Address(RVA = "0x2652F60", Offset = "0x2651D60", VA = "0x182652F60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB07)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:int32(var_0_06, ldfld:int32(PkiBody::tagNo, ldloc:PkiBody(this)))
|
||||
stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(PkiBody::body, ldloc:PkiBody(this)))
|
||||
stloc:DerTaggedObject(var_2_16, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldc.i4:bool(1), ldloc:int32(var_0_06), ldloc:Asn1Encodable(var_1_0D)))
|
||||
}
|
||||
|
||||
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: 0x04008133 RID: 33075
|
||||
[Token(Token = "0x4008133")]
|
||||
public const int TYPE_INIT_REQ = 0;
|
||||
|
||||
// Token: 0x04008134 RID: 33076
|
||||
[Token(Token = "0x4008134")]
|
||||
public const int TYPE_INIT_REP = 1;
|
||||
|
||||
// Token: 0x04008135 RID: 33077
|
||||
[Token(Token = "0x4008135")]
|
||||
public const int TYPE_CERT_REQ = 2;
|
||||
|
||||
// Token: 0x04008136 RID: 33078
|
||||
[Token(Token = "0x4008136")]
|
||||
public const int TYPE_CERT_REP = 3;
|
||||
|
||||
// Token: 0x04008137 RID: 33079
|
||||
[Token(Token = "0x4008137")]
|
||||
public const int TYPE_P10_CERT_REQ = 4;
|
||||
|
||||
// Token: 0x04008138 RID: 33080
|
||||
[Token(Token = "0x4008138")]
|
||||
public const int TYPE_POPO_CHALL = 5;
|
||||
|
||||
// Token: 0x04008139 RID: 33081
|
||||
[Token(Token = "0x4008139")]
|
||||
public const int TYPE_POPO_REP = 6;
|
||||
|
||||
// Token: 0x0400813A RID: 33082
|
||||
[Token(Token = "0x400813A")]
|
||||
public const int TYPE_KEY_UPDATE_REQ = 7;
|
||||
|
||||
// Token: 0x0400813B RID: 33083
|
||||
[Token(Token = "0x400813B")]
|
||||
public const int TYPE_KEY_UPDATE_REP = 8;
|
||||
|
||||
// Token: 0x0400813C RID: 33084
|
||||
[Token(Token = "0x400813C")]
|
||||
public const int TYPE_KEY_RECOVERY_REQ = 9;
|
||||
|
||||
// Token: 0x0400813D RID: 33085
|
||||
[Token(Token = "0x400813D")]
|
||||
public const int TYPE_KEY_RECOVERY_REP = 10;
|
||||
|
||||
// Token: 0x0400813E RID: 33086
|
||||
[Token(Token = "0x400813E")]
|
||||
public const int TYPE_REVOCATION_REQ = 11;
|
||||
|
||||
// Token: 0x0400813F RID: 33087
|
||||
[Token(Token = "0x400813F")]
|
||||
public const int TYPE_REVOCATION_REP = 12;
|
||||
|
||||
// Token: 0x04008140 RID: 33088
|
||||
[Token(Token = "0x4008140")]
|
||||
public const int TYPE_CROSS_CERT_REQ = 13;
|
||||
|
||||
// Token: 0x04008141 RID: 33089
|
||||
[Token(Token = "0x4008141")]
|
||||
public const int TYPE_CROSS_CERT_REP = 14;
|
||||
|
||||
// Token: 0x04008142 RID: 33090
|
||||
[Token(Token = "0x4008142")]
|
||||
public const int TYPE_CA_KEY_UPDATE_ANN = 15;
|
||||
|
||||
// Token: 0x04008143 RID: 33091
|
||||
[Token(Token = "0x4008143")]
|
||||
public const int TYPE_CERT_ANN = 16;
|
||||
|
||||
// Token: 0x04008144 RID: 33092
|
||||
[Token(Token = "0x4008144")]
|
||||
public const int TYPE_REVOCATION_ANN = 17;
|
||||
|
||||
// Token: 0x04008145 RID: 33093
|
||||
[Token(Token = "0x4008145")]
|
||||
public const int TYPE_CRL_ANN = 18;
|
||||
|
||||
// Token: 0x04008146 RID: 33094
|
||||
[Token(Token = "0x4008146")]
|
||||
public const int TYPE_CONFIRM = 19;
|
||||
|
||||
// Token: 0x04008147 RID: 33095
|
||||
[Token(Token = "0x4008147")]
|
||||
public const int TYPE_NESTED = 20;
|
||||
|
||||
// Token: 0x04008148 RID: 33096
|
||||
[Token(Token = "0x4008148")]
|
||||
public const int TYPE_GEN_MSG = 21;
|
||||
|
||||
// Token: 0x04008149 RID: 33097
|
||||
[Token(Token = "0x4008149")]
|
||||
public const int TYPE_GEN_REP = 22;
|
||||
|
||||
// Token: 0x0400814A RID: 33098
|
||||
[Token(Token = "0x400814A")]
|
||||
public const int TYPE_ERROR = 23;
|
||||
|
||||
// Token: 0x0400814B RID: 33099
|
||||
[Token(Token = "0x400814B")]
|
||||
public const int TYPE_CERT_CONFIRM = 24;
|
||||
|
||||
// Token: 0x0400814C RID: 33100
|
||||
[Token(Token = "0x400814C")]
|
||||
public const int TYPE_POLL_REQ = 25;
|
||||
|
||||
// Token: 0x0400814D RID: 33101
|
||||
[Token(Token = "0x400814D")]
|
||||
public const int TYPE_POLL_REP = 26;
|
||||
|
||||
// Token: 0x0400814E RID: 33102
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400814E")]
|
||||
private int tagNo;
|
||||
|
||||
// Token: 0x0400814F RID: 33103
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400814F")]
|
||||
private Asn1Encodable body;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F5A RID: 8026
|
||||
[Token(Token = "0x2001F5A")]
|
||||
public class PkiConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB08 RID: 51976 RVA: 0x002E8530 File Offset: 0x002E6730
|
||||
[Token(Token = "0x600CB08")]
|
||||
[Address(RVA = "0x2653090", Offset = "0x2651E90", VA = "0x182653090")]
|
||||
public static PkiConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB08)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:string(var_4_26, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_5_3E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_4_26)), 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.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: 0x0600CB09 RID: 51977 RVA: 0x002E857C File Offset: 0x002E677C
|
||||
[Token(Token = "0x600CB09")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public PkiConfirmContent()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CB0A RID: 51978 RVA: 0x002E8590 File Offset: 0x002E6790
|
||||
[Token(Token = "0x600CB0A")]
|
||||
[Address(RVA = "0x2653220", Offset = "0x2652020", VA = "0x182653220", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB0A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerNull(var_0_05, ldsfld:DerNull(DerNull::Instance))
|
||||
}
|
||||
|
||||
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
|
||||
*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F5B RID: 8027
|
||||
[Token(Token = "0x2001F5B")]
|
||||
public class PkiFailureInfo : DerBitString
|
||||
{
|
||||
// Token: 0x0600CB0B RID: 51979 RVA: 0x002E85A4 File Offset: 0x002E67A4
|
||||
[Token(Token = "0x600CB0B")]
|
||||
[Address(RVA = "0x26532F0", Offset = "0x26520F0", VA = "0x1826532F0")]
|
||||
public PkiFailureInfo(int info)
|
||||
: base(info)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CB0C RID: 51980 RVA: 0x002E85B8 File Offset: 0x002E67B8
|
||||
[Token(Token = "0x600CB0C")]
|
||||
[Address(RVA = "0x2653350", Offset = "0x2652150", VA = "0x182653350")]
|
||||
public PkiFailureInfo(DerBitString info)
|
||||
{
|
||||
byte[] octets = info.GetOctets();
|
||||
byte[] bytes = info.GetBytes();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB0D RID: 51981 RVA: 0x002E85DC File Offset: 0x002E67DC
|
||||
[Token(Token = "0x600CB0D")]
|
||||
[Address(RVA = "0x2653280", Offset = "0x2652080", VA = "0x182653280", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
int padBits = this.PadBits;
|
||||
string text;
|
||||
return "PkiFailureInfo: 0x" + text;
|
||||
}
|
||||
|
||||
// Token: 0x04008150 RID: 33104
|
||||
[Token(Token = "0x4008150")]
|
||||
public const int BadAlg = 128;
|
||||
|
||||
// Token: 0x04008151 RID: 33105
|
||||
[Token(Token = "0x4008151")]
|
||||
public const int BadMessageCheck = 64;
|
||||
|
||||
// Token: 0x04008152 RID: 33106
|
||||
[Token(Token = "0x4008152")]
|
||||
public const int BadRequest = 32;
|
||||
|
||||
// Token: 0x04008153 RID: 33107
|
||||
[Token(Token = "0x4008153")]
|
||||
public const int BadTime = 16;
|
||||
|
||||
// Token: 0x04008154 RID: 33108
|
||||
[Token(Token = "0x4008154")]
|
||||
public const int BadCertId = 8;
|
||||
|
||||
// Token: 0x04008155 RID: 33109
|
||||
[Token(Token = "0x4008155")]
|
||||
public const int BadDataFormat = 4;
|
||||
|
||||
// Token: 0x04008156 RID: 33110
|
||||
[Token(Token = "0x4008156")]
|
||||
public const int WrongAuthority = 2;
|
||||
|
||||
// Token: 0x04008157 RID: 33111
|
||||
[Token(Token = "0x4008157")]
|
||||
public const int IncorrectData = 1;
|
||||
|
||||
// Token: 0x04008158 RID: 33112
|
||||
[Token(Token = "0x4008158")]
|
||||
public const int MissingTimeStamp = 32768;
|
||||
|
||||
// Token: 0x04008159 RID: 33113
|
||||
[Token(Token = "0x4008159")]
|
||||
public const int BadPop = 16384;
|
||||
|
||||
// Token: 0x0400815A RID: 33114
|
||||
[Token(Token = "0x400815A")]
|
||||
public const int CertRevoked = 8192;
|
||||
|
||||
// Token: 0x0400815B RID: 33115
|
||||
[Token(Token = "0x400815B")]
|
||||
public const int CertConfirmed = 4096;
|
||||
|
||||
// Token: 0x0400815C RID: 33116
|
||||
[Token(Token = "0x400815C")]
|
||||
public const int WrongIntegrity = 2048;
|
||||
|
||||
// Token: 0x0400815D RID: 33117
|
||||
[Token(Token = "0x400815D")]
|
||||
public const int BadRecipientNonce = 1024;
|
||||
|
||||
// Token: 0x0400815E RID: 33118
|
||||
[Token(Token = "0x400815E")]
|
||||
public const int TimeNotAvailable = 512;
|
||||
|
||||
// Token: 0x0400815F RID: 33119
|
||||
[Token(Token = "0x400815F")]
|
||||
public const int UnacceptedPolicy = 256;
|
||||
|
||||
// Token: 0x04008160 RID: 33120
|
||||
[Token(Token = "0x4008160")]
|
||||
public const int UnacceptedExtension = 8388608;
|
||||
|
||||
// Token: 0x04008161 RID: 33121
|
||||
[Token(Token = "0x4008161")]
|
||||
public const int AddInfoNotAvailable = 4194304;
|
||||
|
||||
// Token: 0x04008162 RID: 33122
|
||||
[Token(Token = "0x4008162")]
|
||||
public const int BadSenderNonce = 2097152;
|
||||
|
||||
// Token: 0x04008163 RID: 33123
|
||||
[Token(Token = "0x4008163")]
|
||||
public const int BadCertTemplate = 1048576;
|
||||
|
||||
// Token: 0x04008164 RID: 33124
|
||||
[Token(Token = "0x4008164")]
|
||||
public const int SignerNotTrusted = 524288;
|
||||
|
||||
// Token: 0x04008165 RID: 33125
|
||||
[Token(Token = "0x4008165")]
|
||||
public const int TransactionIdInUse = 262144;
|
||||
|
||||
// Token: 0x04008166 RID: 33126
|
||||
[Token(Token = "0x4008166")]
|
||||
public const int UnsupportedVersion = 131072;
|
||||
|
||||
// Token: 0x04008167 RID: 33127
|
||||
[Token(Token = "0x4008167")]
|
||||
public const int NotAuthorized = 65536;
|
||||
|
||||
// Token: 0x04008168 RID: 33128
|
||||
[Token(Token = "0x4008168")]
|
||||
public const int SystemUnavail = -2147483648;
|
||||
|
||||
// Token: 0x04008169 RID: 33129
|
||||
[Token(Token = "0x4008169")]
|
||||
public const int SystemFailure = 1073741824;
|
||||
|
||||
// Token: 0x0400816A RID: 33130
|
||||
[Token(Token = "0x400816A")]
|
||||
public const int DuplicateCertReq = 536870912;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F5C RID: 8028
|
||||
[Token(Token = "0x2001F5C")]
|
||||
public class PkiFreeText : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB0E RID: 51982 RVA: 0x002E85FC File Offset: 0x002E67FC
|
||||
[Token(Token = "0x600CB0E")]
|
||||
[Address(RVA = "0x2653400", Offset = "0x2652200", VA = "0x182653400")]
|
||||
public static PkiFreeText GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiFreeText.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CB0F RID: 51983 RVA: 0x002E8618 File Offset: 0x002E6818
|
||||
[Token(Token = "0x600CB0F")]
|
||||
[Address(RVA = "0x2653420", Offset = "0x2652220", VA = "0x182653420")]
|
||||
public static PkiFreeText GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB0F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_28)), 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.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: 0x0600CB10 RID: 51984 RVA: 0x002E8668 File Offset: 0x002E6868
|
||||
[Token(Token = "0x600CB10")]
|
||||
[Address(RVA = "0x26536C0", Offset = "0x26524C0", VA = "0x1826536C0")]
|
||||
public PkiFreeText(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0 && (enumerator == 0 || enumerator == 0))
|
||||
{
|
||||
goto IL_33;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
this.strings = seq;
|
||||
return;
|
||||
IL_33:
|
||||
ArgumentException ex = new ArgumentException("attempt to insert non UTF8 STRING into PkiFreeText");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB11 RID: 51985 RVA: 0x002E86B8 File Offset: 0x002E68B8
|
||||
[Token(Token = "0x600CB11")]
|
||||
[Address(RVA = "0x2653870", Offset = "0x2652670", VA = "0x182653870")]
|
||||
public PkiFreeText(DerUtf8String p)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(p);
|
||||
this.strings = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x17002035 RID: 8245
|
||||
// (get) Token: 0x0600CB12 RID: 51986 RVA: 0x002E86DC File Offset: 0x002E68DC
|
||||
[Token(Token = "0x17002035")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600CB12")]
|
||||
[Address(RVA = "0x5F5E10", Offset = "0x5F4C10", VA = "0x1805F5E10")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002036 RID: 8246
|
||||
// (get) Token: 0x0600CB13 RID: 51987 RVA: 0x002E86FC File Offset: 0x002E68FC
|
||||
[Token(Token = "0x17002036")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600CB13")]
|
||||
[Address(RVA = "0x5F5E10", Offset = "0x5F4C10", VA = "0x1805F5E10")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002037 RID: 8247
|
||||
[Token(Token = "0x17002037")]
|
||||
public DerUtf8String this[int index]
|
||||
{
|
||||
[Token(Token = "0x600CB14")]
|
||||
[Address(RVA = "0x2653610", Offset = "0x2652410", VA = "0x182653610")]
|
||||
get
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB15 RID: 51989 RVA: 0x002E8744 File Offset: 0x002E6944
|
||||
[Token(Token = "0x600CB15")]
|
||||
[Address(RVA = "0x2653610", Offset = "0x2652410", VA = "0x182653610")]
|
||||
[Obsolete]
|
||||
public DerUtf8String GetStringAt(int index)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB16 RID: 51990 RVA: 0x002E876C File Offset: 0x002E696C
|
||||
[Token(Token = "0x600CB16")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB16)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PkiFreeText::strings, ldloc:PkiFreeText(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: 0x0400816B RID: 33131
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400816B")]
|
||||
internal Asn1Sequence strings;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,422 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F5D RID: 8029
|
||||
[Token(Token = "0x2001F5D")]
|
||||
public class PkiHeader : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB17 RID: 51991 RVA: 0x002E8780 File Offset: 0x002E6980
|
||||
[Token(Token = "0x600CB17")]
|
||||
[Address(RVA = "0x2ADEF90", Offset = "0x2ADDD90", VA = "0x182ADEF90")]
|
||||
private PkiHeader(Asn1Sequence seq)
|
||||
{
|
||||
uint num;
|
||||
Asn1SequenceParser parser4;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.pvno = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
GeneralName generalName;
|
||||
this.sender = generalName;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
GeneralName generalName2;
|
||||
this.recipient = generalName2;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num >= asn1Encodable)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser4 = seq.Parser;
|
||||
}
|
||||
while (parser4 == 0);
|
||||
if (parser4 > (ulong)8L)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
DerGeneralizedTime derGeneralizedTime;
|
||||
this.messageTime = derGeneralizedTime;
|
||||
num += (uint)1;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.protectionAlg = algorithmIdentifier;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.senderKID = asn1OctetString;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString2;
|
||||
this.recipKID = asn1OctetString2;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString3;
|
||||
this.transactionID = asn1OctetString3;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString4;
|
||||
this.senderNonce = asn1OctetString4;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString5;
|
||||
this.recipNonce = asn1OctetString5;
|
||||
num += (uint)1;
|
||||
PkiFreeText pkiFreeText;
|
||||
this.freeText = pkiFreeText;
|
||||
num += (uint)1;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.generalInfo = asn1Sequence;
|
||||
num += (uint)1;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB18 RID: 51992 RVA: 0x002E8888 File Offset: 0x002E6A88
|
||||
[Token(Token = "0x600CB18")]
|
||||
[Address(RVA = "0x2ADE9E0", Offset = "0x2ADD7E0", VA = "0x182ADE9E0")]
|
||||
public static PkiHeader GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB18)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeader BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeader::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_28)), 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.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: 0x0600CB19 RID: 51993 RVA: 0x002E88D8 File Offset: 0x002E6AD8
|
||||
[Token(Token = "0x600CB19")]
|
||||
[Address(RVA = "0x2ADEF00", Offset = "0x2ADDD00", VA = "0x182ADEF00")]
|
||||
public PkiHeader(int pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(pvno);
|
||||
base..ctor();
|
||||
this.pvno = derInteger;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB1A RID: 51994 RVA: 0x002E8908 File Offset: 0x002E6B08
|
||||
[Token(Token = "0x600CB1A")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
private PkiHeader(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x17002038 RID: 8248
|
||||
// (get) Token: 0x0600CB1B RID: 51995 RVA: 0x002E8930 File Offset: 0x002E6B30
|
||||
[Token(Token = "0x17002038")]
|
||||
public virtual DerInteger Pvno
|
||||
{
|
||||
[Token(Token = "0x600CB1B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pvno;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002039 RID: 8249
|
||||
// (get) Token: 0x0600CB1C RID: 51996 RVA: 0x002E8944 File Offset: 0x002E6B44
|
||||
[Token(Token = "0x17002039")]
|
||||
public virtual GeneralName Sender
|
||||
{
|
||||
[Token(Token = "0x600CB1C")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.sender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203A RID: 8250
|
||||
// (get) Token: 0x0600CB1D RID: 51997 RVA: 0x002E8958 File Offset: 0x002E6B58
|
||||
[Token(Token = "0x1700203A")]
|
||||
public virtual GeneralName Recipient
|
||||
{
|
||||
[Token(Token = "0x600CB1D")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.recipient;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203B RID: 8251
|
||||
// (get) Token: 0x0600CB1E RID: 51998 RVA: 0x002E896C File Offset: 0x002E6B6C
|
||||
[Token(Token = "0x1700203B")]
|
||||
public virtual DerGeneralizedTime MessageTime
|
||||
{
|
||||
[Token(Token = "0x600CB1E")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.messageTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203C RID: 8252
|
||||
// (get) Token: 0x0600CB1F RID: 51999 RVA: 0x002E8980 File Offset: 0x002E6B80
|
||||
[Token(Token = "0x1700203C")]
|
||||
public virtual AlgorithmIdentifier ProtectionAlg
|
||||
{
|
||||
[Token(Token = "0x600CB1F")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.protectionAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203D RID: 8253
|
||||
// (get) Token: 0x0600CB20 RID: 52000 RVA: 0x002E8994 File Offset: 0x002E6B94
|
||||
[Token(Token = "0x1700203D")]
|
||||
public virtual Asn1OctetString SenderKID
|
||||
{
|
||||
[Token(Token = "0x600CB20")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.senderKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203E RID: 8254
|
||||
// (get) Token: 0x0600CB21 RID: 52001 RVA: 0x002E89A8 File Offset: 0x002E6BA8
|
||||
[Token(Token = "0x1700203E")]
|
||||
public virtual Asn1OctetString RecipKID
|
||||
{
|
||||
[Token(Token = "0x600CB21")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return this.recipKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203F RID: 8255
|
||||
// (get) Token: 0x0600CB22 RID: 52002 RVA: 0x002E89BC File Offset: 0x002E6BBC
|
||||
[Token(Token = "0x1700203F")]
|
||||
public virtual Asn1OctetString TransactionID
|
||||
{
|
||||
[Token(Token = "0x600CB22")]
|
||||
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.transactionID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002040 RID: 8256
|
||||
// (get) Token: 0x0600CB23 RID: 52003 RVA: 0x002E89D0 File Offset: 0x002E6BD0
|
||||
[Token(Token = "0x17002040")]
|
||||
public virtual Asn1OctetString SenderNonce
|
||||
{
|
||||
[Token(Token = "0x600CB23")]
|
||||
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return this.senderNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002041 RID: 8257
|
||||
// (get) Token: 0x0600CB24 RID: 52004 RVA: 0x002E89E4 File Offset: 0x002E6BE4
|
||||
[Token(Token = "0x17002041")]
|
||||
public virtual Asn1OctetString RecipNonce
|
||||
{
|
||||
[Token(Token = "0x600CB24")]
|
||||
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40", Slot = "15")]
|
||||
get
|
||||
{
|
||||
return this.recipNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002042 RID: 8258
|
||||
// (get) Token: 0x0600CB25 RID: 52005 RVA: 0x002E89F8 File Offset: 0x002E6BF8
|
||||
[Token(Token = "0x17002042")]
|
||||
public virtual PkiFreeText FreeText
|
||||
{
|
||||
[Token(Token = "0x600CB25")]
|
||||
[Address(RVA = "0x423DE0", Offset = "0x422BE0", VA = "0x180423DE0", Slot = "16")]
|
||||
get
|
||||
{
|
||||
return this.freeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB26 RID: 52006 RVA: 0x002E8A0C File Offset: 0x002E6C0C
|
||||
[Token(Token = "0x600CB26")]
|
||||
[Address(RVA = "0x2ADE8C0", Offset = "0x2ADD6C0", VA = "0x182ADE8C0", Slot = "17")]
|
||||
public virtual InfoTypeAndValue[] GetGeneralInfo()
|
||||
{
|
||||
if (this.generalInfo != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.generalInfo.Parser;
|
||||
InfoTypeAndValue infoTypeAndValue;
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = infoTypeAndValue;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB27 RID: 52007 RVA: 0x002E8A5C File Offset: 0x002E6C5C
|
||||
[Token(Token = "0x600CB27")]
|
||||
[Address(RVA = "0x2ADEBD0", Offset = "0x2ADD9D0", VA = "0x182ADEBD0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.pvno;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
GeneralName generalName = this.sender;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
array[1] = generalName;
|
||||
GeneralName generalName2 = this.recipient;
|
||||
if (generalName2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = generalName2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerGeneralizedTime derGeneralizedTime = this.messageTime;
|
||||
int num = 0;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, num, derGeneralizedTime);
|
||||
AlgorithmIdentifier algorithmIdentifier = this.protectionAlg;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 1, algorithmIdentifier);
|
||||
Asn1OctetString asn1OctetString = this.senderKID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 2, asn1OctetString);
|
||||
Asn1OctetString asn1OctetString2 = this.recipKID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 3, asn1OctetString2);
|
||||
Asn1OctetString asn1OctetString3 = this.transactionID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 4, asn1OctetString3);
|
||||
Asn1OctetString asn1OctetString4 = this.senderNonce;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 5, asn1OctetString4);
|
||||
Asn1OctetString asn1OctetString5 = this.recipNonce;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 6, asn1OctetString5);
|
||||
PkiFreeText pkiFreeText = this.freeText;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 7, pkiFreeText);
|
||||
Asn1Sequence asn1Sequence = this.generalInfo;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 8, asn1Sequence);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB28 RID: 52008 RVA: 0x002E8B68 File Offset: 0x002E6D68
|
||||
[Token(Token = "0x600CB28")]
|
||||
[Address(RVA = "0x2ADE7C0", Offset = "0x2ADD5C0", VA = "0x182ADE7C0")]
|
||||
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400816C RID: 33132
|
||||
[Token(Token = "0x400816C")]
|
||||
public static readonly GeneralName NULL_NAME = new GeneralName(X509Name.GetInstance(new DerSequence()));
|
||||
|
||||
// Token: 0x0400816D RID: 33133
|
||||
[Token(Token = "0x400816D")]
|
||||
public static readonly int CMP_1999;
|
||||
|
||||
// Token: 0x0400816E RID: 33134
|
||||
[Token(Token = "0x400816E")]
|
||||
public static readonly int CMP_2000;
|
||||
|
||||
// Token: 0x0400816F RID: 33135
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400816F")]
|
||||
private readonly DerInteger pvno;
|
||||
|
||||
// Token: 0x04008170 RID: 33136
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008170")]
|
||||
private readonly GeneralName sender;
|
||||
|
||||
// Token: 0x04008171 RID: 33137
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008171")]
|
||||
private readonly GeneralName recipient;
|
||||
|
||||
// Token: 0x04008172 RID: 33138
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008172")]
|
||||
private readonly DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x04008173 RID: 33139
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008173")]
|
||||
private readonly AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x04008174 RID: 33140
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008174")]
|
||||
private readonly Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x04008175 RID: 33141
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008175")]
|
||||
private readonly Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x04008176 RID: 33142
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4008176")]
|
||||
private readonly Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04008177 RID: 33143
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4008177")]
|
||||
private readonly Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04008178 RID: 33144
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4008178")]
|
||||
private readonly Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04008179 RID: 33145
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4008179")]
|
||||
private readonly PkiFreeText freeText;
|
||||
|
||||
// Token: 0x0400817A RID: 33146
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400817A")]
|
||||
private readonly Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
+409
@@ -0,0 +1,409 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F5E RID: 8030
|
||||
[Token(Token = "0x2001F5E")]
|
||||
public class PkiHeaderBuilder
|
||||
{
|
||||
// Token: 0x0600CB2A RID: 52010 RVA: 0x002E8BC8 File Offset: 0x002E6DC8
|
||||
[Token(Token = "0x600CB2A")]
|
||||
[Address(RVA = "0x2ADE730", Offset = "0x2ADD530", VA = "0x182ADE730")]
|
||||
public PkiHeaderBuilder(int pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(pvno);
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
base.FieldGetter(num2, num, recipient);
|
||||
this.pvno = derInteger;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB2B RID: 52011 RVA: 0x002E8C00 File Offset: 0x002E6E00
|
||||
[Token(Token = "0x600CB2B")]
|
||||
[Address(RVA = "0x4A7B10", Offset = "0x4A6910", VA = "0x1804A7B10")]
|
||||
private PkiHeaderBuilder(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB2C RID: 52012 RVA: 0x002E8C28 File Offset: 0x002E6E28
|
||||
[Token(Token = "0x600CB2C")]
|
||||
[Address(RVA = "0x1871FD0", Offset = "0x1870DD0", VA = "0x181871FD0", Slot = "4")]
|
||||
public virtual PkiHeaderBuilder SetMessageTime(DerGeneralizedTime time)
|
||||
{
|
||||
this.messageTime = time;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB2D RID: 52013 RVA: 0x002E8C40 File Offset: 0x002E6E40
|
||||
[Token(Token = "0x600CB2D")]
|
||||
[Address(RVA = "0xBED9A0", Offset = "0xBEC7A0", VA = "0x180BED9A0", Slot = "5")]
|
||||
public virtual PkiHeaderBuilder SetProtectionAlg(AlgorithmIdentifier aid)
|
||||
{
|
||||
this.protectionAlg = aid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB2E RID: 52014 RVA: 0x002E8C58 File Offset: 0x002E6E58
|
||||
[Token(Token = "0x600CB2E")]
|
||||
[Address(RVA = "0x2ADE580", Offset = "0x2ADD380", VA = "0x182ADE580", Slot = "6")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB2F RID: 52015 RVA: 0x002E8C78 File Offset: 0x002E6E78
|
||||
[Token(Token = "0x600CB2F")]
|
||||
[Address(RVA = "0x14A6770", Offset = "0x14A5570", VA = "0x1814A6770", Slot = "7")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(Asn1OctetString kid)
|
||||
{
|
||||
this.senderKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB30 RID: 52016 RVA: 0x002E8C90 File Offset: 0x002E6E90
|
||||
[Token(Token = "0x600CB30")]
|
||||
[Address(RVA = "0x2ADE460", Offset = "0x2ADD260", VA = "0x182ADE460", Slot = "8")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB31 RID: 52017 RVA: 0x002E8CB0 File Offset: 0x002E6EB0
|
||||
[Token(Token = "0x600CB31")]
|
||||
[Address(RVA = "0x1871FE0", Offset = "0x1870DE0", VA = "0x181871FE0", Slot = "9")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(DerOctetString kid)
|
||||
{
|
||||
this.recipKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB32 RID: 52018 RVA: 0x002E8CC8 File Offset: 0x002E6EC8
|
||||
[Token(Token = "0x600CB32")]
|
||||
[Address(RVA = "0x2ADE6A0", Offset = "0x2ADD4A0", VA = "0x182ADE6A0", Slot = "10")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(byte[] tid)
|
||||
{
|
||||
if (tid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(tid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB33 RID: 52019 RVA: 0x002E8CE8 File Offset: 0x002E6EE8
|
||||
[Token(Token = "0x600CB33")]
|
||||
[Address(RVA = "0x1871FC0", Offset = "0x1870DC0", VA = "0x181871FC0", Slot = "11")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(Asn1OctetString tid)
|
||||
{
|
||||
this.transactionID = tid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB34 RID: 52020 RVA: 0x002E8D00 File Offset: 0x002E6F00
|
||||
[Token(Token = "0x600CB34")]
|
||||
[Address(RVA = "0x2ADE610", Offset = "0x2ADD410", VA = "0x182ADE610", Slot = "12")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB35 RID: 52021 RVA: 0x002E8D20 File Offset: 0x002E6F20
|
||||
[Token(Token = "0x600CB35")]
|
||||
[Address(RVA = "0x1872010", Offset = "0x1870E10", VA = "0x181872010", Slot = "13")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.senderNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB36 RID: 52022 RVA: 0x002E8D38 File Offset: 0x002E6F38
|
||||
[Token(Token = "0x600CB36")]
|
||||
[Address(RVA = "0x2ADE4F0", Offset = "0x2ADD2F0", VA = "0x182ADE4F0", Slot = "14")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB37 RID: 52023 RVA: 0x002E8D58 File Offset: 0x002E6F58
|
||||
[Token(Token = "0x600CB37")]
|
||||
[Address(RVA = "0x1871FB0", Offset = "0x1870DB0", VA = "0x181871FB0", Slot = "15")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.recipNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB38 RID: 52024 RVA: 0x002E8D70 File Offset: 0x002E6F70
|
||||
[Token(Token = "0x600CB38")]
|
||||
[Address(RVA = "0x2ADE260", Offset = "0x2ADD060", VA = "0x182ADE260", Slot = "16")]
|
||||
public virtual PkiHeaderBuilder SetFreeText(PkiFreeText text)
|
||||
{
|
||||
this.freeText = text;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB39 RID: 52025 RVA: 0x002E8D88 File Offset: 0x002E6F88
|
||||
[Token(Token = "0x600CB39")]
|
||||
[Address(RVA = "0x2ADE270", Offset = "0x2ADD070", VA = "0x182ADE270", Slot = "17")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue genInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB39)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder::SetGeneralInfo(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_06, newobj:DerSequence(DerSequence::.ctor, ldloc:InfoTypeAndValue[exp:Asn1Encodable](genInfo)))
|
||||
}
|
||||
|
||||
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: 0x0600CB3A RID: 52026 RVA: 0x002E8D9C File Offset: 0x002E6F9C
|
||||
[Token(Token = "0x600CB3A")]
|
||||
[Address(RVA = "0x2ADE2F0", Offset = "0x2ADD0F0", VA = "0x182ADE2F0", Slot = "18")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue[] genInfos)
|
||||
{
|
||||
int num = 0;
|
||||
if (genInfos != 0)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(genInfos);
|
||||
if (num < genInfos.Length)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
InfoTypeAndValue infoTypeAndValue = genInfos[num];
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
array[0] = infoTypeAndValue;
|
||||
asn1EncodableVector.Add(array);
|
||||
num++;
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB3B RID: 52027 RVA: 0x002E8DF4 File Offset: 0x002E6FF4
|
||||
[Token(Token = "0x600CB3B")]
|
||||
[Address(RVA = "0x2ADE450", Offset = "0x2ADD250", VA = "0x182ADE450", Slot = "19")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(Asn1Sequence seqOfInfoTypeAndValue)
|
||||
{
|
||||
this.generalInfo = seqOfInfoTypeAndValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB3C RID: 52028 RVA: 0x002E8E0C File Offset: 0x002E700C
|
||||
[Token(Token = "0x600CB3C")]
|
||||
[Address(RVA = "0x2ADE200", Offset = "0x2ADD000", VA = "0x182ADE200")]
|
||||
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue generalInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB3C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder::MakeGeneralInfoSeq(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_06, newobj:DerSequence(DerSequence::.ctor, ldloc:InfoTypeAndValue[exp:Asn1Encodable](generalInfo)))
|
||||
}
|
||||
|
||||
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: 0x0600CB3D RID: 52029 RVA: 0x002E8E20 File Offset: 0x002E7020
|
||||
[Token(Token = "0x600CB3D")]
|
||||
[Address(RVA = "0x2ADE0B0", Offset = "0x2ADCEB0", VA = "0x182ADE0B0")]
|
||||
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue[] generalInfos)
|
||||
{
|
||||
int num = 0;
|
||||
if (generalInfos != 0)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (num < generalInfos.Length)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
InfoTypeAndValue infoTypeAndValue = generalInfos[num];
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
array[0] = infoTypeAndValue;
|
||||
asn1EncodableVector.Add(array);
|
||||
num++;
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB3E RID: 52030 RVA: 0x002E8E70 File Offset: 0x002E7070
|
||||
[Token(Token = "0x600CB3E")]
|
||||
[Address(RVA = "0x2ADDE00", Offset = "0x2ADCC00", VA = "0x182ADDE00", Slot = "20")]
|
||||
public virtual PkiHeader Build()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.pvno;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
GeneralName generalName = this.sender;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
array[1] = generalName;
|
||||
GeneralName generalName2 = this.recipient;
|
||||
if (generalName2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = generalName2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerGeneralizedTime derGeneralizedTime = this.messageTime;
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
this.AddOptional(asn1EncodableVector, num2, derGeneralizedTime);
|
||||
AlgorithmIdentifier algorithmIdentifier = this.protectionAlg;
|
||||
this.AddOptional(asn1EncodableVector, 1, algorithmIdentifier);
|
||||
Asn1OctetString asn1OctetString = this.senderKID;
|
||||
this.AddOptional(asn1EncodableVector, 2, asn1OctetString);
|
||||
Asn1OctetString asn1OctetString2 = this.recipKID;
|
||||
this.AddOptional(asn1EncodableVector, 3, asn1OctetString2);
|
||||
Asn1OctetString asn1OctetString3 = this.transactionID;
|
||||
this.AddOptional(asn1EncodableVector, 4, asn1OctetString3);
|
||||
Asn1OctetString asn1OctetString4 = this.senderNonce;
|
||||
this.AddOptional(asn1EncodableVector, 5, asn1OctetString4);
|
||||
Asn1OctetString asn1OctetString5 = this.recipNonce;
|
||||
this.AddOptional(asn1EncodableVector, 6, asn1OctetString5);
|
||||
PkiFreeText pkiFreeText = this.freeText;
|
||||
this.AddOptional(asn1EncodableVector, 7, pkiFreeText);
|
||||
Asn1Sequence asn1Sequence = this.generalInfo;
|
||||
this.AddOptional(asn1EncodableVector, 8, asn1Sequence);
|
||||
this.messageTime = num;
|
||||
this.protectionAlg = num;
|
||||
this.senderKID = num;
|
||||
this.recipKID = num;
|
||||
this.transactionID = num;
|
||||
this.senderNonce = num;
|
||||
this.recipNonce = num;
|
||||
this.freeText = num;
|
||||
this.generalInfo = num;
|
||||
return PkiHeader.GetInstance(new DerSequence(asn1EncodableVector));
|
||||
}
|
||||
|
||||
// Token: 0x0600CB3F RID: 52031 RVA: 0x002E8FD4 File Offset: 0x002E71D4
|
||||
[Token(Token = "0x600CB3F")]
|
||||
[Address(RVA = "0x2ADDD00", Offset = "0x2ADCB00", VA = "0x182ADDD00")]
|
||||
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400817B RID: 33147
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400817B")]
|
||||
private DerInteger pvno;
|
||||
|
||||
// Token: 0x0400817C RID: 33148
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400817C")]
|
||||
private GeneralName sender;
|
||||
|
||||
// Token: 0x0400817D RID: 33149
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400817D")]
|
||||
private GeneralName recipient;
|
||||
|
||||
// Token: 0x0400817E RID: 33150
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400817E")]
|
||||
private DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x0400817F RID: 33151
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400817F")]
|
||||
private AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x04008180 RID: 33152
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008180")]
|
||||
private Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x04008181 RID: 33153
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008181")]
|
||||
private Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x04008182 RID: 33154
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4008182")]
|
||||
private Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04008183 RID: 33155
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4008183")]
|
||||
private Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04008184 RID: 33156
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4008184")]
|
||||
private Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04008185 RID: 33157
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4008185")]
|
||||
private PkiFreeText freeText;
|
||||
|
||||
// Token: 0x04008186 RID: 33158
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4008186")]
|
||||
private Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F5F RID: 8031
|
||||
[Token(Token = "0x2001F5F")]
|
||||
public class PkiMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB40 RID: 52032 RVA: 0x002E9010 File Offset: 0x002E7210
|
||||
[Token(Token = "0x600CB40")]
|
||||
[Address(RVA = "0x2ADF880", Offset = "0x2ADE680", VA = "0x182ADF880")]
|
||||
private PkiMessage(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser3;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiHeader pkiHeader;
|
||||
this.header = pkiHeader;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiBody pkiBody;
|
||||
this.body = pkiBody;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)2 >= asn1Encodable)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser3 = seq.Parser;
|
||||
}
|
||||
while (parser3 == 0);
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.extraCerts = asn1Sequence;
|
||||
DerBitString derBitString;
|
||||
this.protection = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB41 RID: 52033 RVA: 0x002E9068 File Offset: 0x002E7268
|
||||
[Token(Token = "0x600CB41")]
|
||||
[Address(RVA = "0x2ADF4B0", Offset = "0x2ADE2B0", VA = "0x182ADF4B0")]
|
||||
public static PkiMessage GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new PkiMessage(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB42 RID: 52034 RVA: 0x002E909C File Offset: 0x002E729C
|
||||
[Token(Token = "0x600CB42")]
|
||||
[Address(RVA = "0x2ADF710", Offset = "0x2ADE510", VA = "0x182ADF710")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection, CmpCertificate[] extraCerts)
|
||||
{
|
||||
this.body = body;
|
||||
this.header = header;
|
||||
this.protection = protection;
|
||||
DerSequence derSequence;
|
||||
this.extraCerts = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB43 RID: 52035 RVA: 0x002E90CC File Offset: 0x002E72CC
|
||||
[Token(Token = "0x600CB43")]
|
||||
[Address(RVA = "0x2ADF7B0", Offset = "0x2ADE5B0", VA = "0x182ADF7B0")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = protection;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB44 RID: 52036 RVA: 0x002E90F4 File Offset: 0x002E72F4
|
||||
[Token(Token = "0x600CB44")]
|
||||
[Address(RVA = "0x2ADF820", Offset = "0x2ADE620", VA = "0x182ADF820")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x17002043 RID: 8259
|
||||
// (get) Token: 0x0600CB45 RID: 52037 RVA: 0x002E9120 File Offset: 0x002E7320
|
||||
[Token(Token = "0x17002043")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600CB45")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002044 RID: 8260
|
||||
// (get) Token: 0x0600CB46 RID: 52038 RVA: 0x002E9134 File Offset: 0x002E7334
|
||||
[Token(Token = "0x17002044")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600CB46")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002045 RID: 8261
|
||||
// (get) Token: 0x0600CB47 RID: 52039 RVA: 0x002E9148 File Offset: 0x002E7348
|
||||
[Token(Token = "0x17002045")]
|
||||
public virtual DerBitString Protection
|
||||
{
|
||||
[Token(Token = "0x600CB47")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.protection;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB48 RID: 52040 RVA: 0x002E915C File Offset: 0x002E735C
|
||||
[Token(Token = "0x600CB48")]
|
||||
[Address(RVA = "0x2ADF390", Offset = "0x2ADE190", VA = "0x182ADF390", Slot = "9")]
|
||||
public virtual CmpCertificate[] GetExtraCerts()
|
||||
{
|
||||
if (this.extraCerts != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.extraCerts.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = cmpCertificate;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB49 RID: 52041 RVA: 0x002E91AC File Offset: 0x002E73AC
|
||||
[Token(Token = "0x600CB49")]
|
||||
[Address(RVA = "0x2ADF5B0", Offset = "0x2ADE3B0", VA = "0x182ADF5B0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
PkiHeader pkiHeader = this.header;
|
||||
if (pkiHeader != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiHeader;
|
||||
PkiBody pkiBody = this.body;
|
||||
if (pkiBody != 0)
|
||||
{
|
||||
}
|
||||
array[1] = pkiBody;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerBitString derBitString = this.protection;
|
||||
int num = 0;
|
||||
PkiMessage.AddOptional(asn1EncodableVector, num, derBitString);
|
||||
Asn1Sequence asn1Sequence = this.extraCerts;
|
||||
PkiMessage.AddOptional(asn1EncodableVector, 1, asn1Sequence);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB4A RID: 52042 RVA: 0x002E9220 File Offset: 0x002E7420
|
||||
[Token(Token = "0x600CB4A")]
|
||||
[Address(RVA = "0x2ADF290", Offset = "0x2ADE090", VA = "0x182ADF290")]
|
||||
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04008187 RID: 33159
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008187")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04008188 RID: 33160
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008188")]
|
||||
private readonly PkiBody body;
|
||||
|
||||
// Token: 0x04008189 RID: 33161
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008189")]
|
||||
private readonly DerBitString protection;
|
||||
|
||||
// Token: 0x0400818A RID: 33162
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400818A")]
|
||||
private readonly Asn1Sequence extraCerts;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F60 RID: 8032
|
||||
[Token(Token = "0x2001F60")]
|
||||
public class PkiMessages : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB4B RID: 52043 RVA: 0x002E925C File Offset: 0x002E745C
|
||||
[Token(Token = "0x600CB4B")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private PkiMessages(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB4C RID: 52044 RVA: 0x002E9278 File Offset: 0x002E7478
|
||||
[Token(Token = "0x600CB4C")]
|
||||
[Address(RVA = "0x2ADFA50", Offset = "0x2ADE850", VA = "0x182ADFA50")]
|
||||
public static PkiMessages GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB4C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CB4D RID: 52045 RVA: 0x002E92D0 File Offset: 0x002E74D0
|
||||
[Token(Token = "0x600CB4D")]
|
||||
[Address(RVA = "0x2ADFE30", Offset = "0x2ADEC30", VA = "0x182ADFE30")]
|
||||
public PkiMessages(params PkiMessage[] msgs)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(msgs);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB4E RID: 52046 RVA: 0x002E92F4 File Offset: 0x002E74F4
|
||||
[Token(Token = "0x600CB4E")]
|
||||
[Address(RVA = "0x2ADFC40", Offset = "0x2ADEA40", VA = "0x182ADFC40", Slot = "6")]
|
||||
public virtual PkiMessage[] ToPkiMessageArray()
|
||||
{
|
||||
PkiMessage[] array;
|
||||
int num;
|
||||
Asn1Sequence asn1Sequence2;
|
||||
do
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
array = new PkiMessage[asn1Encodable];
|
||||
num = 0;
|
||||
int num2 = 0;
|
||||
if (num2 == array.Length)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
goto IL_50;
|
||||
}
|
||||
if (parser == 0)
|
||||
{
|
||||
PkiMessage pkiMessage = new PkiMessage(asn1Sequence2);
|
||||
}
|
||||
}
|
||||
while (asn1Sequence2 == 0);
|
||||
if (asn1Sequence2 == 0)
|
||||
{
|
||||
goto IL_53;
|
||||
}
|
||||
IL_50:
|
||||
int num3 = 0;
|
||||
IL_53:
|
||||
num++;
|
||||
array[0] = num3;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB4F RID: 52047 RVA: 0x002E9370 File Offset: 0x002E7570
|
||||
[Token(Token = "0x600CB4F")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB4F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PkiMessages::content, ldloc:PkiMessages(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: 0x0400818B RID: 33163
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400818B")]
|
||||
private Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F61 RID: 8033
|
||||
[Token(Token = "0x2001F61")]
|
||||
public enum PkiStatus
|
||||
{
|
||||
// Token: 0x0400818D RID: 33165
|
||||
[Token(Token = "0x400818D")]
|
||||
Granted,
|
||||
// Token: 0x0400818E RID: 33166
|
||||
[Token(Token = "0x400818E")]
|
||||
GrantedWithMods,
|
||||
// Token: 0x0400818F RID: 33167
|
||||
[Token(Token = "0x400818F")]
|
||||
Rejection,
|
||||
// Token: 0x04008190 RID: 33168
|
||||
[Token(Token = "0x4008190")]
|
||||
Waiting,
|
||||
// Token: 0x04008191 RID: 33169
|
||||
[Token(Token = "0x4008191")]
|
||||
RevocationWarning,
|
||||
// Token: 0x04008192 RID: 33170
|
||||
[Token(Token = "0x4008192")]
|
||||
RevocationNotification,
|
||||
// Token: 0x04008193 RID: 33171
|
||||
[Token(Token = "0x4008193")]
|
||||
KeyUpdateWarning
|
||||
}
|
||||
}
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F62 RID: 8034
|
||||
[Token(Token = "0x2001F62")]
|
||||
public class PkiStatusEncodable : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB50 RID: 52048 RVA: 0x002E9384 File Offset: 0x002E7584
|
||||
[Token(Token = "0x600CB50")]
|
||||
[Address(RVA = "0x2AE03A0", Offset = "0x2ADF1A0", VA = "0x182AE03A0")]
|
||||
private PkiStatusEncodable(PkiStatus status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger((int)status);
|
||||
base..ctor();
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB51 RID: 52049 RVA: 0x002E93A8 File Offset: 0x002E75A8
|
||||
[Token(Token = "0x600CB51")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private PkiStatusEncodable(DerInteger status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB52 RID: 52050 RVA: 0x002E93C4 File Offset: 0x002E75C4
|
||||
[Token(Token = "0x600CB52")]
|
||||
[Address(RVA = "0x2ADFEA0", Offset = "0x2ADECA0", VA = "0x182ADFEA0")]
|
||||
public static PkiStatusEncodable GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB52)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x17002046 RID: 8262
|
||||
// (get) Token: 0x0600CB53 RID: 52051 RVA: 0x002E941C File Offset: 0x002E761C
|
||||
[Token(Token = "0x17002046")]
|
||||
public virtual BigInteger Value
|
||||
{
|
||||
[Token(Token = "0x600CB53")]
|
||||
[Address(RVA = "0x283C9E0", Offset = "0x283B7E0", VA = "0x18283C9E0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB54 RID: 52052 RVA: 0x002E943C File Offset: 0x002E763C
|
||||
[Token(Token = "0x600CB54")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB54)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerInteger(var_0_06, ldfld:DerInteger(PkiStatusEncodable::status, ldloc:PkiStatusEncodable(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: 0x0600CB55 RID: 52053 RVA: 0x002E9450 File Offset: 0x002E7650
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CB55")]
|
||||
[Address(RVA = "0x2AE0090", Offset = "0x2ADEE90", VA = "0x182AE0090")]
|
||||
static PkiStatusEncodable()
|
||||
{
|
||||
int num;
|
||||
PkiStatusEncodable pkiStatusEncodable = new PkiStatusEncodable((PkiStatus)num);
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
pkiStatusEncodable.status = derInteger;
|
||||
PkiStatusEncodable.granted = pkiStatusEncodable;
|
||||
PkiStatusEncodable pkiStatusEncodable2 = new PkiStatusEncodable(PkiStatus.GrantedWithMods);
|
||||
DerInteger derInteger2 = new DerInteger(1);
|
||||
pkiStatusEncodable2.status = derInteger2;
|
||||
PkiStatusEncodable.grantedWithMods = pkiStatusEncodable2;
|
||||
PkiStatusEncodable pkiStatusEncodable3 = new PkiStatusEncodable(PkiStatus.Rejection);
|
||||
DerInteger derInteger3 = new DerInteger(2);
|
||||
pkiStatusEncodable3.status = derInteger3;
|
||||
PkiStatusEncodable.rejection = pkiStatusEncodable3;
|
||||
PkiStatusEncodable pkiStatusEncodable4 = new PkiStatusEncodable(PkiStatus.Waiting);
|
||||
DerInteger derInteger4 = new DerInteger(3);
|
||||
pkiStatusEncodable4.status = derInteger4;
|
||||
PkiStatusEncodable.waiting = pkiStatusEncodable4;
|
||||
PkiStatusEncodable pkiStatusEncodable5 = new PkiStatusEncodable(PkiStatus.RevocationWarning);
|
||||
DerInteger derInteger5 = new DerInteger(4);
|
||||
pkiStatusEncodable5.status = derInteger5;
|
||||
PkiStatusEncodable.revocationWarning = pkiStatusEncodable5;
|
||||
PkiStatusEncodable pkiStatusEncodable6 = new PkiStatusEncodable(PkiStatus.RevocationNotification);
|
||||
DerInteger derInteger6 = new DerInteger(5);
|
||||
pkiStatusEncodable6.status = derInteger6;
|
||||
PkiStatusEncodable.revocationNotification = pkiStatusEncodable6;
|
||||
PkiStatusEncodable pkiStatusEncodable7 = new PkiStatusEncodable(PkiStatus.KeyUpdateWarning);
|
||||
DerInteger derInteger7 = new DerInteger(6);
|
||||
pkiStatusEncodable7.status = derInteger7;
|
||||
PkiStatusEncodable.keyUpdateWaiting = pkiStatusEncodable7;
|
||||
}
|
||||
|
||||
// Token: 0x04008194 RID: 33172
|
||||
[Token(Token = "0x4008194")]
|
||||
public static readonly PkiStatusEncodable granted;
|
||||
|
||||
// Token: 0x04008195 RID: 33173
|
||||
[Token(Token = "0x4008195")]
|
||||
public static readonly PkiStatusEncodable grantedWithMods;
|
||||
|
||||
// Token: 0x04008196 RID: 33174
|
||||
[Token(Token = "0x4008196")]
|
||||
public static readonly PkiStatusEncodable rejection;
|
||||
|
||||
// Token: 0x04008197 RID: 33175
|
||||
[Token(Token = "0x4008197")]
|
||||
public static readonly PkiStatusEncodable waiting;
|
||||
|
||||
// Token: 0x04008198 RID: 33176
|
||||
[Token(Token = "0x4008198")]
|
||||
public static readonly PkiStatusEncodable revocationWarning;
|
||||
|
||||
// Token: 0x04008199 RID: 33177
|
||||
[Token(Token = "0x4008199")]
|
||||
public static readonly PkiStatusEncodable revocationNotification;
|
||||
|
||||
// Token: 0x0400819A RID: 33178
|
||||
[Token(Token = "0x400819A")]
|
||||
public static readonly PkiStatusEncodable keyUpdateWaiting;
|
||||
|
||||
// Token: 0x0400819B RID: 33179
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400819B")]
|
||||
private readonly DerInteger status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F63 RID: 8035
|
||||
[Token(Token = "0x2001F63")]
|
||||
public class PkiStatusInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB56 RID: 52054 RVA: 0x002E9538 File Offset: 0x002E7738
|
||||
[Token(Token = "0x600CB56")]
|
||||
[Address(RVA = "0x2AE0410", Offset = "0x2ADF210", VA = "0x182AE0410")]
|
||||
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CB57 RID: 52055 RVA: 0x002E9554 File Offset: 0x002E7754
|
||||
[Token(Token = "0x600CB57")]
|
||||
[Address(RVA = "0x2AE0430", Offset = "0x2ADF230", VA = "0x182AE0430")]
|
||||
public static PkiStatusInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB57)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_28)), 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.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: 0x0600CB58 RID: 52056 RVA: 0x002E95A4 File Offset: 0x002E77A4
|
||||
[Token(Token = "0x600CB58")]
|
||||
[Address(RVA = "0x2AE0940", Offset = "0x2ADF740", VA = "0x182AE0940")]
|
||||
public PkiStatusInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.status = derInteger;
|
||||
int num = 0;
|
||||
this.statusString = num;
|
||||
this.failInfo = num;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 == 0 || parser2 == 0)
|
||||
{
|
||||
PkiFreeText pkiFreeText;
|
||||
this.statusString = pkiFreeText;
|
||||
return;
|
||||
}
|
||||
DerBitString derBitString;
|
||||
this.failInfo = derBitString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB59 RID: 52057 RVA: 0x002E9610 File Offset: 0x002E7810
|
||||
[Token(Token = "0x600CB59")]
|
||||
[Address(RVA = "0x2AE0B10", Offset = "0x2ADF910", VA = "0x182AE0B10")]
|
||||
public PkiStatusInfo(int status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB5A RID: 52058 RVA: 0x002E9634 File Offset: 0x002E7834
|
||||
[Token(Token = "0x600CB5A")]
|
||||
[Address(RVA = "0x2AE0830", Offset = "0x2ADF630", VA = "0x182AE0830")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB5B RID: 52059 RVA: 0x002E965C File Offset: 0x002E785C
|
||||
[Token(Token = "0x600CB5B")]
|
||||
[Address(RVA = "0x2AE08B0", Offset = "0x2ADF6B0", VA = "0x182AE08B0")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
this.failInfo = failInfo;
|
||||
}
|
||||
|
||||
// Token: 0x17002047 RID: 8263
|
||||
// (get) Token: 0x0600CB5C RID: 52060 RVA: 0x002E968C File Offset: 0x002E788C
|
||||
[Token(Token = "0x17002047")]
|
||||
public BigInteger Status
|
||||
{
|
||||
[Token(Token = "0x600CB5C")]
|
||||
[Address(RVA = "0x283C9E0", Offset = "0x283B7E0", VA = "0x18283C9E0")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002048 RID: 8264
|
||||
// (get) Token: 0x0600CB5D RID: 52061 RVA: 0x002E96AC File Offset: 0x002E78AC
|
||||
[Token(Token = "0x17002048")]
|
||||
public PkiFreeText StatusString
|
||||
{
|
||||
[Token(Token = "0x600CB5D")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.statusString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002049 RID: 8265
|
||||
// (get) Token: 0x0600CB5E RID: 52062 RVA: 0x002E96C0 File Offset: 0x002E78C0
|
||||
[Token(Token = "0x17002049")]
|
||||
public DerBitString FailInfo
|
||||
{
|
||||
[Token(Token = "0x600CB5E")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.failInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB5F RID: 52063 RVA: 0x002E96D4 File Offset: 0x002E78D4
|
||||
[Token(Token = "0x600CB5F")]
|
||||
[Address(RVA = "0x2AE0620", Offset = "0x2ADF420", VA = "0x182AE0620", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.status;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.statusString != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
PkiFreeText pkiFreeText = this.statusString;
|
||||
if (pkiFreeText != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = pkiFreeText;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.failInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerBitString derBitString = this.failInfo;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derBitString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400819C RID: 33180
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400819C")]
|
||||
private DerInteger status;
|
||||
|
||||
// Token: 0x0400819D RID: 33181
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400819D")]
|
||||
private PkiFreeText statusString;
|
||||
|
||||
// Token: 0x0400819E RID: 33182
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400819E")]
|
||||
private DerBitString failInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F65 RID: 8037
|
||||
[Token(Token = "0x2001F65")]
|
||||
public class PollRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB69 RID: 52073 RVA: 0x002E996C File Offset: 0x002E7B6C
|
||||
[Token(Token = "0x600CB69")]
|
||||
[Address(RVA = "0x2AE1000", Offset = "0x2ADFE00", VA = "0x182AE1000")]
|
||||
private PollRepContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.certReqId = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
this.checkAfter = derInteger2;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
PkiFreeText pkiFreeText;
|
||||
this.reason = pkiFreeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB6A RID: 52074 RVA: 0x002E99B8 File Offset: 0x002E7BB8
|
||||
[Token(Token = "0x600CB6A")]
|
||||
[Address(RVA = "0x2AE0B80", Offset = "0x2ADF980", VA = "0x182AE0B80")]
|
||||
public static PollRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB6A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollRepContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_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.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: 0x0600CB6B RID: 52075 RVA: 0x002E9A20 File Offset: 0x002E7C20
|
||||
[Token(Token = "0x600CB6B")]
|
||||
[Address(RVA = "0x2AE0FC0", Offset = "0x2ADFDC0", VA = "0x182AE0FC0")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB6C RID: 52076 RVA: 0x002E9A4C File Offset: 0x002E7C4C
|
||||
[Token(Token = "0x600CB6C")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter, PkiFreeText reason)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
// Token: 0x1700204E RID: 8270
|
||||
// (get) Token: 0x0600CB6D RID: 52077 RVA: 0x002E9A74 File Offset: 0x002E7C74
|
||||
[Token(Token = "0x1700204E")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CB6D")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204F RID: 8271
|
||||
// (get) Token: 0x0600CB6E RID: 52078 RVA: 0x002E9A88 File Offset: 0x002E7C88
|
||||
[Token(Token = "0x1700204F")]
|
||||
public virtual DerInteger CheckAfter
|
||||
{
|
||||
[Token(Token = "0x600CB6E")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.checkAfter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002050 RID: 8272
|
||||
// (get) Token: 0x0600CB6F RID: 52079 RVA: 0x002E9A9C File Offset: 0x002E7C9C
|
||||
[Token(Token = "0x17002050")]
|
||||
public virtual PkiFreeText Reason
|
||||
{
|
||||
[Token(Token = "0x600CB6F")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.reason;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB70 RID: 52080 RVA: 0x002E9AB0 File Offset: 0x002E7CB0
|
||||
[Token(Token = "0x600CB70")]
|
||||
[Address(RVA = "0x2AE0E00", Offset = "0x2ADFC00", VA = "0x182AE0E00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.certReqId;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
DerInteger derInteger2 = this.checkAfter;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
PkiFreeText pkiFreeText = this.reason;
|
||||
if (pkiFreeText != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = pkiFreeText;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040081A3 RID: 33187
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081A3")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040081A4 RID: 33188
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081A4")]
|
||||
private readonly DerInteger checkAfter;
|
||||
|
||||
// Token: 0x040081A5 RID: 33189
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40081A5")]
|
||||
private readonly PkiFreeText reason;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F66 RID: 8038
|
||||
[Token(Token = "0x2001F66")]
|
||||
public class PollReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB71 RID: 52081 RVA: 0x002E9B28 File Offset: 0x002E7D28
|
||||
[Token(Token = "0x600CB71")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private PollReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB72 RID: 52082 RVA: 0x002E9B44 File Offset: 0x002E7D44
|
||||
[Token(Token = "0x600CB72")]
|
||||
[Address(RVA = "0x2AE1300", Offset = "0x2AE0100", VA = "0x182AE1300")]
|
||||
public static PollReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB72)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CB73 RID: 52083 RVA: 0x002E9B9C File Offset: 0x002E7D9C
|
||||
[Token(Token = "0x600CB73")]
|
||||
[Address(RVA = "0x2AE10C0", Offset = "0x2ADFEC0", VA = "0x182AE10C0", Slot = "6")]
|
||||
public virtual DerInteger[][] GetCertReqIDs()
|
||||
{
|
||||
DerInteger[][] array;
|
||||
int num2;
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
array = new DerInteger[asn1Encodable][];
|
||||
int num = 0;
|
||||
num2 = 0;
|
||||
if (num == array.Length)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
parser = this.content.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
DerInteger[] array2 = new DerInteger[0];
|
||||
int num3 = 0;
|
||||
if (num3 != array2.Length)
|
||||
{
|
||||
DerInteger derInteger;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
num3++;
|
||||
array2[0] = derInteger;
|
||||
}
|
||||
num2++;
|
||||
array[0] = array2;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB74 RID: 52084 RVA: 0x002E9C24 File Offset: 0x002E7E24
|
||||
[Token(Token = "0x600CB74")]
|
||||
[Address(RVA = "0x2AE14F0", Offset = "0x2AE02F0", VA = "0x182AE14F0")]
|
||||
private static DerInteger[] SequenceToDerIntegerArray(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
DerInteger[] array = new DerInteger[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = derInteger;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB75 RID: 52085 RVA: 0x002E9C64 File Offset: 0x002E7E64
|
||||
[Token(Token = "0x600CB75")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB75)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PollReqContent::content, ldloc:PollReqContent(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: 0x040081A6 RID: 33190
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081A6")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F67 RID: 8039
|
||||
[Token(Token = "0x2001F67")]
|
||||
public class PopoDecKeyChallContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB76 RID: 52086 RVA: 0x002E9C78 File Offset: 0x002E7E78
|
||||
[Token(Token = "0x600CB76")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private PopoDecKeyChallContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB77 RID: 52087 RVA: 0x002E9C94 File Offset: 0x002E7E94
|
||||
[Token(Token = "0x600CB77")]
|
||||
[Address(RVA = "0x2AE1600", Offset = "0x2AE0400", VA = "0x182AE1600")]
|
||||
public static PopoDecKeyChallContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB77)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CB78 RID: 52088 RVA: 0x002E9CEC File Offset: 0x002E7EEC
|
||||
[Token(Token = "0x600CB78")]
|
||||
[Address(RVA = "0x2AE17F0", Offset = "0x2AE05F0", VA = "0x182AE17F0", Slot = "6")]
|
||||
public virtual Challenge[] ToChallengeArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
Challenge[] array = new Challenge[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
Challenge challenge;
|
||||
if (challenge != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = challenge;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB79 RID: 52089 RVA: 0x002E9D38 File Offset: 0x002E7F38
|
||||
[Token(Token = "0x600CB79")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB79)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PopoDecKeyChallContent::content, ldloc:PopoDecKeyChallContent(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: 0x040081A7 RID: 33191
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081A7")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F68 RID: 8040
|
||||
[Token(Token = "0x2001F68")]
|
||||
public class PopoDecKeyRespContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB7A RID: 52090 RVA: 0x002E9D4C File Offset: 0x002E7F4C
|
||||
[Token(Token = "0x600CB7A")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private PopoDecKeyRespContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB7B RID: 52091 RVA: 0x002E9D68 File Offset: 0x002E7F68
|
||||
[Token(Token = "0x600CB7B")]
|
||||
[Address(RVA = "0x2AE1900", Offset = "0x2AE0700", VA = "0x182AE1900")]
|
||||
public static PopoDecKeyRespContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB7B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CB7C RID: 52092 RVA: 0x002E9DC0 File Offset: 0x002E7FC0
|
||||
[Token(Token = "0x600CB7C")]
|
||||
[Address(RVA = "0x2AE1AF0", Offset = "0x2AE08F0", VA = "0x182AE1AF0", Slot = "6")]
|
||||
public virtual DerInteger[] ToDerIntegerArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
DerInteger[] array = new DerInteger[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
DerInteger derInteger;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = derInteger;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB7D RID: 52093 RVA: 0x002E9E0C File Offset: 0x002E800C
|
||||
[Token(Token = "0x600CB7D")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB7D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PopoDecKeyRespContent::content, ldloc:PopoDecKeyRespContent(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: 0x040081A8 RID: 33192
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081A8")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F69 RID: 8041
|
||||
[Token(Token = "0x2001F69")]
|
||||
public class ProtectedPart : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB7E RID: 52094 RVA: 0x002E9E20 File Offset: 0x002E8020
|
||||
[Token(Token = "0x600CB7E")]
|
||||
[Address(RVA = "0x2AE1F80", Offset = "0x2AE0D80", VA = "0x182AE1F80")]
|
||||
private ProtectedPart(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiHeader pkiHeader;
|
||||
this.header = pkiHeader;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiBody pkiBody;
|
||||
this.body = pkiBody;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB7F RID: 52095 RVA: 0x002E9E58 File Offset: 0x002E8058
|
||||
[Token(Token = "0x600CB7F")]
|
||||
[Address(RVA = "0x2AE1C00", Offset = "0x2AE0A00", VA = "0x182AE1C00")]
|
||||
public static ProtectedPart GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB7F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2E:
|
||||
stloc:string(var_8_34, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_34)), 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.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: 0x0600CB80 RID: 52096 RVA: 0x002E9EB4 File Offset: 0x002E80B4
|
||||
[Token(Token = "0x600CB80")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public ProtectedPart(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
// Token: 0x17002051 RID: 8273
|
||||
// (get) Token: 0x0600CB81 RID: 52097 RVA: 0x002E9ED8 File Offset: 0x002E80D8
|
||||
[Token(Token = "0x17002051")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600CB81")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002052 RID: 8274
|
||||
// (get) Token: 0x0600CB82 RID: 52098 RVA: 0x002E9EEC File Offset: 0x002E80EC
|
||||
[Token(Token = "0x17002052")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600CB82")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB83 RID: 52099 RVA: 0x002E9F00 File Offset: 0x002E8100
|
||||
[Token(Token = "0x600CB83")]
|
||||
[Address(RVA = "0x2AE1E70", Offset = "0x2AE0C70", VA = "0x182AE1E70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
PkiHeader pkiHeader = this.header;
|
||||
if (pkiHeader != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiHeader;
|
||||
PkiBody pkiBody = this.body;
|
||||
if (pkiBody != 0)
|
||||
{
|
||||
}
|
||||
array[1] = pkiBody;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040081A9 RID: 33193
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081A9")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x040081AA RID: 33194
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081AA")]
|
||||
private readonly PkiBody body;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F6A RID: 8042
|
||||
[Token(Token = "0x2001F6A")]
|
||||
public class RevAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB84 RID: 52100 RVA: 0x002E9F48 File Offset: 0x002E8148
|
||||
[Token(Token = "0x600CB84")]
|
||||
[Address(RVA = "0x2AE3FA0", Offset = "0x2AE2DA0", VA = "0x182AE3FA0")]
|
||||
private RevAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiStatusEncodable pkiStatusEncodable;
|
||||
this.status = pkiStatusEncodable;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
CertId certId;
|
||||
this.certId = certId;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerGeneralizedTime derGeneralizedTime;
|
||||
this.willBeRevokedAt = derGeneralizedTime;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
DerGeneralizedTime derGeneralizedTime2;
|
||||
this.badSinceDate = derGeneralizedTime2;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)4L)
|
||||
{
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
X509Extensions x509Extensions;
|
||||
this.crlDetails = x509Extensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB85 RID: 52101 RVA: 0x002E9FB4 File Offset: 0x002E81B4
|
||||
[Token(Token = "0x600CB85")]
|
||||
[Address(RVA = "0x2AE3A20", Offset = "0x2AE2820", VA = "0x182AE3A20")]
|
||||
public static RevAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB85)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevAnnContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_46:
|
||||
stloc:string(var_11_4C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_64, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_4C)), 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.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: 0x17002053 RID: 8275
|
||||
// (get) Token: 0x0600CB86 RID: 52102 RVA: 0x002EA028 File Offset: 0x002E8228
|
||||
[Token(Token = "0x17002053")]
|
||||
public virtual PkiStatusEncodable Status
|
||||
{
|
||||
[Token(Token = "0x600CB86")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002054 RID: 8276
|
||||
// (get) Token: 0x0600CB87 RID: 52103 RVA: 0x002EA03C File Offset: 0x002E823C
|
||||
[Token(Token = "0x17002054")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600CB87")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002055 RID: 8277
|
||||
// (get) Token: 0x0600CB88 RID: 52104 RVA: 0x002EA050 File Offset: 0x002E8250
|
||||
[Token(Token = "0x17002055")]
|
||||
public virtual DerGeneralizedTime WillBeRevokedAt
|
||||
{
|
||||
[Token(Token = "0x600CB88")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.willBeRevokedAt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002056 RID: 8278
|
||||
// (get) Token: 0x0600CB89 RID: 52105 RVA: 0x002EA064 File Offset: 0x002E8264
|
||||
[Token(Token = "0x17002056")]
|
||||
public virtual DerGeneralizedTime BadSinceDate
|
||||
{
|
||||
[Token(Token = "0x600CB89")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.badSinceDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002057 RID: 8279
|
||||
// (get) Token: 0x0600CB8A RID: 52106 RVA: 0x002EA078 File Offset: 0x002E8278
|
||||
[Token(Token = "0x17002057")]
|
||||
public virtual X509Extensions CrlDetails
|
||||
{
|
||||
[Token(Token = "0x600CB8A")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.crlDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB8B RID: 52107 RVA: 0x002EA08C File Offset: 0x002E828C
|
||||
[Token(Token = "0x600CB8B")]
|
||||
[Address(RVA = "0x2AE3D40", Offset = "0x2AE2B40", VA = "0x182AE3D40", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[4];
|
||||
PkiStatusEncodable pkiStatusEncodable = this.status;
|
||||
if (pkiStatusEncodable != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiStatusEncodable;
|
||||
CertId certId = this.certId;
|
||||
if (certId != 0)
|
||||
{
|
||||
}
|
||||
array[1] = certId;
|
||||
DerGeneralizedTime derGeneralizedTime = this.willBeRevokedAt;
|
||||
if (derGeneralizedTime != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derGeneralizedTime;
|
||||
DerGeneralizedTime derGeneralizedTime2 = this.badSinceDate;
|
||||
if (derGeneralizedTime2 != 0)
|
||||
{
|
||||
}
|
||||
array[3] = derGeneralizedTime2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
X509Extensions x509Extensions = this.crlDetails;
|
||||
if (x509Extensions != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = x509Extensions;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040081AB RID: 33195
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081AB")]
|
||||
private readonly PkiStatusEncodable status;
|
||||
|
||||
// Token: 0x040081AC RID: 33196
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081AC")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x040081AD RID: 33197
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40081AD")]
|
||||
private readonly DerGeneralizedTime willBeRevokedAt;
|
||||
|
||||
// Token: 0x040081AE RID: 33198
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40081AE")]
|
||||
private readonly DerGeneralizedTime badSinceDate;
|
||||
|
||||
// Token: 0x040081AF RID: 33199
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40081AF")]
|
||||
private readonly X509Extensions crlDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F6B RID: 8043
|
||||
[Token(Token = "0x2001F6B")]
|
||||
public class RevDetails : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB8C RID: 52108 RVA: 0x002EA130 File Offset: 0x002E8330
|
||||
[Token(Token = "0x600CB8C")]
|
||||
[Address(RVA = "0x2AE4520", Offset = "0x2AE3320", VA = "0x182AE4520")]
|
||||
private RevDetails(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertTemplate certTemplate;
|
||||
this.certDetails = certTemplate;
|
||||
int num = 0;
|
||||
this.crlEntryDetails = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB8D RID: 52109 RVA: 0x002EA174 File Offset: 0x002E8374
|
||||
[Token(Token = "0x600CB8D")]
|
||||
[Address(RVA = "0x2AE4110", Offset = "0x2AE2F10", VA = "0x182AE4110")]
|
||||
public static RevDetails GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB8D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevDetails BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevDetails::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_31:
|
||||
stloc:string(var_9_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_37)), 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.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: 0x0600CB8E RID: 52110 RVA: 0x002EA1D4 File Offset: 0x002E83D4
|
||||
[Token(Token = "0x600CB8E")]
|
||||
[Address(RVA = "0x497CE0", Offset = "0x496AE0", VA = "0x180497CE0")]
|
||||
public RevDetails(CertTemplate certDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB8F RID: 52111 RVA: 0x002EA1F8 File Offset: 0x002E83F8
|
||||
[Token(Token = "0x600CB8F")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public RevDetails(CertTemplate certDetails, X509Extensions crlEntryDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = crlEntryDetails;
|
||||
}
|
||||
|
||||
// Token: 0x17002058 RID: 8280
|
||||
// (get) Token: 0x0600CB90 RID: 52112 RVA: 0x002EA21C File Offset: 0x002E841C
|
||||
[Token(Token = "0x17002058")]
|
||||
public virtual CertTemplate CertDetails
|
||||
{
|
||||
[Token(Token = "0x600CB90")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002059 RID: 8281
|
||||
// (get) Token: 0x0600CB91 RID: 52113 RVA: 0x002EA230 File Offset: 0x002E8430
|
||||
[Token(Token = "0x17002059")]
|
||||
public virtual X509Extensions CrlEntryDetails
|
||||
{
|
||||
[Token(Token = "0x600CB91")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.crlEntryDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB92 RID: 52114 RVA: 0x002EA244 File Offset: 0x002E8444
|
||||
[Token(Token = "0x600CB92")]
|
||||
[Address(RVA = "0x2AE43B0", Offset = "0x2AE31B0", VA = "0x182AE43B0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
CertTemplate certTemplate = this.certDetails;
|
||||
if (certTemplate != 0)
|
||||
{
|
||||
}
|
||||
array[0] = certTemplate;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
X509Extensions x509Extensions = this.crlEntryDetails;
|
||||
if (x509Extensions != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = x509Extensions;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040081B0 RID: 33200
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081B0")]
|
||||
private readonly CertTemplate certDetails;
|
||||
|
||||
// Token: 0x040081B1 RID: 33201
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081B1")]
|
||||
private readonly X509Extensions crlEntryDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F6C RID: 8044
|
||||
[Token(Token = "0x2001F6C")]
|
||||
public class RevRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB93 RID: 52115 RVA: 0x002EA2A4 File Offset: 0x002E84A4
|
||||
[Token(Token = "0x600CB93")]
|
||||
[Address(RVA = "0x2AE5560", Offset = "0x2AE4360", VA = "0x182AE5560")]
|
||||
private RevRepContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.status = asn1Sequence;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)1 < asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
int tagNo = asn1TaggedObject.tagNo;
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1TaggedObject, true);
|
||||
if (tagNo != 0)
|
||||
{
|
||||
this.crls = instance;
|
||||
}
|
||||
this.revCerts = instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB94 RID: 52116 RVA: 0x002EA300 File Offset: 0x002E8500
|
||||
[Token(Token = "0x600CB94")]
|
||||
[Address(RVA = "0x2AE4F80", Offset = "0x2AE3D80", VA = "0x182AE4F80")]
|
||||
public static RevRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB94)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_53:
|
||||
stloc:string(var_10_59, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_71, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_59)), 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.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: 0x0600CB95 RID: 52117 RVA: 0x002EA380 File Offset: 0x002E8580
|
||||
[Token(Token = "0x600CB95")]
|
||||
[Address(RVA = "0x2AE5330", Offset = "0x2AE4130", VA = "0x182AE5330", Slot = "6")]
|
||||
public virtual PkiStatusInfo[] GetStatus()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.status;
|
||||
Asn1Encodable asn1Encodable;
|
||||
PkiStatusInfo[] array = new PkiStatusInfo[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.status.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = pkiStatusInfo;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB96 RID: 52118 RVA: 0x002EA3CC File Offset: 0x002E85CC
|
||||
[Token(Token = "0x600CB96")]
|
||||
[Address(RVA = "0x2AE5210", Offset = "0x2AE4010", VA = "0x182AE5210", Slot = "7")]
|
||||
public virtual CertId[] GetRevCerts()
|
||||
{
|
||||
if (this.revCerts != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertId[] array = new CertId[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.revCerts.Parser;
|
||||
CertId certId;
|
||||
if (certId != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certId;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB97 RID: 52119 RVA: 0x002EA41C File Offset: 0x002E861C
|
||||
[Token(Token = "0x600CB97")]
|
||||
[Address(RVA = "0x2AE4E60", Offset = "0x2AE3C60", VA = "0x182AE4E60", Slot = "8")]
|
||||
public virtual CertificateList[] GetCrls()
|
||||
{
|
||||
if (this.crls != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertificateList[] array = new CertificateList[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.crls.Parser;
|
||||
CertificateList certificateList;
|
||||
if (certificateList != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certificateList;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB98 RID: 52120 RVA: 0x002EA46C File Offset: 0x002E866C
|
||||
[Token(Token = "0x600CB98")]
|
||||
[Address(RVA = "0x2AE5440", Offset = "0x2AE4240", VA = "0x182AE5440", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence = this.status;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1Sequence;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Sequence asn1Sequence2 = this.revCerts;
|
||||
int num = 0;
|
||||
this.AddOptional(asn1EncodableVector, num, asn1Sequence2);
|
||||
Asn1Sequence asn1Sequence3 = this.crls;
|
||||
this.AddOptional(asn1EncodableVector, 1, asn1Sequence3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB99 RID: 52121 RVA: 0x002EA4D0 File Offset: 0x002E86D0
|
||||
[Token(Token = "0x600CB99")]
|
||||
[Address(RVA = "0x2AE4D60", Offset = "0x2AE3B60", VA = "0x182AE4D60")]
|
||||
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040081B2 RID: 33202
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081B2")]
|
||||
private readonly Asn1Sequence status;
|
||||
|
||||
// Token: 0x040081B3 RID: 33203
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081B3")]
|
||||
private readonly Asn1Sequence revCerts;
|
||||
|
||||
// Token: 0x040081B4 RID: 33204
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40081B4")]
|
||||
private readonly Asn1Sequence crls;
|
||||
}
|
||||
}
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F6D RID: 8045
|
||||
[Token(Token = "0x2001F6D")]
|
||||
public class RevRepContentBuilder
|
||||
{
|
||||
// Token: 0x0600CB9A RID: 52122 RVA: 0x002EA50C File Offset: 0x002E870C
|
||||
[Token(Token = "0x600CB9A")]
|
||||
[Address(RVA = "0x2AE46E0", Offset = "0x2AE34E0", VA = "0x182AE46E0", Slot = "4")]
|
||||
public virtual RevRepContentBuilder Add(PkiStatusInfo status)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = this.status;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (status != 0)
|
||||
{
|
||||
}
|
||||
array[0] = status;
|
||||
asn1EncodableVector.Add(array);
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB9B RID: 52123 RVA: 0x002EA544 File Offset: 0x002E8744
|
||||
[Token(Token = "0x600CB9B")]
|
||||
[Address(RVA = "0x2AE47B0", Offset = "0x2AE35B0", VA = "0x182AE47B0", Slot = "5")]
|
||||
public virtual RevRepContentBuilder Add(PkiStatusInfo status, CertId certId)
|
||||
{
|
||||
int count;
|
||||
int count2;
|
||||
do
|
||||
{
|
||||
count = this.status.Count;
|
||||
count2 = this.revCerts.Count;
|
||||
}
|
||||
while (count != count2);
|
||||
Asn1EncodableVector asn1EncodableVector = this.status;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (status != 0)
|
||||
{
|
||||
}
|
||||
array[0] = status;
|
||||
asn1EncodableVector.Add(array);
|
||||
Asn1EncodableVector asn1EncodableVector2 = this.revCerts;
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
if (certId != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = certId;
|
||||
asn1EncodableVector2.Add(array2);
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB9C RID: 52124 RVA: 0x002EA5BC File Offset: 0x002E87BC
|
||||
[Token(Token = "0x600CB9C")]
|
||||
[Address(RVA = "0x2AE4610", Offset = "0x2AE3410", VA = "0x182AE4610", Slot = "6")]
|
||||
public virtual RevRepContentBuilder AddCrl(CertificateList crl)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = this.crls;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (crl != 0)
|
||||
{
|
||||
}
|
||||
array[0] = crl;
|
||||
asn1EncodableVector.Add(array);
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB9D RID: 52125 RVA: 0x002EA5F4 File Offset: 0x002E87F4
|
||||
[Token(Token = "0x600CB9D")]
|
||||
[Address(RVA = "0x2AE4970", Offset = "0x2AE3770", VA = "0x182AE4970", Slot = "7")]
|
||||
public virtual RevRepContent Build()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerSequence derSequence = new DerSequence(this.status);
|
||||
if (derSequence != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derSequence;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array);
|
||||
if (this.revCerts.Count != 0)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerSequence derSequence2 = new DerSequence(this.revCerts);
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, derSequence2);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.crls.Count != 0)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerSequence derSequence3 = new DerSequence(this.crls);
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, derSequence3);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
return RevRepContent.GetInstance(new DerSequence(asn1EncodableVector));
|
||||
}
|
||||
|
||||
// Token: 0x0600CB9E RID: 52126 RVA: 0x002EA6CC File Offset: 0x002E88CC
|
||||
[Token(Token = "0x600CB9E")]
|
||||
[Address(RVA = "0x2AE4C80", Offset = "0x2AE3A80", VA = "0x182AE4C80")]
|
||||
public RevRepContentBuilder()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
this.status = asn1EncodableVector;
|
||||
Asn1EncodableVector asn1EncodableVector2;
|
||||
this.revCerts = asn1EncodableVector2;
|
||||
Asn1EncodableVector asn1EncodableVector3;
|
||||
this.crls = asn1EncodableVector3;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x040081B5 RID: 33205
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081B5")]
|
||||
private readonly Asn1EncodableVector status;
|
||||
|
||||
// Token: 0x040081B6 RID: 33206
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081B6")]
|
||||
private readonly Asn1EncodableVector revCerts;
|
||||
|
||||
// Token: 0x040081B7 RID: 33207
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40081B7")]
|
||||
private readonly Asn1EncodableVector crls;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F6E RID: 8046
|
||||
[Token(Token = "0x2001F6E")]
|
||||
public class RevReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB9F RID: 52127 RVA: 0x002EA6F4 File Offset: 0x002E88F4
|
||||
[Token(Token = "0x600CB9F")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private RevReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CBA0 RID: 52128 RVA: 0x002EA710 File Offset: 0x002E8910
|
||||
[Token(Token = "0x600CBA0")]
|
||||
[Address(RVA = "0x2AE5640", Offset = "0x2AE4440", VA = "0x182AE5640")]
|
||||
public static RevReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CBA0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_2F)), 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.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: 0x0600CBA1 RID: 52129 RVA: 0x002EA768 File Offset: 0x002E8968
|
||||
[Token(Token = "0x600CBA1")]
|
||||
[Address(RVA = "0x2AE5940", Offset = "0x2AE4740", VA = "0x182AE5940")]
|
||||
public RevReqContent(params RevDetails[] revDetails)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(revDetails);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CBA2 RID: 52130 RVA: 0x002EA78C File Offset: 0x002E898C
|
||||
[Token(Token = "0x600CBA2")]
|
||||
[Address(RVA = "0x2AE5830", Offset = "0x2AE4630", VA = "0x182AE5830", Slot = "6")]
|
||||
public virtual RevDetails[] ToRevDetailsArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
RevDetails[] array = new RevDetails[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
RevDetails revDetails;
|
||||
if (revDetails != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = revDetails;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CBA3 RID: 52131 RVA: 0x002EA7D8 File Offset: 0x002E89D8
|
||||
[Token(Token = "0x600CBA3")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CBA3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(RevReqContent::content, ldloc:RevReqContent(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: 0x040081B8 RID: 33208
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081B8")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F18 RID: 7960
|
||||
[Token(Token = "0x2001F18")]
|
||||
public class Attribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C91F RID: 51487 RVA: 0x002E0FE4 File Offset: 0x002DF1E4
|
||||
[Token(Token = "0x600C91F")]
|
||||
[Address(RVA = "0x2AD03C0", Offset = "0x2ACF1C0", VA = "0x182AD03C0")]
|
||||
public static Attribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C91F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2C:
|
||||
stloc:string(var_8_32, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_32)), 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.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: 0x0600C920 RID: 51488 RVA: 0x002E103C File Offset: 0x002DF23C
|
||||
[Token(Token = "0x600C920")]
|
||||
[Address(RVA = "0x2AD07D0", Offset = "0x2ACF5D0", VA = "0x182AD07D0")]
|
||||
public Attribute(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.attrType = parser;
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0 || parser2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.attrValues = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C921 RID: 51489 RVA: 0x002E1088 File Offset: 0x002DF288
|
||||
[Token(Token = "0x600C921")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public Attribute(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17001F97 RID: 8087
|
||||
// (get) Token: 0x0600C922 RID: 51490 RVA: 0x002E10AC File Offset: 0x002DF2AC
|
||||
[Token(Token = "0x17001F97")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600C922")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F98 RID: 8088
|
||||
// (get) Token: 0x0600C923 RID: 51491 RVA: 0x002E10C0 File Offset: 0x002DF2C0
|
||||
[Token(Token = "0x17001F98")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600C923")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C924 RID: 51492 RVA: 0x002E10D4 File Offset: 0x002DF2D4
|
||||
[Token(Token = "0x600C924")]
|
||||
[Address(RVA = "0x2AD06C0", Offset = "0x2ACF4C0", VA = "0x182AD06C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.attrType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Set asn1Set = this.attrValues;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Set;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400804E RID: 32846
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400804E")]
|
||||
private DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x0400804F RID: 32847
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400804F")]
|
||||
private Asn1Set attrValues;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,375 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F19 RID: 7961
|
||||
[Token(Token = "0x2001F19")]
|
||||
public class AttributeTable
|
||||
{
|
||||
// Token: 0x0600C925 RID: 51493 RVA: 0x002E111C File Offset: 0x002DF31C
|
||||
[Token(Token = "0x600C925")]
|
||||
[Address(RVA = "0x2ACF930", Offset = "0x2ACE730", VA = "0x182ACF930")]
|
||||
[Obsolete]
|
||||
public AttributeTable(Hashtable attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600C926 RID: 51494 RVA: 0x002E1140 File Offset: 0x002DF340
|
||||
[Token(Token = "0x600C926")]
|
||||
[Address(RVA = "0x2ACF8C0", Offset = "0x2ACE6C0", VA = "0x182ACF8C0")]
|
||||
public AttributeTable(IDictionary attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600C927 RID: 51495 RVA: 0x002E1164 File Offset: 0x002DF364
|
||||
[Token(Token = "0x600C927")]
|
||||
[Address(RVA = "0x2ACF6A0", Offset = "0x2ACE4A0", VA = "0x182ACF6A0")]
|
||||
public AttributeTable(Asn1EncodableVector v)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IDictionary dictionary = Platform.CreateHashtable(v.Count);
|
||||
this.attributes = dictionary;
|
||||
IEnumerator enumerator = v.GetEnumerator();
|
||||
Attribute instance;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_5F;
|
||||
}
|
||||
instance = Attribute.GetInstance(num);
|
||||
this.AddAttribute(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_5F:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C928 RID: 51496 RVA: 0x002E11D8 File Offset: 0x002DF3D8
|
||||
[Token(Token = "0x600C928")]
|
||||
[Address(RVA = "0x2ACF9A0", Offset = "0x2ACE7A0", VA = "0x182ACF9A0")]
|
||||
public AttributeTable(Asn1Set s)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
this.attributes = dictionary;
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num != asn1Encodable)
|
||||
{
|
||||
IEnumerator enumerator = s.GetEnumerator();
|
||||
Attribute attribute;
|
||||
this.AddAttribute(attribute);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C929 RID: 51497 RVA: 0x002E1214 File Offset: 0x002DF414
|
||||
[Token(Token = "0x600C929")]
|
||||
[Address(RVA = "0x2ACF570", Offset = "0x2ACE370", VA = "0x182ACF570")]
|
||||
public AttributeTable(Attributes attrs)
|
||||
{
|
||||
Asn1Set instance = Asn1Set.GetInstance(attrs.ToAsn1Object());
|
||||
base..ctor();
|
||||
IDictionary dictionary;
|
||||
this.attributes = dictionary;
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num != asn1Encodable)
|
||||
{
|
||||
IEnumerator enumerator = instance.GetEnumerator();
|
||||
Attribute attribute;
|
||||
this.AddAttribute(attribute);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C92A RID: 51498 RVA: 0x002E125C File Offset: 0x002DF45C
|
||||
[Token(Token = "0x600C92A")]
|
||||
[Address(RVA = "0x2ACE7A0", Offset = "0x2ACD5A0", VA = "0x182ACE7A0")]
|
||||
private void AddAttribute(Attribute a)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
num = 0;
|
||||
}
|
||||
while (num == 0 && num == 0);
|
||||
IList list = Platform.CreateArrayList();
|
||||
IDictionary dictionary2 = this.attributes;
|
||||
}
|
||||
|
||||
// Token: 0x17001F99 RID: 8089
|
||||
[Token(Token = "0x17001F99")]
|
||||
public Attribute this[DerObjectIdentifier oid]
|
||||
{
|
||||
[Token(Token = "0x600C92B")]
|
||||
[Address(RVA = "0x2ACFCB0", Offset = "0x2ACEAB0", VA = "0x182ACFCB0")]
|
||||
get
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
if (oid == 0)
|
||||
{
|
||||
}
|
||||
if (oid != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (num < dictionary)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0 || num != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C92C RID: 51500 RVA: 0x002E12EC File Offset: 0x002DF4EC
|
||||
[Token(Token = "0x600C92C")]
|
||||
[Address(RVA = "0x2ACEED0", Offset = "0x2ACDCD0", VA = "0x182ACEED0")]
|
||||
[Obsolete]
|
||||
public Attribute Get(DerObjectIdentifier oid)
|
||||
{
|
||||
return this[oid];
|
||||
}
|
||||
|
||||
// Token: 0x0600C92D RID: 51501 RVA: 0x002E1300 File Offset: 0x002DF500
|
||||
[Token(Token = "0x600C92D")]
|
||||
[Address(RVA = "0x2ACEA40", Offset = "0x2ACD840", VA = "0x182ACEA40")]
|
||||
public Asn1EncodableVector GetAll(DerObjectIdentifier oid)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
Asn1Encodable[] array2;
|
||||
do
|
||||
{
|
||||
int num = 0;
|
||||
IDictionary dictionary = this.attributes;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
if (asn1EncodableVector == 0 || asn1EncodableVector == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Encodable[] array;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
if (num < asn1EncodableVector)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
goto IL_A7;
|
||||
}
|
||||
array = new Asn1Encodable[1];
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (array != 0)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
array2 = new Asn1Encodable[1];
|
||||
}
|
||||
while (asn1EncodableVector == 0 || asn1EncodableVector == 0);
|
||||
array2[0] = asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array2);
|
||||
return asn1EncodableVector;
|
||||
IL_A7:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001F9A RID: 8090
|
||||
// (get) Token: 0x0600C92E RID: 51502 RVA: 0x002E13BC File Offset: 0x002DF5BC
|
||||
[Token(Token = "0x17001F9A")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600C92E")]
|
||||
[Address(RVA = "0x2ACFAA0", Offset = "0x2ACE8A0", VA = "0x182ACFAA0")]
|
||||
get
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IDictionary dictionary = this.attributes;
|
||||
num += num;
|
||||
num++;
|
||||
if (num == 0)
|
||||
{
|
||||
num++;
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
num += num;
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C92F RID: 51503 RVA: 0x002E140C File Offset: 0x002DF60C
|
||||
[Token(Token = "0x600C92F")]
|
||||
[Address(RVA = "0x2ACF4B0", Offset = "0x2ACE2B0", VA = "0x182ACF4B0")]
|
||||
public IDictionary ToDictionary()
|
||||
{
|
||||
return Platform.CreateHashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600C930 RID: 51504 RVA: 0x002E1424 File Offset: 0x002DF624
|
||||
[Token(Token = "0x600C930")]
|
||||
[Address(RVA = "0x2ACF510", Offset = "0x2ACE310", VA = "0x182ACF510")]
|
||||
[Obsolete]
|
||||
public Hashtable ToHashtable()
|
||||
{
|
||||
return new Hashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600C931 RID: 51505 RVA: 0x002E143C File Offset: 0x002DF63C
|
||||
[Token(Token = "0x600C931")]
|
||||
[Address(RVA = "0x2ACF010", Offset = "0x2ACDE10", VA = "0x182ACF010")]
|
||||
public Asn1EncodableVector ToAsn1EncodableVector()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
Attribute instance;
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Attribute instance2;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
instance2 = Attribute.GetInstance(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
instance = Attribute.GetInstance(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C932 RID: 51506 RVA: 0x002E1500 File Offset: 0x002DF700
|
||||
[Token(Token = "0x600C932")]
|
||||
[Address(RVA = "0x2ACF400", Offset = "0x2ACE200", VA = "0x182ACF400")]
|
||||
public Attributes ToAttributes()
|
||||
{
|
||||
BerSet berSet = new BerSet(this.ToAsn1EncodableVector());
|
||||
Attributes attributes;
|
||||
attributes.attributes = berSet;
|
||||
return attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600C933 RID: 51507 RVA: 0x002E1524 File Offset: 0x002DF724
|
||||
[Token(Token = "0x600C933")]
|
||||
[Address(RVA = "0x2ACE930", Offset = "0x2ACD730", VA = "0x182ACE930")]
|
||||
public AttributeTable Add(DerObjectIdentifier attrType, Asn1Encodable attrValue)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(this.attributes);
|
||||
AttributeTable attributeTable;
|
||||
attributeTable.attributes = dictionary;
|
||||
DerSet derSet = new DerSet(attrValue);
|
||||
Attribute attribute;
|
||||
attribute.attrType = attrType;
|
||||
attribute.attrValues = derSet;
|
||||
attributeTable.AddAttribute(attribute);
|
||||
return attributeTable;
|
||||
}
|
||||
|
||||
// Token: 0x0600C934 RID: 51508 RVA: 0x002E1564 File Offset: 0x002DF764
|
||||
[Token(Token = "0x600C934")]
|
||||
[Address(RVA = "0x2ACEEE0", Offset = "0x2ACDCE0", VA = "0x182ACEEE0")]
|
||||
public AttributeTable Remove(DerObjectIdentifier attrType)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(this.attributes);
|
||||
AttributeTable attributeTable;
|
||||
attributeTable.attributes = dictionary;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
return attributeTable;
|
||||
}
|
||||
|
||||
// Token: 0x04008050 RID: 32848
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008050")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1A RID: 7962
|
||||
[Token(Token = "0x2001F1A")]
|
||||
public class Attributes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C935 RID: 51509 RVA: 0x002E1598 File Offset: 0x002DF798
|
||||
[Token(Token = "0x600C935")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private Attributes(Asn1Set attributes)
|
||||
{
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600C936 RID: 51510 RVA: 0x002E15B4 File Offset: 0x002DF7B4
|
||||
[Token(Token = "0x600C936")]
|
||||
[Address(RVA = "0x2AD0B20", Offset = "0x2ACF920", VA = "0x182AD0B20")]
|
||||
public Attributes(Asn1EncodableVector v)
|
||||
{
|
||||
BerSet berSet = new BerSet(v);
|
||||
this.attributes = berSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600C937 RID: 51511 RVA: 0x002E15D8 File Offset: 0x002DF7D8
|
||||
[Token(Token = "0x600C937")]
|
||||
[Address(RVA = "0x2AD0A20", Offset = "0x2ACF820", VA = "0x182AD0A20")]
|
||||
public static Attributes GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Attributes attributes;
|
||||
if (obj == 0)
|
||||
{
|
||||
Asn1Set instance = Asn1Set.GetInstance(obj);
|
||||
attributes.attributes = instance;
|
||||
return attributes;
|
||||
}
|
||||
if (attributes != 0)
|
||||
{
|
||||
return attributes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C938 RID: 51512 RVA: 0x002E160C File Offset: 0x002DF80C
|
||||
[Token(Token = "0x600C938")]
|
||||
[Address(RVA = "0x2AD0910", Offset = "0x2ACF710", VA = "0x182AD0910", Slot = "6")]
|
||||
public virtual Attribute[] GetAttributes()
|
||||
{
|
||||
Asn1Set asn1Set = this.attributes;
|
||||
Asn1Encodable asn1Encodable;
|
||||
Attribute[] array = new Attribute[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
IEnumerator enumerator = this.attributes.GetEnumerator();
|
||||
Attribute attribute;
|
||||
if (attribute != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = attribute;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C939 RID: 51513 RVA: 0x002E1658 File Offset: 0x002DF858
|
||||
[Token(Token = "0x600C939")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C939)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attributes::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Set(var_0_06, ldfld:Asn1Set(Attributes::attributes, ldloc:Attributes(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: 0x04008051 RID: 32849
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008051")]
|
||||
private readonly Asn1Set attributes;
|
||||
}
|
||||
}
|
||||
+325
@@ -0,0 +1,325 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1B RID: 7963
|
||||
[Token(Token = "0x2001F1B")]
|
||||
public class AuthEnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C93A RID: 51514 RVA: 0x002E166C File Offset: 0x002DF86C
|
||||
[Token(Token = "0x600C93A")]
|
||||
[Address(RVA = "0x2AD1920", Offset = "0x2AD0720", VA = "0x182AD1920")]
|
||||
public AuthEnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo authEncryptedContentInfo, Asn1Set authAttrs, Asn1OctetString mac, Asn1Set unauthAttrs)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.authAttrs = 0;
|
||||
this.mac = 0;
|
||||
this.version = derInteger;
|
||||
this.recipientInfos = recipientInfos;
|
||||
this.authEncryptedContentInfo = authEncryptedContentInfo;
|
||||
this.unauthAttrs = 0;
|
||||
this.originatorInfo = originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C93B RID: 51515 RVA: 0x002E16BC File Offset: 0x002DF8BC
|
||||
[Token(Token = "0x600C93B")]
|
||||
[Address(RVA = "0x2AD19D0", Offset = "0x2AD07D0", VA = "0x182AD19D0")]
|
||||
private AuthEnvelopedData(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
if (parser2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
OriginatorInfo instance = OriginatorInfo.GetInstance(asn1Sequence);
|
||||
this.originatorInfo = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
this.recipientInfos = asn1Set;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
EncryptedContentInfo encryptedContentInfo;
|
||||
this.authEncryptedContentInfo = encryptedContentInfo;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 != 0 && parser5 != 0)
|
||||
{
|
||||
if (parser5 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Set asn1Set2;
|
||||
this.authAttrs = asn1Set2;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.mac = asn1OctetString;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
if (parser7 == 0 || parser7 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set3;
|
||||
this.unauthAttrs = asn1Set3;
|
||||
}
|
||||
|
||||
// Token: 0x0600C93C RID: 51516 RVA: 0x002E1794 File Offset: 0x002DF994
|
||||
[Token(Token = "0x600C93C")]
|
||||
[Address(RVA = "0x2AD12B0", Offset = "0x2AD00B0", VA = "0x182AD12B0")]
|
||||
public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C93D RID: 51517 RVA: 0x002E17B0 File Offset: 0x002DF9B0
|
||||
[Token(Token = "0x600C93D")]
|
||||
[Address(RVA = "0x2AD12D0", Offset = "0x2AD00D0", VA = "0x182AD12D0")]
|
||||
public static AuthEnvelopedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C93D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid AuthEnvelopedData: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
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: 0x17001F9B RID: 8091
|
||||
// (get) Token: 0x0600C93E RID: 51518 RVA: 0x002E1800 File Offset: 0x002DFA00
|
||||
[Token(Token = "0x17001F9B")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C93E")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9C RID: 8092
|
||||
// (get) Token: 0x0600C93F RID: 51519 RVA: 0x002E1814 File Offset: 0x002DFA14
|
||||
[Token(Token = "0x17001F9C")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600C93F")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9D RID: 8093
|
||||
// (get) Token: 0x0600C940 RID: 51520 RVA: 0x002E1828 File Offset: 0x002DFA28
|
||||
[Token(Token = "0x17001F9D")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600C940")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9E RID: 8094
|
||||
// (get) Token: 0x0600C941 RID: 51521 RVA: 0x002E183C File Offset: 0x002DFA3C
|
||||
[Token(Token = "0x17001F9E")]
|
||||
public EncryptedContentInfo AuthEncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C941")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.authEncryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9F RID: 8095
|
||||
// (get) Token: 0x0600C942 RID: 51522 RVA: 0x002E1850 File Offset: 0x002DFA50
|
||||
[Token(Token = "0x17001F9F")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C942")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA0 RID: 8096
|
||||
// (get) Token: 0x0600C943 RID: 51523 RVA: 0x002E1864 File Offset: 0x002DFA64
|
||||
[Token(Token = "0x17001FA0")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600C943")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA1 RID: 8097
|
||||
// (get) Token: 0x0600C944 RID: 51524 RVA: 0x002E1878 File Offset: 0x002DFA78
|
||||
[Token(Token = "0x17001FA1")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C944")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C945 RID: 51525 RVA: 0x002E188C File Offset: 0x002DFA8C
|
||||
[Token(Token = "0x600C945")]
|
||||
[Address(RVA = "0x2AD14C0", Offset = "0x2AD02C0", VA = "0x182AD14C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.originatorInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
OriginatorInfo originatorInfo = this.originatorInfo;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, originatorInfo);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
Asn1Set asn1Set = this.recipientInfos;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1Set;
|
||||
EncryptedContentInfo encryptedContentInfo = this.authEncryptedContentInfo;
|
||||
if (encryptedContentInfo != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = encryptedContentInfo;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.authAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.authAttrs;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.mac;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array5);
|
||||
if (this.unauthAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set3 = this.unauthAttrs;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num4 != 0, 2, asn1Set3);
|
||||
num4 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array6);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008052 RID: 32850
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008052")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008053 RID: 32851
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008053")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04008054 RID: 32852
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008054")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008055 RID: 32853
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008055")]
|
||||
private EncryptedContentInfo authEncryptedContentInfo;
|
||||
|
||||
// Token: 0x04008056 RID: 32854
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008056")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04008057 RID: 32855
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008057")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04008058 RID: 32856
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008058")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1C RID: 7964
|
||||
[Token(Token = "0x2001F1C")]
|
||||
public class AuthEnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600C946 RID: 51526 RVA: 0x002E19F0 File Offset: 0x002DFBF0
|
||||
[Token(Token = "0x600C946")]
|
||||
[Address(RVA = "0x2AD11E0", Offset = "0x2ACFFE0", VA = "0x182AD11E0")]
|
||||
public AuthEnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001FA2 RID: 8098
|
||||
// (get) Token: 0x0600C947 RID: 51527 RVA: 0x002E1A20 File Offset: 0x002DFC20
|
||||
[Token(Token = "0x17001FA2")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C947")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C948 RID: 51528 RVA: 0x002E1A34 File Offset: 0x002DFC34
|
||||
[Token(Token = "0x600C948")]
|
||||
[Address(RVA = "0x2AD0E20", Offset = "0x2ACFC20", VA = "0x182AD0E20")]
|
||||
public OriginatorInfo GetOriginatorInfo()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IAsn1Convertible asn1Convertible = this.nextObject;
|
||||
this.originatorInfoCalled = true;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
if (asn1Convertible != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible asn1Convertible3 = this.nextObject;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
this.nextObject = (ulong)0L;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
OriginatorInfo originatorInfo;
|
||||
return originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C949 RID: 51529 RVA: 0x002E1AA0 File Offset: 0x002DFCA0
|
||||
[Token(Token = "0x600C949")]
|
||||
[Address(RVA = "0x2AD1020", Offset = "0x2ACFE20", VA = "0x182AD1020")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C949)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedDataParser::GetRecipientInfos()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_2:
|
||||
brtrue(IL_00, ceq:bool(ldloc:int32(var_3_23), ldc.i4:int32(0)))
|
||||
}
|
||||
|
||||
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.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: 0x0600C94A RID: 51530 RVA: 0x002E1AE0 File Offset: 0x002DFCE0
|
||||
[Token(Token = "0x600C94A")]
|
||||
[Address(RVA = "0x2AD0CD0", Offset = "0x2ACFAD0", VA = "0x182AD0CD0")]
|
||||
public EncryptedContentInfoParser GetAuthEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C94B RID: 51531 RVA: 0x002E1B0C File Offset: 0x002DFD0C
|
||||
[Token(Token = "0x600C94B")]
|
||||
[Address(RVA = "0x2AD0B90", Offset = "0x2ACF990", VA = "0x182AD0B90")]
|
||||
public Asn1SetParser GetAuthAttrs()
|
||||
{
|
||||
IAsn1Convertible asn1Convertible;
|
||||
do
|
||||
{
|
||||
asn1Convertible = this.nextObject;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
int num = 0;
|
||||
this.nextObject = num;
|
||||
}
|
||||
while (asn1Convertible == 0 || asn1Convertible == 0 || (asn1Convertible != 0 && asn1Convertible == 0));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C94C RID: 51532 RVA: 0x002E1B5C File Offset: 0x002DFD5C
|
||||
[Token(Token = "0x600C94C")]
|
||||
[Address(RVA = "0x2AD0DA0", Offset = "0x2ACFBA0", VA = "0x182AD0DA0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C94D RID: 51533 RVA: 0x002E1B8C File Offset: 0x002DFD8C
|
||||
[Token(Token = "0x600C94D")]
|
||||
[Address(RVA = "0x2AD10C0", Offset = "0x2ACFEC0", VA = "0x182AD10C0")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C94D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedDataParser::GetUnauthAttrs()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:int32(var_1_11, ldc.i4:int32(0))
|
||||
stfld:IAsn1Convertible(AuthEnvelopedDataParser::nextObject, ldloc:AuthEnvelopedDataParser(this), ldloc:int32[exp:IAsn1Convertible](var_1_11))
|
||||
}
|
||||
|
||||
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: 0x04008059 RID: 32857
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008059")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x0400805A RID: 32858
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400805A")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400805B RID: 32859
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400805B")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x0400805C RID: 32860
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400805C")]
|
||||
private bool originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
+460
@@ -0,0 +1,460 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1D RID: 7965
|
||||
[Token(Token = "0x2001F1D")]
|
||||
public class AuthenticatedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C94E RID: 51534 RVA: 0x002E1BB4 File Offset: 0x002DFDB4
|
||||
[Token(Token = "0x600C94E")]
|
||||
[Address(RVA = "0x2AD3600", Offset = "0x2AD2400", VA = "0x182AD3600")]
|
||||
public AuthenticatedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, AlgorithmIdentifier macAlgorithm, AlgorithmIdentifier digestAlgorithm, ContentInfo encapsulatedContent, Asn1Set authAttrs, Asn1OctetString mac, Asn1Set unauthAttrs)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(AuthenticatedData.CalculateVersion(originatorInfo));
|
||||
this.encapsulatedContentInfo = 0;
|
||||
this.mac = 0;
|
||||
this.version = derInteger;
|
||||
this.authAttrs = 0;
|
||||
this.unauthAttrs = 0;
|
||||
this.originatorInfo = originatorInfo;
|
||||
this.macAlgorithm = macAlgorithm;
|
||||
this.digestAlgorithm = 0;
|
||||
this.recipientInfos = recipientInfos;
|
||||
}
|
||||
|
||||
// Token: 0x0600C94F RID: 51535 RVA: 0x002E1C20 File Offset: 0x002DFE20
|
||||
[Token(Token = "0x600C94F")]
|
||||
[Address(RVA = "0x2AD31C0", Offset = "0x2AD1FC0", VA = "0x182AD31C0")]
|
||||
private AuthenticatedData(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
if (parser2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
OriginatorInfo instance = OriginatorInfo.GetInstance(asn1Sequence);
|
||||
this.originatorInfo = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
this.recipientInfos = asn1Set;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.macAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 != 0 && parser5 != 0)
|
||||
{
|
||||
if (parser5 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
AlgorithmIdentifier algorithmIdentifier2;
|
||||
this.digestAlgorithm = algorithmIdentifier2;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
}
|
||||
ContentInfo contentInfo;
|
||||
this.encapsulatedContentInfo = contentInfo;
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
if (parser7 != 0 && parser7 != 0)
|
||||
{
|
||||
if (parser7 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Set asn1Set2;
|
||||
this.authAttrs = asn1Set2;
|
||||
Asn1SequenceParser parser8 = seq.Parser;
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.mac = asn1OctetString;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser9 = seq.Parser;
|
||||
if (parser9 == 0 || parser9 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set3;
|
||||
this.unauthAttrs = asn1Set3;
|
||||
}
|
||||
|
||||
// Token: 0x0600C950 RID: 51536 RVA: 0x002E1D30 File Offset: 0x002DFF30
|
||||
[Token(Token = "0x600C950")]
|
||||
[Address(RVA = "0x2AD2C40", Offset = "0x2AD1A40", VA = "0x182AD2C40")]
|
||||
public static AuthenticatedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthenticatedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C951 RID: 51537 RVA: 0x002E1D4C File Offset: 0x002DFF4C
|
||||
[Token(Token = "0x600C951")]
|
||||
[Address(RVA = "0x2AD2A50", Offset = "0x2AD1850", VA = "0x182AD2A50")]
|
||||
public static AuthenticatedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C951)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid AuthenticatedData: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
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: 0x17001FA3 RID: 8099
|
||||
// (get) Token: 0x0600C952 RID: 51538 RVA: 0x002E1D9C File Offset: 0x002DFF9C
|
||||
[Token(Token = "0x17001FA3")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C952")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA4 RID: 8100
|
||||
// (get) Token: 0x0600C953 RID: 51539 RVA: 0x002E1DB0 File Offset: 0x002DFFB0
|
||||
[Token(Token = "0x17001FA4")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600C953")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA5 RID: 8101
|
||||
// (get) Token: 0x0600C954 RID: 51540 RVA: 0x002E1DC4 File Offset: 0x002DFFC4
|
||||
[Token(Token = "0x17001FA5")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600C954")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA6 RID: 8102
|
||||
// (get) Token: 0x0600C955 RID: 51541 RVA: 0x002E1DD8 File Offset: 0x002DFFD8
|
||||
[Token(Token = "0x17001FA6")]
|
||||
public AlgorithmIdentifier MacAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C955")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.macAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA7 RID: 8103
|
||||
// (get) Token: 0x0600C956 RID: 51542 RVA: 0x002E1DEC File Offset: 0x002DFFEC
|
||||
[Token(Token = "0x17001FA7")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C956")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA8 RID: 8104
|
||||
// (get) Token: 0x0600C957 RID: 51543 RVA: 0x002E1E00 File Offset: 0x002E0000
|
||||
[Token(Token = "0x17001FA8")]
|
||||
public ContentInfo EncapsulatedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C957")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.encapsulatedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA9 RID: 8105
|
||||
// (get) Token: 0x0600C958 RID: 51544 RVA: 0x002E1E14 File Offset: 0x002E0014
|
||||
[Token(Token = "0x17001FA9")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C958")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAA RID: 8106
|
||||
// (get) Token: 0x0600C959 RID: 51545 RVA: 0x002E1E28 File Offset: 0x002E0028
|
||||
[Token(Token = "0x17001FAA")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600C959")]
|
||||
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAB RID: 8107
|
||||
// (get) Token: 0x0600C95A RID: 51546 RVA: 0x002E1E3C File Offset: 0x002E003C
|
||||
[Token(Token = "0x17001FAB")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C95A")]
|
||||
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C95B RID: 51547 RVA: 0x002E1E50 File Offset: 0x002E0050
|
||||
[Token(Token = "0x600C95B")]
|
||||
[Address(RVA = "0x2AD2C60", Offset = "0x2AD1A60", VA = "0x182AD2C60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
int num = 0;
|
||||
if (this.originatorInfo != num)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[0];
|
||||
OriginatorInfo originatorInfo = this.originatorInfo;
|
||||
int num2;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num2 != 0, num3, originatorInfo);
|
||||
num3 = 0;
|
||||
num2 = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
Asn1Set asn1Set = this.recipientInfos;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1Set;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.macAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = algorithmIdentifier;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.digestAlgorithm != num)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.digestAlgorithm;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num4 != 0, 1, algorithmIdentifier2);
|
||||
num4 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
ContentInfo contentInfo = this.encapsulatedContentInfo;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = contentInfo;
|
||||
asn1EncodableVector.Add(array5);
|
||||
if (this.authAttrs != num)
|
||||
{
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.authAttrs;
|
||||
int num5;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num5 != 0, 2, asn1Set2);
|
||||
num5 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array6);
|
||||
}
|
||||
Asn1Encodable[] array7 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.mac;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array7[0] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array7);
|
||||
if (this.unauthAttrs != num)
|
||||
{
|
||||
Asn1Encodable[] array8 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set3 = this.unauthAttrs;
|
||||
int num6;
|
||||
DerTaggedObject derTaggedObject4 = new DerTaggedObject(num6 != 0, 3, asn1Set3);
|
||||
num6 = 0;
|
||||
if (derTaggedObject4 != 0)
|
||||
{
|
||||
}
|
||||
array8[0] = derTaggedObject4;
|
||||
asn1EncodableVector.Add(array8);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C95C RID: 51548 RVA: 0x002E201C File Offset: 0x002E021C
|
||||
[Token(Token = "0x600C95C")]
|
||||
[Address(RVA = "0x2AD26F0", Offset = "0x2AD14F0", VA = "0x182AD26F0")]
|
||||
public static int CalculateVersion(OriginatorInfo origInfo)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (origInfo == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
IEnumerator enumerator = origInfo.certs.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
int num2 = 0;
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_5D;
|
||||
}
|
||||
if (num2 != 2)
|
||||
{
|
||||
while (num2 != 3)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
goto IL_63;
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
IEnumerator enumerator2 = origInfo.crls.GetEnumerator();
|
||||
if (enumerator2 != 0)
|
||||
{
|
||||
while (enumerator2 == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return num;
|
||||
IL_5D:
|
||||
throw new NullReferenceException();
|
||||
IL_63:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400805D RID: 32861
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400805D")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400805E RID: 32862
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400805E")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400805F RID: 32863
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400805F")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008060 RID: 32864
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008060")]
|
||||
private AlgorithmIdentifier macAlgorithm;
|
||||
|
||||
// Token: 0x04008061 RID: 32865
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008061")]
|
||||
private AlgorithmIdentifier digestAlgorithm;
|
||||
|
||||
// Token: 0x04008062 RID: 32866
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008062")]
|
||||
private ContentInfo encapsulatedContentInfo;
|
||||
|
||||
// Token: 0x04008063 RID: 32867
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008063")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04008064 RID: 32868
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4008064")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04008065 RID: 32869
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4008065")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+249
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1E RID: 7966
|
||||
[Token(Token = "0x2001F1E")]
|
||||
public class AuthenticatedDataParser
|
||||
{
|
||||
// Token: 0x0600C95D RID: 51549 RVA: 0x002E2098 File Offset: 0x002E0298
|
||||
[Token(Token = "0x600C95D")]
|
||||
[Address(RVA = "0x2AD2620", Offset = "0x2AD1420", VA = "0x182AD2620")]
|
||||
public AuthenticatedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001FAC RID: 8108
|
||||
// (get) Token: 0x0600C95E RID: 51550 RVA: 0x002E20C8 File Offset: 0x002E02C8
|
||||
[Token(Token = "0x17001FAC")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C95E")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C95F RID: 51551 RVA: 0x002E20DC File Offset: 0x002E02DC
|
||||
[Token(Token = "0x600C95F")]
|
||||
[Address(RVA = "0x2AD2260", Offset = "0x2AD1060", VA = "0x182AD2260")]
|
||||
public OriginatorInfo GetOriginatorInfo()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IAsn1Convertible asn1Convertible = this.nextObject;
|
||||
this.originatorInfoCalled = true;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
if (asn1Convertible != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible asn1Convertible3 = this.nextObject;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
this.nextObject = (ulong)0L;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
OriginatorInfo originatorInfo;
|
||||
return originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C960 RID: 51552 RVA: 0x002E2148 File Offset: 0x002E0348
|
||||
[Token(Token = "0x600C960")]
|
||||
[Address(RVA = "0x2AD2460", Offset = "0x2AD1260", VA = "0x182AD2460")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C960)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedDataParser::GetRecipientInfos()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_2:
|
||||
brtrue(IL_00, ceq:bool(ldloc:int32(var_3_23), ldc.i4:int32(0)))
|
||||
}
|
||||
|
||||
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.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: 0x0600C961 RID: 51553 RVA: 0x002E2188 File Offset: 0x002E0388
|
||||
[Token(Token = "0x600C961")]
|
||||
[Address(RVA = "0x2AD2100", Offset = "0x2AD0F00", VA = "0x182AD2100")]
|
||||
public AlgorithmIdentifier GetMacAlgorithm()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
return AlgorithmIdentifier.GetInstance(0);
|
||||
}
|
||||
|
||||
// Token: 0x0600C962 RID: 51554 RVA: 0x002E21B4 File Offset: 0x002E03B4
|
||||
[Token(Token = "0x600C962")]
|
||||
[Address(RVA = "0x2AD1F40", Offset = "0x2AD0D40", VA = "0x182AD1F40")]
|
||||
public AlgorithmIdentifier GetDigestAlgorithm()
|
||||
{
|
||||
IAsn1Convertible asn1Convertible;
|
||||
do
|
||||
{
|
||||
asn1Convertible = this.nextObject;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Convertible == 0);
|
||||
this.nextObject = (ulong)0L;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
return algorithmIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600C963 RID: 51555 RVA: 0x002E2204 File Offset: 0x002E0404
|
||||
[Token(Token = "0x600C963")]
|
||||
[Address(RVA = "0x2AD2030", Offset = "0x2AD0E30", VA = "0x182AD2030")]
|
||||
public ContentInfoParser GetEnapsulatedContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C964 RID: 51556 RVA: 0x002E2230 File Offset: 0x002E0430
|
||||
[Token(Token = "0x600C964")]
|
||||
[Address(RVA = "0x2AD1E00", Offset = "0x2AD0C00", VA = "0x182AD1E00")]
|
||||
public Asn1SetParser GetAuthAttrs()
|
||||
{
|
||||
IAsn1Convertible asn1Convertible;
|
||||
do
|
||||
{
|
||||
asn1Convertible = this.nextObject;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
int num = 0;
|
||||
this.nextObject = num;
|
||||
}
|
||||
while (asn1Convertible == 0 || asn1Convertible == 0 || (asn1Convertible != 0 && asn1Convertible == 0));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C965 RID: 51557 RVA: 0x002E2280 File Offset: 0x002E0480
|
||||
[Token(Token = "0x600C965")]
|
||||
[Address(RVA = "0x2AD21E0", Offset = "0x2AD0FE0", VA = "0x182AD21E0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C966 RID: 51558 RVA: 0x002E22B0 File Offset: 0x002E04B0
|
||||
[Token(Token = "0x600C966")]
|
||||
[Address(RVA = "0x2AD2500", Offset = "0x2AD1300", VA = "0x182AD2500")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C966)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedDataParser::GetUnauthAttrs()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:int32(var_1_11, ldc.i4:int32(0))
|
||||
stfld:IAsn1Convertible(AuthenticatedDataParser::nextObject, ldloc:AuthenticatedDataParser(this), ldloc:int32[exp:IAsn1Convertible](var_1_11))
|
||||
}
|
||||
|
||||
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: 0x04008066 RID: 32870
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008066")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04008067 RID: 32871
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008067")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008068 RID: 32872
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008068")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04008069 RID: 32873
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008069")]
|
||||
private bool originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1F RID: 7967
|
||||
[Token(Token = "0x2001F1F")]
|
||||
public abstract class CmsAttributes
|
||||
{
|
||||
// Token: 0x0600C967 RID: 51559 RVA: 0x002E22D8 File Offset: 0x002E04D8
|
||||
[Token(Token = "0x600C967")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected CmsAttributes()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400806A RID: 32874
|
||||
[Token(Token = "0x400806A")]
|
||||
public static readonly DerObjectIdentifier ContentType = PkcsObjectIdentifiers.Pkcs9AtContentType;
|
||||
|
||||
// Token: 0x0400806B RID: 32875
|
||||
[Token(Token = "0x400806B")]
|
||||
public static readonly DerObjectIdentifier MessageDigest = PkcsObjectIdentifiers.Pkcs9AtMessageDigest;
|
||||
|
||||
// Token: 0x0400806C RID: 32876
|
||||
[Token(Token = "0x400806C")]
|
||||
public static readonly DerObjectIdentifier SigningTime = PkcsObjectIdentifiers.Pkcs9AtSigningTime;
|
||||
|
||||
// Token: 0x0400806D RID: 32877
|
||||
[Token(Token = "0x400806D")]
|
||||
public static readonly DerObjectIdentifier CounterSignature = PkcsObjectIdentifiers.Pkcs9AtCounterSignature;
|
||||
|
||||
// Token: 0x0400806E RID: 32878
|
||||
[Token(Token = "0x400806E")]
|
||||
public static readonly DerObjectIdentifier ContentHint = PkcsObjectIdentifiers.IdAAContentHint;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F20 RID: 7968
|
||||
[Token(Token = "0x2001F20")]
|
||||
public abstract class CmsObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600C969 RID: 51561 RVA: 0x002E232C File Offset: 0x002E052C
|
||||
[Token(Token = "0x600C969")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected CmsObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400806F RID: 32879
|
||||
[Token(Token = "0x400806F")]
|
||||
public static readonly DerObjectIdentifier Data = PkcsObjectIdentifiers.Data;
|
||||
|
||||
// Token: 0x04008070 RID: 32880
|
||||
[Token(Token = "0x4008070")]
|
||||
public static readonly DerObjectIdentifier SignedData = PkcsObjectIdentifiers.SignedData;
|
||||
|
||||
// Token: 0x04008071 RID: 32881
|
||||
[Token(Token = "0x4008071")]
|
||||
public static readonly DerObjectIdentifier EnvelopedData = PkcsObjectIdentifiers.EnvelopedData;
|
||||
|
||||
// Token: 0x04008072 RID: 32882
|
||||
[Token(Token = "0x4008072")]
|
||||
public static readonly DerObjectIdentifier SignedAndEnvelopedData = PkcsObjectIdentifiers.SignedAndEnvelopedData;
|
||||
|
||||
// Token: 0x04008073 RID: 32883
|
||||
[Token(Token = "0x4008073")]
|
||||
public static readonly DerObjectIdentifier DigestedData = PkcsObjectIdentifiers.DigestedData;
|
||||
|
||||
// Token: 0x04008074 RID: 32884
|
||||
[Token(Token = "0x4008074")]
|
||||
public static readonly DerObjectIdentifier EncryptedData = PkcsObjectIdentifiers.EncryptedData;
|
||||
|
||||
// Token: 0x04008075 RID: 32885
|
||||
[Token(Token = "0x4008075")]
|
||||
public static readonly DerObjectIdentifier AuthenticatedData = PkcsObjectIdentifiers.IdCTAuthData;
|
||||
|
||||
// Token: 0x04008076 RID: 32886
|
||||
[Token(Token = "0x4008076")]
|
||||
public static readonly DerObjectIdentifier CompressedData = PkcsObjectIdentifiers.IdCTCompressedData;
|
||||
|
||||
// Token: 0x04008077 RID: 32887
|
||||
[Token(Token = "0x4008077")]
|
||||
public static readonly DerObjectIdentifier AuthEnvelopedData = PkcsObjectIdentifiers.IdCTAuthEnvelopedData;
|
||||
|
||||
// Token: 0x04008078 RID: 32888
|
||||
[Token(Token = "0x4008078")]
|
||||
public static readonly DerObjectIdentifier timestampedData = PkcsObjectIdentifiers.IdCTTimestampedData;
|
||||
|
||||
// Token: 0x04008079 RID: 32889
|
||||
[Token(Token = "0x4008079")]
|
||||
public static readonly DerObjectIdentifier id_ri = new DerObjectIdentifier("1.3.6.1.5.5.7.16");
|
||||
|
||||
// Token: 0x0400807A RID: 32890
|
||||
[Token(Token = "0x400807A")]
|
||||
public static readonly DerObjectIdentifier id_ri_ocsp_response = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400807B RID: 32891
|
||||
[Token(Token = "0x400807B")]
|
||||
public static readonly DerObjectIdentifier id_ri_scvp = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F21 RID: 7969
|
||||
[Token(Token = "0x2001F21")]
|
||||
public class CompressedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C96B RID: 51563 RVA: 0x002E23E4 File Offset: 0x002E05E4
|
||||
[Token(Token = "0x600C96B")]
|
||||
[Address(RVA = "0x2AD5450", Offset = "0x2AD4250", VA = "0x182AD5450")]
|
||||
public CompressedData(AlgorithmIdentifier compressionAlgorithm, ContentInfo encapContentInfo)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
this.compressionAlgorithm = compressionAlgorithm;
|
||||
this.encapContentInfo = encapContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C96C RID: 51564 RVA: 0x002E2418 File Offset: 0x002E0618
|
||||
[Token(Token = "0x600C96C")]
|
||||
[Address(RVA = "0x2AD54D0", Offset = "0x2AD42D0", VA = "0x182AD54D0")]
|
||||
public CompressedData(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
parser = seq.Parser;
|
||||
}
|
||||
while (parser != 0 && parser == 0);
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.compressionAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
ContentInfo contentInfo;
|
||||
this.encapContentInfo = contentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C96D RID: 51565 RVA: 0x002E2468 File Offset: 0x002E0668
|
||||
[Token(Token = "0x600C96D")]
|
||||
[Address(RVA = "0x2AD4FF0", Offset = "0x2AD3DF0", VA = "0x182AD4FF0")]
|
||||
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C96E RID: 51566 RVA: 0x002E2484 File Offset: 0x002E0684
|
||||
[Token(Token = "0x600C96E")]
|
||||
[Address(RVA = "0x2AD5010", Offset = "0x2AD3E10", VA = "0x182AD5010")]
|
||||
public static CompressedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C96E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.CompressedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.CompressedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3C:
|
||||
stloc:string(var_10_42, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_55, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid CompressedData: "), ldloc:string(var_10_42))))
|
||||
}
|
||||
|
||||
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: 0x17001FAD RID: 8109
|
||||
// (get) Token: 0x0600C96F RID: 51567 RVA: 0x002E24E8 File Offset: 0x002E06E8
|
||||
[Token(Token = "0x17001FAD")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C96F")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAE RID: 8110
|
||||
// (get) Token: 0x0600C970 RID: 51568 RVA: 0x002E24FC File Offset: 0x002E06FC
|
||||
[Token(Token = "0x17001FAE")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C970")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAF RID: 8111
|
||||
// (get) Token: 0x0600C971 RID: 51569 RVA: 0x002E2510 File Offset: 0x002E0710
|
||||
[Token(Token = "0x17001FAF")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C971")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.encapContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C972 RID: 51570 RVA: 0x002E2524 File Offset: 0x002E0724
|
||||
[Token(Token = "0x600C972")]
|
||||
[Address(RVA = "0x2AD52E0", Offset = "0x2AD40E0", VA = "0x182AD52E0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.compressionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
ContentInfo contentInfo = this.encapContentInfo;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
array[2] = contentInfo;
|
||||
BerSequence berSequence = new BerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400807C RID: 32892
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400807C")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400807D RID: 32893
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400807D")]
|
||||
private AlgorithmIdentifier compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400807E RID: 32894
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400807E")]
|
||||
private ContentInfo encapContentInfo;
|
||||
}
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F22 RID: 7970
|
||||
[Token(Token = "0x2001F22")]
|
||||
public class CompressedDataParser
|
||||
{
|
||||
// Token: 0x0600C973 RID: 51571 RVA: 0x002E2580 File Offset: 0x002E0780
|
||||
[Token(Token = "0x600C973")]
|
||||
[Address(RVA = "0x2AD4E70", Offset = "0x2AD3C70", VA = "0x182AD4E70")]
|
||||
public CompressedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this._version = seq;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this._compressionAlgorithm = algorithmIdentifier;
|
||||
if (algorithmIdentifier == 0 || contentInfoParser != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this._encapContentInfo = contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x17001FB0 RID: 8112
|
||||
// (get) Token: 0x0600C974 RID: 51572 RVA: 0x002E25C0 File Offset: 0x002E07C0
|
||||
[Token(Token = "0x17001FB0")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C974")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB1 RID: 8113
|
||||
// (get) Token: 0x0600C975 RID: 51573 RVA: 0x002E25D4 File Offset: 0x002E07D4
|
||||
[Token(Token = "0x17001FB1")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C975")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this._compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C976 RID: 51574 RVA: 0x002E25E8 File Offset: 0x002E07E8
|
||||
[Token(Token = "0x600C976")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
return this._encapContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0400807F RID: 32895
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400807F")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04008080 RID: 32896
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008080")]
|
||||
private AlgorithmIdentifier _compressionAlgorithm;
|
||||
|
||||
// Token: 0x04008081 RID: 32897
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008081")]
|
||||
private ContentInfoParser _encapContentInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F23 RID: 7971
|
||||
[Token(Token = "0x2001F23")]
|
||||
public class ContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C977 RID: 51575 RVA: 0x002E25FC File Offset: 0x002E07FC
|
||||
[Token(Token = "0x600C977")]
|
||||
[Address(RVA = "0x2AD5BD0", Offset = "0x2AD49D0", VA = "0x182AD5BD0")]
|
||||
public static ContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C977)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.ContentInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.ContentInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
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: 0x0600C978 RID: 51576 RVA: 0x002E264C File Offset: 0x002E084C
|
||||
[Token(Token = "0x600C978")]
|
||||
[Address(RVA = "0x2AD5BB0", Offset = "0x2AD49B0", VA = "0x182AD5BB0")]
|
||||
public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return ContentInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C979 RID: 51577 RVA: 0x002E2668 File Offset: 0x002E0868
|
||||
[Token(Token = "0x600C979")]
|
||||
[Address(RVA = "0x2AD5F60", Offset = "0x2AD4D60", VA = "0x182AD5F60")]
|
||||
private ContentInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
parser = seq.Parser;
|
||||
}
|
||||
while (parser != 0 && parser == 0);
|
||||
this.contentType = parser;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1Object asn1Object;
|
||||
this.content = asn1Object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C97A RID: 51578 RVA: 0x002E26C4 File Offset: 0x002E08C4
|
||||
[Token(Token = "0x600C97A")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x17001FB2 RID: 8114
|
||||
// (get) Token: 0x0600C97B RID: 51579 RVA: 0x002E26E8 File Offset: 0x002E08E8
|
||||
[Token(Token = "0x17001FB2")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C97B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB3 RID: 8115
|
||||
// (get) Token: 0x0600C97C RID: 51580 RVA: 0x002E26FC File Offset: 0x002E08FC
|
||||
[Token(Token = "0x17001FB3")]
|
||||
public Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600C97C")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C97D RID: 51581 RVA: 0x002E2710 File Offset: 0x002E0910
|
||||
[Token(Token = "0x600C97D")]
|
||||
[Address(RVA = "0x2AD5DC0", Offset = "0x2AD4BC0", VA = "0x182AD5DC0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.content != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Encodable asn1Encodable = this.content;
|
||||
int num;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num, asn1Encodable);
|
||||
num = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = berTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008082 RID: 32898
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008082")]
|
||||
private readonly DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04008083 RID: 32899
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008083")]
|
||||
private readonly Asn1Encodable content;
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F24 RID: 7972
|
||||
[Token(Token = "0x2001F24")]
|
||||
public class ContentInfoParser
|
||||
{
|
||||
// Token: 0x0600C97E RID: 51582 RVA: 0x002E2788 File Offset: 0x002E0988
|
||||
[Token(Token = "0x600C97E")]
|
||||
[Address(RVA = "0x2AD5A90", Offset = "0x2AD4890", VA = "0x182AD5A90")]
|
||||
public ContentInfoParser(Asn1SequenceParser seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this.contentType = seq;
|
||||
if (seq == 0 || seq != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001FB4 RID: 8116
|
||||
// (get) Token: 0x0600C97F RID: 51583 RVA: 0x002E27C0 File Offset: 0x002E09C0
|
||||
[Token(Token = "0x17001FB4")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C97F")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C980 RID: 51584 RVA: 0x002E27D4 File Offset: 0x002E09D4
|
||||
[Token(Token = "0x600C980")]
|
||||
[Address(RVA = "0x2AD5A20", Offset = "0x2AD4820", VA = "0x182AD5A20")]
|
||||
public IAsn1Convertible GetContent(int tag)
|
||||
{
|
||||
if (this.content != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04008084 RID: 32900
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008084")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04008085 RID: 32901
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008085")]
|
||||
private Asn1TaggedObjectParser content;
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc
|
||||
{
|
||||
// Token: 0x02001F47 RID: 8007
|
||||
[Token(Token = "0x2001F47")]
|
||||
public class MQVuserKeyingMaterial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA93 RID: 51859 RVA: 0x002E66B8 File Offset: 0x002E48B8
|
||||
[Token(Token = "0x600CA93")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public MQVuserKeyingMaterial(OriginatorPublicKey ephemeralPublicKey, Asn1OctetString addedukm)
|
||||
{
|
||||
this.ephemeralPublicKey = ephemeralPublicKey;
|
||||
this.addedukm = addedukm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA94 RID: 51860 RVA: 0x002E66DC File Offset: 0x002E48DC
|
||||
[Token(Token = "0x600CA94")]
|
||||
[Address(RVA = "0x2ADAC20", Offset = "0x2AD9A20", VA = "0x182ADAC20")]
|
||||
private MQVuserKeyingMaterial(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
OriginatorPublicKey originatorPublicKey;
|
||||
this.ephemeralPublicKey = originatorPublicKey;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)1L)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser2 == 0);
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.addedukm = asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA95 RID: 51861 RVA: 0x002E6724 File Offset: 0x002E4924
|
||||
[Token(Token = "0x600CA95")]
|
||||
[Address(RVA = "0x2ADAA60", Offset = "0x2AD9860", VA = "0x182ADAA60")]
|
||||
public static MQVuserKeyingMaterial GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return MQVuserKeyingMaterial.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA96 RID: 51862 RVA: 0x002E6740 File Offset: 0x002E4940
|
||||
[Token(Token = "0x600CA96")]
|
||||
[Address(RVA = "0x2ADA790", Offset = "0x2AD9590", VA = "0x182ADA790")]
|
||||
public static MQVuserKeyingMaterial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA96)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc.MQVuserKeyingMaterial BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc.MQVuserKeyingMaterial::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_52, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid MQVuserKeyingMaterial: "), ldloc:string(var_9_3F))))
|
||||
}
|
||||
|
||||
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: 0x17002016 RID: 8214
|
||||
// (get) Token: 0x0600CA97 RID: 51863 RVA: 0x002E67A0 File Offset: 0x002E49A0
|
||||
[Token(Token = "0x17002016")]
|
||||
public OriginatorPublicKey EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600CA97")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002017 RID: 8215
|
||||
// (get) Token: 0x0600CA98 RID: 51864 RVA: 0x002E67B4 File Offset: 0x002E49B4
|
||||
[Token(Token = "0x17002017")]
|
||||
public Asn1OctetString AddedUkm
|
||||
{
|
||||
[Token(Token = "0x600CA98")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.addedukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA99 RID: 51865 RVA: 0x002E67C8 File Offset: 0x002E49C8
|
||||
[Token(Token = "0x600CA99")]
|
||||
[Address(RVA = "0x2ADAA80", Offset = "0x2AD9880", VA = "0x182ADAA80", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
OriginatorPublicKey originatorPublicKey = this.ephemeralPublicKey;
|
||||
if (originatorPublicKey != 0)
|
||||
{
|
||||
}
|
||||
array[0] = originatorPublicKey;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.addedukm != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.addedukm;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, asn1OctetString);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080F1 RID: 33009
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080F1")]
|
||||
private OriginatorPublicKey ephemeralPublicKey;
|
||||
|
||||
// Token: 0x040080F2 RID: 33010
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080F2")]
|
||||
private Asn1OctetString addedukm;
|
||||
}
|
||||
}
|
||||
+172
@@ -0,0 +1,172 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F25 RID: 7973
|
||||
[Token(Token = "0x2001F25")]
|
||||
public class EncryptedContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C981 RID: 51585 RVA: 0x002E27EC File Offset: 0x002E09EC
|
||||
[Token(Token = "0x600C981")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
public EncryptedContentInfo(DerObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, Asn1OctetString encryptedContent)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.contentEncryptionAlgorithm = contentEncryptionAlgorithm;
|
||||
this.encryptedContent = encryptedContent;
|
||||
}
|
||||
|
||||
// Token: 0x0600C982 RID: 51586 RVA: 0x002E2814 File Offset: 0x002E0A14
|
||||
[Token(Token = "0x600C982")]
|
||||
[Address(RVA = "0x2AD6700", Offset = "0x2AD5500", VA = "0x182AD6700")]
|
||||
public EncryptedContentInfo(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.contentType = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.contentEncryptionAlgorithm = algorithmIdentifier;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)2L)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 == 0 || parser3 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.encryptedContent = asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C983 RID: 51587 RVA: 0x002E2878 File Offset: 0x002E0A78
|
||||
[Token(Token = "0x600C983")]
|
||||
[Address(RVA = "0x2AD6310", Offset = "0x2AD5110", VA = "0x182AD6310")]
|
||||
public static EncryptedContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C983)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid EncryptedContentInfo: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
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: 0x17001FB5 RID: 8117
|
||||
// (get) Token: 0x0600C984 RID: 51588 RVA: 0x002E28C8 File Offset: 0x002E0AC8
|
||||
[Token(Token = "0x17001FB5")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C984")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB6 RID: 8118
|
||||
// (get) Token: 0x0600C985 RID: 51589 RVA: 0x002E28DC File Offset: 0x002E0ADC
|
||||
[Token(Token = "0x17001FB6")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C985")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB7 RID: 8119
|
||||
// (get) Token: 0x0600C986 RID: 51590 RVA: 0x002E28F0 File Offset: 0x002E0AF0
|
||||
[Token(Token = "0x17001FB7")]
|
||||
public Asn1OctetString EncryptedContent
|
||||
{
|
||||
[Token(Token = "0x600C986")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C987 RID: 51591 RVA: 0x002E2904 File Offset: 0x002E0B04
|
||||
[Token(Token = "0x600C987")]
|
||||
[Address(RVA = "0x2AD6500", Offset = "0x2AD5300", VA = "0x182AD6500", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.contentEncryptionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.encryptedContent != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.encryptedContent;
|
||||
int num;
|
||||
int num2;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num != 0, num2, asn1OctetString);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = berTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008086 RID: 32902
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008086")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04008087 RID: 32903
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008087")]
|
||||
private AlgorithmIdentifier contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008088 RID: 32904
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008088")]
|
||||
private Asn1OctetString encryptedContent;
|
||||
}
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F26 RID: 7974
|
||||
[Token(Token = "0x2001F26")]
|
||||
public class EncryptedContentInfoParser
|
||||
{
|
||||
// Token: 0x0600C988 RID: 51592 RVA: 0x002E2998 File Offset: 0x002E0B98
|
||||
[Token(Token = "0x600C988")]
|
||||
[Address(RVA = "0x2AD61C0", Offset = "0x2AD4FC0", VA = "0x182AD61C0")]
|
||||
public EncryptedContentInfoParser(Asn1SequenceParser seq)
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this._contentType = seq;
|
||||
this._contentEncryptionAlgorithm = algorithmIdentifier;
|
||||
if (algorithmIdentifier == 0 || algorithmIdentifier != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this._encryptedContent = algorithmIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x17001FB8 RID: 8120
|
||||
// (get) Token: 0x0600C989 RID: 51593 RVA: 0x002E29D8 File Offset: 0x002E0BD8
|
||||
[Token(Token = "0x17001FB8")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C989")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this._contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB9 RID: 8121
|
||||
// (get) Token: 0x0600C98A RID: 51594 RVA: 0x002E29EC File Offset: 0x002E0BEC
|
||||
[Token(Token = "0x17001FB9")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C98A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this._contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C98B RID: 51595 RVA: 0x002E2A00 File Offset: 0x002E0C00
|
||||
[Token(Token = "0x600C98B")]
|
||||
[Address(RVA = "0x2AD6160", Offset = "0x2AD4F60", VA = "0x182AD6160")]
|
||||
public IAsn1Convertible GetEncryptedContent(int tag)
|
||||
{
|
||||
Asn1TaggedObjectParser encryptedContent = this._encryptedContent;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008089 RID: 32905
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008089")]
|
||||
private DerObjectIdentifier _contentType;
|
||||
|
||||
// Token: 0x0400808A RID: 32906
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400808A")]
|
||||
private AlgorithmIdentifier _contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x0400808B RID: 32907
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400808B")]
|
||||
private Asn1TaggedObjectParser _encryptedContent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F27 RID: 7975
|
||||
[Token(Token = "0x2001F27")]
|
||||
public class EncryptedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C98C RID: 51596 RVA: 0x002E2A1C File Offset: 0x002E0C1C
|
||||
[Token(Token = "0x600C98C")]
|
||||
[Address(RVA = "0x2AD6880", Offset = "0x2AD5680", VA = "0x182AD6880")]
|
||||
public static EncryptedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid EncryptedData: "), ldloc:string(var_6_28))))
|
||||
}
|
||||
|
||||
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: 0x0600C98D RID: 51597 RVA: 0x002E2A68 File Offset: 0x002E0C68
|
||||
[Token(Token = "0x600C98D")]
|
||||
[Address(RVA = "0x2AD6F00", Offset = "0x2AD5D00", VA = "0x182AD6F00")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2B:
|
||||
stloc:ArgumentNullException(var_2_35, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("encInfo")))
|
||||
}
|
||||
|
||||
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.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: 0x0600C98E RID: 51598 RVA: 0x002E2AAC File Offset: 0x002E0CAC
|
||||
[Token(Token = "0x600C98E")]
|
||||
[Address(RVA = "0x2AD6C70", Offset = "0x2AD5A70", VA = "0x182AD6C70")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:ArgumentNullException(var_2_33, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("encInfo")))
|
||||
}
|
||||
|
||||
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.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: 0x0600C98F RID: 51599 RVA: 0x002E2AEC File Offset: 0x002E0CEC
|
||||
[Token(Token = "0x600C98F")]
|
||||
[Address(RVA = "0x2AD6D40", Offset = "0x2AD5B40", VA = "0x182AD6D40")]
|
||||
private EncryptedData(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_40:
|
||||
stloc:ArgumentNullException(var_9_4A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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.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: 0x17001FBA RID: 8122
|
||||
// (get) Token: 0x0600C990 RID: 51600 RVA: 0x002E2B44 File Offset: 0x002E0D44
|
||||
[Token(Token = "0x17001FBA")]
|
||||
public virtual DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C990")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBB RID: 8123
|
||||
// (get) Token: 0x0600C991 RID: 51601 RVA: 0x002E2B58 File Offset: 0x002E0D58
|
||||
[Token(Token = "0x17001FBB")]
|
||||
public virtual EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C991")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBC RID: 8124
|
||||
// (get) Token: 0x0600C992 RID: 51602 RVA: 0x002E2B6C File Offset: 0x002E0D6C
|
||||
[Token(Token = "0x17001FBC")]
|
||||
public virtual Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600C992")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C993 RID: 51603 RVA: 0x002E2B80 File Offset: 0x002E0D80
|
||||
[Token(Token = "0x600C993")]
|
||||
[Address(RVA = "0x2AD6A70", Offset = "0x2AD5870", VA = "0x182AD6A70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
EncryptedContentInfo encryptedContentInfo = this.encryptedContentInfo;
|
||||
if (encryptedContentInfo != 0)
|
||||
{
|
||||
}
|
||||
array[1] = encryptedContentInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.unprotectedAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.unprotectedAttrs;
|
||||
int num;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num != 0, 1, asn1Set);
|
||||
num = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = berTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400808C RID: 32908
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400808C")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x0400808D RID: 32909
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400808D")]
|
||||
private readonly EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x0400808E RID: 32910
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400808E")]
|
||||
private readonly Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F28 RID: 7976
|
||||
[Token(Token = "0x2001F28")]
|
||||
public class EnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C994 RID: 51604 RVA: 0x002E2C10 File Offset: 0x002E0E10
|
||||
[Token(Token = "0x600C994")]
|
||||
[Address(RVA = "0x2AD7C40", Offset = "0x2AD6A40", VA = "0x182AD7C40")]
|
||||
public EnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
this.version = derInteger;
|
||||
this.unprotectedAttrs = 0;
|
||||
this.originatorInfo = originatorInfo;
|
||||
this.recipientInfos = recipientInfos;
|
||||
this.encryptedContentInfo = encryptedContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C995 RID: 51605 RVA: 0x002E2C50 File Offset: 0x002E0E50
|
||||
[Token(Token = "0x600C995")]
|
||||
[Address(RVA = "0x2AD7F80", Offset = "0x2AD6D80", VA = "0x182AD7F80")]
|
||||
public EnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Attributes unprotectedAttrs)
|
||||
{
|
||||
Asn1Set asn1Set;
|
||||
DerInteger derInteger = new DerInteger(EnvelopedData.CalculateVersion(originatorInfo, recipientInfos, asn1Set));
|
||||
this.version = derInteger;
|
||||
this.originatorInfo = originatorInfo;
|
||||
this.recipientInfos = recipientInfos;
|
||||
this.encryptedContentInfo = encryptedContentInfo;
|
||||
Asn1Set asn1Set2;
|
||||
this.unprotectedAttrs = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C996 RID: 51606 RVA: 0x002E2C94 File Offset: 0x002E0E94
|
||||
[Token(Token = "0x600C996")]
|
||||
[Address(RVA = "0x2AD7D00", Offset = "0x2AD6B00", VA = "0x182AD7D00")]
|
||||
[Obsolete]
|
||||
public EnvelopedData(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
if (parser2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
OriginatorInfo instance = OriginatorInfo.GetInstance(asn1Sequence);
|
||||
this.originatorInfo = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
this.recipientInfos = asn1Set;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
EncryptedContentInfo encryptedContentInfo;
|
||||
this.encryptedContentInfo = encryptedContentInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (uint)3)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 == 0 || parser5 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set2;
|
||||
this.unprotectedAttrs = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C997 RID: 51607 RVA: 0x002E2D34 File Offset: 0x002E0F34
|
||||
[Token(Token = "0x600C997")]
|
||||
[Address(RVA = "0x2AD7700", Offset = "0x2AD6500", VA = "0x182AD7700")]
|
||||
public static EnvelopedData GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
Asn1Sequence instance2;
|
||||
for (;;)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj, explicitly);
|
||||
if (instance == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
return new EnvelopedData(instance2);
|
||||
}
|
||||
|
||||
// Token: 0x0600C998 RID: 51608 RVA: 0x002E2D70 File Offset: 0x002E0F70
|
||||
[Token(Token = "0x600C998")]
|
||||
[Address(RVA = "0x2AD7800", Offset = "0x2AD6600", VA = "0x182AD7800")]
|
||||
public static EnvelopedData GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new EnvelopedData(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBD RID: 8125
|
||||
// (get) Token: 0x0600C999 RID: 51609 RVA: 0x002E2DA4 File Offset: 0x002E0FA4
|
||||
[Token(Token = "0x17001FBD")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C999")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBE RID: 8126
|
||||
// (get) Token: 0x0600C99A RID: 51610 RVA: 0x002E2DB8 File Offset: 0x002E0FB8
|
||||
[Token(Token = "0x17001FBE")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600C99A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBF RID: 8127
|
||||
// (get) Token: 0x0600C99B RID: 51611 RVA: 0x002E2DCC File Offset: 0x002E0FCC
|
||||
[Token(Token = "0x17001FBF")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600C99B")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC0 RID: 8128
|
||||
// (get) Token: 0x0600C99C RID: 51612 RVA: 0x002E2DE0 File Offset: 0x002E0FE0
|
||||
[Token(Token = "0x17001FC0")]
|
||||
public EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C99C")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC1 RID: 8129
|
||||
// (get) Token: 0x0600C99D RID: 51613 RVA: 0x002E2DF4 File Offset: 0x002E0FF4
|
||||
[Token(Token = "0x17001FC1")]
|
||||
public Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600C99D")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C99E RID: 51614 RVA: 0x002E2E08 File Offset: 0x002E1008
|
||||
[Token(Token = "0x600C99E")]
|
||||
[Address(RVA = "0x2AD7900", Offset = "0x2AD6700", VA = "0x182AD7900", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.originatorInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
OriginatorInfo originatorInfo = this.originatorInfo;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, originatorInfo);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
Asn1Set asn1Set = this.recipientInfos;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1Set;
|
||||
EncryptedContentInfo encryptedContentInfo = this.encryptedContentInfo;
|
||||
if (encryptedContentInfo != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = encryptedContentInfo;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.unprotectedAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.unprotectedAttrs;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C99F RID: 51615 RVA: 0x002E2F04 File Offset: 0x002E1104
|
||||
[Token(Token = "0x600C99F")]
|
||||
[Address(RVA = "0x2AD7520", Offset = "0x2AD6320", VA = "0x182AD7520")]
|
||||
public static int CalculateVersion(OriginatorInfo originatorInfo, Asn1Set recipientInfos, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (originatorInfo != 0 || unprotectedAttrs != 0)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
int intValue;
|
||||
if (recipientInfos.GetEnumerator() != 0)
|
||||
{
|
||||
RecipientInfo recipientInfo;
|
||||
intValue = recipientInfo.Version.Value.IntValue;
|
||||
while (intValue == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (intValue != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
|
||||
// Token: 0x0400808F RID: 32911
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400808F")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008090 RID: 32912
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008090")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04008091 RID: 32913
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008091")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008092 RID: 32914
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008092")]
|
||||
private EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x04008093 RID: 32915
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008093")]
|
||||
private Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F29 RID: 7977
|
||||
[Token(Token = "0x2001F29")]
|
||||
public class EnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600C9A0 RID: 51616 RVA: 0x002E2F60 File Offset: 0x002E1160
|
||||
[Token(Token = "0x600C9A0")]
|
||||
[Address(RVA = "0x2AD7450", Offset = "0x2AD6250", VA = "0x182AD7450")]
|
||||
public EnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001FC2 RID: 8130
|
||||
// (get) Token: 0x0600C9A1 RID: 51617 RVA: 0x002E2F90 File Offset: 0x002E1190
|
||||
[Token(Token = "0x17001FC2")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9A1")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A2 RID: 51618 RVA: 0x002E2FA4 File Offset: 0x002E11A4
|
||||
[Token(Token = "0x600C9A2")]
|
||||
[Address(RVA = "0x2AD7090", Offset = "0x2AD5E90", VA = "0x182AD7090")]
|
||||
public OriginatorInfo GetOriginatorInfo()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IAsn1Convertible nextObject = this._nextObject;
|
||||
this._originatorInfoCalled = true;
|
||||
if (nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
this._nextObject = nextObject;
|
||||
}
|
||||
if (nextObject == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible nextObject2 = this._nextObject;
|
||||
if (nextObject != 0 && nextObject != 0)
|
||||
{
|
||||
if (nextObject != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible nextObject3 = this._nextObject;
|
||||
if (nextObject != 0 && nextObject != 0)
|
||||
{
|
||||
this._nextObject = (ulong)0L;
|
||||
if (nextObject != 0 && nextObject != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
OriginatorInfo originatorInfo;
|
||||
return originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A3 RID: 51619 RVA: 0x002E3010 File Offset: 0x002E1210
|
||||
[Token(Token = "0x600C9A3")]
|
||||
[Address(RVA = "0x2AD7290", Offset = "0x2AD6090", VA = "0x182AD7290")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9A3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EnvelopedDataParser::GetRecipientInfos()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_2:
|
||||
brtrue(IL_00, ceq:bool(ldloc:int32(var_3_23), ldc.i4:int32(0)))
|
||||
}
|
||||
|
||||
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.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: 0x0600C9A4 RID: 51620 RVA: 0x002E3050 File Offset: 0x002E1250
|
||||
[Token(Token = "0x600C9A4")]
|
||||
[Address(RVA = "0x2AD6FC0", Offset = "0x2AD5DC0", VA = "0x182AD6FC0")]
|
||||
public EncryptedContentInfoParser GetEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this._nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
}
|
||||
this._nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A5 RID: 51621 RVA: 0x002E307C File Offset: 0x002E127C
|
||||
[Token(Token = "0x600C9A5")]
|
||||
[Address(RVA = "0x2AD7330", Offset = "0x2AD6130", VA = "0x182AD7330")]
|
||||
public Asn1SetParser GetUnprotectedAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9A5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EnvelopedDataParser::GetUnprotectedAttrs()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:int32(var_1_11, ldc.i4:int32(0))
|
||||
stfld:IAsn1Convertible(EnvelopedDataParser::_nextObject, ldloc:EnvelopedDataParser(this), ldloc:int32[exp:IAsn1Convertible](var_1_11))
|
||||
}
|
||||
|
||||
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: 0x04008094 RID: 32916
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008094")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x04008095 RID: 32917
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008095")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04008096 RID: 32918
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008096")]
|
||||
private IAsn1Convertible _nextObject;
|
||||
|
||||
// Token: 0x04008097 RID: 32919
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008097")]
|
||||
private bool _originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F2A RID: 7978
|
||||
[Token(Token = "0x2001F2A")]
|
||||
public class Evidence : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C9A6 RID: 51622 RVA: 0x002E30A4 File Offset: 0x002E12A4
|
||||
[Token(Token = "0x600C9A6")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public Evidence(TimeStampTokenEvidence tstEvidence)
|
||||
{
|
||||
this.tstEvidence = tstEvidence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A7 RID: 51623 RVA: 0x002E30C0 File Offset: 0x002E12C0
|
||||
[Token(Token = "0x600C9A7")]
|
||||
[Address(RVA = "0x2AD8360", Offset = "0x2AD7160", VA = "0x182AD8360")]
|
||||
private Evidence(Asn1TaggedObject tagged)
|
||||
{
|
||||
Asn1Sequence instance2;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
if (tagged.tagNo != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num = 0;
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(tagged, num != 0);
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
TimeStampTokenEvidence timeStampTokenEvidence = new TimeStampTokenEvidence(instance2);
|
||||
}
|
||||
}
|
||||
while (instance2 == 0);
|
||||
int num2 = 0;
|
||||
this.tstEvidence = num2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A8 RID: 51624 RVA: 0x002E311C File Offset: 0x002E131C
|
||||
[Token(Token = "0x600C9A8")]
|
||||
[Address(RVA = "0x2AD8040", Offset = "0x2AD6E40", VA = "0x182AD8040")]
|
||||
public static Evidence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9A8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Evidence BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Evidence::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_6D:
|
||||
stloc:string(var_13_73, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_14_8B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_13_73)), 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.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: 0x17001FC3 RID: 8131
|
||||
// (get) Token: 0x0600C9A9 RID: 51625 RVA: 0x002E31B8 File Offset: 0x002E13B8
|
||||
[Token(Token = "0x17001FC3")]
|
||||
public virtual TimeStampTokenEvidence TstEvidence
|
||||
{
|
||||
[Token(Token = "0x600C9A9")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tstEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AA RID: 51626 RVA: 0x002E31CC File Offset: 0x002E13CC
|
||||
[Token(Token = "0x600C9AA")]
|
||||
[Address(RVA = "0x2AD82F0", Offset = "0x2AD70F0", VA = "0x182AD82F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9AA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Evidence::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:DerTaggedObject(var_2_17, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:int32[exp:bool](var_5), ldloc:int32(var_4), ldloc:TimeStampTokenEvidence[exp:Asn1Encodable](var_0_06)))
|
||||
stloc:int32(var_4, ldc.i4:int32(0))
|
||||
stloc:int32(var_5, ldc.i4:int32(0))
|
||||
}
|
||||
|
||||
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: 0x04008098 RID: 32920
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008098")]
|
||||
private TimeStampTokenEvidence tstEvidence;
|
||||
}
|
||||
}
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F2B RID: 7979
|
||||
[Token(Token = "0x2001F2B")]
|
||||
public class IssuerAndSerialNumber : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9AB RID: 51627 RVA: 0x002E31F8 File Offset: 0x002E13F8
|
||||
[Token(Token = "0x600C9AB")]
|
||||
[Address(RVA = "0x2AD8490", Offset = "0x2AD7290", VA = "0x182AD8490")]
|
||||
public static IssuerAndSerialNumber GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (obj != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
IssuerAndSerialNumber issuerAndSerialNumber;
|
||||
X509Name x509Name;
|
||||
issuerAndSerialNumber.name = x509Name;
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
if (parser2 == 0 || parser2 != 0)
|
||||
{
|
||||
issuerAndSerialNumber.serialNumber = num;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AC RID: 51628 RVA: 0x002E3248 File Offset: 0x002E1448
|
||||
[Token(Token = "0x600C9AC")]
|
||||
[Address(RVA = "0x2AD87C0", Offset = "0x2AD75C0", VA = "0x182AD87C0")]
|
||||
[Obsolete]
|
||||
public IssuerAndSerialNumber(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
X509Name x509Name;
|
||||
this.name = x509Name;
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (parser2 != 0)
|
||||
{
|
||||
goto Block_1;
|
||||
}
|
||||
}
|
||||
this.serialNumber = parser2;
|
||||
return;
|
||||
Block_1:
|
||||
this.serialNumber = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AD RID: 51629 RVA: 0x002E3290 File Offset: 0x002E1490
|
||||
[Token(Token = "0x600C9AD")]
|
||||
[Address(RVA = "0x2AD8740", Offset = "0x2AD7540", VA = "0x182AD8740")]
|
||||
public IssuerAndSerialNumber(X509Name name, BigInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.serialNumber = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AE RID: 51630 RVA: 0x002E32B8 File Offset: 0x002E14B8
|
||||
[Token(Token = "0x600C9AE")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public IssuerAndSerialNumber(X509Name name, DerInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x17001FC4 RID: 8132
|
||||
// (get) Token: 0x0600C9AF RID: 51631 RVA: 0x002E32DC File Offset: 0x002E14DC
|
||||
[Token(Token = "0x17001FC4")]
|
||||
public X509Name Name
|
||||
{
|
||||
[Token(Token = "0x600C9AF")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC5 RID: 8133
|
||||
// (get) Token: 0x0600C9B0 RID: 51632 RVA: 0x002E32F0 File Offset: 0x002E14F0
|
||||
[Token(Token = "0x17001FC5")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C9B0")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B1 RID: 51633 RVA: 0x002E3304 File Offset: 0x002E1504
|
||||
[Token(Token = "0x600C9B1")]
|
||||
[Address(RVA = "0x2AD8630", Offset = "0x2AD7430", VA = "0x182AD8630", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
X509Name x509Name = this.name;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
}
|
||||
array[0] = x509Name;
|
||||
DerInteger derInteger = this.serialNumber;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008099 RID: 32921
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008099")]
|
||||
private X509Name name;
|
||||
|
||||
// Token: 0x0400809A RID: 32922
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400809A")]
|
||||
private DerInteger serialNumber;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user