m
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: 0x02002051 RID: 8273
|
||||
[Token(Token = "0x2002051")]
|
||||
public class AnssiNamedCurves
|
||||
{
|
||||
// Token: 0x0600CF76 RID: 53110 RVA: 0x002F32EC File Offset: 0x002F14EC
|
||||
[Token(Token = "0x600CF76")]
|
||||
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0")]
|
||||
private static ECCurve ConfigureCurve(ECCurve curve)
|
||||
{
|
||||
return curve;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF77 RID: 53111 RVA: 0x002F32FC File Offset: 0x002F14FC
|
||||
[Token(Token = "0x600CF77")]
|
||||
[Address(RVA = "0x228C6A0", Offset = "0x228B6A0", VA = "0x18228C6A0")]
|
||||
private static BigInteger FromHex(string hex)
|
||||
{
|
||||
byte[] array = Hex.Decode(hex);
|
||||
return new BigInteger(1, array);
|
||||
}
|
||||
|
||||
// Token: 0x0600CF78 RID: 53112 RVA: 0x002F3318 File Offset: 0x002F1518
|
||||
[Token(Token = "0x600CF78")]
|
||||
[Address(RVA = "0x228C560", Offset = "0x228B560", VA = "0x18228C560")]
|
||||
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: 0x0600CF79 RID: 53113 RVA: 0x002F3344 File Offset: 0x002F1544
|
||||
[Token(Token = "0x600CF79")]
|
||||
[Address(RVA = "0x228CBF0", Offset = "0x228BBF0", VA = "0x18228CBF0")]
|
||||
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: 0x0600CF7A RID: 53114 RVA: 0x002F33A4 File Offset: 0x002F15A4
|
||||
[Token(Token = "0x600CF7A")]
|
||||
[Address(RVA = "0x228C730", Offset = "0x228B730", VA = "0x18228C730")]
|
||||
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: 0x0600CF7B RID: 53115 RVA: 0x002F33E4 File Offset: 0x002F15E4
|
||||
[Token(Token = "0x600CF7B")]
|
||||
[Address(RVA = "0x228C970", Offset = "0x228B970", VA = "0x18228C970")]
|
||||
public static X9ECParameters GetByOid(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.curves;
|
||||
IDictionary dictionary2 = AnssiNamedCurves.objIds;
|
||||
X9ECParameters x9ECParameters;
|
||||
return x9ECParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF7C RID: 53116 RVA: 0x002F340C File Offset: 0x002F160C
|
||||
[Token(Token = "0x600CF7C")]
|
||||
[Address(RVA = "0x228CAF0", Offset = "0x228BAF0", VA = "0x18228CAF0")]
|
||||
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: 0x0600CF7D RID: 53117 RVA: 0x002F3438 File Offset: 0x002F1638
|
||||
[Token(Token = "0x600CF7D")]
|
||||
[Address(RVA = "0x228CA50", Offset = "0x228BA50", VA = "0x18228CA50")]
|
||||
public static string GetName(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170020F7 RID: 8439
|
||||
// (get) Token: 0x0600CF7E RID: 53118 RVA: 0x002F3450 File Offset: 0x002F1650
|
||||
[Token(Token = "0x170020F7")]
|
||||
public static IEnumerable Names
|
||||
{
|
||||
[Token(Token = "0x600CF7E")]
|
||||
[Address(RVA = "0x228CE10", Offset = "0x228BE10", VA = "0x18228CE10")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF7F RID: 53119 RVA: 0x002F3468 File Offset: 0x002F1668
|
||||
[Token(Token = "0x600CF7F")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public AnssiNamedCurves()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040083AB RID: 33707
|
||||
[Token(Token = "0x40083AB")]
|
||||
private static readonly IDictionary objIds;
|
||||
|
||||
// Token: 0x040083AC RID: 33708
|
||||
[Token(Token = "0x40083AC")]
|
||||
private static readonly IDictionary curves;
|
||||
|
||||
// Token: 0x040083AD RID: 33709
|
||||
[Token(Token = "0x40083AD")]
|
||||
private static readonly IDictionary names;
|
||||
|
||||
// Token: 0x02002052 RID: 8274
|
||||
[Token(Token = "0x2002052")]
|
||||
internal class Frp256v1Holder : X9ECParametersHolder
|
||||
{
|
||||
// Token: 0x0600CF80 RID: 53120 RVA: 0x002F347C File Offset: 0x002F167C
|
||||
[Token(Token = "0x600CF80")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
private Frp256v1Holder()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CF81 RID: 53121 RVA: 0x002F3490 File Offset: 0x002F1690
|
||||
[Token(Token = "0x600CF81")]
|
||||
[Address(RVA = "0x229B040", Offset = "0x229A040", VA = "0x18229B040", 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: 0x0600CF82 RID: 53122 RVA: 0x002F34F8 File Offset: 0x002F16F8
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CF82")]
|
||||
[Address(RVA = "0x229B1E0", Offset = "0x229A1E0", VA = "0x18229B1E0")]
|
||||
static Frp256v1Holder()
|
||||
{
|
||||
AnssiNamedCurves.Frp256v1Holder frp256v1Holder = new AnssiNamedCurves.Frp256v1Holder();
|
||||
}
|
||||
|
||||
// Token: 0x040083AE RID: 33710
|
||||
[Token(Token = "0x40083AE")]
|
||||
internal static readonly X9ECParametersHolder Instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Anssi
|
||||
{
|
||||
// Token: 0x02002053 RID: 8275
|
||||
[Token(Token = "0x2002053")]
|
||||
public sealed class AnssiObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CF83 RID: 53123 RVA: 0x002F350C File Offset: 0x002F170C
|
||||
[Token(Token = "0x600CF83")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
private AnssiObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CF84 RID: 53124 RVA: 0x002F3520 File Offset: 0x002F1720
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CF84")]
|
||||
[Address(RVA = "0x228CEC0", Offset = "0x228BEC0", VA = "0x18228CEC0")]
|
||||
static AnssiObjectIdentifiers()
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier("1.2.250.1.223.101.256.1");
|
||||
}
|
||||
|
||||
// Token: 0x040083AF RID: 33711
|
||||
[Token(Token = "0x40083AF")]
|
||||
public static readonly DerObjectIdentifier FRP256v1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E55 RID: 7765
|
||||
[Token(Token = "0x2001E55")]
|
||||
public abstract class Asn1Encodable : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C2B3 RID: 49843 RVA: 0x002C0844 File Offset: 0x002BEA44
|
||||
[Token(Token = "0x600C2B3")]
|
||||
[Address(RVA = "0x228D800", Offset = "0x228C800", VA = "0x18228D800")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
new Asn1OutputStream(memoryStream).WriteObject(this);
|
||||
((IDisposable)memoryStream).Dispose();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B4 RID: 49844 RVA: 0x002C0870 File Offset: 0x002BEA70
|
||||
[Token(Token = "0x600C2B4")]
|
||||
[Address(RVA = "0x228D6F0", Offset = "0x228C6F0", VA = "0x18228D6F0")]
|
||||
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: 0x0600C2B5 RID: 49845 RVA: 0x002C08B0 File Offset: 0x002BEAB0
|
||||
[Token(Token = "0x600C2B5")]
|
||||
[Address(RVA = "0x228D690", Offset = "0x228C690", VA = "0x18228D690")]
|
||||
public byte[] GetDerEncoded()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2B5)
|
||||
|
||||
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: 0x0600C2B6 RID: 49846 RVA: 0x002C08CC File Offset: 0x002BEACC
|
||||
[Token(Token = "0x600C2B6")]
|
||||
[Address(RVA = "0x228D8B0", Offset = "0x228C8B0", VA = "0x18228D8B0", Slot = "2")]
|
||||
public sealed override int GetHashCode()
|
||||
{
|
||||
return this.ToAsn1Object().Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B7 RID: 49847 RVA: 0x002C08EC File Offset: 0x002BEAEC
|
||||
[Token(Token = "0x600C2B7")]
|
||||
[Address(RVA = "0x228D5B0", Offset = "0x228C5B0", VA = "0x18228D5B0", 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: 0x0600C2B8 RID: 49848
|
||||
[Token(Token = "0x600C2B8")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract Asn1Object ToAsn1Object();
|
||||
|
||||
// Token: 0x0600C2B9 RID: 49849 RVA: 0x002C0918 File Offset: 0x002BEB18
|
||||
[Token(Token = "0x600C2B9")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected Asn1Encodable()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007B10 RID: 31504
|
||||
[Token(Token = "0x4007B10")]
|
||||
public const string Der = "DER";
|
||||
|
||||
// Token: 0x04007B11 RID: 31505
|
||||
[Token(Token = "0x4007B11")]
|
||||
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: 0x02001E56 RID: 7766
|
||||
[Token(Token = "0x2001E56")]
|
||||
public class Asn1EncodableVector : IEnumerable
|
||||
{
|
||||
// Token: 0x0600C2BA RID: 49850 RVA: 0x002C092C File Offset: 0x002BEB2C
|
||||
[Token(Token = "0x600C2BA")]
|
||||
[Address(RVA = "0x228D0F0", Offset = "0x228C0F0", VA = "0x18228D0F0")]
|
||||
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: 0x0600C2BB RID: 49851 RVA: 0x002C09AC File Offset: 0x002BEBAC
|
||||
[Token(Token = "0x600C2BB")]
|
||||
[Address(RVA = "0x228D3E0", Offset = "0x228C3E0", VA = "0x18228D3E0")]
|
||||
public Asn1EncodableVector(params Asn1Encodable[] v)
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.v = list;
|
||||
base..ctor();
|
||||
this.Add(v);
|
||||
}
|
||||
|
||||
// Token: 0x0600C2BC RID: 49852 RVA: 0x002C09D8 File Offset: 0x002BEBD8
|
||||
[Token(Token = "0x600C2BC")]
|
||||
[Address(RVA = "0x228CFC0", Offset = "0x228BFC0", VA = "0x18228CFC0")]
|
||||
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: 0x0600C2BD RID: 49853 RVA: 0x002C0A24 File Offset: 0x002BEC24
|
||||
[Token(Token = "0x600C2BD")]
|
||||
[Address(RVA = "0x228CF20", Offset = "0x228BF20", VA = "0x18228CF20")]
|
||||
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: 0x17001E33 RID: 7731
|
||||
[Token(Token = "0x17001E33")]
|
||||
public Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600C2BE")]
|
||||
[Address(RVA = "0x228D4B0", Offset = "0x228C4B0", VA = "0x18228D4B0")]
|
||||
get
|
||||
{
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
list = this.v;
|
||||
}
|
||||
while (list == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2BF RID: 49855 RVA: 0x002C0A84 File Offset: 0x002BEC84
|
||||
[Token(Token = "0x600C2BF")]
|
||||
[Address(RVA = "0x228D3D0", Offset = "0x228C3D0", VA = "0x18228D3D0")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable Get(int index)
|
||||
{
|
||||
return this[index];
|
||||
}
|
||||
|
||||
// Token: 0x17001E34 RID: 7732
|
||||
// (get) Token: 0x0600C2C0 RID: 49856 RVA: 0x002C0A98 File Offset: 0x002BEC98
|
||||
[Token(Token = "0x17001E34")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600C2C0")]
|
||||
[Address(RVA = "0x228D560", Offset = "0x228C560", VA = "0x18228D560")]
|
||||
get
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E35 RID: 7733
|
||||
// (get) Token: 0x0600C2C1 RID: 49857 RVA: 0x002C0AB4 File Offset: 0x002BECB4
|
||||
[Token(Token = "0x17001E35")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600C2C1")]
|
||||
[Address(RVA = "0x228D460", Offset = "0x228C460", VA = "0x18228D460")]
|
||||
get
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C2 RID: 49858 RVA: 0x002C0AD0 File Offset: 0x002BECD0
|
||||
[Token(Token = "0x600C2C2")]
|
||||
[Address(RVA = "0x228D380", Offset = "0x228C380", VA = "0x18228D380", Slot = "4")]
|
||||
public IEnumerator GetEnumerator()
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B12 RID: 31506
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B12")]
|
||||
private IList v;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E57 RID: 7767
|
||||
[Token(Token = "0x2001E57")]
|
||||
[Serializable]
|
||||
public class Asn1Exception : IOException
|
||||
{
|
||||
// Token: 0x0600C2C3 RID: 49859 RVA: 0x002C0AEC File Offset: 0x002BECEC
|
||||
[Token(Token = "0x600C2C3")]
|
||||
[Address(RVA = "0x4F0D50", Offset = "0x4EFD50", VA = "0x1804F0D50")]
|
||||
public Asn1Exception()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C4 RID: 49860 RVA: 0x002C0B00 File Offset: 0x002BED00
|
||||
[Token(Token = "0x600C2C4")]
|
||||
[Address(RVA = "0x4F0D40", Offset = "0x4EFD40", VA = "0x1804F0D40")]
|
||||
public Asn1Exception(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C5 RID: 49861 RVA: 0x002C0B14 File Offset: 0x002BED14
|
||||
[Token(Token = "0x600C2C5")]
|
||||
[Address(RVA = "0x4A7900", Offset = "0x4A6900", VA = "0x1804A7900")]
|
||||
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: 0x02001E4F RID: 7759
|
||||
[Token(Token = "0x2001E4F")]
|
||||
public abstract class Asn1Generator
|
||||
{
|
||||
// Token: 0x0600C2A0 RID: 49824 RVA: 0x002C041C File Offset: 0x002BE61C
|
||||
[Token(Token = "0x600C2A0")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
protected Asn1Generator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
}
|
||||
|
||||
// Token: 0x17001E31 RID: 7729
|
||||
// (get) Token: 0x0600C2A1 RID: 49825 RVA: 0x002C0438 File Offset: 0x002BE638
|
||||
[Token(Token = "0x17001E31")]
|
||||
protected Stream Out
|
||||
{
|
||||
[Token(Token = "0x600C2A1")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this._out;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2A2 RID: 49826
|
||||
[Token(Token = "0x600C2A2")]
|
||||
[Address(Slot = "4")]
|
||||
public abstract void AddObject(Asn1Encodable obj);
|
||||
|
||||
// Token: 0x0600C2A3 RID: 49827
|
||||
[Token(Token = "0x600C2A3")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract Stream GetRawOutputStream();
|
||||
|
||||
// Token: 0x0600C2A4 RID: 49828
|
||||
[Token(Token = "0x600C2A4")]
|
||||
[Address(Slot = "6")]
|
||||
public abstract void Close();
|
||||
|
||||
// Token: 0x04007B0C RID: 31500
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B0C")]
|
||||
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: 0x02001E58 RID: 7768
|
||||
[Token(Token = "0x2001E58")]
|
||||
public class Asn1InputStream : FilterStream
|
||||
{
|
||||
// Token: 0x0600C2C6 RID: 49862 RVA: 0x002C0B2C File Offset: 0x002BED2C
|
||||
[Token(Token = "0x600C2C6")]
|
||||
[Address(RVA = "0x228E440", Offset = "0x228D440", VA = "0x18228E440")]
|
||||
internal static int FindLimit(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2C6)
|
||||
|
||||
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:TypeCode(var_7_3E, call:TypeCode(IConvertible::GetTypeCode, ldloc:bool[exp:IConvertible](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: 0x0600C2C7 RID: 49863 RVA: 0x002C0B78 File Offset: 0x002BED78
|
||||
[Token(Token = "0x600C2C7")]
|
||||
[Address(RVA = "0x228EF90", Offset = "0x228DF90", VA = "0x18228EF90")]
|
||||
public Asn1InputStream(Stream inputStream)
|
||||
{
|
||||
int num = Asn1InputStream.FindLimit(inputStream);
|
||||
base..ctor(inputStream);
|
||||
this.limit = num;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C8 RID: 49864 RVA: 0x002C0BAC File Offset: 0x002BEDAC
|
||||
[Token(Token = "0x600C2C8")]
|
||||
[Address(RVA = "0x228EF20", Offset = "0x228DF20", VA = "0x18228EF20")]
|
||||
public Asn1InputStream(Stream inputStream, int limit)
|
||||
: base(inputStream)
|
||||
{
|
||||
this.limit = limit;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C9 RID: 49865 RVA: 0x002C0BD8 File Offset: 0x002BEDD8
|
||||
[Token(Token = "0x600C2C9")]
|
||||
[Address(RVA = "0x228F010", Offset = "0x228E010", VA = "0x18228F010")]
|
||||
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: 0x0600C2CA RID: 49866 RVA: 0x002C0C1C File Offset: 0x002BEE1C
|
||||
[Token(Token = "0x600C2CA")]
|
||||
[Address(RVA = "0x228DB50", Offset = "0x228CB50", VA = "0x18228DB50")]
|
||||
private Asn1Object BuildObject(int tag, int tagNo, int length)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2CA)
|
||||
|
||||
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: 0x0600C2CB RID: 49867 RVA: 0x002C0CB4 File Offset: 0x002BEEB4
|
||||
[Token(Token = "0x600C2CB")]
|
||||
[Address(RVA = "0x228DA40", Offset = "0x228CA40", VA = "0x18228DA40")]
|
||||
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: 0x0600C2CC RID: 49868 RVA: 0x002C0CF8 File Offset: 0x002BEEF8
|
||||
[Token(Token = "0x600C2CC")]
|
||||
[Address(RVA = "0x228D8F0", Offset = "0x228C8F0", VA = "0x18228D8F0", 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: 0x0600C2CD RID: 49869 RVA: 0x002C0D44 File Offset: 0x002BEF44
|
||||
[Token(Token = "0x600C2CD")]
|
||||
[Address(RVA = "0x228DDC0", Offset = "0x228CDC0", VA = "0x18228DDC0", Slot = "32")]
|
||||
internal virtual DerSequence CreateDerSequence(DefiniteLengthInputStream dIn)
|
||||
{
|
||||
DerSequence derSequence;
|
||||
return derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2CE RID: 49870 RVA: 0x002C0D54 File Offset: 0x002BEF54
|
||||
[Token(Token = "0x600C2CE")]
|
||||
[Address(RVA = "0x228DE40", Offset = "0x228CE40", VA = "0x18228DE40", Slot = "33")]
|
||||
internal virtual DerSet CreateDerSet(DefiniteLengthInputStream dIn)
|
||||
{
|
||||
DerSet derSet;
|
||||
return derSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2CF RID: 49871 RVA: 0x002C0D64 File Offset: 0x002BEF64
|
||||
[Token(Token = "0x600C2CF")]
|
||||
[Address(RVA = "0x228E940", Offset = "0x228D940", VA = "0x18228E940")]
|
||||
public Asn1Object ReadObject()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2CF)
|
||||
|
||||
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: 0x0600C2D0 RID: 49872 RVA: 0x002C0E94 File Offset: 0x002BF094
|
||||
[Token(Token = "0x600C2D0")]
|
||||
[Address(RVA = "0x228EE20", Offset = "0x228DE20", VA = "0x18228EE20")]
|
||||
internal static int ReadTagNumber(Stream s, int tag)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2D0)
|
||||
|
||||
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: 0x0600C2D1 RID: 49873 RVA: 0x002C0EC0 File Offset: 0x002BF0C0
|
||||
[Token(Token = "0x600C2D1")]
|
||||
[Address(RVA = "0x228E730", Offset = "0x228D730", VA = "0x18228E730")]
|
||||
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: 0x0600C2D2 RID: 49874 RVA: 0x002C0EF8 File Offset: 0x002BF0F8
|
||||
[Token(Token = "0x600C2D2")]
|
||||
[Address(RVA = "0x228E610", Offset = "0x228D610", VA = "0x18228E610")]
|
||||
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: 0x0600C2D3 RID: 49875 RVA: 0x002C0F38 File Offset: 0x002BF138
|
||||
[Token(Token = "0x600C2D3")]
|
||||
[Address(RVA = "0x228DEC0", Offset = "0x228CEC0", VA = "0x18228DEC0")]
|
||||
internal static Asn1Object CreatePrimitiveDerObject(int tagNo, DefiniteLengthInputStream defIn, byte[][] tmpBuffers)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2D3)
|
||||
|
||||
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: 0x04007B13 RID: 31507
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B13")]
|
||||
private readonly int limit;
|
||||
|
||||
// Token: 0x04007B14 RID: 31508
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007B14")]
|
||||
private readonly byte[][] tmpBuffers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E59 RID: 7769
|
||||
[Token(Token = "0x2001E59")]
|
||||
public abstract class Asn1Null : Asn1Object
|
||||
{
|
||||
// Token: 0x0600C2D4 RID: 49876 RVA: 0x002C1038 File Offset: 0x002BF238
|
||||
[Token(Token = "0x600C2D4")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
internal Asn1Null()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2D5 RID: 49877 RVA: 0x002C104C File Offset: 0x002BF24C
|
||||
[Token(Token = "0x600C2D5")]
|
||||
[Address(RVA = "0x228F0C0", Offset = "0x228E0C0", VA = "0x18228F0C0", 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: 0x02001E5A RID: 7770
|
||||
[Token(Token = "0x2001E5A")]
|
||||
public abstract class Asn1Object : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2D6 RID: 49878 RVA: 0x002C1060 File Offset: 0x002BF260
|
||||
[Token(Token = "0x600C2D6")]
|
||||
[Address(RVA = "0x228F0F0", Offset = "0x228E0F0", VA = "0x18228F0F0")]
|
||||
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: 0x0600C2D7 RID: 49879 RVA: 0x002C10E4 File Offset: 0x002BF2E4
|
||||
[Token(Token = "0x600C2D7")]
|
||||
[Address(RVA = "0x228F280", Offset = "0x228E280", VA = "0x18228F280")]
|
||||
public static Asn1Object FromStream(Stream inStr)
|
||||
{
|
||||
return new Asn1InputStream(inStr).ReadObject();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2D8 RID: 49880 RVA: 0x002C1110 File Offset: 0x002BF310
|
||||
[Token(Token = "0x600C2D8")]
|
||||
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0", Slot = "5")]
|
||||
public sealed override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2D9 RID: 49881
|
||||
[Token(Token = "0x600C2D9")]
|
||||
[Address(Slot = "6")]
|
||||
internal abstract void Encode(DerOutputStream derOut);
|
||||
|
||||
// Token: 0x0600C2DA RID: 49882
|
||||
[Token(Token = "0x600C2DA")]
|
||||
[Address(Slot = "7")]
|
||||
protected abstract bool Asn1Equals(Asn1Object asn1Object);
|
||||
|
||||
// Token: 0x0600C2DB RID: 49883
|
||||
[Token(Token = "0x600C2DB")]
|
||||
[Address(Slot = "8")]
|
||||
protected abstract int Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0600C2DC RID: 49884 RVA: 0x002C1120 File Offset: 0x002BF320
|
||||
[Token(Token = "0x600C2DC")]
|
||||
[Address(RVA = "0x7B9C20", Offset = "0x7B8C20", VA = "0x1807B9C20")]
|
||||
internal bool CallAsn1Equals(Asn1Object obj)
|
||||
{
|
||||
return this.Asn1Equals(obj);
|
||||
}
|
||||
|
||||
// Token: 0x0600C2DD RID: 49885 RVA: 0x002C1134 File Offset: 0x002BF334
|
||||
[Token(Token = "0x600C2DD")]
|
||||
[Address(RVA = "0x677D80", Offset = "0x676D80", VA = "0x180677D80")]
|
||||
internal int CallAsn1GetHashCode()
|
||||
{
|
||||
return this.Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2DE RID: 49886 RVA: 0x002C1148 File Offset: 0x002BF348
|
||||
[Token(Token = "0x600C2DE")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x02001E5B RID: 7771
|
||||
[Token(Token = "0x2001E5B")]
|
||||
public abstract class Asn1OctetString : Asn1Object, Asn1OctetStringParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C2DF RID: 49887 RVA: 0x002C115C File Offset: 0x002BF35C
|
||||
[Token(Token = "0x600C2DF")]
|
||||
[Address(RVA = "0x228F690", Offset = "0x228E690", VA = "0x18228F690")]
|
||||
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: 0x0600C2E0 RID: 49888 RVA: 0x002C11A4 File Offset: 0x002BF3A4
|
||||
[Token(Token = "0x600C2E0")]
|
||||
[Address(RVA = "0x228F4A0", Offset = "0x228E4A0", VA = "0x18228F4A0")]
|
||||
public static Asn1OctetString GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2E0)
|
||||
|
||||
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: 0x0600C2E1 RID: 49889 RVA: 0x002C11E8 File Offset: 0x002BF3E8
|
||||
[Token(Token = "0x600C2E1")]
|
||||
[Address(RVA = "0x228F840", Offset = "0x228E840", VA = "0x18228F840")]
|
||||
internal Asn1OctetString(byte[] str)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2E1)
|
||||
|
||||
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: 0x0600C2E2 RID: 49890 RVA: 0x002C1214 File Offset: 0x002BF414
|
||||
[Token(Token = "0x600C2E2")]
|
||||
[Address(RVA = "0x228F8C0", Offset = "0x228E8C0", VA = "0x18228F8C0")]
|
||||
internal Asn1OctetString(Asn1Encodable obj)
|
||||
{
|
||||
byte[] encoded = obj.GetEncoded("DER");
|
||||
this.str = encoded;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E3 RID: 49891 RVA: 0x002C1250 File Offset: 0x002BF450
|
||||
[Token(Token = "0x600C2E3")]
|
||||
[Address(RVA = "0x228F770", Offset = "0x228E770", VA = "0x18228F770", Slot = "9")]
|
||||
public Stream GetOctetStream()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2E3)
|
||||
|
||||
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: 0x17001E36 RID: 7734
|
||||
// (get) Token: 0x0600C2E4 RID: 49892 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17001E36")]
|
||||
public Asn1OctetStringParser Parser
|
||||
{
|
||||
[Token(Token = "0x600C2E4")]
|
||||
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E5 RID: 49893 RVA: 0x002C126C File Offset: 0x002BF46C
|
||||
[Token(Token = "0x600C2E5")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "10")]
|
||||
public virtual byte[] GetOctets()
|
||||
{
|
||||
return this.str;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E6 RID: 49894 RVA: 0x002C1280 File Offset: 0x002BF480
|
||||
[Token(Token = "0x600C2E6")]
|
||||
[Address(RVA = "0x228F430", Offset = "0x228E430", VA = "0x18228F430", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
Stream octetStream = this.GetOctetStream();
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E7 RID: 49895 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600C2E7")]
|
||||
[Address(RVA = "0x228F340", Offset = "0x228E340", VA = "0x18228F340", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E8 RID: 49896 RVA: 0x002C1298 File Offset: 0x002BF498
|
||||
[Token(Token = "0x600C2E8")]
|
||||
[Address(RVA = "0x228F7D0", Offset = "0x228E7D0", VA = "0x18228F7D0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string text = Hex.ToHexString(this.str);
|
||||
return "#" + text;
|
||||
}
|
||||
|
||||
// Token: 0x04007B15 RID: 31509
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B15")]
|
||||
internal byte[] str;
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E50 RID: 7760
|
||||
[Token(Token = "0x2001E50")]
|
||||
public interface Asn1OctetStringParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C2A5 RID: 49829
|
||||
[Token(Token = "0x600C2A5")]
|
||||
[Address(Slot = "0")]
|
||||
Stream GetOctetStream();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E5C RID: 7772
|
||||
[Token(Token = "0x2001E5C")]
|
||||
public class Asn1OutputStream : DerOutputStream
|
||||
{
|
||||
// Token: 0x0600C2E9 RID: 49897 RVA: 0x002C12BC File Offset: 0x002BF4BC
|
||||
[Token(Token = "0x600C2E9")]
|
||||
[Address(RVA = "0x228FBC0", Offset = "0x228EBC0", VA = "0x18228FBC0")]
|
||||
public Asn1OutputStream(Stream os)
|
||||
: base(os)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2EA RID: 49898 RVA: 0x002C12D0 File Offset: 0x002BF4D0
|
||||
[Token(Token = "0x600C2EA")]
|
||||
[Address(RVA = "0x228F9A0", Offset = "0x228E9A0", VA = "0x18228F9A0", Slot = "31")]
|
||||
[Obsolete]
|
||||
public override void WriteObject(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2EA)
|
||||
|
||||
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: 0x02001E5D RID: 7773
|
||||
[Token(Token = "0x2001E5D")]
|
||||
[Serializable]
|
||||
public class Asn1ParsingException : InvalidOperationException
|
||||
{
|
||||
// Token: 0x0600C2EB RID: 49899 RVA: 0x002C1318 File Offset: 0x002BF518
|
||||
[Token(Token = "0x600C2EB")]
|
||||
[Address(RVA = "0x8AC420", Offset = "0x8AB420", VA = "0x1808AC420")]
|
||||
public Asn1ParsingException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2EC RID: 49900 RVA: 0x002C132C File Offset: 0x002BF52C
|
||||
[Token(Token = "0x600C2EC")]
|
||||
[Address(RVA = "0x8AC410", Offset = "0x8AB410", VA = "0x1808AC410")]
|
||||
public Asn1ParsingException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2ED RID: 49901 RVA: 0x002C1340 File Offset: 0x002BF540
|
||||
[Token(Token = "0x600C2ED")]
|
||||
[Address(RVA = "0x13D5940", Offset = "0x13D4940", VA = "0x1813D5940")]
|
||||
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: 0x02001E5E RID: 7774
|
||||
[Token(Token = "0x2001E5E")]
|
||||
public abstract class Asn1Sequence : Asn1Object, IEnumerable
|
||||
{
|
||||
// Token: 0x0600C2EE RID: 49902 RVA: 0x002C1358 File Offset: 0x002BF558
|
||||
[Token(Token = "0x600C2EE")]
|
||||
[Address(RVA = "0x22905A0", Offset = "0x228F5A0", VA = "0x1822905A0")]
|
||||
public static Asn1Sequence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2EE)
|
||||
|
||||
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: 0x0600C2EF RID: 49903 RVA: 0x002C13BC File Offset: 0x002BF5BC
|
||||
[Token(Token = "0x600C2EF")]
|
||||
[Address(RVA = "0x22902D0", Offset = "0x228F2D0", VA = "0x1822902D0")]
|
||||
public static Asn1Sequence GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2EF)
|
||||
|
||||
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: 0x0600C2F0 RID: 49904 RVA: 0x002C1444 File Offset: 0x002BF644
|
||||
[Token(Token = "0x600C2F0")]
|
||||
[Address(RVA = "0x22908F0", Offset = "0x228F8F0", VA = "0x1822908F0")]
|
||||
protected internal Asn1Sequence(int capacity)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(capacity);
|
||||
this.seq = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2F1 RID: 49905 RVA: 0x002C1468 File Offset: 0x002BF668
|
||||
[Token(Token = "0x600C2F1")]
|
||||
[Address(RVA = "0x2290280", Offset = "0x228F280", VA = "0x182290280", Slot = "10")]
|
||||
public virtual IEnumerator GetEnumerator()
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2F2 RID: 49906 RVA: 0x002C1484 File Offset: 0x002BF684
|
||||
[Token(Token = "0x600C2F2")]
|
||||
[Address(RVA = "0x85CED0", Offset = "0x85BED0", VA = "0x18085CED0")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return ((IEnumerable)this).GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x17001E37 RID: 7735
|
||||
// (get) Token: 0x0600C2F3 RID: 49907 RVA: 0x002C1498 File Offset: 0x002BF698
|
||||
[Token(Token = "0x17001E37")]
|
||||
public virtual Asn1SequenceParser Parser
|
||||
{
|
||||
[Token(Token = "0x600C2F3")]
|
||||
[Address(RVA = "0x2290A60", Offset = "0x228FA60", VA = "0x182290A60", Slot = "11")]
|
||||
get
|
||||
{
|
||||
Asn1Sequence.Asn1SequenceParserImpl asn1SequenceParserImpl;
|
||||
asn1SequenceParserImpl.outer = this;
|
||||
Asn1Encodable asn1Encodable;
|
||||
asn1SequenceParserImpl.max = asn1Encodable;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E38 RID: 7736
|
||||
[Token(Token = "0x17001E38")]
|
||||
public virtual Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600C2F4")]
|
||||
[Address(RVA = "0x22909B0", Offset = "0x228F9B0", VA = "0x1822909B0", Slot = "12")]
|
||||
get
|
||||
{
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
list = this.seq;
|
||||
}
|
||||
while (list == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2F5 RID: 49909 RVA: 0x002C14DC File Offset: 0x002BF6DC
|
||||
[Token(Token = "0x600C2F5")]
|
||||
[Address(RVA = "0x22908C0", Offset = "0x228F8C0", VA = "0x1822908C0")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetObjectAt(int index)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2F5)
|
||||
|
||||
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: 0x17001E39 RID: 7737
|
||||
// (get) Token: 0x0600C2F6 RID: 49910 RVA: 0x002C14F0 File Offset: 0x002BF6F0
|
||||
[Token(Token = "0x17001E39")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600C2F6")]
|
||||
[Address(RVA = "0x85E3F0", Offset = "0x85D3F0", VA = "0x18085E3F0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2F6)
|
||||
|
||||
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: 0x17001E3A RID: 7738
|
||||
// (get) Token: 0x0600C2F7 RID: 49911 RVA: 0x002C1504 File Offset: 0x002BF704
|
||||
[Token(Token = "0x17001E3A")]
|
||||
public virtual int Count
|
||||
{
|
||||
[Token(Token = "0x600C2F7")]
|
||||
[Address(RVA = "0x2290960", Offset = "0x228F960", VA = "0x182290960", Slot = "13")]
|
||||
get
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2F8 RID: 49912 RVA: 0x002C1520 File Offset: 0x002BF720
|
||||
[Token(Token = "0x600C2F8")]
|
||||
[Address(RVA = "0x2290020", Offset = "0x228F020", VA = "0x182290020", 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: 0x0600C2F9 RID: 49913 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600C2F9")]
|
||||
[Address(RVA = "0x228FE60", Offset = "0x228EE60", VA = "0x18228FE60", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600C2FA RID: 49914 RVA: 0x002C1560 File Offset: 0x002BF760
|
||||
[Token(Token = "0x600C2FA")]
|
||||
[Address(RVA = "0x22901A0", Offset = "0x228F1A0", VA = "0x1822901A0")]
|
||||
private Asn1Encodable GetCurrent(IEnumerator e)
|
||||
{
|
||||
while (e == 0)
|
||||
{
|
||||
}
|
||||
DerNull instance = DerNull.Instance;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2FB RID: 49915 RVA: 0x002C1580 File Offset: 0x002BF780
|
||||
[Token(Token = "0x600C2FB")]
|
||||
[Address(RVA = "0x228FE00", Offset = "0x228EE00", VA = "0x18228FE00")]
|
||||
protected internal void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2FC RID: 49916 RVA: 0x002C159C File Offset: 0x002BF79C
|
||||
[Token(Token = "0x600C2FC")]
|
||||
[Address(RVA = "0x22908E0", Offset = "0x228F8E0", VA = "0x1822908E0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return CollectionUtilities.ToString(this.seq);
|
||||
}
|
||||
|
||||
// Token: 0x04007B16 RID: 31510
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B16")]
|
||||
private readonly IList seq;
|
||||
|
||||
// Token: 0x02001E5F RID: 7775
|
||||
[Token(Token = "0x2001E5F")]
|
||||
private class Asn1SequenceParserImpl : Asn1SequenceParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C2FD RID: 49917 RVA: 0x002C15B4 File Offset: 0x002BF7B4
|
||||
[Token(Token = "0x600C2FD")]
|
||||
[Address(RVA = "0x228FDB0", Offset = "0x228EDB0", VA = "0x18228FDB0")]
|
||||
public Asn1SequenceParserImpl(Asn1Sequence outer)
|
||||
{
|
||||
this.outer = outer;
|
||||
Asn1Encodable asn1Encodable;
|
||||
this.max = asn1Encodable;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2FE RID: 49918 RVA: 0x002C15DC File Offset: 0x002BF7DC
|
||||
[Token(Token = "0x600C2FE")]
|
||||
[Address(RVA = "0x228FBD0", Offset = "0x228EBD0", VA = "0x18228FBD0", 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: 0x0600C2FF RID: 49919 RVA: 0x002C1644 File Offset: 0x002BF844
|
||||
[Token(Token = "0x600C2FF")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2FF)
|
||||
|
||||
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: 0x04007B17 RID: 31511
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B17")]
|
||||
private readonly Asn1Sequence outer;
|
||||
|
||||
// Token: 0x04007B18 RID: 31512
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B18")]
|
||||
private readonly int max;
|
||||
|
||||
// Token: 0x04007B19 RID: 31513
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4007B19")]
|
||||
private int index;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E51 RID: 7761
|
||||
[Token(Token = "0x2001E51")]
|
||||
public interface Asn1SequenceParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C2A6 RID: 49830
|
||||
[Token(Token = "0x600C2A6")]
|
||||
[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: 0x02001E60 RID: 7776
|
||||
[Token(Token = "0x2001E60")]
|
||||
public abstract class Asn1Set : Asn1Object, IEnumerable
|
||||
{
|
||||
// Token: 0x0600C300 RID: 49920 RVA: 0x002C1658 File Offset: 0x002BF858
|
||||
[Token(Token = "0x600C300")]
|
||||
[Address(RVA = "0x22916B0", Offset = "0x22906B0", VA = "0x1822916B0")]
|
||||
public static Asn1Set GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C300)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_3_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_4_56, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_3_40)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600C301 RID: 49921 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600C301")]
|
||||
[Address(RVA = "0x22911E0", Offset = "0x22901E0", VA = "0x1822911E0")]
|
||||
public static Asn1Set GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600C302 RID: 49922 RVA: 0x002C16BC File Offset: 0x002BF8BC
|
||||
[Token(Token = "0x600C302")]
|
||||
[Address(RVA = "0x2291FB0", Offset = "0x2290FB0", VA = "0x182291FB0")]
|
||||
protected internal Asn1Set(int capacity)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(capacity);
|
||||
this._set = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600C303 RID: 49923 RVA: 0x002C16E0 File Offset: 0x002BF8E0
|
||||
[Token(Token = "0x600C303")]
|
||||
[Address(RVA = "0x2291190", Offset = "0x2290190", VA = "0x182291190", Slot = "10")]
|
||||
public virtual IEnumerator GetEnumerator()
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C304 RID: 49924 RVA: 0x002C16FC File Offset: 0x002BF8FC
|
||||
[Token(Token = "0x600C304")]
|
||||
[Address(RVA = "0x85CED0", Offset = "0x85BED0", VA = "0x18085CED0")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return ((IEnumerable)this).GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x17001E3B RID: 7739
|
||||
[Token(Token = "0x17001E3B")]
|
||||
public virtual Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600C305")]
|
||||
[Address(RVA = "0x2292070", Offset = "0x2291070", VA = "0x182292070", Slot = "11")]
|
||||
get
|
||||
{
|
||||
IList set;
|
||||
do
|
||||
{
|
||||
set = this._set;
|
||||
}
|
||||
while (set == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C306 RID: 49926 RVA: 0x002C1734 File Offset: 0x002BF934
|
||||
[Token(Token = "0x600C306")]
|
||||
[Address(RVA = "0x22919D0", Offset = "0x22909D0", VA = "0x1822919D0")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetObjectAt(int index)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C306)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::GetObjectAt(System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IEnumerator(var_0_06, call:IEnumerator(IEnumerable::GetEnumerator, ldloc:Asn1Set[exp:IEnumerable](this)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001E3C RID: 7740
|
||||
// (get) Token: 0x0600C307 RID: 49927 RVA: 0x002C1748 File Offset: 0x002BF948
|
||||
[Token(Token = "0x17001E3C")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600C307")]
|
||||
[Address(RVA = "0x85E360", Offset = "0x85D360", VA = "0x18085E360")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C307)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::get_Size()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IEnumerator(var_0_06, call:IEnumerator(IEnumerable::GetEnumerator, ldloc:Asn1Set[exp:IEnumerable](this)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E3D RID: 7741
|
||||
// (get) Token: 0x0600C308 RID: 49928 RVA: 0x002C175C File Offset: 0x002BF95C
|
||||
[Token(Token = "0x17001E3D")]
|
||||
public virtual int Count
|
||||
{
|
||||
[Token(Token = "0x600C308")]
|
||||
[Address(RVA = "0x2292020", Offset = "0x2291020", VA = "0x182292020", Slot = "12")]
|
||||
get
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C309 RID: 49929 RVA: 0x002C1778 File Offset: 0x002BF978
|
||||
[Token(Token = "0x600C309")]
|
||||
[Address(RVA = "0x2291EA0", Offset = "0x2290EA0", VA = "0x182291EA0", Slot = "13")]
|
||||
public virtual Asn1Encodable[] ToArray()
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
Asn1Encodable[] array = new Asn1Encodable[asn1Encodable];
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable2 > 0)
|
||||
{
|
||||
IEnumerator enumerator = this.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = enumerator;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x17001E3E RID: 7742
|
||||
// (get) Token: 0x0600C30A RID: 49930 RVA: 0x002C17B4 File Offset: 0x002BF9B4
|
||||
[Token(Token = "0x17001E3E")]
|
||||
public Asn1SetParser Parser
|
||||
{
|
||||
[Token(Token = "0x600C30A")]
|
||||
[Address(RVA = "0x2292120", Offset = "0x2291120", VA = "0x182292120")]
|
||||
get
|
||||
{
|
||||
Asn1Set.Asn1SetParserImpl asn1SetParserImpl;
|
||||
asn1SetParserImpl.outer = this;
|
||||
Asn1Encodable asn1Encodable;
|
||||
asn1SetParserImpl.max = asn1Encodable;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C30B RID: 49931 RVA: 0x002C17D4 File Offset: 0x002BF9D4
|
||||
[Token(Token = "0x600C30B")]
|
||||
[Address(RVA = "0x2290F30", Offset = "0x228FF30", VA = "0x182290F30", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IEnumerator enumerator = this.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
long num2 = asn1Encodable * (uint)17;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
DerNull.Instance.Finalize();
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C30C RID: 49932 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600C30C")]
|
||||
[Address(RVA = "0x2290D70", Offset = "0x228FD70", VA = "0x182290D70", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600C30D RID: 49933 RVA: 0x002C1814 File Offset: 0x002BFA14
|
||||
[Token(Token = "0x600C30D")]
|
||||
[Address(RVA = "0x22910B0", Offset = "0x22900B0", VA = "0x1822910B0")]
|
||||
private Asn1Encodable GetCurrent(IEnumerator e)
|
||||
{
|
||||
while (e == 0)
|
||||
{
|
||||
}
|
||||
DerNull instance = DerNull.Instance;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C30E RID: 49934 RVA: 0x002C1834 File Offset: 0x002BFA34
|
||||
[Token(Token = "0x600C30E")]
|
||||
[Address(RVA = "0x22919F0", Offset = "0x22909F0", VA = "0x1822919F0")]
|
||||
protected internal void Sort()
|
||||
{
|
||||
Asn1Encodable[] array;
|
||||
byte[][] array2;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IList set = this._set;
|
||||
IList set2 = this._set;
|
||||
array = new Asn1Encodable[0];
|
||||
IList set3 = this._set;
|
||||
array2 = new byte[array][];
|
||||
IList set4 = this._set;
|
||||
num = 0;
|
||||
if (num < set3)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num >= array2)
|
||||
{
|
||||
goto IL_B1;
|
||||
}
|
||||
IList set5 = this._set;
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num++;
|
||||
num += 19;
|
||||
num += 19;
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array[0] = num;
|
||||
byte[] array3;
|
||||
if (array3 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = array3;
|
||||
num++;
|
||||
IList set6 = this._set;
|
||||
IL_B1:
|
||||
Asn1Set.DerComparer derComparer = new Asn1Set.DerComparer();
|
||||
Array.Sort(array2, array, derComparer);
|
||||
IList set7 = this._set;
|
||||
if (num < derComparer)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num < num)
|
||||
{
|
||||
IList set8 = this._set;
|
||||
uint num3;
|
||||
if (num < (int)num3)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
IList set9 = this._set;
|
||||
num++;
|
||||
while (set9 != 0)
|
||||
{
|
||||
}
|
||||
num += num;
|
||||
num++;
|
||||
num += 19;
|
||||
num += num;
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C30F RID: 49935 RVA: 0x002C1980 File Offset: 0x002BFB80
|
||||
[Token(Token = "0x600C30F")]
|
||||
[Address(RVA = "0x2290D10", Offset = "0x228FD10", VA = "0x182290D10")]
|
||||
protected internal void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C310 RID: 49936 RVA: 0x002C199C File Offset: 0x002BFB9C
|
||||
[Token(Token = "0x600C310")]
|
||||
[Address(RVA = "0x22908E0", Offset = "0x228F8E0", VA = "0x1822908E0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return CollectionUtilities.ToString(this._set);
|
||||
}
|
||||
|
||||
// Token: 0x04007B1A RID: 31514
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B1A")]
|
||||
private readonly IList _set;
|
||||
|
||||
// Token: 0x02001E61 RID: 7777
|
||||
[Token(Token = "0x2001E61")]
|
||||
private class Asn1SetParserImpl : Asn1SetParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C311 RID: 49937 RVA: 0x002C19B4 File Offset: 0x002BFBB4
|
||||
[Token(Token = "0x600C311")]
|
||||
[Address(RVA = "0x2290CC0", Offset = "0x228FCC0", VA = "0x182290CC0")]
|
||||
public Asn1SetParserImpl(Asn1Set outer)
|
||||
{
|
||||
this.outer = outer;
|
||||
Asn1Encodable asn1Encodable;
|
||||
this.max = asn1Encodable;
|
||||
}
|
||||
|
||||
// Token: 0x0600C312 RID: 49938 RVA: 0x002C19DC File Offset: 0x002BFBDC
|
||||
[Token(Token = "0x600C312")]
|
||||
[Address(RVA = "0x2290AE0", Offset = "0x228FAE0", VA = "0x182290AE0", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
IEnumerator enumerator;
|
||||
do
|
||||
{
|
||||
int num = this.index;
|
||||
if (num == this.max)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1Set asn1Set = this.outer;
|
||||
int num2 = num + 1;
|
||||
this.index = num2;
|
||||
enumerator = asn1Set.GetEnumerator();
|
||||
if (enumerator == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
if (enumerator == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (enumerator == 0 || enumerator == 0);
|
||||
bool flag = enumerator.MoveNext();
|
||||
}
|
||||
|
||||
// Token: 0x0600C313 RID: 49939 RVA: 0x002C1A44 File Offset: 0x002BFC44
|
||||
[Token(Token = "0x600C313")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
public virtual Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C313)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set/Asn1SetParserImpl::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Set(var_0_06, ldfld:Asn1Set(Asn1SetParserImpl::outer, ldloc:Asn1SetParserImpl(this)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x04007B1B RID: 31515
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B1B")]
|
||||
private readonly Asn1Set outer;
|
||||
|
||||
// Token: 0x04007B1C RID: 31516
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B1C")]
|
||||
private readonly int max;
|
||||
|
||||
// Token: 0x04007B1D RID: 31517
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4007B1D")]
|
||||
private int index;
|
||||
}
|
||||
|
||||
// Token: 0x02001E62 RID: 7778
|
||||
[Token(Token = "0x2001E62")]
|
||||
private class DerComparer : IComparer
|
||||
{
|
||||
// Token: 0x0600C314 RID: 49940 RVA: 0x002C1A58 File Offset: 0x002BFC58
|
||||
[Token(Token = "0x600C314")]
|
||||
[Address(RVA = "0x229AE70", Offset = "0x2299E70", VA = "0x18229AE70", Slot = "4")]
|
||||
public int Compare(object x, object y)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C314)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set/DerComparer::Compare(System.Object,System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_4:
|
||||
stloc:int32(var_2, add:int32(ldloc:int32(var_2), ldc.i4:int32(1)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600C315 RID: 49941 RVA: 0x002C1AA0 File Offset: 0x002BFCA0
|
||||
[Token(Token = "0x600C315")]
|
||||
[Address(RVA = "0x229AE20", Offset = "0x2299E20", VA = "0x18229AE20")]
|
||||
private bool AllZeroesFrom(byte[] bs, int pos)
|
||||
{
|
||||
int length = bs.Length;
|
||||
if (pos < length)
|
||||
{
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600C316 RID: 49942 RVA: 0x002C1AC4 File Offset: 0x002BFCC4
|
||||
[Token(Token = "0x600C316")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public DerComparer()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E52 RID: 7762
|
||||
[Token(Token = "0x2001E52")]
|
||||
public interface Asn1SetParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C2A7 RID: 49831
|
||||
[Token(Token = "0x600C2A7")]
|
||||
[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: 0x02001E53 RID: 7763
|
||||
[Token(Token = "0x2001E53")]
|
||||
public class Asn1StreamParser
|
||||
{
|
||||
// Token: 0x0600C2A8 RID: 49832 RVA: 0x002C044C File Offset: 0x002BE64C
|
||||
[Token(Token = "0x600C2A8")]
|
||||
[Address(RVA = "0x22932A0", Offset = "0x22922A0", VA = "0x1822932A0")]
|
||||
public Asn1StreamParser(Stream inStream)
|
||||
{
|
||||
int num = Asn1InputStream.FindLimit(inStream);
|
||||
}
|
||||
|
||||
// Token: 0x0600C2A9 RID: 49833 RVA: 0x002C0460 File Offset: 0x002BE660
|
||||
[Token(Token = "0x600C2A9")]
|
||||
[Address(RVA = "0x2293150", Offset = "0x2292150", VA = "0x182293150")]
|
||||
public Asn1StreamParser(Stream inStream, int limit)
|
||||
{
|
||||
inStream.Dispose();
|
||||
this._in = inStream;
|
||||
this._limit = limit;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2AA RID: 49834 RVA: 0x002C04AC File Offset: 0x002BE6AC
|
||||
[Token(Token = "0x600C2AA")]
|
||||
[Address(RVA = "0x2293220", Offset = "0x2292220", VA = "0x182293220")]
|
||||
public Asn1StreamParser(byte[] encoding)
|
||||
{
|
||||
int num;
|
||||
MemoryStream memoryStream = new MemoryStream(encoding, num != 0);
|
||||
num = 0;
|
||||
int length = encoding.Length;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2AB RID: 49835 RVA: 0x002C04D0 File Offset: 0x002BE6D0
|
||||
[Token(Token = "0x600C2AB")]
|
||||
[Address(RVA = "0x22923E0", Offset = "0x22913E0", VA = "0x1822923E0")]
|
||||
internal IAsn1Convertible ReadIndef(int tagValue)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2AB)
|
||||
|
||||
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: 0x0600C2AC RID: 49836 RVA: 0x002C04FC File Offset: 0x002BE6FC
|
||||
[Token(Token = "0x600C2AC")]
|
||||
[Address(RVA = "0x22921A0", Offset = "0x22911A0", VA = "0x1822921A0")]
|
||||
internal IAsn1Convertible ReadImplicit(bool constructed, int tag)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2AC)
|
||||
|
||||
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: 0x0600C2AD RID: 49837 RVA: 0x002C0590 File Offset: 0x002BE790
|
||||
[Token(Token = "0x600C2AD")]
|
||||
[Address(RVA = "0x2292AC0", Offset = "0x2291AC0", VA = "0x182292AC0")]
|
||||
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: 0x0600C2AE RID: 49838 RVA: 0x002C0654 File Offset: 0x002BE854
|
||||
[Token(Token = "0x600C2AE")]
|
||||
[Address(RVA = "0x22924F0", Offset = "0x22914F0", VA = "0x1822924F0", 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: 0x0600C2AF RID: 49839 RVA: 0x002C07CC File Offset: 0x002BE9CC
|
||||
[Token(Token = "0x600C2AF")]
|
||||
[Address(RVA = "0x2293030", Offset = "0x2292030", VA = "0x182293030")]
|
||||
private void Set00Check(bool enabled)
|
||||
{
|
||||
Stream @in;
|
||||
do
|
||||
{
|
||||
@in = this._in;
|
||||
}
|
||||
while (@in != 0 && @in != 0 && (@in == 0 || @in == 0));
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B0 RID: 49840 RVA: 0x002C07FC File Offset: 0x002BE9FC
|
||||
[Token(Token = "0x600C2B0")]
|
||||
[Address(RVA = "0x2292E60", Offset = "0x2291E60", VA = "0x182292E60")]
|
||||
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: 0x04007B0D RID: 31501
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B0D")]
|
||||
private readonly Stream _in;
|
||||
|
||||
// Token: 0x04007B0E RID: 31502
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B0E")]
|
||||
private readonly int _limit;
|
||||
|
||||
// Token: 0x04007B0F RID: 31503
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B0F")]
|
||||
private readonly byte[][] tmpBuffers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,284 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E63 RID: 7779
|
||||
[Token(Token = "0x2001E63")]
|
||||
public abstract class Asn1TaggedObject : Asn1Object, Asn1TaggedObjectParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C317 RID: 49943 RVA: 0x002C1AD8 File Offset: 0x002BFCD8
|
||||
[Token(Token = "0x600C317")]
|
||||
[Address(RVA = "0x22938A0", Offset = "0x22928A0", VA = "0x1822938A0")]
|
||||
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: 0x0600C318 RID: 49944 RVA: 0x002C1B0C File Offset: 0x002BFD0C
|
||||
[Token(Token = "0x600C318")]
|
||||
[Address(RVA = "0x2293430", Offset = "0x2292430", VA = "0x182293430")]
|
||||
public static Asn1TaggedObject GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C318)
|
||||
|
||||
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: 0x0600C319 RID: 49945 RVA: 0x002C1B4C File Offset: 0x002BFD4C
|
||||
[Token(Token = "0x600C319")]
|
||||
[Address(RVA = "0x2293520", Offset = "0x2292520", VA = "0x182293520")]
|
||||
public static Asn1TaggedObject GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C319)
|
||||
|
||||
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: 0x0600C31A RID: 49946 RVA: 0x002C1B8C File Offset: 0x002BFD8C
|
||||
[Token(Token = "0x600C31A")]
|
||||
[Address(RVA = "0x2293C60", Offset = "0x2292C60", VA = "0x182293C60")]
|
||||
protected Asn1TaggedObject(int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
this.tagNo = tagNo;
|
||||
this.obj = obj;
|
||||
this.explicitly = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600C31B RID: 49947 RVA: 0x002C1BBC File Offset: 0x002BFDBC
|
||||
[Token(Token = "0x600C31B")]
|
||||
[Address(RVA = "0x2293BD0", Offset = "0x2292BD0", VA = "0x182293BD0")]
|
||||
protected Asn1TaggedObject(bool explicitly, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (explicitly)
|
||||
{
|
||||
}
|
||||
bool flag;
|
||||
this.explicitly = flag;
|
||||
this.tagNo = tagNo;
|
||||
this.obj = obj;
|
||||
}
|
||||
|
||||
// Token: 0x0600C31C RID: 49948 RVA: 0x002C1BF0 File Offset: 0x002BFDF0
|
||||
[Token(Token = "0x600C31C")]
|
||||
[Address(RVA = "0x22932E0", Offset = "0x22922E0", VA = "0x1822932E0", 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: 0x0600C31D RID: 49949 RVA: 0x002C1C38 File Offset: 0x002BFE38
|
||||
[Token(Token = "0x600C31D")]
|
||||
[Address(RVA = "0x22933E0", Offset = "0x22923E0", VA = "0x1822933E0", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C31D)
|
||||
|
||||
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: 0x17001E3F RID: 7743
|
||||
// (get) Token: 0x0600C31E RID: 49950 RVA: 0x002C1C58 File Offset: 0x002BFE58
|
||||
[Token(Token = "0x17001E3F")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600C31E")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C31F RID: 49951 RVA: 0x002C1C6C File Offset: 0x002BFE6C
|
||||
[Token(Token = "0x600C31F")]
|
||||
[Address(RVA = "0x4987D0", Offset = "0x4977D0", VA = "0x1804987D0")]
|
||||
public bool IsExplicit()
|
||||
{
|
||||
return this.explicitly;
|
||||
}
|
||||
|
||||
// Token: 0x0600C320 RID: 49952 RVA: 0x002C1C80 File Offset: 0x002BFE80
|
||||
[Token(Token = "0x600C320")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
||||
public bool IsEmpty()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C321 RID: 49953 RVA: 0x002C1C90 File Offset: 0x002BFE90
|
||||
[Token(Token = "0x600C321")]
|
||||
[Address(RVA = "0x2293880", Offset = "0x2292880", VA = "0x182293880")]
|
||||
public Asn1Object GetObject()
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.obj;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
}
|
||||
return asn1Encodable.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0600C322 RID: 49954 RVA: 0x002C1CB0 File Offset: 0x002BFEB0
|
||||
[Token(Token = "0x600C322")]
|
||||
[Address(RVA = "0x2293660", Offset = "0x2292660", VA = "0x182293660", 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: 0x0600C323 RID: 49955 RVA: 0x002C1D44 File Offset: 0x002BFF44
|
||||
[Token(Token = "0x600C323")]
|
||||
[Address(RVA = "0x22939F0", Offset = "0x22929F0", VA = "0x1822939F0", 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: 0x04007B1E RID: 31518
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B1E")]
|
||||
internal int tagNo;
|
||||
|
||||
// Token: 0x04007B1F RID: 31519
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4007B1F")]
|
||||
internal bool explicitly = true;
|
||||
|
||||
// Token: 0x04007B20 RID: 31520
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B20")]
|
||||
internal Asn1Encodable obj;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E54 RID: 7764
|
||||
[Token(Token = "0x2001E54")]
|
||||
public interface Asn1TaggedObjectParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x17001E32 RID: 7730
|
||||
// (get) Token: 0x0600C2B1 RID: 49841
|
||||
[Token(Token = "0x17001E32")]
|
||||
int TagNo
|
||||
{
|
||||
[Token(Token = "0x600C2B1")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B2 RID: 49842
|
||||
[Token(Token = "0x600C2B2")]
|
||||
[Address(Slot = "1")]
|
||||
IAsn1Convertible GetObjectParser(int tag, bool isExplicit);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E64 RID: 7780
|
||||
[Token(Token = "0x2001E64")]
|
||||
public class Asn1Tags
|
||||
{
|
||||
// Token: 0x0600C324 RID: 49956 RVA: 0x002C1DB4 File Offset: 0x002BFFB4
|
||||
[Token(Token = "0x600C324")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public Asn1Tags()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007B21 RID: 31521
|
||||
[Token(Token = "0x4007B21")]
|
||||
public const int Boolean = 1;
|
||||
|
||||
// Token: 0x04007B22 RID: 31522
|
||||
[Token(Token = "0x4007B22")]
|
||||
public const int Integer = 2;
|
||||
|
||||
// Token: 0x04007B23 RID: 31523
|
||||
[Token(Token = "0x4007B23")]
|
||||
public const int BitString = 3;
|
||||
|
||||
// Token: 0x04007B24 RID: 31524
|
||||
[Token(Token = "0x4007B24")]
|
||||
public const int OctetString = 4;
|
||||
|
||||
// Token: 0x04007B25 RID: 31525
|
||||
[Token(Token = "0x4007B25")]
|
||||
public const int Null = 5;
|
||||
|
||||
// Token: 0x04007B26 RID: 31526
|
||||
[Token(Token = "0x4007B26")]
|
||||
public const int ObjectIdentifier = 6;
|
||||
|
||||
// Token: 0x04007B27 RID: 31527
|
||||
[Token(Token = "0x4007B27")]
|
||||
public const int External = 8;
|
||||
|
||||
// Token: 0x04007B28 RID: 31528
|
||||
[Token(Token = "0x4007B28")]
|
||||
public const int Enumerated = 10;
|
||||
|
||||
// Token: 0x04007B29 RID: 31529
|
||||
[Token(Token = "0x4007B29")]
|
||||
public const int Sequence = 16;
|
||||
|
||||
// Token: 0x04007B2A RID: 31530
|
||||
[Token(Token = "0x4007B2A")]
|
||||
public const int SequenceOf = 16;
|
||||
|
||||
// Token: 0x04007B2B RID: 31531
|
||||
[Token(Token = "0x4007B2B")]
|
||||
public const int Set = 17;
|
||||
|
||||
// Token: 0x04007B2C RID: 31532
|
||||
[Token(Token = "0x4007B2C")]
|
||||
public const int SetOf = 17;
|
||||
|
||||
// Token: 0x04007B2D RID: 31533
|
||||
[Token(Token = "0x4007B2D")]
|
||||
public const int NumericString = 18;
|
||||
|
||||
// Token: 0x04007B2E RID: 31534
|
||||
[Token(Token = "0x4007B2E")]
|
||||
public const int PrintableString = 19;
|
||||
|
||||
// Token: 0x04007B2F RID: 31535
|
||||
[Token(Token = "0x4007B2F")]
|
||||
public const int T61String = 20;
|
||||
|
||||
// Token: 0x04007B30 RID: 31536
|
||||
[Token(Token = "0x4007B30")]
|
||||
public const int VideotexString = 21;
|
||||
|
||||
// Token: 0x04007B31 RID: 31537
|
||||
[Token(Token = "0x4007B31")]
|
||||
public const int IA5String = 22;
|
||||
|
||||
// Token: 0x04007B32 RID: 31538
|
||||
[Token(Token = "0x4007B32")]
|
||||
public const int UtcTime = 23;
|
||||
|
||||
// Token: 0x04007B33 RID: 31539
|
||||
[Token(Token = "0x4007B33")]
|
||||
public const int GeneralizedTime = 24;
|
||||
|
||||
// Token: 0x04007B34 RID: 31540
|
||||
[Token(Token = "0x4007B34")]
|
||||
public const int GraphicString = 25;
|
||||
|
||||
// Token: 0x04007B35 RID: 31541
|
||||
[Token(Token = "0x4007B35")]
|
||||
public const int VisibleString = 26;
|
||||
|
||||
// Token: 0x04007B36 RID: 31542
|
||||
[Token(Token = "0x4007B36")]
|
||||
public const int GeneralString = 27;
|
||||
|
||||
// Token: 0x04007B37 RID: 31543
|
||||
[Token(Token = "0x4007B37")]
|
||||
public const int UniversalString = 28;
|
||||
|
||||
// Token: 0x04007B38 RID: 31544
|
||||
[Token(Token = "0x4007B38")]
|
||||
public const int BmpString = 30;
|
||||
|
||||
// Token: 0x04007B39 RID: 31545
|
||||
[Token(Token = "0x4007B39")]
|
||||
public const int Utf8String = 12;
|
||||
|
||||
// Token: 0x04007B3A RID: 31546
|
||||
[Token(Token = "0x4007B3A")]
|
||||
public const int Constructed = 32;
|
||||
|
||||
// Token: 0x04007B3B RID: 31547
|
||||
[Token(Token = "0x4007B3B")]
|
||||
public const int Application = 64;
|
||||
|
||||
// Token: 0x04007B3C RID: 31548
|
||||
[Token(Token = "0x4007B3C")]
|
||||
public const int Tagged = 128;
|
||||
}
|
||||
}
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.BC
|
||||
{
|
||||
// Token: 0x02002050 RID: 8272
|
||||
[Token(Token = "0x2002050")]
|
||||
public abstract class BCObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CF74 RID: 53108 RVA: 0x002F30C4 File Offset: 0x002F12C4
|
||||
[Token(Token = "0x600CF74")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected BCObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04008389 RID: 33673
|
||||
[Token(Token = "0x4008389")]
|
||||
public static readonly DerObjectIdentifier bc = new DerObjectIdentifier("1.3.6.1.4.1.22554");
|
||||
|
||||
// Token: 0x0400838A RID: 33674
|
||||
[Token(Token = "0x400838A")]
|
||||
public static readonly DerObjectIdentifier bc_pbe = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400838B RID: 33675
|
||||
[Token(Token = "0x400838B")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400838C RID: 33676
|
||||
[Token(Token = "0x400838C")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400838D RID: 33677
|
||||
[Token(Token = "0x400838D")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha384 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400838E RID: 33678
|
||||
[Token(Token = "0x400838E")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha512 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400838F RID: 33679
|
||||
[Token(Token = "0x400838F")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha224 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008390 RID: 33680
|
||||
[Token(Token = "0x4008390")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs5 = BCObjectIdentifiers.bc_pbe_sha1.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008391 RID: 33681
|
||||
[Token(Token = "0x4008391")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12 = BCObjectIdentifiers.bc_pbe_sha1.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008392 RID: 33682
|
||||
[Token(Token = "0x4008392")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs5 = BCObjectIdentifiers.bc_pbe_sha256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008393 RID: 33683
|
||||
[Token(Token = "0x4008393")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12 = BCObjectIdentifiers.bc_pbe_sha256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008394 RID: 33684
|
||||
[Token(Token = "0x4008394")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes128_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008395 RID: 33685
|
||||
[Token(Token = "0x4008395")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes192_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008396 RID: 33686
|
||||
[Token(Token = "0x4008396")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes256_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008397 RID: 33687
|
||||
[Token(Token = "0x4008397")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes128_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008398 RID: 33688
|
||||
[Token(Token = "0x4008398")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes192_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008399 RID: 33689
|
||||
[Token(Token = "0x4008399")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes256_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400839A RID: 33690
|
||||
[Token(Token = "0x400839A")]
|
||||
public static readonly DerObjectIdentifier bc_sig = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400839B RID: 33691
|
||||
[Token(Token = "0x400839B")]
|
||||
public static readonly DerObjectIdentifier sphincs256 = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400839C RID: 33692
|
||||
[Token(Token = "0x400839C")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_BLAKE512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400839D RID: 33693
|
||||
[Token(Token = "0x400839D")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_SHA512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400839E RID: 33694
|
||||
[Token(Token = "0x400839E")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_SHA3_512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400839F RID: 33695
|
||||
[Token(Token = "0x400839F")]
|
||||
public static readonly DerObjectIdentifier xmss = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A0 RID: 33696
|
||||
[Token(Token = "0x40083A0")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHA256 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A1 RID: 33697
|
||||
[Token(Token = "0x40083A1")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHA512 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A2 RID: 33698
|
||||
[Token(Token = "0x40083A2")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHAKE128 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A3 RID: 33699
|
||||
[Token(Token = "0x40083A3")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHAKE256 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A4 RID: 33700
|
||||
[Token(Token = "0x40083A4")]
|
||||
public static readonly DerObjectIdentifier xmss_mt = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A5 RID: 33701
|
||||
[Token(Token = "0x40083A5")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHA256 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A6 RID: 33702
|
||||
[Token(Token = "0x40083A6")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHA512 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A7 RID: 33703
|
||||
[Token(Token = "0x40083A7")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHAKE128 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A8 RID: 33704
|
||||
[Token(Token = "0x40083A8")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHAKE256 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083A9 RID: 33705
|
||||
[Token(Token = "0x40083A9")]
|
||||
public static readonly DerObjectIdentifier bc_exch = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040083AA RID: 33706
|
||||
[Token(Token = "0x40083AA")]
|
||||
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: 0x02001E6F RID: 7791
|
||||
[Token(Token = "0x2001E6F")]
|
||||
public class BerApplicationSpecific : DerApplicationSpecific
|
||||
{
|
||||
// Token: 0x0600C34F RID: 49999 RVA: 0x002C2510 File Offset: 0x002C0710
|
||||
[Token(Token = "0x600C34F")]
|
||||
[Address(RVA = "0x22946A0", Offset = "0x22936A0", VA = "0x1822946A0")]
|
||||
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: 0x02001E70 RID: 7792
|
||||
[Token(Token = "0x2001E70")]
|
||||
public class BerApplicationSpecificParser : IAsn1ApplicationSpecificParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C350 RID: 50000 RVA: 0x002C2528 File Offset: 0x002C0728
|
||||
[Token(Token = "0x600C350")]
|
||||
[Address(RVA = "0x49A4C0", Offset = "0x4994C0", VA = "0x18049A4C0")]
|
||||
internal BerApplicationSpecificParser(int tag, Asn1StreamParser parser)
|
||||
{
|
||||
this.tag = tag;
|
||||
this.parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C351 RID: 50001 RVA: 0x002C254C File Offset: 0x002C074C
|
||||
[Token(Token = "0x600C351")]
|
||||
[Address(RVA = "0x19B0D20", Offset = "0x19AFD20", VA = "0x1819B0D20", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser asn1StreamParser = this.parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C352 RID: 50002 RVA: 0x002C2568 File Offset: 0x002C0768
|
||||
[Token(Token = "0x600C352")]
|
||||
[Address(RVA = "0x2294620", Offset = "0x2293620", VA = "0x182294620", 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: 0x04007B4A RID: 31562
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B4A")]
|
||||
private readonly int tag;
|
||||
|
||||
// Token: 0x04007B4B RID: 31563
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B4B")]
|
||||
private readonly Asn1StreamParser parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E65 RID: 7781
|
||||
[Token(Token = "0x2001E65")]
|
||||
public class BerBitString : DerBitString
|
||||
{
|
||||
// Token: 0x0600C325 RID: 49957 RVA: 0x002C1DC8 File Offset: 0x002BFFC8
|
||||
[Token(Token = "0x600C325")]
|
||||
[Address(RVA = "0x22947B0", Offset = "0x22937B0", VA = "0x1822947B0")]
|
||||
public BerBitString(byte[] data, int padBits)
|
||||
: base(data, padBits)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C326 RID: 49958 RVA: 0x002C1DE0 File Offset: 0x002BFFE0
|
||||
[Token(Token = "0x600C326")]
|
||||
[Address(RVA = "0x2294830", Offset = "0x2293830", VA = "0x182294830")]
|
||||
public BerBitString(byte[] data)
|
||||
: base(data)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C327 RID: 49959 RVA: 0x002C1DF4 File Offset: 0x002BFFF4
|
||||
[Token(Token = "0x600C327")]
|
||||
[Address(RVA = "0x22948A0", Offset = "0x22938A0", VA = "0x1822948A0")]
|
||||
public BerBitString(int namedBits)
|
||||
: base(namedBits)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C328 RID: 49960 RVA: 0x002C1E08 File Offset: 0x002C0008
|
||||
[Token(Token = "0x600C328")]
|
||||
[Address(RVA = "0x2294900", Offset = "0x2293900", VA = "0x182294900")]
|
||||
public BerBitString(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C329 RID: 49961 RVA: 0x002C1E1C File Offset: 0x002C001C
|
||||
[Token(Token = "0x600C329")]
|
||||
[Address(RVA = "0x22946B0", Offset = "0x22936B0", VA = "0x1822946B0", 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: 0x02001E66 RID: 7782
|
||||
[Token(Token = "0x2001E66")]
|
||||
public class BerGenerator : Asn1Generator
|
||||
{
|
||||
// Token: 0x0600C32A RID: 49962 RVA: 0x002C1E58 File Offset: 0x002C0058
|
||||
[Token(Token = "0x600C32A")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
protected BerGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
}
|
||||
|
||||
// Token: 0x0600C32B RID: 49963 RVA: 0x002C1E74 File Offset: 0x002C0074
|
||||
[Token(Token = "0x600C32B")]
|
||||
[Address(RVA = "0x2294C00", Offset = "0x2293C00", VA = "0x182294C00")]
|
||||
public BerGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
this._tagged = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600C32C RID: 49964 RVA: 0x002C1EA4 File Offset: 0x002C00A4
|
||||
[Token(Token = "0x600C32C")]
|
||||
[Address(RVA = "0x2294970", Offset = "0x2293970", VA = "0x182294970", Slot = "4")]
|
||||
public override void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
((IDisposable)new BerOutputStream(this._out)).Dispose();
|
||||
}
|
||||
|
||||
// Token: 0x0600C32D RID: 49965 RVA: 0x002C1EC8 File Offset: 0x002C00C8
|
||||
[Token(Token = "0x600C32D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Stream GetRawOutputStream()
|
||||
{
|
||||
return this._out;
|
||||
}
|
||||
|
||||
// Token: 0x0600C32E RID: 49966 RVA: 0x002C1EDC File Offset: 0x002C00DC
|
||||
[Token(Token = "0x600C32E")]
|
||||
[Address(RVA = "0x2294A00", Offset = "0x2293A00", VA = "0x182294A00", Slot = "6")]
|
||||
public override void Close()
|
||||
{
|
||||
this.WriteBerEnd();
|
||||
}
|
||||
|
||||
// Token: 0x0600C32F RID: 49967 RVA: 0x002C1EF0 File Offset: 0x002C00F0
|
||||
[Token(Token = "0x600C32F")]
|
||||
[Address(RVA = "0x2294BB0", Offset = "0x2293BB0", VA = "0x182294BB0")]
|
||||
private void WriteHdr(int tag)
|
||||
{
|
||||
Stream @out = this._out;
|
||||
bool canRead = this._out.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600C330 RID: 49968 RVA: 0x002C1F18 File Offset: 0x002C0118
|
||||
[Token(Token = "0x600C330")]
|
||||
[Address(RVA = "0x2294AD0", Offset = "0x2293AD0", VA = "0x182294AD0")]
|
||||
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: 0x0600C331 RID: 49969 RVA: 0x002C1F74 File Offset: 0x002C0174
|
||||
[Token(Token = "0x600C331")]
|
||||
[Address(RVA = "0x2294A10", Offset = "0x2293A10", VA = "0x182294A10")]
|
||||
protected void WriteBerBody(Stream contentStream)
|
||||
{
|
||||
Stream @out = this._out;
|
||||
Streams.PipeAll(contentStream, @out);
|
||||
}
|
||||
|
||||
// Token: 0x0600C332 RID: 49970 RVA: 0x002C1F90 File Offset: 0x002C0190
|
||||
[Token(Token = "0x600C332")]
|
||||
[Address(RVA = "0x2294A30", Offset = "0x2293A30", VA = "0x182294A30")]
|
||||
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: 0x04007B3D RID: 31549
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B3D")]
|
||||
private bool _tagged;
|
||||
|
||||
// Token: 0x04007B3E RID: 31550
|
||||
[FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x4007B3E")]
|
||||
private bool _isExplicit;
|
||||
|
||||
// Token: 0x04007B3F RID: 31551
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4007B3F")]
|
||||
private int _tagNo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E71 RID: 7793
|
||||
[Token(Token = "0x2001E71")]
|
||||
public class BerNull : DerNull
|
||||
{
|
||||
// Token: 0x0600C353 RID: 50003 RVA: 0x002C2598 File Offset: 0x002C0798
|
||||
[Token(Token = "0x600C353")]
|
||||
[Address(RVA = "0x2294E30", Offset = "0x2293E30", VA = "0x182294E30")]
|
||||
[Obsolete]
|
||||
public BerNull()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C354 RID: 50004 RVA: 0x002C25AC File Offset: 0x002C07AC
|
||||
[Token(Token = "0x600C354")]
|
||||
[Address(RVA = "0x2294DD0", Offset = "0x2293DD0", VA = "0x182294DD0")]
|
||||
private BerNull(int dummy)
|
||||
: base(dummy)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C355 RID: 50005 RVA: 0x002C25C0 File Offset: 0x002C07C0
|
||||
[Token(Token = "0x600C355")]
|
||||
[Address(RVA = "0x2294C50", Offset = "0x2293C50", VA = "0x182294C50", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
if (derOut != 0 && (derOut != 0 || derOut != 0))
|
||||
{
|
||||
((IDisposable)derOut).Dispose();
|
||||
return;
|
||||
}
|
||||
base.Encode(derOut);
|
||||
}
|
||||
|
||||
// Token: 0x0600C356 RID: 50006 RVA: 0x002C25EC File Offset: 0x002C07EC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C356")]
|
||||
[Address(RVA = "0x2294D40", Offset = "0x2293D40", VA = "0x182294D40")]
|
||||
static BerNull()
|
||||
{
|
||||
int num;
|
||||
BerNull berNull = new BerNull(num);
|
||||
num = 0;
|
||||
}
|
||||
|
||||
// Token: 0x04007B4C RID: 31564
|
||||
[Token(Token = "0x4007B4C")]
|
||||
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: 0x02001E72 RID: 7794
|
||||
[Token(Token = "0x2001E72")]
|
||||
public class BerOctetString : DerOctetString, IEnumerable
|
||||
{
|
||||
// Token: 0x0600C357 RID: 50007 RVA: 0x002C2604 File Offset: 0x002C0804
|
||||
[Token(Token = "0x600C357")]
|
||||
[Address(RVA = "0x2295510", Offset = "0x2294510", VA = "0x182295510")]
|
||||
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: 0x0600C358 RID: 50008 RVA: 0x002C2684 File Offset: 0x002C0884
|
||||
[Token(Token = "0x600C358")]
|
||||
[Address(RVA = "0x2295B00", Offset = "0x2294B00", VA = "0x182295B00")]
|
||||
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: 0x0600C359 RID: 50009 RVA: 0x002C26F0 File Offset: 0x002C08F0
|
||||
[Token(Token = "0x600C359")]
|
||||
[Address(RVA = "0x2295DF0", Offset = "0x2294DF0", VA = "0x182295DF0")]
|
||||
public BerOctetString(byte[] str)
|
||||
: base(str)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C35A RID: 50010 RVA: 0x002C2704 File Offset: 0x002C0904
|
||||
[Token(Token = "0x600C35A")]
|
||||
[Address(RVA = "0x2295DA0", Offset = "0x2294DA0", VA = "0x182295DA0")]
|
||||
public BerOctetString(IEnumerable octets)
|
||||
{
|
||||
byte[] array = BerOctetString.ToBytes(octets);
|
||||
base..ctor(array);
|
||||
this.octs = octets;
|
||||
}
|
||||
|
||||
// Token: 0x0600C35B RID: 50011 RVA: 0x002C2728 File Offset: 0x002C0928
|
||||
[Token(Token = "0x600C35B")]
|
||||
[Address(RVA = "0x2295DE0", Offset = "0x2294DE0", VA = "0x182295DE0")]
|
||||
public BerOctetString(Asn1Object obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C35C RID: 50012 RVA: 0x002C273C File Offset: 0x002C093C
|
||||
[Token(Token = "0x600C35C")]
|
||||
[Address(RVA = "0x2295E00", Offset = "0x2294E00", VA = "0x182295E00")]
|
||||
public BerOctetString(Asn1Encodable obj)
|
||||
{
|
||||
Asn1Object asn1Object = obj.ToAsn1Object();
|
||||
base..ctor(asn1Object);
|
||||
}
|
||||
|
||||
// Token: 0x0600C35D RID: 50013 RVA: 0x002C2760 File Offset: 0x002C0960
|
||||
[Token(Token = "0x600C35D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "10")]
|
||||
public override byte[] GetOctets()
|
||||
{
|
||||
return this.str;
|
||||
}
|
||||
|
||||
// Token: 0x0600C35E RID: 50014 RVA: 0x002C2774 File Offset: 0x002C0974
|
||||
[Token(Token = "0x600C35E")]
|
||||
[Address(RVA = "0x2295930", Offset = "0x2294930", VA = "0x182295930", 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: 0x0600C35F RID: 50015 RVA: 0x002C27FC File Offset: 0x002C09FC
|
||||
[Token(Token = "0x600C35F")]
|
||||
[Address(RVA = "0x2295AF0", Offset = "0x2294AF0", VA = "0x182295AF0")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return this.GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x0600C360 RID: 50016 RVA: 0x002C2810 File Offset: 0x002C0A10
|
||||
[Token(Token = "0x600C360")]
|
||||
[Address(RVA = "0x22957C0", Offset = "0x22947C0", VA = "0x1822957C0")]
|
||||
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: 0x0600C361 RID: 50017 RVA: 0x002C2894 File Offset: 0x002C0A94
|
||||
[Token(Token = "0x600C361")]
|
||||
[Address(RVA = "0x2295240", Offset = "0x2294240", VA = "0x182295240", 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: 0x04007B4D RID: 31565
|
||||
[Token(Token = "0x4007B4D")]
|
||||
private const int MaxLength = 1000;
|
||||
|
||||
// Token: 0x04007B4E RID: 31566
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B4E")]
|
||||
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: 0x02001E67 RID: 7783
|
||||
[Token(Token = "0x2001E67")]
|
||||
public class BerOctetStringGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600C333 RID: 49971 RVA: 0x002C1FD8 File Offset: 0x002C01D8
|
||||
[Token(Token = "0x600C333")]
|
||||
[Address(RVA = "0x2295020", Offset = "0x2294020", VA = "0x182295020")]
|
||||
public BerOctetStringGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(36);
|
||||
}
|
||||
|
||||
// Token: 0x0600C334 RID: 49972 RVA: 0x002C1FFC File Offset: 0x002C01FC
|
||||
[Token(Token = "0x600C334")]
|
||||
[Address(RVA = "0x2295060", Offset = "0x2294060", VA = "0x182295060")]
|
||||
public BerOctetStringGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
base.WriteBerHeader(36);
|
||||
}
|
||||
|
||||
// Token: 0x0600C335 RID: 49973 RVA: 0x002C202C File Offset: 0x002C022C
|
||||
[Token(Token = "0x600C335")]
|
||||
[Address(RVA = "0x2294E90", Offset = "0x2293E90", VA = "0x182294E90")]
|
||||
public Stream GetOctetOutputStream()
|
||||
{
|
||||
byte[] array = new byte[1000];
|
||||
return this.GetOctetOutputStream(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600C336 RID: 49974 RVA: 0x002C204C File Offset: 0x002C024C
|
||||
[Token(Token = "0x600C336")]
|
||||
[Address(RVA = "0x2294EE0", Offset = "0x2293EE0", VA = "0x182294EE0")]
|
||||
public Stream GetOctetOutputStream(int bufSize)
|
||||
{
|
||||
if (bufSize < 1)
|
||||
{
|
||||
}
|
||||
byte[] array = new byte[bufSize];
|
||||
return this.GetOctetOutputStream(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600C337 RID: 49975 RVA: 0x002C206C File Offset: 0x002C026C
|
||||
[Token(Token = "0x600C337")]
|
||||
[Address(RVA = "0x2294F60", Offset = "0x2293F60", VA = "0x182294F60")]
|
||||
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: 0x02001E68 RID: 7784
|
||||
[Token(Token = "0x2001E68")]
|
||||
private class BufferedBerOctetStream : BaseOutputStream
|
||||
{
|
||||
// Token: 0x0600C338 RID: 49976 RVA: 0x002C20A8 File Offset: 0x002C02A8
|
||||
[Token(Token = "0x600C338")]
|
||||
[Address(RVA = "0x2298010", Offset = "0x2297010", VA = "0x182298010")]
|
||||
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: 0x0600C339 RID: 49977 RVA: 0x002C20EC File Offset: 0x002C02EC
|
||||
[Token(Token = "0x600C339")]
|
||||
[Address(RVA = "0x2297E50", Offset = "0x2296E50", VA = "0x182297E50", 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: 0x0600C33A RID: 49978 RVA: 0x002C214C File Offset: 0x002C034C
|
||||
[Token(Token = "0x600C33A")]
|
||||
[Address(RVA = "0x2297ED0", Offset = "0x2296ED0", VA = "0x182297ED0", 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: 0x0600C33B RID: 49979 RVA: 0x002C2200 File Offset: 0x002C0400
|
||||
[Token(Token = "0x600C33B")]
|
||||
[Address(RVA = "0x2297E00", Offset = "0x2296E00", VA = "0x182297E00", 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: 0x04007B40 RID: 31552
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B40")]
|
||||
private byte[] _buf;
|
||||
|
||||
// Token: 0x04007B41 RID: 31553
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007B41")]
|
||||
private int _off;
|
||||
|
||||
// Token: 0x04007B42 RID: 31554
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007B42")]
|
||||
private readonly BerOctetStringGenerator _gen;
|
||||
|
||||
// Token: 0x04007B43 RID: 31555
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007B43")]
|
||||
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: 0x02001E69 RID: 7785
|
||||
[Token(Token = "0x2001E69")]
|
||||
public class BerOctetStringParser : Asn1OctetStringParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C33C RID: 49980 RVA: 0x002C2248 File Offset: 0x002C0448
|
||||
[Token(Token = "0x600C33C")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
internal BerOctetStringParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C33D RID: 49981 RVA: 0x002C2264 File Offset: 0x002C0464
|
||||
[Token(Token = "0x600C33D")]
|
||||
[Address(RVA = "0x22950C0", Offset = "0x22940C0", VA = "0x1822950C0", Slot = "4")]
|
||||
public Stream GetOctetStream()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C33D)
|
||||
|
||||
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: 0x0600C33E RID: 49982 RVA: 0x002C227C File Offset: 0x002C047C
|
||||
[Token(Token = "0x600C33E")]
|
||||
[Address(RVA = "0x2295120", Offset = "0x2294120", VA = "0x182295120", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
BerOctetString berOctetString = new BerOctetString(Streams.ReadAll(new ConstructedOctetStream(this._parser)));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B44 RID: 31556
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B44")]
|
||||
private readonly Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E73 RID: 7795
|
||||
[Token(Token = "0x2001E73")]
|
||||
public class BerOutputStream : DerOutputStream
|
||||
{
|
||||
// Token: 0x0600C362 RID: 50018 RVA: 0x002C28FC File Offset: 0x002C0AFC
|
||||
[Token(Token = "0x600C362")]
|
||||
[Address(RVA = "0x228FBC0", Offset = "0x228EBC0", VA = "0x18228FBC0")]
|
||||
public BerOutputStream(Stream os)
|
||||
: base(os)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C363 RID: 50019 RVA: 0x002C2910 File Offset: 0x002C0B10
|
||||
[Token(Token = "0x600C363")]
|
||||
[Address(RVA = "0x2295E40", Offset = "0x2294E40", VA = "0x182295E40", Slot = "31")]
|
||||
[Obsolete]
|
||||
public override void WriteObject(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C363)
|
||||
|
||||
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: 0x02001E74 RID: 7796
|
||||
[Token(Token = "0x2001E74")]
|
||||
public class BerSequence : DerSequence
|
||||
{
|
||||
// Token: 0x0600C364 RID: 50020 RVA: 0x002C2958 File Offset: 0x002C0B58
|
||||
[Token(Token = "0x600C364")]
|
||||
[Address(RVA = "0x2296490", Offset = "0x2295490", VA = "0x182296490")]
|
||||
public new static BerSequence FromVector(Asn1EncodableVector v)
|
||||
{
|
||||
IList v2 = v.v;
|
||||
return new BerSequence(v);
|
||||
}
|
||||
|
||||
// Token: 0x0600C365 RID: 50021 RVA: 0x002C2978 File Offset: 0x002C0B78
|
||||
[Token(Token = "0x600C365")]
|
||||
[Address(RVA = "0x2296640", Offset = "0x2295640", VA = "0x182296640")]
|
||||
public BerSequence()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C366 RID: 50022 RVA: 0x002C298C File Offset: 0x002C0B8C
|
||||
[Token(Token = "0x600C366")]
|
||||
[Address(RVA = "0x22966A0", Offset = "0x22956A0", VA = "0x1822966A0")]
|
||||
public BerSequence(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C367 RID: 50023 RVA: 0x002C29A0 File Offset: 0x002C0BA0
|
||||
[Token(Token = "0x600C367")]
|
||||
[Address(RVA = "0x2296710", Offset = "0x2295710", VA = "0x182296710")]
|
||||
public BerSequence(params Asn1Encodable[] v)
|
||||
: base(v)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C368 RID: 50024 RVA: 0x002C29B4 File Offset: 0x002C0BB4
|
||||
[Token(Token = "0x600C368")]
|
||||
[Address(RVA = "0x2296780", Offset = "0x2295780", VA = "0x182296780")]
|
||||
public BerSequence(Asn1EncodableVector v)
|
||||
: base(v)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C369 RID: 50025 RVA: 0x002C29C8 File Offset: 0x002C0BC8
|
||||
[Token(Token = "0x600C369")]
|
||||
[Address(RVA = "0x22961B0", Offset = "0x22951B0", VA = "0x1822961B0", 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: 0x0600C36A RID: 50026 RVA: 0x002C2A30 File Offset: 0x002C0C30
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C36A")]
|
||||
[Address(RVA = "0x22965B0", Offset = "0x22955B0", VA = "0x1822965B0")]
|
||||
static BerSequence()
|
||||
{
|
||||
BerSequence berSequence = new BerSequence();
|
||||
}
|
||||
|
||||
// Token: 0x04007B4F RID: 31567
|
||||
[Token(Token = "0x4007B4F")]
|
||||
public new static readonly BerSequence Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E6A RID: 7786
|
||||
[Token(Token = "0x2001E6A")]
|
||||
public class BerSequenceGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600C33F RID: 49983 RVA: 0x002C22B0 File Offset: 0x002C04B0
|
||||
[Token(Token = "0x600C33F")]
|
||||
[Address(RVA = "0x22960C0", Offset = "0x22950C0", VA = "0x1822960C0")]
|
||||
public BerSequenceGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(48);
|
||||
}
|
||||
|
||||
// Token: 0x0600C340 RID: 49984 RVA: 0x002C22D4 File Offset: 0x002C04D4
|
||||
[Token(Token = "0x600C340")]
|
||||
[Address(RVA = "0x2296060", Offset = "0x2295060", VA = "0x182296060")]
|
||||
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: 0x02001E6B RID: 7787
|
||||
[Token(Token = "0x2001E6B")]
|
||||
public class BerSequenceParser : Asn1SequenceParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C341 RID: 49985 RVA: 0x002C2304 File Offset: 0x002C0504
|
||||
[Token(Token = "0x600C341")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
internal BerSequenceParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C342 RID: 49986 RVA: 0x002C2320 File Offset: 0x002C0520
|
||||
[Token(Token = "0x600C342")]
|
||||
[Address(RVA = "0x18F2A00", Offset = "0x18F1A00", VA = "0x1818F2A00", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C343 RID: 49987 RVA: 0x002C233C File Offset: 0x002C053C
|
||||
[Token(Token = "0x600C343")]
|
||||
[Address(RVA = "0x2296100", Offset = "0x2295100", VA = "0x182296100", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
BerSequence berSequence = new BerSequence(this._parser.ReadVector());
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B45 RID: 31557
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B45")]
|
||||
private readonly Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E75 RID: 7797
|
||||
[Token(Token = "0x2001E75")]
|
||||
public class BerSet : DerSet
|
||||
{
|
||||
// Token: 0x0600C36B RID: 50027 RVA: 0x002C2A44 File Offset: 0x002C0C44
|
||||
[Token(Token = "0x600C36B")]
|
||||
[Address(RVA = "0x2296D10", Offset = "0x2295D10", VA = "0x182296D10")]
|
||||
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: 0x0600C36C RID: 50028 RVA: 0x002C2A6C File Offset: 0x002C0C6C
|
||||
[Token(Token = "0x600C36C")]
|
||||
[Address(RVA = "0x2296C20", Offset = "0x2295C20", VA = "0x182296C20")]
|
||||
internal new static BerSet FromVector(Asn1EncodableVector v, bool needsSorting)
|
||||
{
|
||||
IList v2 = v.v;
|
||||
return new BerSet(v, needsSorting);
|
||||
}
|
||||
|
||||
// Token: 0x0600C36D RID: 50029 RVA: 0x002C2A90 File Offset: 0x002C0C90
|
||||
[Token(Token = "0x600C36D")]
|
||||
[Address(RVA = "0x2296F30", Offset = "0x2295F30", VA = "0x182296F30")]
|
||||
public BerSet()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C36E RID: 50030 RVA: 0x002C2AA4 File Offset: 0x002C0CA4
|
||||
[Token(Token = "0x600C36E")]
|
||||
[Address(RVA = "0x2296EC0", Offset = "0x2295EC0", VA = "0x182296EC0")]
|
||||
public BerSet(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C36F RID: 50031 RVA: 0x002C2AB8 File Offset: 0x002C0CB8
|
||||
[Token(Token = "0x600C36F")]
|
||||
[Address(RVA = "0x2296F90", Offset = "0x2295F90", VA = "0x182296F90")]
|
||||
public BerSet(Asn1EncodableVector v)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(v, num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600C370 RID: 50032 RVA: 0x002C2AD0 File Offset: 0x002C0CD0
|
||||
[Token(Token = "0x600C370")]
|
||||
[Address(RVA = "0x2297000", Offset = "0x2296000", VA = "0x182297000")]
|
||||
internal BerSet(Asn1EncodableVector v, bool needsSorting)
|
||||
: base(v, needsSorting)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C371 RID: 50033 RVA: 0x002C2AE8 File Offset: 0x002C0CE8
|
||||
[Token(Token = "0x600C371")]
|
||||
[Address(RVA = "0x2296940", Offset = "0x2295940", VA = "0x182296940", 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: 0x0600C372 RID: 50034 RVA: 0x002C2B50 File Offset: 0x002C0D50
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C372")]
|
||||
[Address(RVA = "0x2296E30", Offset = "0x2295E30", VA = "0x182296E30")]
|
||||
static BerSet()
|
||||
{
|
||||
BerSet berSet = new BerSet();
|
||||
}
|
||||
|
||||
// Token: 0x04007B50 RID: 31568
|
||||
[Token(Token = "0x4007B50")]
|
||||
public new static readonly BerSet Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E6C RID: 7788
|
||||
[Token(Token = "0x2001E6C")]
|
||||
public class BerSetGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600C344 RID: 49988 RVA: 0x002C2360 File Offset: 0x002C0560
|
||||
[Token(Token = "0x600C344")]
|
||||
[Address(RVA = "0x2296850", Offset = "0x2295850", VA = "0x182296850")]
|
||||
public BerSetGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(49);
|
||||
}
|
||||
|
||||
// Token: 0x0600C345 RID: 49989 RVA: 0x002C2384 File Offset: 0x002C0584
|
||||
[Token(Token = "0x600C345")]
|
||||
[Address(RVA = "0x22967F0", Offset = "0x22957F0", VA = "0x1822967F0")]
|
||||
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: 0x02001E6D RID: 7789
|
||||
[Token(Token = "0x2001E6D")]
|
||||
public class BerSetParser : Asn1SetParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C346 RID: 49990 RVA: 0x002C23B4 File Offset: 0x002C05B4
|
||||
[Token(Token = "0x600C346")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
internal BerSetParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C347 RID: 49991 RVA: 0x002C23D0 File Offset: 0x002C05D0
|
||||
[Token(Token = "0x600C347")]
|
||||
[Address(RVA = "0x18F2A00", Offset = "0x18F1A00", VA = "0x1818F2A00", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C348 RID: 49992 RVA: 0x002C23EC File Offset: 0x002C05EC
|
||||
[Token(Token = "0x600C348")]
|
||||
[Address(RVA = "0x2296890", Offset = "0x2295890", VA = "0x182296890", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
int num;
|
||||
BerSet berSet = new BerSet(this._parser.ReadVector(), num != 0);
|
||||
num = 0;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B46 RID: 31558
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B46")]
|
||||
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: 0x02001E76 RID: 7798
|
||||
[Token(Token = "0x2001E76")]
|
||||
public class BerTaggedObject : DerTaggedObject
|
||||
{
|
||||
// Token: 0x0600C373 RID: 50035 RVA: 0x002C2B64 File Offset: 0x002C0D64
|
||||
[Token(Token = "0x600C373")]
|
||||
[Address(RVA = "0x2297720", Offset = "0x2296720", VA = "0x182297720")]
|
||||
public BerTaggedObject(int tagNo, Asn1Encodable obj)
|
||||
: base(tagNo, obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C374 RID: 50036 RVA: 0x002C2B7C File Offset: 0x002C0D7C
|
||||
[Token(Token = "0x600C374")]
|
||||
[Address(RVA = "0x2297710", Offset = "0x2296710", VA = "0x182297710")]
|
||||
public BerTaggedObject(bool explicitly, int tagNo, Asn1Encodable obj)
|
||||
: base(explicitly, tagNo, obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C375 RID: 50037 RVA: 0x002C2B94 File Offset: 0x002C0D94
|
||||
[Token(Token = "0x600C375")]
|
||||
[Address(RVA = "0x2297730", Offset = "0x2296730", VA = "0x182297730")]
|
||||
public BerTaggedObject(int tagNo)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C376 RID: 50038 RVA: 0x002C2BA4 File Offset: 0x002C0DA4
|
||||
[Token(Token = "0x600C376")]
|
||||
[Address(RVA = "0x22972C0", Offset = "0x22962C0", VA = "0x1822972C0", 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: 0x02001E6E RID: 7790
|
||||
[Token(Token = "0x2001E6E")]
|
||||
public class BerTaggedObjectParser : Asn1TaggedObjectParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600C349 RID: 49993 RVA: 0x002C2414 File Offset: 0x002C0614
|
||||
[Token(Token = "0x600C349")]
|
||||
[Address(RVA = "0x2297210", Offset = "0x2296210", VA = "0x182297210")]
|
||||
[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: 0x0600C34A RID: 49994 RVA: 0x002C2444 File Offset: 0x002C0644
|
||||
[Token(Token = "0x600C34A")]
|
||||
[Address(RVA = "0x167CB10", Offset = "0x167BB10", VA = "0x18167CB10")]
|
||||
internal BerTaggedObjectParser(bool constructed, int tagNumber, Asn1StreamParser parser)
|
||||
{
|
||||
this._constructed = constructed;
|
||||
this._tagNumber = tagNumber;
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x17001E40 RID: 7744
|
||||
// (get) Token: 0x0600C34B RID: 49995 RVA: 0x002C246C File Offset: 0x002C066C
|
||||
[Token(Token = "0x17001E40")]
|
||||
public bool IsConstructed
|
||||
{
|
||||
[Token(Token = "0x600C34B")]
|
||||
[Address(RVA = "0x4944B0", Offset = "0x4934B0", VA = "0x1804944B0")]
|
||||
get
|
||||
{
|
||||
return this._constructed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E41 RID: 7745
|
||||
// (get) Token: 0x0600C34C RID: 49996 RVA: 0x002C2480 File Offset: 0x002C0680
|
||||
[Token(Token = "0x17001E41")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600C34C")]
|
||||
[Address(RVA = "0x4936D0", Offset = "0x4926D0", VA = "0x1804936D0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this._tagNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C34D RID: 49997 RVA: 0x002C2494 File Offset: 0x002C0694
|
||||
[Token(Token = "0x600C34D")]
|
||||
[Address(RVA = "0x2297080", Offset = "0x2296080", VA = "0x182297080", Slot = "5")]
|
||||
public IAsn1Convertible GetObjectParser(int tag, bool isExplicit)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C34D)
|
||||
|
||||
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: 0x0600C34E RID: 49998 RVA: 0x002C24D8 File Offset: 0x002C06D8
|
||||
[Token(Token = "0x600C34E")]
|
||||
[Address(RVA = "0x2297150", Offset = "0x2296150", VA = "0x182297150", Slot = "6")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
int tagNumber = this._tagNumber;
|
||||
bool constructed = this._constructed;
|
||||
return parser.ReadTaggedObject(constructed, tagNumber);
|
||||
}
|
||||
|
||||
// Token: 0x04007B47 RID: 31559
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B47")]
|
||||
private bool _constructed;
|
||||
|
||||
// Token: 0x04007B48 RID: 31560
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4007B48")]
|
||||
private int _tagNumber;
|
||||
|
||||
// Token: 0x04007B49 RID: 31561
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B49")]
|
||||
private Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Bsi
|
||||
{
|
||||
// Token: 0x0200204F RID: 8271
|
||||
[Token(Token = "0x200204F")]
|
||||
public abstract class BsiObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CF72 RID: 53106 RVA: 0x002F2F44 File Offset: 0x002F1144
|
||||
[Token(Token = "0x600CF72")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected BsiObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04008372 RID: 33650
|
||||
[Token(Token = "0x4008372")]
|
||||
public static readonly DerObjectIdentifier bsi_de = new DerObjectIdentifier("0.4.0.127.0.7");
|
||||
|
||||
// Token: 0x04008373 RID: 33651
|
||||
[Token(Token = "0x4008373")]
|
||||
public static readonly DerObjectIdentifier id_ecc = BsiObjectIdentifiers.bsi_de.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008374 RID: 33652
|
||||
[Token(Token = "0x4008374")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_signatures = BsiObjectIdentifiers.id_ecc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008375 RID: 33653
|
||||
[Token(Token = "0x4008375")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA1 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008376 RID: 33654
|
||||
[Token(Token = "0x4008376")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA224 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008377 RID: 33655
|
||||
[Token(Token = "0x4008377")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA256 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008378 RID: 33656
|
||||
[Token(Token = "0x4008378")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA384 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008379 RID: 33657
|
||||
[Token(Token = "0x4008379")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA512 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400837A RID: 33658
|
||||
[Token(Token = "0x400837A")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_RIPEMD160 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400837B RID: 33659
|
||||
[Token(Token = "0x400837B")]
|
||||
public static readonly DerObjectIdentifier algorithm = BsiObjectIdentifiers.bsi_de.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400837C RID: 33660
|
||||
[Token(Token = "0x400837C")]
|
||||
public static readonly DerObjectIdentifier ecka_eg = BsiObjectIdentifiers.id_ecc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400837D RID: 33661
|
||||
[Token(Token = "0x400837D")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf = BsiObjectIdentifiers.ecka_eg.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400837E RID: 33662
|
||||
[Token(Token = "0x400837E")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA1 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400837F RID: 33663
|
||||
[Token(Token = "0x400837F")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA224 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008380 RID: 33664
|
||||
[Token(Token = "0x4008380")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA256 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008381 RID: 33665
|
||||
[Token(Token = "0x4008381")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA384 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008382 RID: 33666
|
||||
[Token(Token = "0x4008382")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA512 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008383 RID: 33667
|
||||
[Token(Token = "0x4008383")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_RIPEMD160 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008384 RID: 33668
|
||||
[Token(Token = "0x4008384")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF = BsiObjectIdentifiers.ecka_eg.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008385 RID: 33669
|
||||
[Token(Token = "0x4008385")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_3DES = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008386 RID: 33670
|
||||
[Token(Token = "0x4008386")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES128 = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008387 RID: 33671
|
||||
[Token(Token = "0x4008387")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES192 = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008388 RID: 33672
|
||||
[Token(Token = "0x4008388")]
|
||||
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: 0x02002028 RID: 8232
|
||||
[Token(Token = "0x2002028")]
|
||||
public class CAKeyUpdAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE68 RID: 52840 RVA: 0x002EF000 File Offset: 0x002ED200
|
||||
[Token(Token = "0x600CE68")]
|
||||
[Address(RVA = "0x2298470", Offset = "0x2297470", VA = "0x182298470")]
|
||||
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: 0x0600CE69 RID: 52841 RVA: 0x002EF048 File Offset: 0x002ED248
|
||||
[Token(Token = "0x600CE69")]
|
||||
[Address(RVA = "0x22980A0", Offset = "0x22970A0", VA = "0x1822980A0")]
|
||||
public static CAKeyUpdAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE69)
|
||||
|
||||
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: 0x170020B5 RID: 8373
|
||||
// (get) Token: 0x0600CE6A RID: 52842 RVA: 0x002EF0B0 File Offset: 0x002ED2B0
|
||||
[Token(Token = "0x170020B5")]
|
||||
public virtual CmpCertificate OldWithNew
|
||||
{
|
||||
[Token(Token = "0x600CE6A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.oldWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B6 RID: 8374
|
||||
// (get) Token: 0x0600CE6B RID: 52843 RVA: 0x002EF0C4 File Offset: 0x002ED2C4
|
||||
[Token(Token = "0x170020B6")]
|
||||
public virtual CmpCertificate NewWithOld
|
||||
{
|
||||
[Token(Token = "0x600CE6B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newWithOld;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B7 RID: 8375
|
||||
// (get) Token: 0x0600CE6C RID: 52844 RVA: 0x002EF0D8 File Offset: 0x002ED2D8
|
||||
[Token(Token = "0x170020B7")]
|
||||
public virtual CmpCertificate NewWithNew
|
||||
{
|
||||
[Token(Token = "0x600CE6C")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.newWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE6D RID: 52845 RVA: 0x002EF0EC File Offset: 0x002ED2EC
|
||||
[Token(Token = "0x600CE6D")]
|
||||
[Address(RVA = "0x2298300", Offset = "0x2297300", VA = "0x182298300", 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: 0x040082AC RID: 33452
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082AC")]
|
||||
private readonly CmpCertificate oldWithNew;
|
||||
|
||||
// Token: 0x040082AD RID: 33453
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082AD")]
|
||||
private readonly CmpCertificate newWithOld;
|
||||
|
||||
// Token: 0x040082AE RID: 33454
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082AE")]
|
||||
private readonly CmpCertificate newWithNew;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002029 RID: 8233
|
||||
[Token(Token = "0x2002029")]
|
||||
public class CertConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE6E RID: 52846 RVA: 0x002EF148 File Offset: 0x002ED348
|
||||
[Token(Token = "0x600CE6E")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
private CertConfirmContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE6F RID: 52847 RVA: 0x002EF164 File Offset: 0x002ED364
|
||||
[Token(Token = "0x600CE6F")]
|
||||
[Address(RVA = "0x2298510", Offset = "0x2297510", VA = "0x182298510")]
|
||||
public static CertConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE6F)
|
||||
|
||||
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: 0x0600CE70 RID: 52848 RVA: 0x002EF1BC File Offset: 0x002ED3BC
|
||||
[Token(Token = "0x600CE70")]
|
||||
[Address(RVA = "0x2298700", Offset = "0x2297700", VA = "0x182298700", 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: 0x0600CE71 RID: 52849 RVA: 0x002EF208 File Offset: 0x002ED408
|
||||
[Token(Token = "0x600CE71")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE71)
|
||||
|
||||
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: 0x040082AF RID: 33455
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082AF")]
|
||||
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: 0x0200202A RID: 8234
|
||||
[Token(Token = "0x200202A")]
|
||||
public class CertOrEncCert : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CE72 RID: 52850 RVA: 0x002EF21C File Offset: 0x002ED41C
|
||||
[Token(Token = "0x600CE72")]
|
||||
[Address(RVA = "0x2298C20", Offset = "0x2297C20", VA = "0x182298C20")]
|
||||
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: 0x0600CE73 RID: 52851 RVA: 0x002EF2B4 File Offset: 0x002ED4B4
|
||||
[Token(Token = "0x600CE73")]
|
||||
[Address(RVA = "0x2298810", Offset = "0x2297810", VA = "0x182298810")]
|
||||
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: 0x0600CE74 RID: 52852 RVA: 0x002EF380 File Offset: 0x002ED580
|
||||
[Token(Token = "0x600CE74")]
|
||||
[Address(RVA = "0x2298D70", Offset = "0x2297D70", VA = "0x182298D70")]
|
||||
public CertOrEncCert(CmpCertificate certificate)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE74)
|
||||
|
||||
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: 0x0600CE75 RID: 52853 RVA: 0x002EF3AC File Offset: 0x002ED5AC
|
||||
[Token(Token = "0x600CE75")]
|
||||
[Address(RVA = "0x2298BA0", Offset = "0x2297BA0", VA = "0x182298BA0")]
|
||||
public CertOrEncCert(EncryptedValue encryptedCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE75)
|
||||
|
||||
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: 0x170020B8 RID: 8376
|
||||
// (get) Token: 0x0600CE76 RID: 52854 RVA: 0x002EF3D8 File Offset: 0x002ED5D8
|
||||
[Token(Token = "0x170020B8")]
|
||||
public virtual CmpCertificate Certificate
|
||||
{
|
||||
[Token(Token = "0x600CE76")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certificate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B9 RID: 8377
|
||||
// (get) Token: 0x0600CE77 RID: 52855 RVA: 0x002EF3EC File Offset: 0x002ED5EC
|
||||
[Token(Token = "0x170020B9")]
|
||||
public virtual EncryptedValue EncryptedCert
|
||||
{
|
||||
[Token(Token = "0x600CE77")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE78 RID: 52856 RVA: 0x002EF400 File Offset: 0x002ED600
|
||||
[Token(Token = "0x600CE78")]
|
||||
[Address(RVA = "0x2298B00", Offset = "0x2297B00", VA = "0x182298B00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE78)
|
||||
|
||||
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: 0x040082B0 RID: 33456
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082B0")]
|
||||
private readonly CmpCertificate certificate;
|
||||
|
||||
// Token: 0x040082B1 RID: 33457
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082B1")]
|
||||
private readonly EncryptedValue encryptedCert;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202B RID: 8235
|
||||
[Token(Token = "0x200202B")]
|
||||
public class CertRepMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE79 RID: 52857 RVA: 0x002EF440 File Offset: 0x002ED640
|
||||
[Token(Token = "0x600CE79")]
|
||||
[Address(RVA = "0x22994D0", Offset = "0x22984D0", VA = "0x1822994D0")]
|
||||
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: 0x0600CE7A RID: 52858 RVA: 0x002EF494 File Offset: 0x002ED694
|
||||
[Token(Token = "0x600CE7A")]
|
||||
[Address(RVA = "0x2298F10", Offset = "0x2297F10", VA = "0x182298F10")]
|
||||
public static CertRepMessage GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE7A)
|
||||
|
||||
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: 0x0600CE7B RID: 52859 RVA: 0x002EF500 File Offset: 0x002ED700
|
||||
[Token(Token = "0x600CE7B")]
|
||||
[Address(RVA = "0x22995F0", Offset = "0x22985F0", VA = "0x1822995F0")]
|
||||
public CertRepMessage(CmpCertificate[] caPubs, CertResponse[] response)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE7B)
|
||||
|
||||
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: 0x0600CE7C RID: 52860 RVA: 0x002EF544 File Offset: 0x002ED744
|
||||
[Token(Token = "0x600CE7C")]
|
||||
[Address(RVA = "0x2298DF0", Offset = "0x2297DF0", VA = "0x182298DF0", 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: 0x0600CE7D RID: 52861 RVA: 0x002EF594 File Offset: 0x002ED794
|
||||
[Token(Token = "0x600CE7D")]
|
||||
[Address(RVA = "0x22991E0", Offset = "0x22981E0", VA = "0x1822991E0", 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: 0x0600CE7E RID: 52862 RVA: 0x002EF5E0 File Offset: 0x002ED7E0
|
||||
[Token(Token = "0x600CE7E")]
|
||||
[Address(RVA = "0x22992F0", Offset = "0x22982F0", VA = "0x1822992F0", 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: 0x040082B2 RID: 33458
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082B2")]
|
||||
private readonly Asn1Sequence caPubs;
|
||||
|
||||
// Token: 0x040082B3 RID: 33459
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082B3")]
|
||||
private readonly Asn1Sequence response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202C RID: 8236
|
||||
[Token(Token = "0x200202C")]
|
||||
public class CertResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE7F RID: 52863 RVA: 0x002EF660 File Offset: 0x002ED860
|
||||
[Token(Token = "0x600CE7F")]
|
||||
[Address(RVA = "0x2299B40", Offset = "0x2298B40", VA = "0x182299B40")]
|
||||
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: 0x0600CE80 RID: 52864 RVA: 0x002EF6DC File Offset: 0x002ED8DC
|
||||
[Token(Token = "0x600CE80")]
|
||||
[Address(RVA = "0x22996D0", Offset = "0x22986D0", VA = "0x1822996D0")]
|
||||
public static CertResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE80)
|
||||
|
||||
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: 0x0600CE81 RID: 52865 RVA: 0x002EF72C File Offset: 0x002ED92C
|
||||
[Token(Token = "0x600CE81")]
|
||||
[Address(RVA = "0x2299CD0", Offset = "0x2298CD0", VA = "0x182299CD0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE81)
|
||||
|
||||
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: 0x0600CE82 RID: 52866 RVA: 0x002EF77C File Offset: 0x002ED97C
|
||||
[Token(Token = "0x600CE82")]
|
||||
[Address(RVA = "0x2299DA0", Offset = "0x2298DA0", VA = "0x182299DA0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE82)
|
||||
|
||||
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: 0x170020BA RID: 8378
|
||||
// (get) Token: 0x0600CE83 RID: 52867 RVA: 0x002EF7CC File Offset: 0x002ED9CC
|
||||
[Token(Token = "0x170020BA")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CE83")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020BB RID: 8379
|
||||
// (get) Token: 0x0600CE84 RID: 52868 RVA: 0x002EF7E0 File Offset: 0x002ED9E0
|
||||
[Token(Token = "0x170020BB")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600CE84")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020BC RID: 8380
|
||||
// (get) Token: 0x0600CE85 RID: 52869 RVA: 0x002EF7F4 File Offset: 0x002ED9F4
|
||||
[Token(Token = "0x170020BC")]
|
||||
public virtual CertifiedKeyPair CertifiedKeyPair
|
||||
{
|
||||
[Token(Token = "0x600CE85")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.certifiedKeyPair;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE86 RID: 52870 RVA: 0x002EF808 File Offset: 0x002EDA08
|
||||
[Token(Token = "0x600CE86")]
|
||||
[Address(RVA = "0x22998C0", Offset = "0x22988C0", VA = "0x1822998C0", 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;
|
||||
int num = 0;
|
||||
int length = array2.Length;
|
||||
if (num < length)
|
||||
{
|
||||
if (array2[num] != 0)
|
||||
{
|
||||
IList v = asn1EncodableVector.v;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040082B4 RID: 33460
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082B4")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040082B5 RID: 33461
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082B5")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040082B6 RID: 33462
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082B6")]
|
||||
private readonly CertifiedKeyPair certifiedKeyPair;
|
||||
|
||||
// Token: 0x040082B7 RID: 33463
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40082B7")]
|
||||
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: 0x0200202D RID: 8237
|
||||
[Token(Token = "0x200202D")]
|
||||
public class CertStatus : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE87 RID: 52871 RVA: 0x002EF8B8 File Offset: 0x002EDAB8
|
||||
[Token(Token = "0x600CE87")]
|
||||
[Address(RVA = "0x2FDE920", Offset = "0x2FDD920", VA = "0x182FDE920")]
|
||||
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: 0x0600CE88 RID: 52872 RVA: 0x002EF904 File Offset: 0x002EDB04
|
||||
[Token(Token = "0x600CE88")]
|
||||
[Address(RVA = "0x2FDE880", Offset = "0x2FDD880", VA = "0x182FDE880")]
|
||||
public CertStatus(byte[] certHash, BigInteger certReqId)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(certHash);
|
||||
this.certHash = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(certReqId);
|
||||
this.certReqId = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE89 RID: 52873 RVA: 0x002EF934 File Offset: 0x002EDB34
|
||||
[Token(Token = "0x600CE89")]
|
||||
[Address(RVA = "0x2FDE9E0", Offset = "0x2FDD9E0", VA = "0x182FDE9E0")]
|
||||
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: 0x0600CE8A RID: 52874 RVA: 0x002EF96C File Offset: 0x002EDB6C
|
||||
[Token(Token = "0x600CE8A")]
|
||||
[Address(RVA = "0x2FDE440", Offset = "0x2FDD440", VA = "0x182FDE440")]
|
||||
public static CertStatus GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE8A)
|
||||
|
||||
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: 0x170020BD RID: 8381
|
||||
// (get) Token: 0x0600CE8B RID: 52875 RVA: 0x002EF9D4 File Offset: 0x002EDBD4
|
||||
[Token(Token = "0x170020BD")]
|
||||
public virtual Asn1OctetString CertHash
|
||||
{
|
||||
[Token(Token = "0x600CE8B")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certHash;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020BE RID: 8382
|
||||
// (get) Token: 0x0600CE8C RID: 52876 RVA: 0x002EF9E8 File Offset: 0x002EDBE8
|
||||
[Token(Token = "0x170020BE")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CE8C")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020BF RID: 8383
|
||||
// (get) Token: 0x0600CE8D RID: 52877 RVA: 0x002EF9FC File Offset: 0x002EDBFC
|
||||
[Token(Token = "0x170020BF")]
|
||||
public virtual PkiStatusInfo StatusInfo
|
||||
{
|
||||
[Token(Token = "0x600CE8D")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.statusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE8E RID: 52878 RVA: 0x002EFA10 File Offset: 0x002EDC10
|
||||
[Token(Token = "0x600CE8E")]
|
||||
[Address(RVA = "0x2FDE6C0", Offset = "0x2FDD6C0", VA = "0x182FDE6C0", 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: 0x040082B8 RID: 33464
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082B8")]
|
||||
private readonly Asn1OctetString certHash;
|
||||
|
||||
// Token: 0x040082B9 RID: 33465
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082B9")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040082BA RID: 33466
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082BA")]
|
||||
private readonly PkiStatusInfo statusInfo;
|
||||
}
|
||||
}
|
||||
+222
@@ -0,0 +1,222 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202E RID: 8238
|
||||
[Token(Token = "0x200202E")]
|
||||
public class CertifiedKeyPair : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE8F RID: 52879 RVA: 0x002EFA88 File Offset: 0x002EDC88
|
||||
[Token(Token = "0x600CE8F")]
|
||||
[Address(RVA = "0x2FDEF90", Offset = "0x2FDDF90", VA = "0x182FDEF90")]
|
||||
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;
|
||||
int tagNo = asn1TaggedObject3.tagNo;
|
||||
Asn1Object @object = asn1TaggedObject3.GetObject();
|
||||
while (tagNo != 0)
|
||||
{
|
||||
}
|
||||
EncryptedValue instance3 = EncryptedValue.GetInstance(@object);
|
||||
this.privateKey = instance3;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE90 RID: 52880 RVA: 0x002EFB18 File Offset: 0x002EDD18
|
||||
[Token(Token = "0x600CE90")]
|
||||
[Address(RVA = "0x2FDEA90", Offset = "0x2FDDA90", VA = "0x182FDEA90")]
|
||||
public static CertifiedKeyPair GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE90)
|
||||
|
||||
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: 0x0600CE91 RID: 52881 RVA: 0x002EFB68 File Offset: 0x002EDD68
|
||||
[Token(Token = "0x600CE91")]
|
||||
[Address(RVA = "0x2FDF0C0", Offset = "0x2FDE0C0", VA = "0x182FDF0C0")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE91)
|
||||
|
||||
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: 0x0600CE92 RID: 52882 RVA: 0x002EFBA4 File Offset: 0x002EDDA4
|
||||
[Token(Token = "0x600CE92")]
|
||||
[Address(RVA = "0x2FDEEF0", Offset = "0x2FDDEF0", VA = "0x182FDEEF0")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert, EncryptedValue privateKey, PkiPublicationInfo publicationInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE92)
|
||||
|
||||
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: 0x170020C0 RID: 8384
|
||||
// (get) Token: 0x0600CE93 RID: 52883 RVA: 0x002EFBDC File Offset: 0x002EDDDC
|
||||
[Token(Token = "0x170020C0")]
|
||||
public virtual CertOrEncCert CertOrEncCert
|
||||
{
|
||||
[Token(Token = "0x600CE93")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certOrEncCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C1 RID: 8385
|
||||
// (get) Token: 0x0600CE94 RID: 52884 RVA: 0x002EFBF0 File Offset: 0x002EDDF0
|
||||
[Token(Token = "0x170020C1")]
|
||||
public virtual EncryptedValue PrivateKey
|
||||
{
|
||||
[Token(Token = "0x600CE94")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.privateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C2 RID: 8386
|
||||
// (get) Token: 0x0600CE95 RID: 52885 RVA: 0x002EFC04 File Offset: 0x002EDE04
|
||||
[Token(Token = "0x170020C2")]
|
||||
public virtual PkiPublicationInfo PublicationInfo
|
||||
{
|
||||
[Token(Token = "0x600CE95")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.publicationInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE96 RID: 52886 RVA: 0x002EFC18 File Offset: 0x002EDE18
|
||||
[Token(Token = "0x600CE96")]
|
||||
[Address(RVA = "0x2FDEC80", Offset = "0x2FDDC80", VA = "0x182FDEC80", 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: 0x040082BB RID: 33467
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082BB")]
|
||||
private readonly CertOrEncCert certOrEncCert;
|
||||
|
||||
// Token: 0x040082BC RID: 33468
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082BC")]
|
||||
private readonly EncryptedValue privateKey;
|
||||
|
||||
// Token: 0x040082BD RID: 33469
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082BD")]
|
||||
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: 0x0200202F RID: 8239
|
||||
[Token(Token = "0x200202F")]
|
||||
public class Challenge : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE97 RID: 52887 RVA: 0x002EFCD8 File Offset: 0x002EDED8
|
||||
[Token(Token = "0x600CE97")]
|
||||
[Address(RVA = "0x2FDF5E0", Offset = "0x2FDE5E0", VA = "0x182FDF5E0")]
|
||||
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: 0x0600CE98 RID: 52888 RVA: 0x002EFD24 File Offset: 0x002EDF24
|
||||
[Token(Token = "0x600CE98")]
|
||||
[Address(RVA = "0x2FDF150", Offset = "0x2FDE150", VA = "0x182FDF150")]
|
||||
public static Challenge GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE98)
|
||||
|
||||
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: 0x170020C3 RID: 8387
|
||||
// (get) Token: 0x0600CE99 RID: 52889 RVA: 0x002EFD8C File Offset: 0x002EDF8C
|
||||
[Token(Token = "0x170020C3")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600CE99")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE9A RID: 52890 RVA: 0x002EFDA0 File Offset: 0x002EDFA0
|
||||
[Token(Token = "0x600CE9A")]
|
||||
[Address(RVA = "0x2FDF3D0", Offset = "0x2FDE3D0", VA = "0x182FDF3D0", 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: 0x040082BE RID: 33470
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082BE")]
|
||||
private readonly AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x040082BF RID: 33471
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082BF")]
|
||||
private readonly Asn1OctetString witness;
|
||||
|
||||
// Token: 0x040082C0 RID: 33472
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082C0")]
|
||||
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: 0x02002030 RID: 8240
|
||||
[Token(Token = "0x2002030")]
|
||||
public class CmpCertificate : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CE9B RID: 52891 RVA: 0x002EFE28 File Offset: 0x002EE028
|
||||
[Token(Token = "0x600CE9B")]
|
||||
[Address(RVA = "0xA1AEE0", Offset = "0xA19EE0", VA = "0x180A1AEE0")]
|
||||
public CmpCertificate(AttributeCertificate x509v2AttrCert)
|
||||
{
|
||||
this.x509v2AttrCert = x509v2AttrCert;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE9C RID: 52892 RVA: 0x002EFE44 File Offset: 0x002EE044
|
||||
[Token(Token = "0x600CE9C")]
|
||||
[Address(RVA = "0x2FDFA40", Offset = "0x2FDEA40", VA = "0x182FDFA40")]
|
||||
public CmpCertificate(X509CertificateStructure x509v3PKCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE9C)
|
||||
|
||||
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: 0x0600CE9D RID: 52893 RVA: 0x002EFE80 File Offset: 0x002EE080
|
||||
[Token(Token = "0x600CE9D")]
|
||||
[Address(RVA = "0x2FDF6B0", Offset = "0x2FDE6B0", VA = "0x182FDF6B0")]
|
||||
public static CmpCertificate GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE9D)
|
||||
|
||||
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_7B:
|
||||
stloc:ArgumentException(var_12_8A, 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: 0x170020C4 RID: 8388
|
||||
// (get) Token: 0x0600CE9E RID: 52894 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x170020C4")]
|
||||
public virtual bool IsX509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600CE9E")]
|
||||
[Address(RVA = "0x979820", Offset = "0x978820", VA = "0x180979820", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C5 RID: 8389
|
||||
// (get) Token: 0x0600CE9F RID: 52895 RVA: 0x002EFF18 File Offset: 0x002EE118
|
||||
[Token(Token = "0x170020C5")]
|
||||
public virtual X509CertificateStructure X509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600CE9F")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.x509v3PKCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C6 RID: 8390
|
||||
// (get) Token: 0x0600CEA0 RID: 52896 RVA: 0x002EFF2C File Offset: 0x002EE12C
|
||||
[Token(Token = "0x170020C6")]
|
||||
public virtual AttributeCertificate X509v2AttrCert
|
||||
{
|
||||
[Token(Token = "0x600CEA0")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEA1 RID: 52897 RVA: 0x002EFF40 File Offset: 0x002EE140
|
||||
[Token(Token = "0x600CEA1")]
|
||||
[Address(RVA = "0x2FDF9A0", Offset = "0x2FDE9A0", VA = "0x182FDF9A0", 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: 0x040082C1 RID: 33473
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082C1")]
|
||||
private readonly X509CertificateStructure x509v3PKCert;
|
||||
|
||||
// Token: 0x040082C2 RID: 33474
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082C2")]
|
||||
private readonly AttributeCertificate x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002031 RID: 8241
|
||||
[Token(Token = "0x2002031")]
|
||||
public abstract class CmpObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CEA2 RID: 52898 RVA: 0x002EFF7C File Offset: 0x002EE17C
|
||||
[Token(Token = "0x600CEA2")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected CmpObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040082C3 RID: 33475
|
||||
[Token(Token = "0x40082C3")]
|
||||
public static readonly DerObjectIdentifier passwordBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.13");
|
||||
|
||||
// Token: 0x040082C4 RID: 33476
|
||||
[Token(Token = "0x40082C4")]
|
||||
public static readonly DerObjectIdentifier dhBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.30");
|
||||
|
||||
// Token: 0x040082C5 RID: 33477
|
||||
[Token(Token = "0x40082C5")]
|
||||
public static readonly DerObjectIdentifier it_caProtEncCert = new DerObjectIdentifier("1.3.6.1.5.5.7.4.1");
|
||||
|
||||
// Token: 0x040082C6 RID: 33478
|
||||
[Token(Token = "0x40082C6")]
|
||||
public static readonly DerObjectIdentifier it_signKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.2");
|
||||
|
||||
// Token: 0x040082C7 RID: 33479
|
||||
[Token(Token = "0x40082C7")]
|
||||
public static readonly DerObjectIdentifier it_encKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.3");
|
||||
|
||||
// Token: 0x040082C8 RID: 33480
|
||||
[Token(Token = "0x40082C8")]
|
||||
public static readonly DerObjectIdentifier it_preferredSymAlg = new DerObjectIdentifier("1.3.6.1.5.5.7.4.4");
|
||||
|
||||
// Token: 0x040082C9 RID: 33481
|
||||
[Token(Token = "0x40082C9")]
|
||||
public static readonly DerObjectIdentifier it_caKeyUpdateInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.4.5");
|
||||
|
||||
// Token: 0x040082CA RID: 33482
|
||||
[Token(Token = "0x40082CA")]
|
||||
public static readonly DerObjectIdentifier it_currentCRL = new DerObjectIdentifier("1.3.6.1.5.5.7.4.6");
|
||||
|
||||
// Token: 0x040082CB RID: 33483
|
||||
[Token(Token = "0x40082CB")]
|
||||
public static readonly DerObjectIdentifier it_unsupportedOIDs = new DerObjectIdentifier("1.3.6.1.5.5.7.4.7");
|
||||
|
||||
// Token: 0x040082CC RID: 33484
|
||||
[Token(Token = "0x40082CC")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamReq = new DerObjectIdentifier("1.3.6.1.5.5.7.4.10");
|
||||
|
||||
// Token: 0x040082CD RID: 33485
|
||||
[Token(Token = "0x40082CD")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamRep = new DerObjectIdentifier("1.3.6.1.5.5.7.4.11");
|
||||
|
||||
// Token: 0x040082CE RID: 33486
|
||||
[Token(Token = "0x40082CE")]
|
||||
public static readonly DerObjectIdentifier it_revPassphrase = new DerObjectIdentifier("1.3.6.1.5.5.7.4.12");
|
||||
|
||||
// Token: 0x040082CF RID: 33487
|
||||
[Token(Token = "0x40082CF")]
|
||||
public static readonly DerObjectIdentifier it_implicitConfirm = new DerObjectIdentifier("1.3.6.1.5.5.7.4.13");
|
||||
|
||||
// Token: 0x040082D0 RID: 33488
|
||||
[Token(Token = "0x40082D0")]
|
||||
public static readonly DerObjectIdentifier it_confirmWaitTime = new DerObjectIdentifier("1.3.6.1.5.5.7.4.14");
|
||||
|
||||
// Token: 0x040082D1 RID: 33489
|
||||
[Token(Token = "0x40082D1")]
|
||||
public static readonly DerObjectIdentifier it_origPKIMessage = new DerObjectIdentifier("1.3.6.1.5.5.7.4.15");
|
||||
|
||||
// Token: 0x040082D2 RID: 33490
|
||||
[Token(Token = "0x40082D2")]
|
||||
public static readonly DerObjectIdentifier it_suppLangTags = new DerObjectIdentifier("1.3.6.1.5.5.7.4.16");
|
||||
|
||||
// Token: 0x040082D3 RID: 33491
|
||||
[Token(Token = "0x40082D3")]
|
||||
public static readonly DerObjectIdentifier regCtrl_regToken = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.1");
|
||||
|
||||
// Token: 0x040082D4 RID: 33492
|
||||
[Token(Token = "0x40082D4")]
|
||||
public static readonly DerObjectIdentifier regCtrl_authenticator = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.2");
|
||||
|
||||
// Token: 0x040082D5 RID: 33493
|
||||
[Token(Token = "0x40082D5")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiPublicationInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.3");
|
||||
|
||||
// Token: 0x040082D6 RID: 33494
|
||||
[Token(Token = "0x40082D6")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiArchiveOptions = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.4");
|
||||
|
||||
// Token: 0x040082D7 RID: 33495
|
||||
[Token(Token = "0x40082D7")]
|
||||
public static readonly DerObjectIdentifier regCtrl_oldCertID = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.5");
|
||||
|
||||
// Token: 0x040082D8 RID: 33496
|
||||
[Token(Token = "0x40082D8")]
|
||||
public static readonly DerObjectIdentifier regCtrl_protocolEncrKey = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.6");
|
||||
|
||||
// Token: 0x040082D9 RID: 33497
|
||||
[Token(Token = "0x40082D9")]
|
||||
public static readonly DerObjectIdentifier regCtrl_altCertTemplate = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.7");
|
||||
|
||||
// Token: 0x040082DA RID: 33498
|
||||
[Token(Token = "0x40082DA")]
|
||||
public static readonly DerObjectIdentifier regInfo_utf8Pairs = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.1");
|
||||
|
||||
// Token: 0x040082DB RID: 33499
|
||||
[Token(Token = "0x40082DB")]
|
||||
public static readonly DerObjectIdentifier regInfo_certReq = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.2");
|
||||
|
||||
// Token: 0x040082DC RID: 33500
|
||||
[Token(Token = "0x40082DC")]
|
||||
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: 0x02002032 RID: 8242
|
||||
[Token(Token = "0x2002032")]
|
||||
public class CrlAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEA4 RID: 52900 RVA: 0x002F0124 File Offset: 0x002EE324
|
||||
[Token(Token = "0x600CEA4")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private CrlAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEA5 RID: 52901 RVA: 0x002F0140 File Offset: 0x002EE340
|
||||
[Token(Token = "0x600CEA5")]
|
||||
[Address(RVA = "0x2FE12B0", Offset = "0x2FE02B0", VA = "0x182FE12B0")]
|
||||
public static CrlAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEA5)
|
||||
|
||||
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: 0x0600CEA6 RID: 52902 RVA: 0x002F0198 File Offset: 0x002EE398
|
||||
[Token(Token = "0x600CEA6")]
|
||||
[Address(RVA = "0x2FE14A0", Offset = "0x2FE04A0", VA = "0x182FE14A0", 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: 0x0600CEA7 RID: 52903 RVA: 0x002F01E4 File Offset: 0x002EE3E4
|
||||
[Token(Token = "0x600CEA7")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEA7)
|
||||
|
||||
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: 0x040082DD RID: 33501
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082DD")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002033 RID: 8243
|
||||
[Token(Token = "0x2002033")]
|
||||
public class ErrorMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEA8 RID: 52904 RVA: 0x002F01F8 File Offset: 0x002EE3F8
|
||||
[Token(Token = "0x600CEA8")]
|
||||
[Address(RVA = "0x2FE3950", Offset = "0x2FE2950", VA = "0x182FE3950")]
|
||||
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: 0x0600CEA9 RID: 52905 RVA: 0x002F0248 File Offset: 0x002EE448
|
||||
[Token(Token = "0x600CEA9")]
|
||||
[Address(RVA = "0x2FE3490", Offset = "0x2FE2490", VA = "0x182FE3490")]
|
||||
public static ErrorMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEA9)
|
||||
|
||||
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: 0x0600CEAA RID: 52906 RVA: 0x002F02B8 File Offset: 0x002EE4B8
|
||||
[Token(Token = "0x600CEAA")]
|
||||
[Address(RVA = "0x2FE3A80", Offset = "0x2FE2A80", VA = "0x182FE3A80")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEAA)
|
||||
|
||||
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: 0x0600CEAB RID: 52907 RVA: 0x002F02F4 File Offset: 0x002EE4F4
|
||||
[Token(Token = "0x600CEAB")]
|
||||
[Address(RVA = "0x2FE3B10", Offset = "0x2FE2B10", VA = "0x182FE3B10")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo, DerInteger errorCode, PkiFreeText errorDetails)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEAB)
|
||||
|
||||
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: 0x170020C7 RID: 8391
|
||||
// (get) Token: 0x0600CEAC RID: 52908 RVA: 0x002F032C File Offset: 0x002EE52C
|
||||
[Token(Token = "0x170020C7")]
|
||||
public virtual PkiStatusInfo PkiStatusInfo
|
||||
{
|
||||
[Token(Token = "0x600CEAC")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pkiStatusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C8 RID: 8392
|
||||
// (get) Token: 0x0600CEAD RID: 52909 RVA: 0x002F0340 File Offset: 0x002EE540
|
||||
[Token(Token = "0x170020C8")]
|
||||
public virtual DerInteger ErrorCode
|
||||
{
|
||||
[Token(Token = "0x600CEAD")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.errorCode;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C9 RID: 8393
|
||||
// (get) Token: 0x0600CEAE RID: 52910 RVA: 0x002F0354 File Offset: 0x002EE554
|
||||
[Token(Token = "0x170020C9")]
|
||||
public virtual PkiFreeText ErrorDetails
|
||||
{
|
||||
[Token(Token = "0x600CEAE")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.errorDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEAF RID: 52911 RVA: 0x002F0368 File Offset: 0x002EE568
|
||||
[Token(Token = "0x600CEAF")]
|
||||
[Address(RVA = "0x2FE3780", Offset = "0x2FE2780", VA = "0x182FE3780", 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: 0x040082DE RID: 33502
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082DE")]
|
||||
private readonly PkiStatusInfo pkiStatusInfo;
|
||||
|
||||
// Token: 0x040082DF RID: 33503
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082DF")]
|
||||
private readonly DerInteger errorCode;
|
||||
|
||||
// Token: 0x040082E0 RID: 33504
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082E0")]
|
||||
private readonly PkiFreeText errorDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002034 RID: 8244
|
||||
[Token(Token = "0x2002034")]
|
||||
public class GenMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEB0 RID: 52912 RVA: 0x002F03E0 File Offset: 0x002EE5E0
|
||||
[Token(Token = "0x600CEB0")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private GenMsgContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEB1 RID: 52913 RVA: 0x002F03FC File Offset: 0x002EE5FC
|
||||
[Token(Token = "0x600CEB1")]
|
||||
[Address(RVA = "0x2FE3E40", Offset = "0x2FE2E40", VA = "0x182FE3E40")]
|
||||
public static GenMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEB1)
|
||||
|
||||
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: 0x0600CEB2 RID: 52914 RVA: 0x002F0454 File Offset: 0x002EE654
|
||||
[Token(Token = "0x600CEB2")]
|
||||
[Address(RVA = "0x2FE4140", Offset = "0x2FE3140", VA = "0x182FE4140")]
|
||||
public GenMsgContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEB3 RID: 52915 RVA: 0x002F0478 File Offset: 0x002EE678
|
||||
[Token(Token = "0x600CEB3")]
|
||||
[Address(RVA = "0x2FE4030", Offset = "0x2FE3030", VA = "0x182FE4030", 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: 0x0600CEB4 RID: 52916 RVA: 0x002F04C4 File Offset: 0x002EE6C4
|
||||
[Token(Token = "0x600CEB4")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEB4)
|
||||
|
||||
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: 0x040082E1 RID: 33505
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E1")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002035 RID: 8245
|
||||
[Token(Token = "0x2002035")]
|
||||
public class GenRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEB5 RID: 52917 RVA: 0x002F04D8 File Offset: 0x002EE6D8
|
||||
[Token(Token = "0x600CEB5")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private GenRepContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEB6 RID: 52918 RVA: 0x002F04F4 File Offset: 0x002EE6F4
|
||||
[Token(Token = "0x600CEB6")]
|
||||
[Address(RVA = "0x2FE41B0", Offset = "0x2FE31B0", VA = "0x182FE41B0")]
|
||||
public static GenRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEB6)
|
||||
|
||||
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: 0x0600CEB7 RID: 52919 RVA: 0x002F054C File Offset: 0x002EE74C
|
||||
[Token(Token = "0x600CEB7")]
|
||||
[Address(RVA = "0x2FE44B0", Offset = "0x2FE34B0", VA = "0x182FE44B0")]
|
||||
public GenRepContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEB8 RID: 52920 RVA: 0x002F0570 File Offset: 0x002EE770
|
||||
[Token(Token = "0x600CEB8")]
|
||||
[Address(RVA = "0x2FE43A0", Offset = "0x2FE33A0", VA = "0x182FE43A0", 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: 0x0600CEB9 RID: 52921 RVA: 0x002F05BC File Offset: 0x002EE7BC
|
||||
[Token(Token = "0x600CEB9")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEB9)
|
||||
|
||||
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: 0x040082E2 RID: 33506
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E2")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002036 RID: 8246
|
||||
[Token(Token = "0x2002036")]
|
||||
public class InfoTypeAndValue : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEBA RID: 52922 RVA: 0x002F05D0 File Offset: 0x002EE7D0
|
||||
[Token(Token = "0x600CEBA")]
|
||||
[Address(RVA = "0x2FE4910", Offset = "0x2FE3910", VA = "0x182FE4910")]
|
||||
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: 0x0600CEBB RID: 52923 RVA: 0x002F060C File Offset: 0x002EE80C
|
||||
[Token(Token = "0x600CEBB")]
|
||||
[Address(RVA = "0x2FE4520", Offset = "0x2FE3520", VA = "0x182FE4520")]
|
||||
public static InfoTypeAndValue GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEBB)
|
||||
|
||||
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: 0x0600CEBC RID: 52924 RVA: 0x002F065C File Offset: 0x002EE85C
|
||||
[Token(Token = "0x600CEBC")]
|
||||
[Address(RVA = "0xB94A00", Offset = "0xB93A00", VA = "0x180B94A00")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEBD RID: 52925 RVA: 0x002F0680 File Offset: 0x002EE880
|
||||
[Token(Token = "0x600CEBD")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType, Asn1Encodable optionalValue)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = optionalValue;
|
||||
}
|
||||
|
||||
// Token: 0x170020CA RID: 8394
|
||||
// (get) Token: 0x0600CEBE RID: 52926 RVA: 0x002F06A4 File Offset: 0x002EE8A4
|
||||
[Token(Token = "0x170020CA")]
|
||||
public virtual DerObjectIdentifier InfoType
|
||||
{
|
||||
[Token(Token = "0x600CEBE")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.infoType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020CB RID: 8395
|
||||
// (get) Token: 0x0600CEBF RID: 52927 RVA: 0x002F06B8 File Offset: 0x002EE8B8
|
||||
[Token(Token = "0x170020CB")]
|
||||
public virtual Asn1Encodable InfoValue
|
||||
{
|
||||
[Token(Token = "0x600CEBF")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.infoValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEC0 RID: 52928 RVA: 0x002F06CC File Offset: 0x002EE8CC
|
||||
[Token(Token = "0x600CEC0")]
|
||||
[Address(RVA = "0x2FE47A0", Offset = "0x2FE37A0", VA = "0x182FE47A0", 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: 0x040082E3 RID: 33507
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E3")]
|
||||
private readonly DerObjectIdentifier infoType;
|
||||
|
||||
// Token: 0x040082E4 RID: 33508
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082E4")]
|
||||
private readonly Asn1Encodable infoValue;
|
||||
}
|
||||
}
|
||||
+206
@@ -0,0 +1,206 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002037 RID: 8247
|
||||
[Token(Token = "0x2002037")]
|
||||
public class KeyRecRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEC1 RID: 52929 RVA: 0x002F0738 File Offset: 0x002EE938
|
||||
[Token(Token = "0x600CEC1")]
|
||||
[Address(RVA = "0x2FE6D20", Offset = "0x2FE5D20", VA = "0x182FE6D20")]
|
||||
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)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1TaggedObject.GetObject());
|
||||
this.keyPairHist = instance;
|
||||
num += (uint)1;
|
||||
}
|
||||
Asn1Sequence instance2 = Asn1Sequence.GetInstance(asn1TaggedObject.GetObject());
|
||||
this.caCerts = instance2;
|
||||
num += (uint)1;
|
||||
}
|
||||
CmpCertificate instance3 = CmpCertificate.GetInstance(asn1TaggedObject.GetObject());
|
||||
this.newSigCert = instance3;
|
||||
num += (uint)1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEC2 RID: 52930 RVA: 0x002F07E8 File Offset: 0x002EE9E8
|
||||
[Token(Token = "0x600CEC2")]
|
||||
[Address(RVA = "0x2FE68D0", Offset = "0x2FE58D0", VA = "0x182FE68D0")]
|
||||
public static KeyRecRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEC2)
|
||||
|
||||
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: 0x170020CC RID: 8396
|
||||
// (get) Token: 0x0600CEC3 RID: 52931 RVA: 0x002F0838 File Offset: 0x002EEA38
|
||||
[Token(Token = "0x170020CC")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600CEC3")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020CD RID: 8397
|
||||
// (get) Token: 0x0600CEC4 RID: 52932 RVA: 0x002F084C File Offset: 0x002EEA4C
|
||||
[Token(Token = "0x170020CD")]
|
||||
public virtual CmpCertificate NewSigCert
|
||||
{
|
||||
[Token(Token = "0x600CEC4")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newSigCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEC5 RID: 52933 RVA: 0x002F0860 File Offset: 0x002EEA60
|
||||
[Token(Token = "0x600CEC5")]
|
||||
[Address(RVA = "0x2FE67B0", Offset = "0x2FE57B0", VA = "0x182FE67B0", 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: 0x0600CEC6 RID: 52934 RVA: 0x002F08B0 File Offset: 0x002EEAB0
|
||||
[Token(Token = "0x600CEC6")]
|
||||
[Address(RVA = "0x2FE6AC0", Offset = "0x2FE5AC0", VA = "0x182FE6AC0", 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: 0x0600CEC7 RID: 52935 RVA: 0x002F0900 File Offset: 0x002EEB00
|
||||
[Token(Token = "0x600CEC7")]
|
||||
[Address(RVA = "0x2FE6BE0", Offset = "0x2FE5BE0", VA = "0x182FE6BE0", 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: 0x0600CEC8 RID: 52936 RVA: 0x002F0978 File Offset: 0x002EEB78
|
||||
[Token(Token = "0x600CEC8")]
|
||||
[Address(RVA = "0x2FE66B0", Offset = "0x2FE56B0", VA = "0x182FE66B0")]
|
||||
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: 0x040082E5 RID: 33509
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E5")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040082E6 RID: 33510
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082E6")]
|
||||
private readonly CmpCertificate newSigCert;
|
||||
|
||||
// Token: 0x040082E7 RID: 33511
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082E7")]
|
||||
private readonly Asn1Sequence caCerts;
|
||||
|
||||
// Token: 0x040082E8 RID: 33512
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40082E8")]
|
||||
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: 0x02002038 RID: 8248
|
||||
[Token(Token = "0x2002038")]
|
||||
public class OobCertHash : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEC9 RID: 52937 RVA: 0x002F09B4 File Offset: 0x002EEBB4
|
||||
[Token(Token = "0x600CEC9")]
|
||||
[Address(RVA = "0x2FE8650", Offset = "0x2FE7650", VA = "0x182FE8650")]
|
||||
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: 0x0600CECA RID: 52938 RVA: 0x002F0A00 File Offset: 0x002EEC00
|
||||
[Token(Token = "0x600CECA")]
|
||||
[Address(RVA = "0x2FE81E0", Offset = "0x2FE71E0", VA = "0x182FE81E0")]
|
||||
public static OobCertHash GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CECA)
|
||||
|
||||
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: 0x170020CE RID: 8398
|
||||
// (get) Token: 0x0600CECB RID: 52939 RVA: 0x002F0A70 File Offset: 0x002EEC70
|
||||
[Token(Token = "0x170020CE")]
|
||||
public virtual AlgorithmIdentifier HashAlg
|
||||
{
|
||||
[Token(Token = "0x600CECB")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.hashAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020CF RID: 8399
|
||||
// (get) Token: 0x0600CECC RID: 52940 RVA: 0x002F0A84 File Offset: 0x002EEC84
|
||||
[Token(Token = "0x170020CF")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600CECC")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CECD RID: 52941 RVA: 0x002F0A98 File Offset: 0x002EEC98
|
||||
[Token(Token = "0x600CECD")]
|
||||
[Address(RVA = "0x2FE8510", Offset = "0x2FE7510", VA = "0x182FE8510", 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: 0x0600CECE RID: 52942 RVA: 0x002F0B00 File Offset: 0x002EED00
|
||||
[Token(Token = "0x600CECE")]
|
||||
[Address(RVA = "0x2FE80E0", Offset = "0x2FE70E0", VA = "0x182FE80E0")]
|
||||
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: 0x040082E9 RID: 33513
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E9")]
|
||||
private readonly AlgorithmIdentifier hashAlg;
|
||||
|
||||
// Token: 0x040082EA RID: 33514
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082EA")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x040082EB RID: 33515
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082EB")]
|
||||
private readonly DerBitString hashVal;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002044 RID: 8260
|
||||
[Token(Token = "0x2002044")]
|
||||
public class PbmParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF2E RID: 53038 RVA: 0x002F1ECC File Offset: 0x002F00CC
|
||||
[Token(Token = "0x600CF2E")]
|
||||
[Address(RVA = "0x2FEB590", Offset = "0x2FEA590", VA = "0x182FEB590")]
|
||||
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: 0x0600CF2F RID: 53039 RVA: 0x002F1F24 File Offset: 0x002F0124
|
||||
[Token(Token = "0x600CF2F")]
|
||||
[Address(RVA = "0x2FEB150", Offset = "0x2FEA150", VA = "0x182FEB150")]
|
||||
public static PbmParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF2F)
|
||||
|
||||
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: 0x0600CF30 RID: 53040 RVA: 0x002F1F94 File Offset: 0x002F0194
|
||||
[Token(Token = "0x600CF30")]
|
||||
[Address(RVA = "0x2FEB660", Offset = "0x2FEA660", VA = "0x182FEB660")]
|
||||
public PbmParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(salt);
|
||||
DerInteger derInteger = new DerInteger(iterationCount);
|
||||
base..ctor();
|
||||
this.salt = derOctetString;
|
||||
this.iterationCount = derInteger;
|
||||
this.mac = 0;
|
||||
this.owf = owf;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF31 RID: 53041 RVA: 0x002F1FD4 File Offset: 0x002F01D4
|
||||
[Token(Token = "0x600CF31")]
|
||||
[Address(RVA = "0xC5DB60", Offset = "0xC5CB60", VA = "0x180C5DB60")]
|
||||
public PbmParameter(Asn1OctetString salt, AlgorithmIdentifier owf, DerInteger iterationCount, AlgorithmIdentifier mac)
|
||||
{
|
||||
this.salt = salt;
|
||||
this.iterationCount = iterationCount;
|
||||
this.mac = 0;
|
||||
this.owf = owf;
|
||||
}
|
||||
|
||||
// Token: 0x170020E7 RID: 8423
|
||||
// (get) Token: 0x0600CF32 RID: 53042 RVA: 0x002F2004 File Offset: 0x002F0204
|
||||
[Token(Token = "0x170020E7")]
|
||||
public virtual Asn1OctetString Salt
|
||||
{
|
||||
[Token(Token = "0x600CF32")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.salt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E8 RID: 8424
|
||||
// (get) Token: 0x0600CF33 RID: 53043 RVA: 0x002F2018 File Offset: 0x002F0218
|
||||
[Token(Token = "0x170020E8")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600CF33")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E9 RID: 8425
|
||||
// (get) Token: 0x0600CF34 RID: 53044 RVA: 0x002F202C File Offset: 0x002F022C
|
||||
[Token(Token = "0x170020E9")]
|
||||
public virtual DerInteger IterationCount
|
||||
{
|
||||
[Token(Token = "0x600CF34")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.iterationCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020EA RID: 8426
|
||||
// (get) Token: 0x0600CF35 RID: 53045 RVA: 0x002F2040 File Offset: 0x002F0240
|
||||
[Token(Token = "0x170020EA")]
|
||||
public virtual AlgorithmIdentifier Mac
|
||||
{
|
||||
[Token(Token = "0x600CF35")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF36 RID: 53046 RVA: 0x002F2054 File Offset: 0x002F0254
|
||||
[Token(Token = "0x600CF36")]
|
||||
[Address(RVA = "0x2FEB3D0", Offset = "0x2FEA3D0", VA = "0x182FEB3D0", 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: 0x04008358 RID: 33624
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008358")]
|
||||
private Asn1OctetString salt;
|
||||
|
||||
// Token: 0x04008359 RID: 33625
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008359")]
|
||||
private AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x0400835A RID: 33626
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400835A")]
|
||||
private DerInteger iterationCount;
|
||||
|
||||
// Token: 0x0400835B RID: 33627
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400835B")]
|
||||
private AlgorithmIdentifier mac;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,257 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002039 RID: 8249
|
||||
[Token(Token = "0x2002039")]
|
||||
public class PkiBody : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CECF RID: 52943 RVA: 0x002F0B3C File Offset: 0x002EED3C
|
||||
[Token(Token = "0x600CECF")]
|
||||
[Address(RVA = "0x2FEB9D0", Offset = "0x2FEA9D0", VA = "0x182FEB9D0")]
|
||||
public static PkiBody GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CECF)
|
||||
|
||||
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_31:
|
||||
stloc:string(var_8_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_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: 0x0600CED0 RID: 52944 RVA: 0x002F0B9C File Offset: 0x002EED9C
|
||||
[Token(Token = "0x600CED0")]
|
||||
[Address(RVA = "0x2FEBC50", Offset = "0x2FEAC50", VA = "0x182FEBC50")]
|
||||
private PkiBody(Asn1TaggedObject tagged)
|
||||
{
|
||||
int num = tagged.tagNo;
|
||||
this.tagNo = num;
|
||||
Asn1Object @object = tagged.GetObject();
|
||||
Asn1Encodable bodyForType = PkiBody.GetBodyForType(num, @object);
|
||||
this.body = bodyForType;
|
||||
}
|
||||
|
||||
// Token: 0x0600CED1 RID: 52945 RVA: 0x002F0BDC File Offset: 0x002EEDDC
|
||||
[Token(Token = "0x600CED1")]
|
||||
[Address(RVA = "0x2FEBCB0", Offset = "0x2FEACB0", VA = "0x182FEBCB0")]
|
||||
public PkiBody(int type, Asn1Encodable content)
|
||||
{
|
||||
this.tagNo = type;
|
||||
Asn1Encodable bodyForType = PkiBody.GetBodyForType(type, content);
|
||||
this.body = bodyForType;
|
||||
}
|
||||
|
||||
// Token: 0x0600CED2 RID: 52946 RVA: 0x002F0C08 File Offset: 0x002EEE08
|
||||
[Token(Token = "0x600CED2")]
|
||||
[Address(RVA = "0x2FEB720", Offset = "0x2FEA720", VA = "0x182FEB720")]
|
||||
private static Asn1Encodable GetBodyForType(int type, Asn1Encodable o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CED2)
|
||||
|
||||
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: 0x170020D0 RID: 8400
|
||||
// (get) Token: 0x0600CED3 RID: 52947 RVA: 0x002F0C38 File Offset: 0x002EEE38
|
||||
[Token(Token = "0x170020D0")]
|
||||
public virtual int Type
|
||||
{
|
||||
[Token(Token = "0x600CED3")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D1 RID: 8401
|
||||
// (get) Token: 0x0600CED4 RID: 52948 RVA: 0x002F0C4C File Offset: 0x002EEE4C
|
||||
[Token(Token = "0x170020D1")]
|
||||
public virtual Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600CED4")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CED5 RID: 52949 RVA: 0x002F0C60 File Offset: 0x002EEE60
|
||||
[Token(Token = "0x600CED5")]
|
||||
[Address(RVA = "0x2FEBBE0", Offset = "0x2FEABE0", VA = "0x182FEBBE0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CED5)
|
||||
|
||||
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: 0x040082EC RID: 33516
|
||||
[Token(Token = "0x40082EC")]
|
||||
public const int TYPE_INIT_REQ = 0;
|
||||
|
||||
// Token: 0x040082ED RID: 33517
|
||||
[Token(Token = "0x40082ED")]
|
||||
public const int TYPE_INIT_REP = 1;
|
||||
|
||||
// Token: 0x040082EE RID: 33518
|
||||
[Token(Token = "0x40082EE")]
|
||||
public const int TYPE_CERT_REQ = 2;
|
||||
|
||||
// Token: 0x040082EF RID: 33519
|
||||
[Token(Token = "0x40082EF")]
|
||||
public const int TYPE_CERT_REP = 3;
|
||||
|
||||
// Token: 0x040082F0 RID: 33520
|
||||
[Token(Token = "0x40082F0")]
|
||||
public const int TYPE_P10_CERT_REQ = 4;
|
||||
|
||||
// Token: 0x040082F1 RID: 33521
|
||||
[Token(Token = "0x40082F1")]
|
||||
public const int TYPE_POPO_CHALL = 5;
|
||||
|
||||
// Token: 0x040082F2 RID: 33522
|
||||
[Token(Token = "0x40082F2")]
|
||||
public const int TYPE_POPO_REP = 6;
|
||||
|
||||
// Token: 0x040082F3 RID: 33523
|
||||
[Token(Token = "0x40082F3")]
|
||||
public const int TYPE_KEY_UPDATE_REQ = 7;
|
||||
|
||||
// Token: 0x040082F4 RID: 33524
|
||||
[Token(Token = "0x40082F4")]
|
||||
public const int TYPE_KEY_UPDATE_REP = 8;
|
||||
|
||||
// Token: 0x040082F5 RID: 33525
|
||||
[Token(Token = "0x40082F5")]
|
||||
public const int TYPE_KEY_RECOVERY_REQ = 9;
|
||||
|
||||
// Token: 0x040082F6 RID: 33526
|
||||
[Token(Token = "0x40082F6")]
|
||||
public const int TYPE_KEY_RECOVERY_REP = 10;
|
||||
|
||||
// Token: 0x040082F7 RID: 33527
|
||||
[Token(Token = "0x40082F7")]
|
||||
public const int TYPE_REVOCATION_REQ = 11;
|
||||
|
||||
// Token: 0x040082F8 RID: 33528
|
||||
[Token(Token = "0x40082F8")]
|
||||
public const int TYPE_REVOCATION_REP = 12;
|
||||
|
||||
// Token: 0x040082F9 RID: 33529
|
||||
[Token(Token = "0x40082F9")]
|
||||
public const int TYPE_CROSS_CERT_REQ = 13;
|
||||
|
||||
// Token: 0x040082FA RID: 33530
|
||||
[Token(Token = "0x40082FA")]
|
||||
public const int TYPE_CROSS_CERT_REP = 14;
|
||||
|
||||
// Token: 0x040082FB RID: 33531
|
||||
[Token(Token = "0x40082FB")]
|
||||
public const int TYPE_CA_KEY_UPDATE_ANN = 15;
|
||||
|
||||
// Token: 0x040082FC RID: 33532
|
||||
[Token(Token = "0x40082FC")]
|
||||
public const int TYPE_CERT_ANN = 16;
|
||||
|
||||
// Token: 0x040082FD RID: 33533
|
||||
[Token(Token = "0x40082FD")]
|
||||
public const int TYPE_REVOCATION_ANN = 17;
|
||||
|
||||
// Token: 0x040082FE RID: 33534
|
||||
[Token(Token = "0x40082FE")]
|
||||
public const int TYPE_CRL_ANN = 18;
|
||||
|
||||
// Token: 0x040082FF RID: 33535
|
||||
[Token(Token = "0x40082FF")]
|
||||
public const int TYPE_CONFIRM = 19;
|
||||
|
||||
// Token: 0x04008300 RID: 33536
|
||||
[Token(Token = "0x4008300")]
|
||||
public const int TYPE_NESTED = 20;
|
||||
|
||||
// Token: 0x04008301 RID: 33537
|
||||
[Token(Token = "0x4008301")]
|
||||
public const int TYPE_GEN_MSG = 21;
|
||||
|
||||
// Token: 0x04008302 RID: 33538
|
||||
[Token(Token = "0x4008302")]
|
||||
public const int TYPE_GEN_REP = 22;
|
||||
|
||||
// Token: 0x04008303 RID: 33539
|
||||
[Token(Token = "0x4008303")]
|
||||
public const int TYPE_ERROR = 23;
|
||||
|
||||
// Token: 0x04008304 RID: 33540
|
||||
[Token(Token = "0x4008304")]
|
||||
public const int TYPE_CERT_CONFIRM = 24;
|
||||
|
||||
// Token: 0x04008305 RID: 33541
|
||||
[Token(Token = "0x4008305")]
|
||||
public const int TYPE_POLL_REQ = 25;
|
||||
|
||||
// Token: 0x04008306 RID: 33542
|
||||
[Token(Token = "0x4008306")]
|
||||
public const int TYPE_POLL_REP = 26;
|
||||
|
||||
// Token: 0x04008307 RID: 33543
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008307")]
|
||||
private int tagNo;
|
||||
|
||||
// Token: 0x04008308 RID: 33544
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008308")]
|
||||
private Asn1Encodable body;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203A RID: 8250
|
||||
[Token(Token = "0x200203A")]
|
||||
public class PkiConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CED6 RID: 52950 RVA: 0x002F0C84 File Offset: 0x002EEE84
|
||||
[Token(Token = "0x600CED6")]
|
||||
[Address(RVA = "0x2FEBD00", Offset = "0x2FEAD00", VA = "0x182FEBD00")]
|
||||
public static PkiConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CED6)
|
||||
|
||||
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: 0x0600CED7 RID: 52951 RVA: 0x002F0CD0 File Offset: 0x002EEED0
|
||||
[Token(Token = "0x600CED7")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
public PkiConfirmContent()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CED8 RID: 52952 RVA: 0x002F0CE4 File Offset: 0x002EEEE4
|
||||
[Token(Token = "0x600CED8")]
|
||||
[Address(RVA = "0x2FEBE90", Offset = "0x2FEAE90", VA = "0x182FEBE90", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CED8)
|
||||
|
||||
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: 0x0200203B RID: 8251
|
||||
[Token(Token = "0x200203B")]
|
||||
public class PkiFailureInfo : DerBitString
|
||||
{
|
||||
// Token: 0x0600CED9 RID: 52953 RVA: 0x002F0CF8 File Offset: 0x002EEEF8
|
||||
[Token(Token = "0x600CED9")]
|
||||
[Address(RVA = "0x2FEBF60", Offset = "0x2FEAF60", VA = "0x182FEBF60")]
|
||||
public PkiFailureInfo(int info)
|
||||
: base(info)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CEDA RID: 52954 RVA: 0x002F0D0C File Offset: 0x002EEF0C
|
||||
[Token(Token = "0x600CEDA")]
|
||||
[Address(RVA = "0x2FEBFC0", Offset = "0x2FEAFC0", VA = "0x182FEBFC0")]
|
||||
public PkiFailureInfo(DerBitString info)
|
||||
{
|
||||
byte[] octets = info.GetOctets();
|
||||
byte[] bytes = info.GetBytes();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEDB RID: 52955 RVA: 0x002F0D30 File Offset: 0x002EEF30
|
||||
[Token(Token = "0x600CEDB")]
|
||||
[Address(RVA = "0x2FEBEF0", Offset = "0x2FEAEF0", VA = "0x182FEBEF0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
int padBits = this.PadBits;
|
||||
string text;
|
||||
return "PkiFailureInfo: 0x" + text;
|
||||
}
|
||||
|
||||
// Token: 0x04008309 RID: 33545
|
||||
[Token(Token = "0x4008309")]
|
||||
public const int BadAlg = 128;
|
||||
|
||||
// Token: 0x0400830A RID: 33546
|
||||
[Token(Token = "0x400830A")]
|
||||
public const int BadMessageCheck = 64;
|
||||
|
||||
// Token: 0x0400830B RID: 33547
|
||||
[Token(Token = "0x400830B")]
|
||||
public const int BadRequest = 32;
|
||||
|
||||
// Token: 0x0400830C RID: 33548
|
||||
[Token(Token = "0x400830C")]
|
||||
public const int BadTime = 16;
|
||||
|
||||
// Token: 0x0400830D RID: 33549
|
||||
[Token(Token = "0x400830D")]
|
||||
public const int BadCertId = 8;
|
||||
|
||||
// Token: 0x0400830E RID: 33550
|
||||
[Token(Token = "0x400830E")]
|
||||
public const int BadDataFormat = 4;
|
||||
|
||||
// Token: 0x0400830F RID: 33551
|
||||
[Token(Token = "0x400830F")]
|
||||
public const int WrongAuthority = 2;
|
||||
|
||||
// Token: 0x04008310 RID: 33552
|
||||
[Token(Token = "0x4008310")]
|
||||
public const int IncorrectData = 1;
|
||||
|
||||
// Token: 0x04008311 RID: 33553
|
||||
[Token(Token = "0x4008311")]
|
||||
public const int MissingTimeStamp = 32768;
|
||||
|
||||
// Token: 0x04008312 RID: 33554
|
||||
[Token(Token = "0x4008312")]
|
||||
public const int BadPop = 16384;
|
||||
|
||||
// Token: 0x04008313 RID: 33555
|
||||
[Token(Token = "0x4008313")]
|
||||
public const int CertRevoked = 8192;
|
||||
|
||||
// Token: 0x04008314 RID: 33556
|
||||
[Token(Token = "0x4008314")]
|
||||
public const int CertConfirmed = 4096;
|
||||
|
||||
// Token: 0x04008315 RID: 33557
|
||||
[Token(Token = "0x4008315")]
|
||||
public const int WrongIntegrity = 2048;
|
||||
|
||||
// Token: 0x04008316 RID: 33558
|
||||
[Token(Token = "0x4008316")]
|
||||
public const int BadRecipientNonce = 1024;
|
||||
|
||||
// Token: 0x04008317 RID: 33559
|
||||
[Token(Token = "0x4008317")]
|
||||
public const int TimeNotAvailable = 512;
|
||||
|
||||
// Token: 0x04008318 RID: 33560
|
||||
[Token(Token = "0x4008318")]
|
||||
public const int UnacceptedPolicy = 256;
|
||||
|
||||
// Token: 0x04008319 RID: 33561
|
||||
[Token(Token = "0x4008319")]
|
||||
public const int UnacceptedExtension = 8388608;
|
||||
|
||||
// Token: 0x0400831A RID: 33562
|
||||
[Token(Token = "0x400831A")]
|
||||
public const int AddInfoNotAvailable = 4194304;
|
||||
|
||||
// Token: 0x0400831B RID: 33563
|
||||
[Token(Token = "0x400831B")]
|
||||
public const int BadSenderNonce = 2097152;
|
||||
|
||||
// Token: 0x0400831C RID: 33564
|
||||
[Token(Token = "0x400831C")]
|
||||
public const int BadCertTemplate = 1048576;
|
||||
|
||||
// Token: 0x0400831D RID: 33565
|
||||
[Token(Token = "0x400831D")]
|
||||
public const int SignerNotTrusted = 524288;
|
||||
|
||||
// Token: 0x0400831E RID: 33566
|
||||
[Token(Token = "0x400831E")]
|
||||
public const int TransactionIdInUse = 262144;
|
||||
|
||||
// Token: 0x0400831F RID: 33567
|
||||
[Token(Token = "0x400831F")]
|
||||
public const int UnsupportedVersion = 131072;
|
||||
|
||||
// Token: 0x04008320 RID: 33568
|
||||
[Token(Token = "0x4008320")]
|
||||
public const int NotAuthorized = 65536;
|
||||
|
||||
// Token: 0x04008321 RID: 33569
|
||||
[Token(Token = "0x4008321")]
|
||||
public const int SystemUnavail = -2147483648;
|
||||
|
||||
// Token: 0x04008322 RID: 33570
|
||||
[Token(Token = "0x4008322")]
|
||||
public const int SystemFailure = 1073741824;
|
||||
|
||||
// Token: 0x04008323 RID: 33571
|
||||
[Token(Token = "0x4008323")]
|
||||
public const int DuplicateCertReq = 536870912;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203C RID: 8252
|
||||
[Token(Token = "0x200203C")]
|
||||
public class PkiFreeText : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEDC RID: 52956 RVA: 0x002F0D50 File Offset: 0x002EEF50
|
||||
[Token(Token = "0x600CEDC")]
|
||||
[Address(RVA = "0x2FEC070", Offset = "0x2FEB070", VA = "0x182FEC070")]
|
||||
public static PkiFreeText GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiFreeText.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CEDD RID: 52957 RVA: 0x002F0D6C File Offset: 0x002EEF6C
|
||||
[Token(Token = "0x600CEDD")]
|
||||
[Address(RVA = "0x2FEC090", Offset = "0x2FEB090", VA = "0x182FEC090")]
|
||||
public static PkiFreeText GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEDD)
|
||||
|
||||
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: 0x0600CEDE RID: 52958 RVA: 0x002F0DBC File Offset: 0x002EEFBC
|
||||
[Token(Token = "0x600CEDE")]
|
||||
[Address(RVA = "0x2FEC330", Offset = "0x2FEB330", VA = "0x182FEC330")]
|
||||
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: 0x0600CEDF RID: 52959 RVA: 0x002F0E0C File Offset: 0x002EF00C
|
||||
[Token(Token = "0x600CEDF")]
|
||||
[Address(RVA = "0x2FEC4E0", Offset = "0x2FEB4E0", VA = "0x182FEC4E0")]
|
||||
public PkiFreeText(DerUtf8String p)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(p);
|
||||
this.strings = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x170020D2 RID: 8402
|
||||
// (get) Token: 0x0600CEE0 RID: 52960 RVA: 0x002F0E30 File Offset: 0x002EF030
|
||||
[Token(Token = "0x170020D2")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600CEE0")]
|
||||
[Address(RVA = "0x4DAE40", Offset = "0x4D9E40", VA = "0x1804DAE40")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D3 RID: 8403
|
||||
// (get) Token: 0x0600CEE1 RID: 52961 RVA: 0x002F0E50 File Offset: 0x002EF050
|
||||
[Token(Token = "0x170020D3")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600CEE1")]
|
||||
[Address(RVA = "0x4DAE40", Offset = "0x4D9E40", VA = "0x1804DAE40")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D4 RID: 8404
|
||||
[Token(Token = "0x170020D4")]
|
||||
public DerUtf8String this[int index]
|
||||
{
|
||||
[Token(Token = "0x600CEE2")]
|
||||
[Address(RVA = "0x2FEC280", Offset = "0x2FEB280", VA = "0x182FEC280")]
|
||||
get
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEE3 RID: 52963 RVA: 0x002F0E98 File Offset: 0x002EF098
|
||||
[Token(Token = "0x600CEE3")]
|
||||
[Address(RVA = "0x2FEC280", Offset = "0x2FEB280", VA = "0x182FEC280")]
|
||||
[Obsolete]
|
||||
public DerUtf8String GetStringAt(int index)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEE4 RID: 52964 RVA: 0x002F0EC0 File Offset: 0x002EF0C0
|
||||
[Token(Token = "0x600CEE4")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEE4)
|
||||
|
||||
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: 0x04008324 RID: 33572
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008324")]
|
||||
internal Asn1Sequence strings;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,423 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203D RID: 8253
|
||||
[Token(Token = "0x200203D")]
|
||||
public class PkiHeader : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEE5 RID: 52965 RVA: 0x002F0ED4 File Offset: 0x002EF0D4
|
||||
[Token(Token = "0x600CEE5")]
|
||||
[Address(RVA = "0x2FED7E0", Offset = "0x2FEC7E0", VA = "0x182FED7E0")]
|
||||
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;
|
||||
Asn1Sequence asn1Sequence;
|
||||
PkiFreeText instance = PkiFreeText.GetInstance(asn1Sequence);
|
||||
this.freeText = instance;
|
||||
num += (uint)1;
|
||||
Asn1Sequence asn1Sequence2;
|
||||
this.generalInfo = asn1Sequence2;
|
||||
num += (uint)1;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEE6 RID: 52966 RVA: 0x002F0FE4 File Offset: 0x002EF1E4
|
||||
[Token(Token = "0x600CEE6")]
|
||||
[Address(RVA = "0x2FED230", Offset = "0x2FEC230", VA = "0x182FED230")]
|
||||
public static PkiHeader GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEE6)
|
||||
|
||||
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: 0x0600CEE7 RID: 52967 RVA: 0x002F1034 File Offset: 0x002EF234
|
||||
[Token(Token = "0x600CEE7")]
|
||||
[Address(RVA = "0x2FED750", Offset = "0x2FEC750", VA = "0x182FED750")]
|
||||
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: 0x0600CEE8 RID: 52968 RVA: 0x002F1064 File Offset: 0x002EF264
|
||||
[Token(Token = "0x600CEE8")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
private PkiHeader(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x170020D5 RID: 8405
|
||||
// (get) Token: 0x0600CEE9 RID: 52969 RVA: 0x002F108C File Offset: 0x002EF28C
|
||||
[Token(Token = "0x170020D5")]
|
||||
public virtual DerInteger Pvno
|
||||
{
|
||||
[Token(Token = "0x600CEE9")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pvno;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D6 RID: 8406
|
||||
// (get) Token: 0x0600CEEA RID: 52970 RVA: 0x002F10A0 File Offset: 0x002EF2A0
|
||||
[Token(Token = "0x170020D6")]
|
||||
public virtual GeneralName Sender
|
||||
{
|
||||
[Token(Token = "0x600CEEA")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.sender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D7 RID: 8407
|
||||
// (get) Token: 0x0600CEEB RID: 52971 RVA: 0x002F10B4 File Offset: 0x002EF2B4
|
||||
[Token(Token = "0x170020D7")]
|
||||
public virtual GeneralName Recipient
|
||||
{
|
||||
[Token(Token = "0x600CEEB")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.recipient;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D8 RID: 8408
|
||||
// (get) Token: 0x0600CEEC RID: 52972 RVA: 0x002F10C8 File Offset: 0x002EF2C8
|
||||
[Token(Token = "0x170020D8")]
|
||||
public virtual DerGeneralizedTime MessageTime
|
||||
{
|
||||
[Token(Token = "0x600CEEC")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.messageTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D9 RID: 8409
|
||||
// (get) Token: 0x0600CEED RID: 52973 RVA: 0x002F10DC File Offset: 0x002EF2DC
|
||||
[Token(Token = "0x170020D9")]
|
||||
public virtual AlgorithmIdentifier ProtectionAlg
|
||||
{
|
||||
[Token(Token = "0x600CEED")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.protectionAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DA RID: 8410
|
||||
// (get) Token: 0x0600CEEE RID: 52974 RVA: 0x002F10F0 File Offset: 0x002EF2F0
|
||||
[Token(Token = "0x170020DA")]
|
||||
public virtual Asn1OctetString SenderKID
|
||||
{
|
||||
[Token(Token = "0x600CEEE")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.senderKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DB RID: 8411
|
||||
// (get) Token: 0x0600CEEF RID: 52975 RVA: 0x002F1104 File Offset: 0x002EF304
|
||||
[Token(Token = "0x170020DB")]
|
||||
public virtual Asn1OctetString RecipKID
|
||||
{
|
||||
[Token(Token = "0x600CEEF")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return this.recipKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DC RID: 8412
|
||||
// (get) Token: 0x0600CEF0 RID: 52976 RVA: 0x002F1118 File Offset: 0x002EF318
|
||||
[Token(Token = "0x170020DC")]
|
||||
public virtual Asn1OctetString TransactionID
|
||||
{
|
||||
[Token(Token = "0x600CEF0")]
|
||||
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.transactionID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DD RID: 8413
|
||||
// (get) Token: 0x0600CEF1 RID: 52977 RVA: 0x002F112C File Offset: 0x002EF32C
|
||||
[Token(Token = "0x170020DD")]
|
||||
public virtual Asn1OctetString SenderNonce
|
||||
{
|
||||
[Token(Token = "0x600CEF1")]
|
||||
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return this.senderNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DE RID: 8414
|
||||
// (get) Token: 0x0600CEF2 RID: 52978 RVA: 0x002F1140 File Offset: 0x002EF340
|
||||
[Token(Token = "0x170020DE")]
|
||||
public virtual Asn1OctetString RecipNonce
|
||||
{
|
||||
[Token(Token = "0x600CEF2")]
|
||||
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710", Slot = "15")]
|
||||
get
|
||||
{
|
||||
return this.recipNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DF RID: 8415
|
||||
// (get) Token: 0x0600CEF3 RID: 52979 RVA: 0x002F1154 File Offset: 0x002EF354
|
||||
[Token(Token = "0x170020DF")]
|
||||
public virtual PkiFreeText FreeText
|
||||
{
|
||||
[Token(Token = "0x600CEF3")]
|
||||
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720", Slot = "16")]
|
||||
get
|
||||
{
|
||||
return this.freeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEF4 RID: 52980 RVA: 0x002F1168 File Offset: 0x002EF368
|
||||
[Token(Token = "0x600CEF4")]
|
||||
[Address(RVA = "0x2FED110", Offset = "0x2FEC110", VA = "0x182FED110", 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: 0x0600CEF5 RID: 52981 RVA: 0x002F11B8 File Offset: 0x002EF3B8
|
||||
[Token(Token = "0x600CEF5")]
|
||||
[Address(RVA = "0x2FED420", Offset = "0x2FEC420", VA = "0x182FED420", 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: 0x0600CEF6 RID: 52982 RVA: 0x002F12C4 File Offset: 0x002EF4C4
|
||||
[Token(Token = "0x600CEF6")]
|
||||
[Address(RVA = "0x2FED010", Offset = "0x2FEC010", VA = "0x182FED010")]
|
||||
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: 0x04008325 RID: 33573
|
||||
[Token(Token = "0x4008325")]
|
||||
public static readonly GeneralName NULL_NAME = new GeneralName(X509Name.GetInstance(new DerSequence()));
|
||||
|
||||
// Token: 0x04008326 RID: 33574
|
||||
[Token(Token = "0x4008326")]
|
||||
public static readonly int CMP_1999;
|
||||
|
||||
// Token: 0x04008327 RID: 33575
|
||||
[Token(Token = "0x4008327")]
|
||||
public static readonly int CMP_2000;
|
||||
|
||||
// Token: 0x04008328 RID: 33576
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008328")]
|
||||
private readonly DerInteger pvno;
|
||||
|
||||
// Token: 0x04008329 RID: 33577
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008329")]
|
||||
private readonly GeneralName sender;
|
||||
|
||||
// Token: 0x0400832A RID: 33578
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400832A")]
|
||||
private readonly GeneralName recipient;
|
||||
|
||||
// Token: 0x0400832B RID: 33579
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400832B")]
|
||||
private readonly DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x0400832C RID: 33580
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400832C")]
|
||||
private readonly AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x0400832D RID: 33581
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400832D")]
|
||||
private readonly Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x0400832E RID: 33582
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400832E")]
|
||||
private readonly Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x0400832F RID: 33583
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400832F")]
|
||||
private readonly Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04008330 RID: 33584
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4008330")]
|
||||
private readonly Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04008331 RID: 33585
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4008331")]
|
||||
private readonly Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04008332 RID: 33586
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4008332")]
|
||||
private readonly PkiFreeText freeText;
|
||||
|
||||
// Token: 0x04008333 RID: 33587
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4008333")]
|
||||
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: 0x0200203E RID: 8254
|
||||
[Token(Token = "0x200203E")]
|
||||
public class PkiHeaderBuilder
|
||||
{
|
||||
// Token: 0x0600CEF8 RID: 52984 RVA: 0x002F1324 File Offset: 0x002EF524
|
||||
[Token(Token = "0x600CEF8")]
|
||||
[Address(RVA = "0x2FECF80", Offset = "0x2FEBF80", VA = "0x182FECF80")]
|
||||
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: 0x0600CEF9 RID: 52985 RVA: 0x002F135C File Offset: 0x002EF55C
|
||||
[Token(Token = "0x600CEF9")]
|
||||
[Address(RVA = "0x466000", Offset = "0x465000", VA = "0x180466000")]
|
||||
private PkiHeaderBuilder(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFA RID: 52986 RVA: 0x002F1384 File Offset: 0x002EF584
|
||||
[Token(Token = "0x600CEFA")]
|
||||
[Address(RVA = "0x493860", Offset = "0x492860", VA = "0x180493860", Slot = "4")]
|
||||
public virtual PkiHeaderBuilder SetMessageTime(DerGeneralizedTime time)
|
||||
{
|
||||
this.messageTime = time;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFB RID: 52987 RVA: 0x002F139C File Offset: 0x002EF59C
|
||||
[Token(Token = "0x600CEFB")]
|
||||
[Address(RVA = "0x493910", Offset = "0x492910", VA = "0x180493910", Slot = "5")]
|
||||
public virtual PkiHeaderBuilder SetProtectionAlg(AlgorithmIdentifier aid)
|
||||
{
|
||||
this.protectionAlg = aid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFC RID: 52988 RVA: 0x002F13B4 File Offset: 0x002EF5B4
|
||||
[Token(Token = "0x600CEFC")]
|
||||
[Address(RVA = "0x2FECDD0", Offset = "0x2FEBDD0", VA = "0x182FECDD0", Slot = "6")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFD RID: 52989 RVA: 0x002F13D4 File Offset: 0x002EF5D4
|
||||
[Token(Token = "0x600CEFD")]
|
||||
[Address(RVA = "0x12A77C0", Offset = "0x12A67C0", VA = "0x1812A77C0", Slot = "7")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(Asn1OctetString kid)
|
||||
{
|
||||
this.senderKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFE RID: 52990 RVA: 0x002F13EC File Offset: 0x002EF5EC
|
||||
[Token(Token = "0x600CEFE")]
|
||||
[Address(RVA = "0x2FECCB0", Offset = "0x2FEBCB0", VA = "0x182FECCB0", Slot = "8")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFF RID: 52991 RVA: 0x002F140C File Offset: 0x002EF60C
|
||||
[Token(Token = "0x600CEFF")]
|
||||
[Address(RVA = "0x23A3780", Offset = "0x23A2780", VA = "0x1823A3780", Slot = "9")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(DerOctetString kid)
|
||||
{
|
||||
this.recipKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF00 RID: 52992 RVA: 0x002F1424 File Offset: 0x002EF624
|
||||
[Token(Token = "0x600CF00")]
|
||||
[Address(RVA = "0x2FECEF0", Offset = "0x2FEBEF0", VA = "0x182FECEF0", Slot = "10")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(byte[] tid)
|
||||
{
|
||||
if (tid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(tid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CF01 RID: 52993 RVA: 0x002F1444 File Offset: 0x002EF644
|
||||
[Token(Token = "0x600CF01")]
|
||||
[Address(RVA = "0x23A3770", Offset = "0x23A2770", VA = "0x1823A3770", Slot = "11")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(Asn1OctetString tid)
|
||||
{
|
||||
this.transactionID = tid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF02 RID: 52994 RVA: 0x002F145C File Offset: 0x002EF65C
|
||||
[Token(Token = "0x600CF02")]
|
||||
[Address(RVA = "0x2FECE60", Offset = "0x2FEBE60", VA = "0x182FECE60", Slot = "12")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CF03 RID: 52995 RVA: 0x002F147C File Offset: 0x002EF67C
|
||||
[Token(Token = "0x600CF03")]
|
||||
[Address(RVA = "0x23A3790", Offset = "0x23A2790", VA = "0x1823A3790", Slot = "13")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.senderNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF04 RID: 52996 RVA: 0x002F1494 File Offset: 0x002EF694
|
||||
[Token(Token = "0x600CF04")]
|
||||
[Address(RVA = "0x2FECD40", Offset = "0x2FEBD40", VA = "0x182FECD40", Slot = "14")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CF05 RID: 52997 RVA: 0x002F14B4 File Offset: 0x002EF6B4
|
||||
[Token(Token = "0x600CF05")]
|
||||
[Address(RVA = "0x23A3760", Offset = "0x23A2760", VA = "0x1823A3760", Slot = "15")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.recipNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF06 RID: 52998 RVA: 0x002F14CC File Offset: 0x002EF6CC
|
||||
[Token(Token = "0x600CF06")]
|
||||
[Address(RVA = "0x2FECAB0", Offset = "0x2FEBAB0", VA = "0x182FECAB0", Slot = "16")]
|
||||
public virtual PkiHeaderBuilder SetFreeText(PkiFreeText text)
|
||||
{
|
||||
this.freeText = text;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF07 RID: 52999 RVA: 0x002F14E4 File Offset: 0x002EF6E4
|
||||
[Token(Token = "0x600CF07")]
|
||||
[Address(RVA = "0x2FECAC0", Offset = "0x2FEBAC0", VA = "0x182FECAC0", Slot = "17")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue genInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF07)
|
||||
|
||||
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: 0x0600CF08 RID: 53000 RVA: 0x002F14F8 File Offset: 0x002EF6F8
|
||||
[Token(Token = "0x600CF08")]
|
||||
[Address(RVA = "0x2FECB40", Offset = "0x2FEBB40", VA = "0x182FECB40", 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: 0x0600CF09 RID: 53001 RVA: 0x002F1550 File Offset: 0x002EF750
|
||||
[Token(Token = "0x600CF09")]
|
||||
[Address(RVA = "0x2FECCA0", Offset = "0x2FEBCA0", VA = "0x182FECCA0", Slot = "19")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(Asn1Sequence seqOfInfoTypeAndValue)
|
||||
{
|
||||
this.generalInfo = seqOfInfoTypeAndValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF0A RID: 53002 RVA: 0x002F1568 File Offset: 0x002EF768
|
||||
[Token(Token = "0x600CF0A")]
|
||||
[Address(RVA = "0x2FECA50", Offset = "0x2FEBA50", VA = "0x182FECA50")]
|
||||
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue generalInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF0A)
|
||||
|
||||
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: 0x0600CF0B RID: 53003 RVA: 0x002F157C File Offset: 0x002EF77C
|
||||
[Token(Token = "0x600CF0B")]
|
||||
[Address(RVA = "0x2FEC900", Offset = "0x2FEB900", VA = "0x182FEC900")]
|
||||
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: 0x0600CF0C RID: 53004 RVA: 0x002F15CC File Offset: 0x002EF7CC
|
||||
[Token(Token = "0x600CF0C")]
|
||||
[Address(RVA = "0x2FEC650", Offset = "0x2FEB650", VA = "0x182FEC650", 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: 0x0600CF0D RID: 53005 RVA: 0x002F1730 File Offset: 0x002EF930
|
||||
[Token(Token = "0x600CF0D")]
|
||||
[Address(RVA = "0x2FEC550", Offset = "0x2FEB550", VA = "0x182FEC550")]
|
||||
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: 0x04008334 RID: 33588
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008334")]
|
||||
private DerInteger pvno;
|
||||
|
||||
// Token: 0x04008335 RID: 33589
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008335")]
|
||||
private GeneralName sender;
|
||||
|
||||
// Token: 0x04008336 RID: 33590
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008336")]
|
||||
private GeneralName recipient;
|
||||
|
||||
// Token: 0x04008337 RID: 33591
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008337")]
|
||||
private DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x04008338 RID: 33592
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008338")]
|
||||
private AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x04008339 RID: 33593
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008339")]
|
||||
private Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x0400833A RID: 33594
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400833A")]
|
||||
private Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x0400833B RID: 33595
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400833B")]
|
||||
private Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x0400833C RID: 33596
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400833C")]
|
||||
private Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x0400833D RID: 33597
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400833D")]
|
||||
private Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x0400833E RID: 33598
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400833E")]
|
||||
private PkiFreeText freeText;
|
||||
|
||||
// Token: 0x0400833F RID: 33599
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400833F")]
|
||||
private Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203F RID: 8255
|
||||
[Token(Token = "0x200203F")]
|
||||
public class PkiMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF0E RID: 53006 RVA: 0x002F176C File Offset: 0x002EF96C
|
||||
[Token(Token = "0x600CF0E")]
|
||||
[Address(RVA = "0x2FEE0E0", Offset = "0x2FED0E0", VA = "0x182FEE0E0")]
|
||||
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: 0x0600CF0F RID: 53007 RVA: 0x002F17C4 File Offset: 0x002EF9C4
|
||||
[Token(Token = "0x600CF0F")]
|
||||
[Address(RVA = "0x2FEDD10", Offset = "0x2FECD10", VA = "0x182FEDD10")]
|
||||
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: 0x0600CF10 RID: 53008 RVA: 0x002F17F8 File Offset: 0x002EF9F8
|
||||
[Token(Token = "0x600CF10")]
|
||||
[Address(RVA = "0x2FEDF70", Offset = "0x2FECF70", VA = "0x182FEDF70")]
|
||||
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: 0x0600CF11 RID: 53009 RVA: 0x002F1828 File Offset: 0x002EFA28
|
||||
[Token(Token = "0x600CF11")]
|
||||
[Address(RVA = "0x2FEE010", Offset = "0x2FED010", VA = "0x182FEE010")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = protection;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF12 RID: 53010 RVA: 0x002F1850 File Offset: 0x002EFA50
|
||||
[Token(Token = "0x600CF12")]
|
||||
[Address(RVA = "0x2FEE080", Offset = "0x2FED080", VA = "0x182FEE080")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x170020E0 RID: 8416
|
||||
// (get) Token: 0x0600CF13 RID: 53011 RVA: 0x002F187C File Offset: 0x002EFA7C
|
||||
[Token(Token = "0x170020E0")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600CF13")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E1 RID: 8417
|
||||
// (get) Token: 0x0600CF14 RID: 53012 RVA: 0x002F1890 File Offset: 0x002EFA90
|
||||
[Token(Token = "0x170020E1")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600CF14")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E2 RID: 8418
|
||||
// (get) Token: 0x0600CF15 RID: 53013 RVA: 0x002F18A4 File Offset: 0x002EFAA4
|
||||
[Token(Token = "0x170020E2")]
|
||||
public virtual DerBitString Protection
|
||||
{
|
||||
[Token(Token = "0x600CF15")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.protection;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF16 RID: 53014 RVA: 0x002F18B8 File Offset: 0x002EFAB8
|
||||
[Token(Token = "0x600CF16")]
|
||||
[Address(RVA = "0x2FEDBF0", Offset = "0x2FECBF0", VA = "0x182FEDBF0", 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: 0x0600CF17 RID: 53015 RVA: 0x002F1908 File Offset: 0x002EFB08
|
||||
[Token(Token = "0x600CF17")]
|
||||
[Address(RVA = "0x2FEDE10", Offset = "0x2FECE10", VA = "0x182FEDE10", 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: 0x0600CF18 RID: 53016 RVA: 0x002F197C File Offset: 0x002EFB7C
|
||||
[Token(Token = "0x600CF18")]
|
||||
[Address(RVA = "0x2FEDAF0", Offset = "0x2FECAF0", VA = "0x182FEDAF0")]
|
||||
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: 0x04008340 RID: 33600
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008340")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04008341 RID: 33601
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008341")]
|
||||
private readonly PkiBody body;
|
||||
|
||||
// Token: 0x04008342 RID: 33602
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008342")]
|
||||
private readonly DerBitString protection;
|
||||
|
||||
// Token: 0x04008343 RID: 33603
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008343")]
|
||||
private readonly Asn1Sequence extraCerts;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002040 RID: 8256
|
||||
[Token(Token = "0x2002040")]
|
||||
public class PkiMessages : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF19 RID: 53017 RVA: 0x002F19B8 File Offset: 0x002EFBB8
|
||||
[Token(Token = "0x600CF19")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PkiMessages(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF1A RID: 53018 RVA: 0x002F19D4 File Offset: 0x002EFBD4
|
||||
[Token(Token = "0x600CF1A")]
|
||||
[Address(RVA = "0x2FEE2B0", Offset = "0x2FED2B0", VA = "0x182FEE2B0")]
|
||||
public static PkiMessages GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF1A)
|
||||
|
||||
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: 0x0600CF1B RID: 53019 RVA: 0x002F1A2C File Offset: 0x002EFC2C
|
||||
[Token(Token = "0x600CF1B")]
|
||||
[Address(RVA = "0x2FEE690", Offset = "0x2FED690", VA = "0x182FEE690")]
|
||||
public PkiMessages(params PkiMessage[] msgs)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(msgs);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF1C RID: 53020 RVA: 0x002F1A50 File Offset: 0x002EFC50
|
||||
[Token(Token = "0x600CF1C")]
|
||||
[Address(RVA = "0x2FEE4A0", Offset = "0x2FED4A0", VA = "0x182FEE4A0", 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: 0x0600CF1D RID: 53021 RVA: 0x002F1ACC File Offset: 0x002EFCCC
|
||||
[Token(Token = "0x600CF1D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF1D)
|
||||
|
||||
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: 0x04008344 RID: 33604
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008344")]
|
||||
private Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002041 RID: 8257
|
||||
[Token(Token = "0x2002041")]
|
||||
public enum PkiStatus
|
||||
{
|
||||
// Token: 0x04008346 RID: 33606
|
||||
[Token(Token = "0x4008346")]
|
||||
Granted,
|
||||
// Token: 0x04008347 RID: 33607
|
||||
[Token(Token = "0x4008347")]
|
||||
GrantedWithMods,
|
||||
// Token: 0x04008348 RID: 33608
|
||||
[Token(Token = "0x4008348")]
|
||||
Rejection,
|
||||
// Token: 0x04008349 RID: 33609
|
||||
[Token(Token = "0x4008349")]
|
||||
Waiting,
|
||||
// Token: 0x0400834A RID: 33610
|
||||
[Token(Token = "0x400834A")]
|
||||
RevocationWarning,
|
||||
// Token: 0x0400834B RID: 33611
|
||||
[Token(Token = "0x400834B")]
|
||||
RevocationNotification,
|
||||
// Token: 0x0400834C RID: 33612
|
||||
[Token(Token = "0x400834C")]
|
||||
KeyUpdateWarning
|
||||
}
|
||||
}
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002042 RID: 8258
|
||||
[Token(Token = "0x2002042")]
|
||||
public class PkiStatusEncodable : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF1E RID: 53022 RVA: 0x002F1AE0 File Offset: 0x002EFCE0
|
||||
[Token(Token = "0x600CF1E")]
|
||||
[Address(RVA = "0x2FEEC00", Offset = "0x2FEDC00", VA = "0x182FEEC00")]
|
||||
private PkiStatusEncodable(PkiStatus status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger((int)status);
|
||||
base..ctor();
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF1F RID: 53023 RVA: 0x002F1B04 File Offset: 0x002EFD04
|
||||
[Token(Token = "0x600CF1F")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PkiStatusEncodable(DerInteger status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF20 RID: 53024 RVA: 0x002F1B20 File Offset: 0x002EFD20
|
||||
[Token(Token = "0x600CF20")]
|
||||
[Address(RVA = "0x2FEE700", Offset = "0x2FED700", VA = "0x182FEE700")]
|
||||
public static PkiStatusEncodable GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF20)
|
||||
|
||||
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: 0x170020E3 RID: 8419
|
||||
// (get) Token: 0x0600CF21 RID: 53025 RVA: 0x002F1B78 File Offset: 0x002EFD78
|
||||
[Token(Token = "0x170020E3")]
|
||||
public virtual BigInteger Value
|
||||
{
|
||||
[Token(Token = "0x600CF21")]
|
||||
[Address(RVA = "0x2EAFE00", Offset = "0x2EAEE00", VA = "0x182EAFE00", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF22 RID: 53026 RVA: 0x002F1B98 File Offset: 0x002EFD98
|
||||
[Token(Token = "0x600CF22")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF22)
|
||||
|
||||
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: 0x0600CF23 RID: 53027 RVA: 0x002F1BAC File Offset: 0x002EFDAC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CF23")]
|
||||
[Address(RVA = "0x2FEE8F0", Offset = "0x2FED8F0", VA = "0x182FEE8F0")]
|
||||
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: 0x0400834D RID: 33613
|
||||
[Token(Token = "0x400834D")]
|
||||
public static readonly PkiStatusEncodable granted;
|
||||
|
||||
// Token: 0x0400834E RID: 33614
|
||||
[Token(Token = "0x400834E")]
|
||||
public static readonly PkiStatusEncodable grantedWithMods;
|
||||
|
||||
// Token: 0x0400834F RID: 33615
|
||||
[Token(Token = "0x400834F")]
|
||||
public static readonly PkiStatusEncodable rejection;
|
||||
|
||||
// Token: 0x04008350 RID: 33616
|
||||
[Token(Token = "0x4008350")]
|
||||
public static readonly PkiStatusEncodable waiting;
|
||||
|
||||
// Token: 0x04008351 RID: 33617
|
||||
[Token(Token = "0x4008351")]
|
||||
public static readonly PkiStatusEncodable revocationWarning;
|
||||
|
||||
// Token: 0x04008352 RID: 33618
|
||||
[Token(Token = "0x4008352")]
|
||||
public static readonly PkiStatusEncodable revocationNotification;
|
||||
|
||||
// Token: 0x04008353 RID: 33619
|
||||
[Token(Token = "0x4008353")]
|
||||
public static readonly PkiStatusEncodable keyUpdateWaiting;
|
||||
|
||||
// Token: 0x04008354 RID: 33620
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008354")]
|
||||
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: 0x02002043 RID: 8259
|
||||
[Token(Token = "0x2002043")]
|
||||
public class PkiStatusInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF24 RID: 53028 RVA: 0x002F1C94 File Offset: 0x002EFE94
|
||||
[Token(Token = "0x600CF24")]
|
||||
[Address(RVA = "0x2FEEC70", Offset = "0x2FEDC70", VA = "0x182FEEC70")]
|
||||
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CF25 RID: 53029 RVA: 0x002F1CB0 File Offset: 0x002EFEB0
|
||||
[Token(Token = "0x600CF25")]
|
||||
[Address(RVA = "0x2FEEC90", Offset = "0x2FEDC90", VA = "0x182FEEC90")]
|
||||
public static PkiStatusInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF25)
|
||||
|
||||
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: 0x0600CF26 RID: 53030 RVA: 0x002F1D00 File Offset: 0x002EFF00
|
||||
[Token(Token = "0x600CF26")]
|
||||
[Address(RVA = "0x2FEF1A0", Offset = "0x2FEE1A0", VA = "0x182FEF1A0")]
|
||||
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: 0x0600CF27 RID: 53031 RVA: 0x002F1D6C File Offset: 0x002EFF6C
|
||||
[Token(Token = "0x600CF27")]
|
||||
[Address(RVA = "0x2FEF370", Offset = "0x2FEE370", VA = "0x182FEF370")]
|
||||
public PkiStatusInfo(int status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF28 RID: 53032 RVA: 0x002F1D90 File Offset: 0x002EFF90
|
||||
[Token(Token = "0x600CF28")]
|
||||
[Address(RVA = "0x2FEF090", Offset = "0x2FEE090", VA = "0x182FEF090")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF29 RID: 53033 RVA: 0x002F1DB8 File Offset: 0x002EFFB8
|
||||
[Token(Token = "0x600CF29")]
|
||||
[Address(RVA = "0x2FEF110", Offset = "0x2FEE110", VA = "0x182FEF110")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
this.failInfo = failInfo;
|
||||
}
|
||||
|
||||
// Token: 0x170020E4 RID: 8420
|
||||
// (get) Token: 0x0600CF2A RID: 53034 RVA: 0x002F1DE8 File Offset: 0x002EFFE8
|
||||
[Token(Token = "0x170020E4")]
|
||||
public BigInteger Status
|
||||
{
|
||||
[Token(Token = "0x600CF2A")]
|
||||
[Address(RVA = "0x2EAFE00", Offset = "0x2EAEE00", VA = "0x182EAFE00")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E5 RID: 8421
|
||||
// (get) Token: 0x0600CF2B RID: 53035 RVA: 0x002F1E08 File Offset: 0x002F0008
|
||||
[Token(Token = "0x170020E5")]
|
||||
public PkiFreeText StatusString
|
||||
{
|
||||
[Token(Token = "0x600CF2B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.statusString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E6 RID: 8422
|
||||
// (get) Token: 0x0600CF2C RID: 53036 RVA: 0x002F1E1C File Offset: 0x002F001C
|
||||
[Token(Token = "0x170020E6")]
|
||||
public DerBitString FailInfo
|
||||
{
|
||||
[Token(Token = "0x600CF2C")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.failInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF2D RID: 53037 RVA: 0x002F1E30 File Offset: 0x002F0030
|
||||
[Token(Token = "0x600CF2D")]
|
||||
[Address(RVA = "0x2FEEE80", Offset = "0x2FEDE80", VA = "0x182FEEE80", 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: 0x04008355 RID: 33621
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008355")]
|
||||
private DerInteger status;
|
||||
|
||||
// Token: 0x04008356 RID: 33622
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008356")]
|
||||
private PkiFreeText statusString;
|
||||
|
||||
// Token: 0x04008357 RID: 33623
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008357")]
|
||||
private DerBitString failInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002045 RID: 8261
|
||||
[Token(Token = "0x2002045")]
|
||||
public class PollRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF37 RID: 53047 RVA: 0x002F20C4 File Offset: 0x002F02C4
|
||||
[Token(Token = "0x600CF37")]
|
||||
[Address(RVA = "0x2FEF820", Offset = "0x2FEE820", VA = "0x182FEF820")]
|
||||
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: 0x0600CF38 RID: 53048 RVA: 0x002F2110 File Offset: 0x002F0310
|
||||
[Token(Token = "0x600CF38")]
|
||||
[Address(RVA = "0x2FEF3E0", Offset = "0x2FEE3E0", VA = "0x182FEF3E0")]
|
||||
public static PollRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF38)
|
||||
|
||||
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: 0x0600CF39 RID: 53049 RVA: 0x002F2178 File Offset: 0x002F0378
|
||||
[Token(Token = "0x600CF39")]
|
||||
[Address(RVA = "0x2E8C5B0", Offset = "0x2E8B5B0", VA = "0x182E8C5B0")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF3A RID: 53050 RVA: 0x002F21A4 File Offset: 0x002F03A4
|
||||
[Token(Token = "0x600CF3A")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter, PkiFreeText reason)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
// Token: 0x170020EB RID: 8427
|
||||
// (get) Token: 0x0600CF3B RID: 53051 RVA: 0x002F21CC File Offset: 0x002F03CC
|
||||
[Token(Token = "0x170020EB")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CF3B")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020EC RID: 8428
|
||||
// (get) Token: 0x0600CF3C RID: 53052 RVA: 0x002F21E0 File Offset: 0x002F03E0
|
||||
[Token(Token = "0x170020EC")]
|
||||
public virtual DerInteger CheckAfter
|
||||
{
|
||||
[Token(Token = "0x600CF3C")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.checkAfter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020ED RID: 8429
|
||||
// (get) Token: 0x0600CF3D RID: 53053 RVA: 0x002F21F4 File Offset: 0x002F03F4
|
||||
[Token(Token = "0x170020ED")]
|
||||
public virtual PkiFreeText Reason
|
||||
{
|
||||
[Token(Token = "0x600CF3D")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.reason;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF3E RID: 53054 RVA: 0x002F2208 File Offset: 0x002F0408
|
||||
[Token(Token = "0x600CF3E")]
|
||||
[Address(RVA = "0x2FEF660", Offset = "0x2FEE660", VA = "0x182FEF660", 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: 0x0400835C RID: 33628
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400835C")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x0400835D RID: 33629
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400835D")]
|
||||
private readonly DerInteger checkAfter;
|
||||
|
||||
// Token: 0x0400835E RID: 33630
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400835E")]
|
||||
private readonly PkiFreeText reason;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002046 RID: 8262
|
||||
[Token(Token = "0x2002046")]
|
||||
public class PollReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF3F RID: 53055 RVA: 0x002F2280 File Offset: 0x002F0480
|
||||
[Token(Token = "0x600CF3F")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PollReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF40 RID: 53056 RVA: 0x002F229C File Offset: 0x002F049C
|
||||
[Token(Token = "0x600CF40")]
|
||||
[Address(RVA = "0x2FEFB20", Offset = "0x2FEEB20", VA = "0x182FEFB20")]
|
||||
public static PollReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF40)
|
||||
|
||||
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: 0x0600CF41 RID: 53057 RVA: 0x002F22F4 File Offset: 0x002F04F4
|
||||
[Token(Token = "0x600CF41")]
|
||||
[Address(RVA = "0x2FEF8E0", Offset = "0x2FEE8E0", VA = "0x182FEF8E0", 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: 0x0600CF42 RID: 53058 RVA: 0x002F237C File Offset: 0x002F057C
|
||||
[Token(Token = "0x600CF42")]
|
||||
[Address(RVA = "0x2FEFD10", Offset = "0x2FEED10", VA = "0x182FEFD10")]
|
||||
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: 0x0600CF43 RID: 53059 RVA: 0x002F23BC File Offset: 0x002F05BC
|
||||
[Token(Token = "0x600CF43")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF43)
|
||||
|
||||
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: 0x0400835F RID: 33631
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400835F")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002047 RID: 8263
|
||||
[Token(Token = "0x2002047")]
|
||||
public class PopoDecKeyChallContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF44 RID: 53060 RVA: 0x002F23D0 File Offset: 0x002F05D0
|
||||
[Token(Token = "0x600CF44")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PopoDecKeyChallContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF45 RID: 53061 RVA: 0x002F23EC File Offset: 0x002F05EC
|
||||
[Token(Token = "0x600CF45")]
|
||||
[Address(RVA = "0x2FEFE20", Offset = "0x2FEEE20", VA = "0x182FEFE20")]
|
||||
public static PopoDecKeyChallContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF45)
|
||||
|
||||
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: 0x0600CF46 RID: 53062 RVA: 0x002F2444 File Offset: 0x002F0644
|
||||
[Token(Token = "0x600CF46")]
|
||||
[Address(RVA = "0x2FF0010", Offset = "0x2FEF010", VA = "0x182FF0010", 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: 0x0600CF47 RID: 53063 RVA: 0x002F2490 File Offset: 0x002F0690
|
||||
[Token(Token = "0x600CF47")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF47)
|
||||
|
||||
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: 0x04008360 RID: 33632
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008360")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002048 RID: 8264
|
||||
[Token(Token = "0x2002048")]
|
||||
public class PopoDecKeyRespContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF48 RID: 53064 RVA: 0x002F24A4 File Offset: 0x002F06A4
|
||||
[Token(Token = "0x600CF48")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PopoDecKeyRespContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF49 RID: 53065 RVA: 0x002F24C0 File Offset: 0x002F06C0
|
||||
[Token(Token = "0x600CF49")]
|
||||
[Address(RVA = "0x2FF0120", Offset = "0x2FEF120", VA = "0x182FF0120")]
|
||||
public static PopoDecKeyRespContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF49)
|
||||
|
||||
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: 0x0600CF4A RID: 53066 RVA: 0x002F2518 File Offset: 0x002F0718
|
||||
[Token(Token = "0x600CF4A")]
|
||||
[Address(RVA = "0x2FF0310", Offset = "0x2FEF310", VA = "0x182FF0310", 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: 0x0600CF4B RID: 53067 RVA: 0x002F2564 File Offset: 0x002F0764
|
||||
[Token(Token = "0x600CF4B")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF4B)
|
||||
|
||||
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: 0x04008361 RID: 33633
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008361")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002049 RID: 8265
|
||||
[Token(Token = "0x2002049")]
|
||||
public class ProtectedPart : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF4C RID: 53068 RVA: 0x002F2578 File Offset: 0x002F0778
|
||||
[Token(Token = "0x600CF4C")]
|
||||
[Address(RVA = "0x2FF07A0", Offset = "0x2FEF7A0", VA = "0x182FF07A0")]
|
||||
private ProtectedPart(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiHeader pkiHeader;
|
||||
this.header = pkiHeader;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiBody pkiBody;
|
||||
this.body = pkiBody;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF4D RID: 53069 RVA: 0x002F25B0 File Offset: 0x002F07B0
|
||||
[Token(Token = "0x600CF4D")]
|
||||
[Address(RVA = "0x2FF0420", Offset = "0x2FEF420", VA = "0x182FF0420")]
|
||||
public static ProtectedPart GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF4D)
|
||||
|
||||
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: 0x0600CF4E RID: 53070 RVA: 0x002F260C File Offset: 0x002F080C
|
||||
[Token(Token = "0x600CF4E")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public ProtectedPart(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
// Token: 0x170020EE RID: 8430
|
||||
// (get) Token: 0x0600CF4F RID: 53071 RVA: 0x002F2630 File Offset: 0x002F0830
|
||||
[Token(Token = "0x170020EE")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600CF4F")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020EF RID: 8431
|
||||
// (get) Token: 0x0600CF50 RID: 53072 RVA: 0x002F2644 File Offset: 0x002F0844
|
||||
[Token(Token = "0x170020EF")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600CF50")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF51 RID: 53073 RVA: 0x002F2658 File Offset: 0x002F0858
|
||||
[Token(Token = "0x600CF51")]
|
||||
[Address(RVA = "0x2FF0690", Offset = "0x2FEF690", VA = "0x182FF0690", 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: 0x04008362 RID: 33634
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008362")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04008363 RID: 33635
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008363")]
|
||||
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: 0x0200204A RID: 8266
|
||||
[Token(Token = "0x200204A")]
|
||||
public class RevAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF52 RID: 53074 RVA: 0x002F26A0 File Offset: 0x002F08A0
|
||||
[Token(Token = "0x600CF52")]
|
||||
[Address(RVA = "0x2FF27C0", Offset = "0x2FF17C0", VA = "0x182FF27C0")]
|
||||
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: 0x0600CF53 RID: 53075 RVA: 0x002F270C File Offset: 0x002F090C
|
||||
[Token(Token = "0x600CF53")]
|
||||
[Address(RVA = "0x2FF2240", Offset = "0x2FF1240", VA = "0x182FF2240")]
|
||||
public static RevAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF53)
|
||||
|
||||
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: 0x170020F0 RID: 8432
|
||||
// (get) Token: 0x0600CF54 RID: 53076 RVA: 0x002F2780 File Offset: 0x002F0980
|
||||
[Token(Token = "0x170020F0")]
|
||||
public virtual PkiStatusEncodable Status
|
||||
{
|
||||
[Token(Token = "0x600CF54")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F1 RID: 8433
|
||||
// (get) Token: 0x0600CF55 RID: 53077 RVA: 0x002F2794 File Offset: 0x002F0994
|
||||
[Token(Token = "0x170020F1")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600CF55")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F2 RID: 8434
|
||||
// (get) Token: 0x0600CF56 RID: 53078 RVA: 0x002F27A8 File Offset: 0x002F09A8
|
||||
[Token(Token = "0x170020F2")]
|
||||
public virtual DerGeneralizedTime WillBeRevokedAt
|
||||
{
|
||||
[Token(Token = "0x600CF56")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.willBeRevokedAt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F3 RID: 8435
|
||||
// (get) Token: 0x0600CF57 RID: 53079 RVA: 0x002F27BC File Offset: 0x002F09BC
|
||||
[Token(Token = "0x170020F3")]
|
||||
public virtual DerGeneralizedTime BadSinceDate
|
||||
{
|
||||
[Token(Token = "0x600CF57")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.badSinceDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F4 RID: 8436
|
||||
// (get) Token: 0x0600CF58 RID: 53080 RVA: 0x002F27D0 File Offset: 0x002F09D0
|
||||
[Token(Token = "0x170020F4")]
|
||||
public virtual X509Extensions CrlDetails
|
||||
{
|
||||
[Token(Token = "0x600CF58")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.crlDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF59 RID: 53081 RVA: 0x002F27E4 File Offset: 0x002F09E4
|
||||
[Token(Token = "0x600CF59")]
|
||||
[Address(RVA = "0x2FF2560", Offset = "0x2FF1560", VA = "0x182FF2560", 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: 0x04008364 RID: 33636
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008364")]
|
||||
private readonly PkiStatusEncodable status;
|
||||
|
||||
// Token: 0x04008365 RID: 33637
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008365")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x04008366 RID: 33638
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008366")]
|
||||
private readonly DerGeneralizedTime willBeRevokedAt;
|
||||
|
||||
// Token: 0x04008367 RID: 33639
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008367")]
|
||||
private readonly DerGeneralizedTime badSinceDate;
|
||||
|
||||
// Token: 0x04008368 RID: 33640
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008368")]
|
||||
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: 0x0200204B RID: 8267
|
||||
[Token(Token = "0x200204B")]
|
||||
public class RevDetails : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF5A RID: 53082 RVA: 0x002F2888 File Offset: 0x002F0A88
|
||||
[Token(Token = "0x600CF5A")]
|
||||
[Address(RVA = "0x2FF2D40", Offset = "0x2FF1D40", VA = "0x182FF2D40")]
|
||||
private RevDetails(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertTemplate certTemplate;
|
||||
this.certDetails = certTemplate;
|
||||
int num = 0;
|
||||
this.crlEntryDetails = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF5B RID: 53083 RVA: 0x002F28CC File Offset: 0x002F0ACC
|
||||
[Token(Token = "0x600CF5B")]
|
||||
[Address(RVA = "0x2FF2930", Offset = "0x2FF1930", VA = "0x182FF2930")]
|
||||
public static RevDetails GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF5B)
|
||||
|
||||
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: 0x0600CF5C RID: 53084 RVA: 0x002F292C File Offset: 0x002F0B2C
|
||||
[Token(Token = "0x600CF5C")]
|
||||
[Address(RVA = "0xB94A00", Offset = "0xB93A00", VA = "0x180B94A00")]
|
||||
public RevDetails(CertTemplate certDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF5D RID: 53085 RVA: 0x002F2950 File Offset: 0x002F0B50
|
||||
[Token(Token = "0x600CF5D")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public RevDetails(CertTemplate certDetails, X509Extensions crlEntryDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = crlEntryDetails;
|
||||
}
|
||||
|
||||
// Token: 0x170020F5 RID: 8437
|
||||
// (get) Token: 0x0600CF5E RID: 53086 RVA: 0x002F2974 File Offset: 0x002F0B74
|
||||
[Token(Token = "0x170020F5")]
|
||||
public virtual CertTemplate CertDetails
|
||||
{
|
||||
[Token(Token = "0x600CF5E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F6 RID: 8438
|
||||
// (get) Token: 0x0600CF5F RID: 53087 RVA: 0x002F2988 File Offset: 0x002F0B88
|
||||
[Token(Token = "0x170020F6")]
|
||||
public virtual X509Extensions CrlEntryDetails
|
||||
{
|
||||
[Token(Token = "0x600CF5F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.crlEntryDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF60 RID: 53088 RVA: 0x002F299C File Offset: 0x002F0B9C
|
||||
[Token(Token = "0x600CF60")]
|
||||
[Address(RVA = "0x2FF2BD0", Offset = "0x2FF1BD0", VA = "0x182FF2BD0", 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: 0x04008369 RID: 33641
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008369")]
|
||||
private readonly CertTemplate certDetails;
|
||||
|
||||
// Token: 0x0400836A RID: 33642
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400836A")]
|
||||
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: 0x0200204C RID: 8268
|
||||
[Token(Token = "0x200204C")]
|
||||
public class RevRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF61 RID: 53089 RVA: 0x002F29FC File Offset: 0x002F0BFC
|
||||
[Token(Token = "0x600CF61")]
|
||||
[Address(RVA = "0x2FF3D80", Offset = "0x2FF2D80", VA = "0x182FF3D80")]
|
||||
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: 0x0600CF62 RID: 53090 RVA: 0x002F2A58 File Offset: 0x002F0C58
|
||||
[Token(Token = "0x600CF62")]
|
||||
[Address(RVA = "0x2FF37A0", Offset = "0x2FF27A0", VA = "0x182FF37A0")]
|
||||
public static RevRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF62)
|
||||
|
||||
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: 0x0600CF63 RID: 53091 RVA: 0x002F2AD8 File Offset: 0x002F0CD8
|
||||
[Token(Token = "0x600CF63")]
|
||||
[Address(RVA = "0x2FF3B50", Offset = "0x2FF2B50", VA = "0x182FF3B50", 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: 0x0600CF64 RID: 53092 RVA: 0x002F2B24 File Offset: 0x002F0D24
|
||||
[Token(Token = "0x600CF64")]
|
||||
[Address(RVA = "0x2FF3A30", Offset = "0x2FF2A30", VA = "0x182FF3A30", 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: 0x0600CF65 RID: 53093 RVA: 0x002F2B74 File Offset: 0x002F0D74
|
||||
[Token(Token = "0x600CF65")]
|
||||
[Address(RVA = "0x2FF3680", Offset = "0x2FF2680", VA = "0x182FF3680", 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: 0x0600CF66 RID: 53094 RVA: 0x002F2BC4 File Offset: 0x002F0DC4
|
||||
[Token(Token = "0x600CF66")]
|
||||
[Address(RVA = "0x2FF3C60", Offset = "0x2FF2C60", VA = "0x182FF3C60", 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: 0x0600CF67 RID: 53095 RVA: 0x002F2C28 File Offset: 0x002F0E28
|
||||
[Token(Token = "0x600CF67")]
|
||||
[Address(RVA = "0x2FF3580", Offset = "0x2FF2580", VA = "0x182FF3580")]
|
||||
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: 0x0400836B RID: 33643
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400836B")]
|
||||
private readonly Asn1Sequence status;
|
||||
|
||||
// Token: 0x0400836C RID: 33644
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400836C")]
|
||||
private readonly Asn1Sequence revCerts;
|
||||
|
||||
// Token: 0x0400836D RID: 33645
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400836D")]
|
||||
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: 0x0200204D RID: 8269
|
||||
[Token(Token = "0x200204D")]
|
||||
public class RevRepContentBuilder
|
||||
{
|
||||
// Token: 0x0600CF68 RID: 53096 RVA: 0x002F2C64 File Offset: 0x002F0E64
|
||||
[Token(Token = "0x600CF68")]
|
||||
[Address(RVA = "0x2FF2F00", Offset = "0x2FF1F00", VA = "0x182FF2F00", 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: 0x0600CF69 RID: 53097 RVA: 0x002F2C9C File Offset: 0x002F0E9C
|
||||
[Token(Token = "0x600CF69")]
|
||||
[Address(RVA = "0x2FF2FD0", Offset = "0x2FF1FD0", VA = "0x182FF2FD0", 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: 0x0600CF6A RID: 53098 RVA: 0x002F2D14 File Offset: 0x002F0F14
|
||||
[Token(Token = "0x600CF6A")]
|
||||
[Address(RVA = "0x2FF2E30", Offset = "0x2FF1E30", VA = "0x182FF2E30", 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: 0x0600CF6B RID: 53099 RVA: 0x002F2D4C File Offset: 0x002F0F4C
|
||||
[Token(Token = "0x600CF6B")]
|
||||
[Address(RVA = "0x2FF3190", Offset = "0x2FF2190", VA = "0x182FF3190", 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: 0x0600CF6C RID: 53100 RVA: 0x002F2E24 File Offset: 0x002F1024
|
||||
[Token(Token = "0x600CF6C")]
|
||||
[Address(RVA = "0x2FF34A0", Offset = "0x2FF24A0", VA = "0x182FF34A0")]
|
||||
public RevRepContentBuilder()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
this.status = asn1EncodableVector;
|
||||
Asn1EncodableVector asn1EncodableVector2;
|
||||
this.revCerts = asn1EncodableVector2;
|
||||
Asn1EncodableVector asn1EncodableVector3;
|
||||
this.crls = asn1EncodableVector3;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400836E RID: 33646
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400836E")]
|
||||
private readonly Asn1EncodableVector status;
|
||||
|
||||
// Token: 0x0400836F RID: 33647
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400836F")]
|
||||
private readonly Asn1EncodableVector revCerts;
|
||||
|
||||
// Token: 0x04008370 RID: 33648
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008370")]
|
||||
private readonly Asn1EncodableVector crls;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200204E RID: 8270
|
||||
[Token(Token = "0x200204E")]
|
||||
public class RevReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF6D RID: 53101 RVA: 0x002F2E4C File Offset: 0x002F104C
|
||||
[Token(Token = "0x600CF6D")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private RevReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF6E RID: 53102 RVA: 0x002F2E68 File Offset: 0x002F1068
|
||||
[Token(Token = "0x600CF6E")]
|
||||
[Address(RVA = "0x2FF3E60", Offset = "0x2FF2E60", VA = "0x182FF3E60")]
|
||||
public static RevReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF6E)
|
||||
|
||||
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: 0x0600CF6F RID: 53103 RVA: 0x002F2EC0 File Offset: 0x002F10C0
|
||||
[Token(Token = "0x600CF6F")]
|
||||
[Address(RVA = "0x2FF4160", Offset = "0x2FF3160", VA = "0x182FF4160")]
|
||||
public RevReqContent(params RevDetails[] revDetails)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(revDetails);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF70 RID: 53104 RVA: 0x002F2EE4 File Offset: 0x002F10E4
|
||||
[Token(Token = "0x600CF70")]
|
||||
[Address(RVA = "0x2FF4050", Offset = "0x2FF3050", VA = "0x182FF4050", 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: 0x0600CF71 RID: 53105 RVA: 0x002F2F30 File Offset: 0x002F1130
|
||||
[Token(Token = "0x600CF71")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF71)
|
||||
|
||||
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: 0x04008371 RID: 33649
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008371")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FF8 RID: 8184
|
||||
[Token(Token = "0x2001FF8")]
|
||||
public class Attribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CCED RID: 52461 RVA: 0x002E97D8 File Offset: 0x002E79D8
|
||||
[Token(Token = "0x600CCED")]
|
||||
[Address(RVA = "0x2FDB0D0", Offset = "0x2FDA0D0", VA = "0x182FDB0D0")]
|
||||
public static Attribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCED)
|
||||
|
||||
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: 0x0600CCEE RID: 52462 RVA: 0x002E9830 File Offset: 0x002E7A30
|
||||
[Token(Token = "0x600CCEE")]
|
||||
[Address(RVA = "0x2FDB4E0", Offset = "0x2FDA4E0", VA = "0x182FDB4E0")]
|
||||
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: 0x0600CCEF RID: 52463 RVA: 0x002E987C File Offset: 0x002E7A7C
|
||||
[Token(Token = "0x600CCEF")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public Attribute(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17002034 RID: 8244
|
||||
// (get) Token: 0x0600CCF0 RID: 52464 RVA: 0x002E98A0 File Offset: 0x002E7AA0
|
||||
[Token(Token = "0x17002034")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600CCF0")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002035 RID: 8245
|
||||
// (get) Token: 0x0600CCF1 RID: 52465 RVA: 0x002E98B4 File Offset: 0x002E7AB4
|
||||
[Token(Token = "0x17002035")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600CCF1")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF2 RID: 52466 RVA: 0x002E98C8 File Offset: 0x002E7AC8
|
||||
[Token(Token = "0x600CCF2")]
|
||||
[Address(RVA = "0x2FDB3D0", Offset = "0x2FDA3D0", VA = "0x182FDB3D0", 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: 0x04008207 RID: 33287
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008207")]
|
||||
private DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x04008208 RID: 33288
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008208")]
|
||||
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: 0x02001FF9 RID: 8185
|
||||
[Token(Token = "0x2001FF9")]
|
||||
public class AttributeTable
|
||||
{
|
||||
// Token: 0x0600CCF3 RID: 52467 RVA: 0x002E9910 File Offset: 0x002E7B10
|
||||
[Token(Token = "0x600CCF3")]
|
||||
[Address(RVA = "0x2FDAB50", Offset = "0x2FD9B50", VA = "0x182FDAB50")]
|
||||
[Obsolete]
|
||||
public AttributeTable(Hashtable attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF4 RID: 52468 RVA: 0x002E9934 File Offset: 0x002E7B34
|
||||
[Token(Token = "0x600CCF4")]
|
||||
[Address(RVA = "0x2FDAAE0", Offset = "0x2FD9AE0", VA = "0x182FDAAE0")]
|
||||
public AttributeTable(IDictionary attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF5 RID: 52469 RVA: 0x002E9958 File Offset: 0x002E7B58
|
||||
[Token(Token = "0x600CCF5")]
|
||||
[Address(RVA = "0x2FDA8C0", Offset = "0x2FD98C0", VA = "0x182FDA8C0")]
|
||||
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: 0x0600CCF6 RID: 52470 RVA: 0x002E99CC File Offset: 0x002E7BCC
|
||||
[Token(Token = "0x600CCF6")]
|
||||
[Address(RVA = "0x2FDABC0", Offset = "0x2FD9BC0", VA = "0x182FDABC0")]
|
||||
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: 0x0600CCF7 RID: 52471 RVA: 0x002E9A08 File Offset: 0x002E7C08
|
||||
[Token(Token = "0x600CCF7")]
|
||||
[Address(RVA = "0x2FDA790", Offset = "0x2FD9790", VA = "0x182FDA790")]
|
||||
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: 0x0600CCF8 RID: 52472 RVA: 0x002E9A50 File Offset: 0x002E7C50
|
||||
[Token(Token = "0x600CCF8")]
|
||||
[Address(RVA = "0x2FD99C0", Offset = "0x2FD89C0", VA = "0x182FD99C0")]
|
||||
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: 0x17002036 RID: 8246
|
||||
[Token(Token = "0x17002036")]
|
||||
public Attribute this[DerObjectIdentifier oid]
|
||||
{
|
||||
[Token(Token = "0x600CCF9")]
|
||||
[Address(RVA = "0x2FDAED0", Offset = "0x2FD9ED0", VA = "0x182FDAED0")]
|
||||
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: 0x0600CCFA RID: 52474 RVA: 0x002E9AE0 File Offset: 0x002E7CE0
|
||||
[Token(Token = "0x600CCFA")]
|
||||
[Address(RVA = "0x2FDA0F0", Offset = "0x2FD90F0", VA = "0x182FDA0F0")]
|
||||
[Obsolete]
|
||||
public Attribute Get(DerObjectIdentifier oid)
|
||||
{
|
||||
return this[oid];
|
||||
}
|
||||
|
||||
// Token: 0x0600CCFB RID: 52475 RVA: 0x002E9AF4 File Offset: 0x002E7CF4
|
||||
[Token(Token = "0x600CCFB")]
|
||||
[Address(RVA = "0x2FD9C60", Offset = "0x2FD8C60", VA = "0x182FD9C60")]
|
||||
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: 0x17002037 RID: 8247
|
||||
// (get) Token: 0x0600CCFC RID: 52476 RVA: 0x002E9BB0 File Offset: 0x002E7DB0
|
||||
[Token(Token = "0x17002037")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600CCFC")]
|
||||
[Address(RVA = "0x2FDACC0", Offset = "0x2FD9CC0", VA = "0x182FDACC0")]
|
||||
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: 0x0600CCFD RID: 52477 RVA: 0x002E9C00 File Offset: 0x002E7E00
|
||||
[Token(Token = "0x600CCFD")]
|
||||
[Address(RVA = "0x2FDA6D0", Offset = "0x2FD96D0", VA = "0x182FDA6D0")]
|
||||
public IDictionary ToDictionary()
|
||||
{
|
||||
return Platform.CreateHashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCFE RID: 52478 RVA: 0x002E9C18 File Offset: 0x002E7E18
|
||||
[Token(Token = "0x600CCFE")]
|
||||
[Address(RVA = "0x2FDA730", Offset = "0x2FD9730", VA = "0x182FDA730")]
|
||||
[Obsolete]
|
||||
public Hashtable ToHashtable()
|
||||
{
|
||||
return new Hashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCFF RID: 52479 RVA: 0x002E9C30 File Offset: 0x002E7E30
|
||||
[Token(Token = "0x600CCFF")]
|
||||
[Address(RVA = "0x2FDA230", Offset = "0x2FD9230", VA = "0x182FDA230")]
|
||||
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: 0x0600CD00 RID: 52480 RVA: 0x002E9CF4 File Offset: 0x002E7EF4
|
||||
[Token(Token = "0x600CD00")]
|
||||
[Address(RVA = "0x2FDA620", Offset = "0x2FD9620", VA = "0x182FDA620")]
|
||||
public Attributes ToAttributes()
|
||||
{
|
||||
BerSet berSet = new BerSet(this.ToAsn1EncodableVector());
|
||||
Attributes attributes;
|
||||
attributes.attributes = berSet;
|
||||
return attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD01 RID: 52481 RVA: 0x002E9D18 File Offset: 0x002E7F18
|
||||
[Token(Token = "0x600CD01")]
|
||||
[Address(RVA = "0x2FD9B50", Offset = "0x2FD8B50", VA = "0x182FD9B50")]
|
||||
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: 0x0600CD02 RID: 52482 RVA: 0x002E9D58 File Offset: 0x002E7F58
|
||||
[Token(Token = "0x600CD02")]
|
||||
[Address(RVA = "0x2FDA100", Offset = "0x2FD9100", VA = "0x182FDA100")]
|
||||
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: 0x04008209 RID: 33289
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008209")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFA RID: 8186
|
||||
[Token(Token = "0x2001FFA")]
|
||||
public class Attributes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD03 RID: 52483 RVA: 0x002E9D8C File Offset: 0x002E7F8C
|
||||
[Token(Token = "0x600CD03")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private Attributes(Asn1Set attributes)
|
||||
{
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD04 RID: 52484 RVA: 0x002E9DA8 File Offset: 0x002E7FA8
|
||||
[Token(Token = "0x600CD04")]
|
||||
[Address(RVA = "0x2FDB830", Offset = "0x2FDA830", VA = "0x182FDB830")]
|
||||
public Attributes(Asn1EncodableVector v)
|
||||
{
|
||||
BerSet berSet = new BerSet(v);
|
||||
this.attributes = berSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD05 RID: 52485 RVA: 0x002E9DCC File Offset: 0x002E7FCC
|
||||
[Token(Token = "0x600CD05")]
|
||||
[Address(RVA = "0x2FDB730", Offset = "0x2FDA730", VA = "0x182FDB730")]
|
||||
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: 0x0600CD06 RID: 52486 RVA: 0x002E9E00 File Offset: 0x002E8000
|
||||
[Token(Token = "0x600CD06")]
|
||||
[Address(RVA = "0x2FDB620", Offset = "0x2FDA620", VA = "0x182FDB620", 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: 0x0600CD07 RID: 52487 RVA: 0x002E9E4C File Offset: 0x002E804C
|
||||
[Token(Token = "0x600CD07")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD07)
|
||||
|
||||
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: 0x0400820A RID: 33290
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400820A")]
|
||||
private readonly Asn1Set attributes;
|
||||
}
|
||||
}
|
||||
+325
@@ -0,0 +1,325 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFB RID: 8187
|
||||
[Token(Token = "0x2001FFB")]
|
||||
public class AuthEnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD08 RID: 52488 RVA: 0x002E9E60 File Offset: 0x002E8060
|
||||
[Token(Token = "0x600CD08")]
|
||||
[Address(RVA = "0x2FDC630", Offset = "0x2FDB630", VA = "0x182FDC630")]
|
||||
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: 0x0600CD09 RID: 52489 RVA: 0x002E9EB0 File Offset: 0x002E80B0
|
||||
[Token(Token = "0x600CD09")]
|
||||
[Address(RVA = "0x2FDC6E0", Offset = "0x2FDB6E0", VA = "0x182FDC6E0")]
|
||||
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: 0x0600CD0A RID: 52490 RVA: 0x002E9F88 File Offset: 0x002E8188
|
||||
[Token(Token = "0x600CD0A")]
|
||||
[Address(RVA = "0x2FDBFC0", Offset = "0x2FDAFC0", VA = "0x182FDBFC0")]
|
||||
public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0B RID: 52491 RVA: 0x002E9FA4 File Offset: 0x002E81A4
|
||||
[Token(Token = "0x600CD0B")]
|
||||
[Address(RVA = "0x2FDBFE0", Offset = "0x2FDAFE0", VA = "0x182FDBFE0")]
|
||||
public static AuthEnvelopedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD0B)
|
||||
|
||||
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: 0x17002038 RID: 8248
|
||||
// (get) Token: 0x0600CD0C RID: 52492 RVA: 0x002E9FF4 File Offset: 0x002E81F4
|
||||
[Token(Token = "0x17002038")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD0C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002039 RID: 8249
|
||||
// (get) Token: 0x0600CD0D RID: 52493 RVA: 0x002EA008 File Offset: 0x002E8208
|
||||
[Token(Token = "0x17002039")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600CD0D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203A RID: 8250
|
||||
// (get) Token: 0x0600CD0E RID: 52494 RVA: 0x002EA01C File Offset: 0x002E821C
|
||||
[Token(Token = "0x1700203A")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600CD0E")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203B RID: 8251
|
||||
// (get) Token: 0x0600CD0F RID: 52495 RVA: 0x002EA030 File Offset: 0x002E8230
|
||||
[Token(Token = "0x1700203B")]
|
||||
public EncryptedContentInfo AuthEncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD0F")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.authEncryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203C RID: 8252
|
||||
// (get) Token: 0x0600CD10 RID: 52496 RVA: 0x002EA044 File Offset: 0x002E8244
|
||||
[Token(Token = "0x1700203C")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD10")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203D RID: 8253
|
||||
// (get) Token: 0x0600CD11 RID: 52497 RVA: 0x002EA058 File Offset: 0x002E8258
|
||||
[Token(Token = "0x1700203D")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600CD11")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203E RID: 8254
|
||||
// (get) Token: 0x0600CD12 RID: 52498 RVA: 0x002EA06C File Offset: 0x002E826C
|
||||
[Token(Token = "0x1700203E")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD12")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD13 RID: 52499 RVA: 0x002EA080 File Offset: 0x002E8280
|
||||
[Token(Token = "0x600CD13")]
|
||||
[Address(RVA = "0x2FDC1D0", Offset = "0x2FDB1D0", VA = "0x182FDC1D0", 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: 0x0400820B RID: 33291
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400820B")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400820C RID: 33292
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400820C")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400820D RID: 33293
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400820D")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x0400820E RID: 33294
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400820E")]
|
||||
private EncryptedContentInfo authEncryptedContentInfo;
|
||||
|
||||
// Token: 0x0400820F RID: 33295
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400820F")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04008210 RID: 33296
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008210")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04008211 RID: 33297
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008211")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFC RID: 8188
|
||||
[Token(Token = "0x2001FFC")]
|
||||
public class AuthEnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600CD14 RID: 52500 RVA: 0x002EA1E4 File Offset: 0x002E83E4
|
||||
[Token(Token = "0x600CD14")]
|
||||
[Address(RVA = "0x2FDBEF0", Offset = "0x2FDAEF0", VA = "0x182FDBEF0")]
|
||||
public AuthEnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x1700203F RID: 8255
|
||||
// (get) Token: 0x0600CD15 RID: 52501 RVA: 0x002EA214 File Offset: 0x002E8414
|
||||
[Token(Token = "0x1700203F")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD15")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD16 RID: 52502 RVA: 0x002EA228 File Offset: 0x002E8428
|
||||
[Token(Token = "0x600CD16")]
|
||||
[Address(RVA = "0x2FDBB30", Offset = "0x2FDAB30", VA = "0x182FDBB30")]
|
||||
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: 0x0600CD17 RID: 52503 RVA: 0x002EA294 File Offset: 0x002E8494
|
||||
[Token(Token = "0x600CD17")]
|
||||
[Address(RVA = "0x2FDBD30", Offset = "0x2FDAD30", VA = "0x182FDBD30")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD17)
|
||||
|
||||
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: 0x0600CD18 RID: 52504 RVA: 0x002EA2D4 File Offset: 0x002E84D4
|
||||
[Token(Token = "0x600CD18")]
|
||||
[Address(RVA = "0x2FDB9E0", Offset = "0x2FDA9E0", VA = "0x182FDB9E0")]
|
||||
public EncryptedContentInfoParser GetAuthEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD19 RID: 52505 RVA: 0x002EA300 File Offset: 0x002E8500
|
||||
[Token(Token = "0x600CD19")]
|
||||
[Address(RVA = "0x2FDB8A0", Offset = "0x2FDA8A0", VA = "0x182FDB8A0")]
|
||||
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: 0x0600CD1A RID: 52506 RVA: 0x002EA350 File Offset: 0x002E8550
|
||||
[Token(Token = "0x600CD1A")]
|
||||
[Address(RVA = "0x2FDBAB0", Offset = "0x2FDAAB0", VA = "0x182FDBAB0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD1B RID: 52507 RVA: 0x002EA380 File Offset: 0x002E8580
|
||||
[Token(Token = "0x600CD1B")]
|
||||
[Address(RVA = "0x2FDBDD0", Offset = "0x2FDADD0", VA = "0x182FDBDD0")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD1B)
|
||||
|
||||
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: 0x04008212 RID: 33298
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008212")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04008213 RID: 33299
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008213")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008214 RID: 33300
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008214")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04008215 RID: 33301
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008215")]
|
||||
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: 0x02001FFD RID: 8189
|
||||
[Token(Token = "0x2001FFD")]
|
||||
public class AuthenticatedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD1C RID: 52508 RVA: 0x002EA3A8 File Offset: 0x002E85A8
|
||||
[Token(Token = "0x600CD1C")]
|
||||
[Address(RVA = "0x2FDE310", Offset = "0x2FDD310", VA = "0x182FDE310")]
|
||||
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: 0x0600CD1D RID: 52509 RVA: 0x002EA414 File Offset: 0x002E8614
|
||||
[Token(Token = "0x600CD1D")]
|
||||
[Address(RVA = "0x2FDDED0", Offset = "0x2FDCED0", VA = "0x182FDDED0")]
|
||||
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: 0x0600CD1E RID: 52510 RVA: 0x002EA524 File Offset: 0x002E8724
|
||||
[Token(Token = "0x600CD1E")]
|
||||
[Address(RVA = "0x2FDD950", Offset = "0x2FDC950", VA = "0x182FDD950")]
|
||||
public static AuthenticatedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthenticatedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD1F RID: 52511 RVA: 0x002EA540 File Offset: 0x002E8740
|
||||
[Token(Token = "0x600CD1F")]
|
||||
[Address(RVA = "0x2FDD760", Offset = "0x2FDC760", VA = "0x182FDD760")]
|
||||
public static AuthenticatedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD1F)
|
||||
|
||||
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: 0x17002040 RID: 8256
|
||||
// (get) Token: 0x0600CD20 RID: 52512 RVA: 0x002EA590 File Offset: 0x002E8790
|
||||
[Token(Token = "0x17002040")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD20")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002041 RID: 8257
|
||||
// (get) Token: 0x0600CD21 RID: 52513 RVA: 0x002EA5A4 File Offset: 0x002E87A4
|
||||
[Token(Token = "0x17002041")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600CD21")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002042 RID: 8258
|
||||
// (get) Token: 0x0600CD22 RID: 52514 RVA: 0x002EA5B8 File Offset: 0x002E87B8
|
||||
[Token(Token = "0x17002042")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600CD22")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002043 RID: 8259
|
||||
// (get) Token: 0x0600CD23 RID: 52515 RVA: 0x002EA5CC File Offset: 0x002E87CC
|
||||
[Token(Token = "0x17002043")]
|
||||
public AlgorithmIdentifier MacAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD23")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.macAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002044 RID: 8260
|
||||
// (get) Token: 0x0600CD24 RID: 52516 RVA: 0x002EA5E0 File Offset: 0x002E87E0
|
||||
[Token(Token = "0x17002044")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD24")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002045 RID: 8261
|
||||
// (get) Token: 0x0600CD25 RID: 52517 RVA: 0x002EA5F4 File Offset: 0x002E87F4
|
||||
[Token(Token = "0x17002045")]
|
||||
public ContentInfo EncapsulatedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD25")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.encapsulatedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002046 RID: 8262
|
||||
// (get) Token: 0x0600CD26 RID: 52518 RVA: 0x002EA608 File Offset: 0x002E8808
|
||||
[Token(Token = "0x17002046")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD26")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002047 RID: 8263
|
||||
// (get) Token: 0x0600CD27 RID: 52519 RVA: 0x002EA61C File Offset: 0x002E881C
|
||||
[Token(Token = "0x17002047")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600CD27")]
|
||||
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002048 RID: 8264
|
||||
// (get) Token: 0x0600CD28 RID: 52520 RVA: 0x002EA630 File Offset: 0x002E8830
|
||||
[Token(Token = "0x17002048")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD28")]
|
||||
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD29 RID: 52521 RVA: 0x002EA644 File Offset: 0x002E8844
|
||||
[Token(Token = "0x600CD29")]
|
||||
[Address(RVA = "0x2FDD970", Offset = "0x2FDC970", VA = "0x182FDD970", 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: 0x0600CD2A RID: 52522 RVA: 0x002EA810 File Offset: 0x002E8A10
|
||||
[Token(Token = "0x600CD2A")]
|
||||
[Address(RVA = "0x2FDD400", Offset = "0x2FDC400", VA = "0x182FDD400")]
|
||||
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: 0x04008216 RID: 33302
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008216")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008217 RID: 33303
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008217")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04008218 RID: 33304
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008218")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008219 RID: 33305
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008219")]
|
||||
private AlgorithmIdentifier macAlgorithm;
|
||||
|
||||
// Token: 0x0400821A RID: 33306
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400821A")]
|
||||
private AlgorithmIdentifier digestAlgorithm;
|
||||
|
||||
// Token: 0x0400821B RID: 33307
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400821B")]
|
||||
private ContentInfo encapsulatedContentInfo;
|
||||
|
||||
// Token: 0x0400821C RID: 33308
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400821C")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x0400821D RID: 33309
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400821D")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x0400821E RID: 33310
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400821E")]
|
||||
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: 0x02001FFE RID: 8190
|
||||
[Token(Token = "0x2001FFE")]
|
||||
public class AuthenticatedDataParser
|
||||
{
|
||||
// Token: 0x0600CD2B RID: 52523 RVA: 0x002EA88C File Offset: 0x002E8A8C
|
||||
[Token(Token = "0x600CD2B")]
|
||||
[Address(RVA = "0x2FDD330", Offset = "0x2FDC330", VA = "0x182FDD330")]
|
||||
public AuthenticatedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17002049 RID: 8265
|
||||
// (get) Token: 0x0600CD2C RID: 52524 RVA: 0x002EA8BC File Offset: 0x002E8ABC
|
||||
[Token(Token = "0x17002049")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD2C")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD2D RID: 52525 RVA: 0x002EA8D0 File Offset: 0x002E8AD0
|
||||
[Token(Token = "0x600CD2D")]
|
||||
[Address(RVA = "0x2FDCF70", Offset = "0x2FDBF70", VA = "0x182FDCF70")]
|
||||
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: 0x0600CD2E RID: 52526 RVA: 0x002EA93C File Offset: 0x002E8B3C
|
||||
[Token(Token = "0x600CD2E")]
|
||||
[Address(RVA = "0x2FDD170", Offset = "0x2FDC170", VA = "0x182FDD170")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD2E)
|
||||
|
||||
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: 0x0600CD2F RID: 52527 RVA: 0x002EA97C File Offset: 0x002E8B7C
|
||||
[Token(Token = "0x600CD2F")]
|
||||
[Address(RVA = "0x2FDCE10", Offset = "0x2FDBE10", VA = "0x182FDCE10")]
|
||||
public AlgorithmIdentifier GetMacAlgorithm()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
return AlgorithmIdentifier.GetInstance(0);
|
||||
}
|
||||
|
||||
// Token: 0x0600CD30 RID: 52528 RVA: 0x002EA9A8 File Offset: 0x002E8BA8
|
||||
[Token(Token = "0x600CD30")]
|
||||
[Address(RVA = "0x2FDCC50", Offset = "0x2FDBC50", VA = "0x182FDCC50")]
|
||||
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: 0x0600CD31 RID: 52529 RVA: 0x002EA9F8 File Offset: 0x002E8BF8
|
||||
[Token(Token = "0x600CD31")]
|
||||
[Address(RVA = "0x2FDCD40", Offset = "0x2FDBD40", VA = "0x182FDCD40")]
|
||||
public ContentInfoParser GetEnapsulatedContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD32 RID: 52530 RVA: 0x002EAA24 File Offset: 0x002E8C24
|
||||
[Token(Token = "0x600CD32")]
|
||||
[Address(RVA = "0x2FDCB10", Offset = "0x2FDBB10", VA = "0x182FDCB10")]
|
||||
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: 0x0600CD33 RID: 52531 RVA: 0x002EAA74 File Offset: 0x002E8C74
|
||||
[Token(Token = "0x600CD33")]
|
||||
[Address(RVA = "0x2FDCEF0", Offset = "0x2FDBEF0", VA = "0x182FDCEF0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD34 RID: 52532 RVA: 0x002EAAA4 File Offset: 0x002E8CA4
|
||||
[Token(Token = "0x600CD34")]
|
||||
[Address(RVA = "0x2FDD210", Offset = "0x2FDC210", VA = "0x182FDD210")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD34)
|
||||
|
||||
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: 0x0400821F RID: 33311
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400821F")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04008220 RID: 33312
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008220")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008221 RID: 33313
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008221")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04008222 RID: 33314
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008222")]
|
||||
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: 0x02001FFF RID: 8191
|
||||
[Token(Token = "0x2001FFF")]
|
||||
public abstract class CmsAttributes
|
||||
{
|
||||
// Token: 0x0600CD35 RID: 52533 RVA: 0x002EAACC File Offset: 0x002E8CCC
|
||||
[Token(Token = "0x600CD35")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected CmsAttributes()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04008223 RID: 33315
|
||||
[Token(Token = "0x4008223")]
|
||||
public static readonly DerObjectIdentifier ContentType = PkcsObjectIdentifiers.Pkcs9AtContentType;
|
||||
|
||||
// Token: 0x04008224 RID: 33316
|
||||
[Token(Token = "0x4008224")]
|
||||
public static readonly DerObjectIdentifier MessageDigest = PkcsObjectIdentifiers.Pkcs9AtMessageDigest;
|
||||
|
||||
// Token: 0x04008225 RID: 33317
|
||||
[Token(Token = "0x4008225")]
|
||||
public static readonly DerObjectIdentifier SigningTime = PkcsObjectIdentifiers.Pkcs9AtSigningTime;
|
||||
|
||||
// Token: 0x04008226 RID: 33318
|
||||
[Token(Token = "0x4008226")]
|
||||
public static readonly DerObjectIdentifier CounterSignature = PkcsObjectIdentifiers.Pkcs9AtCounterSignature;
|
||||
|
||||
// Token: 0x04008227 RID: 33319
|
||||
[Token(Token = "0x4008227")]
|
||||
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: 0x02002000 RID: 8192
|
||||
[Token(Token = "0x2002000")]
|
||||
public abstract class CmsObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CD37 RID: 52535 RVA: 0x002EAB20 File Offset: 0x002E8D20
|
||||
[Token(Token = "0x600CD37")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected CmsObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04008228 RID: 33320
|
||||
[Token(Token = "0x4008228")]
|
||||
public static readonly DerObjectIdentifier Data = PkcsObjectIdentifiers.Data;
|
||||
|
||||
// Token: 0x04008229 RID: 33321
|
||||
[Token(Token = "0x4008229")]
|
||||
public static readonly DerObjectIdentifier SignedData = PkcsObjectIdentifiers.SignedData;
|
||||
|
||||
// Token: 0x0400822A RID: 33322
|
||||
[Token(Token = "0x400822A")]
|
||||
public static readonly DerObjectIdentifier EnvelopedData = PkcsObjectIdentifiers.EnvelopedData;
|
||||
|
||||
// Token: 0x0400822B RID: 33323
|
||||
[Token(Token = "0x400822B")]
|
||||
public static readonly DerObjectIdentifier SignedAndEnvelopedData = PkcsObjectIdentifiers.SignedAndEnvelopedData;
|
||||
|
||||
// Token: 0x0400822C RID: 33324
|
||||
[Token(Token = "0x400822C")]
|
||||
public static readonly DerObjectIdentifier DigestedData = PkcsObjectIdentifiers.DigestedData;
|
||||
|
||||
// Token: 0x0400822D RID: 33325
|
||||
[Token(Token = "0x400822D")]
|
||||
public static readonly DerObjectIdentifier EncryptedData = PkcsObjectIdentifiers.EncryptedData;
|
||||
|
||||
// Token: 0x0400822E RID: 33326
|
||||
[Token(Token = "0x400822E")]
|
||||
public static readonly DerObjectIdentifier AuthenticatedData = PkcsObjectIdentifiers.IdCTAuthData;
|
||||
|
||||
// Token: 0x0400822F RID: 33327
|
||||
[Token(Token = "0x400822F")]
|
||||
public static readonly DerObjectIdentifier CompressedData = PkcsObjectIdentifiers.IdCTCompressedData;
|
||||
|
||||
// Token: 0x04008230 RID: 33328
|
||||
[Token(Token = "0x4008230")]
|
||||
public static readonly DerObjectIdentifier AuthEnvelopedData = PkcsObjectIdentifiers.IdCTAuthEnvelopedData;
|
||||
|
||||
// Token: 0x04008231 RID: 33329
|
||||
[Token(Token = "0x4008231")]
|
||||
public static readonly DerObjectIdentifier timestampedData = PkcsObjectIdentifiers.IdCTTimestampedData;
|
||||
|
||||
// Token: 0x04008232 RID: 33330
|
||||
[Token(Token = "0x4008232")]
|
||||
public static readonly DerObjectIdentifier id_ri = new DerObjectIdentifier("1.3.6.1.5.5.7.16");
|
||||
|
||||
// Token: 0x04008233 RID: 33331
|
||||
[Token(Token = "0x4008233")]
|
||||
public static readonly DerObjectIdentifier id_ri_ocsp_response = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008234 RID: 33332
|
||||
[Token(Token = "0x4008234")]
|
||||
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: 0x02002001 RID: 8193
|
||||
[Token(Token = "0x2002001")]
|
||||
public class CompressedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD39 RID: 52537 RVA: 0x002EABD8 File Offset: 0x002E8DD8
|
||||
[Token(Token = "0x600CD39")]
|
||||
[Address(RVA = "0x2FE09E0", Offset = "0x2FDF9E0", VA = "0x182FE09E0")]
|
||||
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: 0x0600CD3A RID: 52538 RVA: 0x002EAC0C File Offset: 0x002E8E0C
|
||||
[Token(Token = "0x600CD3A")]
|
||||
[Address(RVA = "0x2FE0A60", Offset = "0x2FDFA60", VA = "0x182FE0A60")]
|
||||
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: 0x0600CD3B RID: 52539 RVA: 0x002EAC5C File Offset: 0x002E8E5C
|
||||
[Token(Token = "0x600CD3B")]
|
||||
[Address(RVA = "0x2FE0580", Offset = "0x2FDF580", VA = "0x182FE0580")]
|
||||
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD3C RID: 52540 RVA: 0x002EAC78 File Offset: 0x002E8E78
|
||||
[Token(Token = "0x600CD3C")]
|
||||
[Address(RVA = "0x2FE05A0", Offset = "0x2FDF5A0", VA = "0x182FE05A0")]
|
||||
public static CompressedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD3C)
|
||||
|
||||
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: 0x1700204A RID: 8266
|
||||
// (get) Token: 0x0600CD3D RID: 52541 RVA: 0x002EACDC File Offset: 0x002E8EDC
|
||||
[Token(Token = "0x1700204A")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD3D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204B RID: 8267
|
||||
// (get) Token: 0x0600CD3E RID: 52542 RVA: 0x002EACF0 File Offset: 0x002E8EF0
|
||||
[Token(Token = "0x1700204B")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CD3E")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204C RID: 8268
|
||||
// (get) Token: 0x0600CD3F RID: 52543 RVA: 0x002EAD04 File Offset: 0x002E8F04
|
||||
[Token(Token = "0x1700204C")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD3F")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.encapContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD40 RID: 52544 RVA: 0x002EAD18 File Offset: 0x002E8F18
|
||||
[Token(Token = "0x600CD40")]
|
||||
[Address(RVA = "0x2FE0870", Offset = "0x2FDF870", VA = "0x182FE0870", 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: 0x04008235 RID: 33333
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008235")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008236 RID: 33334
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008236")]
|
||||
private AlgorithmIdentifier compressionAlgorithm;
|
||||
|
||||
// Token: 0x04008237 RID: 33335
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008237")]
|
||||
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: 0x02002002 RID: 8194
|
||||
[Token(Token = "0x2002002")]
|
||||
public class CompressedDataParser
|
||||
{
|
||||
// Token: 0x0600CD41 RID: 52545 RVA: 0x002EAD74 File Offset: 0x002E8F74
|
||||
[Token(Token = "0x600CD41")]
|
||||
[Address(RVA = "0x2FE0400", Offset = "0x2FDF400", VA = "0x182FE0400")]
|
||||
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: 0x1700204D RID: 8269
|
||||
// (get) Token: 0x0600CD42 RID: 52546 RVA: 0x002EADB4 File Offset: 0x002E8FB4
|
||||
[Token(Token = "0x1700204D")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD42")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204E RID: 8270
|
||||
// (get) Token: 0x0600CD43 RID: 52547 RVA: 0x002EADC8 File Offset: 0x002E8FC8
|
||||
[Token(Token = "0x1700204E")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CD43")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD44 RID: 52548 RVA: 0x002EADDC File Offset: 0x002E8FDC
|
||||
[Token(Token = "0x600CD44")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
return this._encapContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x04008238 RID: 33336
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008238")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04008239 RID: 33337
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008239")]
|
||||
private AlgorithmIdentifier _compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400823A RID: 33338
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400823A")]
|
||||
private ContentInfoParser _encapContentInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002003 RID: 8195
|
||||
[Token(Token = "0x2002003")]
|
||||
public class ContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD45 RID: 52549 RVA: 0x002EADF0 File Offset: 0x002E8FF0
|
||||
[Token(Token = "0x600CD45")]
|
||||
[Address(RVA = "0x2FE0D20", Offset = "0x2FDFD20", VA = "0x182FE0D20")]
|
||||
public static ContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD45)
|
||||
|
||||
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: 0x0600CD46 RID: 52550 RVA: 0x002EAE40 File Offset: 0x002E9040
|
||||
[Token(Token = "0x600CD46")]
|
||||
[Address(RVA = "0x2FE0D00", Offset = "0x2FDFD00", VA = "0x182FE0D00")]
|
||||
public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return ContentInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD47 RID: 52551 RVA: 0x002EAE5C File Offset: 0x002E905C
|
||||
[Token(Token = "0x600CD47")]
|
||||
[Address(RVA = "0x2FE10B0", Offset = "0x2FE00B0", VA = "0x182FE10B0")]
|
||||
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: 0x0600CD48 RID: 52552 RVA: 0x002EAEB8 File Offset: 0x002E90B8
|
||||
[Token(Token = "0x600CD48")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x1700204F RID: 8271
|
||||
// (get) Token: 0x0600CD49 RID: 52553 RVA: 0x002EAEDC File Offset: 0x002E90DC
|
||||
[Token(Token = "0x1700204F")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600CD49")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002050 RID: 8272
|
||||
// (get) Token: 0x0600CD4A RID: 52554 RVA: 0x002EAEF0 File Offset: 0x002E90F0
|
||||
[Token(Token = "0x17002050")]
|
||||
public Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600CD4A")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD4B RID: 52555 RVA: 0x002EAF04 File Offset: 0x002E9104
|
||||
[Token(Token = "0x600CD4B")]
|
||||
[Address(RVA = "0x2FE0F10", Offset = "0x2FDFF10", VA = "0x182FE0F10", 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: 0x0400823B RID: 33339
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400823B")]
|
||||
private readonly DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x0400823C RID: 33340
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400823C")]
|
||||
private readonly Asn1Encodable content;
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002004 RID: 8196
|
||||
[Token(Token = "0x2002004")]
|
||||
public class ContentInfoParser
|
||||
{
|
||||
// Token: 0x0600CD4C RID: 52556 RVA: 0x002EAF7C File Offset: 0x002E917C
|
||||
[Token(Token = "0x600CD4C")]
|
||||
[Address(RVA = "0x2FE0BE0", Offset = "0x2FDFBE0", VA = "0x182FE0BE0")]
|
||||
public ContentInfoParser(Asn1SequenceParser seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this.contentType = seq;
|
||||
if (seq == 0 || seq != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17002051 RID: 8273
|
||||
// (get) Token: 0x0600CD4D RID: 52557 RVA: 0x002EAFB4 File Offset: 0x002E91B4
|
||||
[Token(Token = "0x17002051")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600CD4D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD4E RID: 52558 RVA: 0x002EAFC8 File Offset: 0x002E91C8
|
||||
[Token(Token = "0x600CD4E")]
|
||||
[Address(RVA = "0x2FE0B70", Offset = "0x2FDFB70", VA = "0x182FE0B70")]
|
||||
public IAsn1Convertible GetContent(int tag)
|
||||
{
|
||||
if (this.content != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400823D RID: 33341
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400823D")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x0400823E RID: 33342
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400823E")]
|
||||
private Asn1TaggedObjectParser content;
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc
|
||||
{
|
||||
// Token: 0x02002027 RID: 8231
|
||||
[Token(Token = "0x2002027")]
|
||||
public class MQVuserKeyingMaterial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE61 RID: 52833 RVA: 0x002EEE74 File Offset: 0x002ED074
|
||||
[Token(Token = "0x600CE61")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public MQVuserKeyingMaterial(OriginatorPublicKey ephemeralPublicKey, Asn1OctetString addedukm)
|
||||
{
|
||||
this.ephemeralPublicKey = ephemeralPublicKey;
|
||||
this.addedukm = addedukm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE62 RID: 52834 RVA: 0x002EEE98 File Offset: 0x002ED098
|
||||
[Token(Token = "0x600CE62")]
|
||||
[Address(RVA = "0x2FE79A0", Offset = "0x2FE69A0", VA = "0x182FE79A0")]
|
||||
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: 0x0600CE63 RID: 52835 RVA: 0x002EEEE0 File Offset: 0x002ED0E0
|
||||
[Token(Token = "0x600CE63")]
|
||||
[Address(RVA = "0x2FE77E0", Offset = "0x2FE67E0", VA = "0x182FE77E0")]
|
||||
public static MQVuserKeyingMaterial GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return MQVuserKeyingMaterial.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CE64 RID: 52836 RVA: 0x002EEEFC File Offset: 0x002ED0FC
|
||||
[Token(Token = "0x600CE64")]
|
||||
[Address(RVA = "0x2FE7510", Offset = "0x2FE6510", VA = "0x182FE7510")]
|
||||
public static MQVuserKeyingMaterial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE64)
|
||||
|
||||
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: 0x170020B3 RID: 8371
|
||||
// (get) Token: 0x0600CE65 RID: 52837 RVA: 0x002EEF5C File Offset: 0x002ED15C
|
||||
[Token(Token = "0x170020B3")]
|
||||
public OriginatorPublicKey EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600CE65")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B4 RID: 8372
|
||||
// (get) Token: 0x0600CE66 RID: 52838 RVA: 0x002EEF70 File Offset: 0x002ED170
|
||||
[Token(Token = "0x170020B4")]
|
||||
public Asn1OctetString AddedUkm
|
||||
{
|
||||
[Token(Token = "0x600CE66")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.addedukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE67 RID: 52839 RVA: 0x002EEF84 File Offset: 0x002ED184
|
||||
[Token(Token = "0x600CE67")]
|
||||
[Address(RVA = "0x2FE7800", Offset = "0x2FE6800", VA = "0x182FE7800", 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: 0x040082AA RID: 33450
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082AA")]
|
||||
private OriginatorPublicKey ephemeralPublicKey;
|
||||
|
||||
// Token: 0x040082AB RID: 33451
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082AB")]
|
||||
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: 0x02002005 RID: 8197
|
||||
[Token(Token = "0x2002005")]
|
||||
public class EncryptedContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD4F RID: 52559 RVA: 0x002EAFE0 File Offset: 0x002E91E0
|
||||
[Token(Token = "0x600CD4F")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
public EncryptedContentInfo(DerObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, Asn1OctetString encryptedContent)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.contentEncryptionAlgorithm = contentEncryptionAlgorithm;
|
||||
this.encryptedContent = encryptedContent;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD50 RID: 52560 RVA: 0x002EB008 File Offset: 0x002E9208
|
||||
[Token(Token = "0x600CD50")]
|
||||
[Address(RVA = "0x2FE1B50", Offset = "0x2FE0B50", VA = "0x182FE1B50")]
|
||||
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: 0x0600CD51 RID: 52561 RVA: 0x002EB06C File Offset: 0x002E926C
|
||||
[Token(Token = "0x600CD51")]
|
||||
[Address(RVA = "0x2FE1760", Offset = "0x2FE0760", VA = "0x182FE1760")]
|
||||
public static EncryptedContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD51)
|
||||
|
||||
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: 0x17002052 RID: 8274
|
||||
// (get) Token: 0x0600CD52 RID: 52562 RVA: 0x002EB0BC File Offset: 0x002E92BC
|
||||
[Token(Token = "0x17002052")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600CD52")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002053 RID: 8275
|
||||
// (get) Token: 0x0600CD53 RID: 52563 RVA: 0x002EB0D0 File Offset: 0x002E92D0
|
||||
[Token(Token = "0x17002053")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD53")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002054 RID: 8276
|
||||
// (get) Token: 0x0600CD54 RID: 52564 RVA: 0x002EB0E4 File Offset: 0x002E92E4
|
||||
[Token(Token = "0x17002054")]
|
||||
public Asn1OctetString EncryptedContent
|
||||
{
|
||||
[Token(Token = "0x600CD54")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD55 RID: 52565 RVA: 0x002EB0F8 File Offset: 0x002E92F8
|
||||
[Token(Token = "0x600CD55")]
|
||||
[Address(RVA = "0x2FE1950", Offset = "0x2FE0950", VA = "0x182FE1950", 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: 0x0400823F RID: 33343
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400823F")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04008240 RID: 33344
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008240")]
|
||||
private AlgorithmIdentifier contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008241 RID: 33345
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008241")]
|
||||
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: 0x02002006 RID: 8198
|
||||
[Token(Token = "0x2002006")]
|
||||
public class EncryptedContentInfoParser
|
||||
{
|
||||
// Token: 0x0600CD56 RID: 52566 RVA: 0x002EB18C File Offset: 0x002E938C
|
||||
[Token(Token = "0x600CD56")]
|
||||
[Address(RVA = "0x2FE1610", Offset = "0x2FE0610", VA = "0x182FE1610")]
|
||||
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: 0x17002055 RID: 8277
|
||||
// (get) Token: 0x0600CD57 RID: 52567 RVA: 0x002EB1CC File Offset: 0x002E93CC
|
||||
[Token(Token = "0x17002055")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600CD57")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this._contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002056 RID: 8278
|
||||
// (get) Token: 0x0600CD58 RID: 52568 RVA: 0x002EB1E0 File Offset: 0x002E93E0
|
||||
[Token(Token = "0x17002056")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD58")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD59 RID: 52569 RVA: 0x002EB1F4 File Offset: 0x002E93F4
|
||||
[Token(Token = "0x600CD59")]
|
||||
[Address(RVA = "0x2FE15B0", Offset = "0x2FE05B0", VA = "0x182FE15B0")]
|
||||
public IAsn1Convertible GetEncryptedContent(int tag)
|
||||
{
|
||||
Asn1TaggedObjectParser encryptedContent = this._encryptedContent;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008242 RID: 33346
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008242")]
|
||||
private DerObjectIdentifier _contentType;
|
||||
|
||||
// Token: 0x04008243 RID: 33347
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008243")]
|
||||
private AlgorithmIdentifier _contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008244 RID: 33348
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008244")]
|
||||
private Asn1TaggedObjectParser _encryptedContent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002007 RID: 8199
|
||||
[Token(Token = "0x2002007")]
|
||||
public class EncryptedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD5A RID: 52570 RVA: 0x002EB210 File Offset: 0x002E9410
|
||||
[Token(Token = "0x600CD5A")]
|
||||
[Address(RVA = "0x2FE1CD0", Offset = "0x2FE0CD0", VA = "0x182FE1CD0")]
|
||||
public static EncryptedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD5A)
|
||||
|
||||
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: 0x0600CD5B RID: 52571 RVA: 0x002EB25C File Offset: 0x002E945C
|
||||
[Token(Token = "0x600CD5B")]
|
||||
[Address(RVA = "0x2FE2350", Offset = "0x2FE1350", VA = "0x182FE2350")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD5B)
|
||||
|
||||
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: 0x0600CD5C RID: 52572 RVA: 0x002EB2A0 File Offset: 0x002E94A0
|
||||
[Token(Token = "0x600CD5C")]
|
||||
[Address(RVA = "0x2FE20C0", Offset = "0x2FE10C0", VA = "0x182FE20C0")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD5C)
|
||||
|
||||
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: 0x0600CD5D RID: 52573 RVA: 0x002EB2E0 File Offset: 0x002E94E0
|
||||
[Token(Token = "0x600CD5D")]
|
||||
[Address(RVA = "0x2FE2190", Offset = "0x2FE1190", VA = "0x182FE2190")]
|
||||
private EncryptedData(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD5D)
|
||||
|
||||
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: 0x17002057 RID: 8279
|
||||
// (get) Token: 0x0600CD5E RID: 52574 RVA: 0x002EB338 File Offset: 0x002E9538
|
||||
[Token(Token = "0x17002057")]
|
||||
public virtual DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD5E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002058 RID: 8280
|
||||
// (get) Token: 0x0600CD5F RID: 52575 RVA: 0x002EB34C File Offset: 0x002E954C
|
||||
[Token(Token = "0x17002058")]
|
||||
public virtual EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD5F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002059 RID: 8281
|
||||
// (get) Token: 0x0600CD60 RID: 52576 RVA: 0x002EB360 File Offset: 0x002E9560
|
||||
[Token(Token = "0x17002059")]
|
||||
public virtual Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD60")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD61 RID: 52577 RVA: 0x002EB374 File Offset: 0x002E9574
|
||||
[Token(Token = "0x600CD61")]
|
||||
[Address(RVA = "0x2FE1EC0", Offset = "0x2FE0EC0", VA = "0x182FE1EC0", 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: 0x04008245 RID: 33349
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008245")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x04008246 RID: 33350
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008246")]
|
||||
private readonly EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x04008247 RID: 33351
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008247")]
|
||||
private readonly Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002008 RID: 8200
|
||||
[Token(Token = "0x2002008")]
|
||||
public class EnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD62 RID: 52578 RVA: 0x002EB404 File Offset: 0x002E9604
|
||||
[Token(Token = "0x600CD62")]
|
||||
[Address(RVA = "0x2FE3090", Offset = "0x2FE2090", VA = "0x182FE3090")]
|
||||
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: 0x0600CD63 RID: 52579 RVA: 0x002EB444 File Offset: 0x002E9644
|
||||
[Token(Token = "0x600CD63")]
|
||||
[Address(RVA = "0x2FE33D0", Offset = "0x2FE23D0", VA = "0x182FE33D0")]
|
||||
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: 0x0600CD64 RID: 52580 RVA: 0x002EB488 File Offset: 0x002E9688
|
||||
[Token(Token = "0x600CD64")]
|
||||
[Address(RVA = "0x2FE3150", Offset = "0x2FE2150", VA = "0x182FE3150")]
|
||||
[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: 0x0600CD65 RID: 52581 RVA: 0x002EB528 File Offset: 0x002E9728
|
||||
[Token(Token = "0x600CD65")]
|
||||
[Address(RVA = "0x2FE2B50", Offset = "0x2FE1B50", VA = "0x182FE2B50")]
|
||||
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: 0x0600CD66 RID: 52582 RVA: 0x002EB564 File Offset: 0x002E9764
|
||||
[Token(Token = "0x600CD66")]
|
||||
[Address(RVA = "0x2FE2C50", Offset = "0x2FE1C50", VA = "0x182FE2C50")]
|
||||
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: 0x1700205A RID: 8282
|
||||
// (get) Token: 0x0600CD67 RID: 52583 RVA: 0x002EB598 File Offset: 0x002E9798
|
||||
[Token(Token = "0x1700205A")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD67")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205B RID: 8283
|
||||
// (get) Token: 0x0600CD68 RID: 52584 RVA: 0x002EB5AC File Offset: 0x002E97AC
|
||||
[Token(Token = "0x1700205B")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600CD68")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205C RID: 8284
|
||||
// (get) Token: 0x0600CD69 RID: 52585 RVA: 0x002EB5C0 File Offset: 0x002E97C0
|
||||
[Token(Token = "0x1700205C")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600CD69")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205D RID: 8285
|
||||
// (get) Token: 0x0600CD6A RID: 52586 RVA: 0x002EB5D4 File Offset: 0x002E97D4
|
||||
[Token(Token = "0x1700205D")]
|
||||
public EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD6A")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205E RID: 8286
|
||||
// (get) Token: 0x0600CD6B RID: 52587 RVA: 0x002EB5E8 File Offset: 0x002E97E8
|
||||
[Token(Token = "0x1700205E")]
|
||||
public Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD6B")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD6C RID: 52588 RVA: 0x002EB5FC File Offset: 0x002E97FC
|
||||
[Token(Token = "0x600CD6C")]
|
||||
[Address(RVA = "0x2FE2D50", Offset = "0x2FE1D50", VA = "0x182FE2D50", 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: 0x0600CD6D RID: 52589 RVA: 0x002EB6F8 File Offset: 0x002E98F8
|
||||
[Token(Token = "0x600CD6D")]
|
||||
[Address(RVA = "0x2FE2970", Offset = "0x2FE1970", VA = "0x182FE2970")]
|
||||
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: 0x04008248 RID: 33352
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008248")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008249 RID: 33353
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008249")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400824A RID: 33354
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400824A")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x0400824B RID: 33355
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400824B")]
|
||||
private EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x0400824C RID: 33356
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400824C")]
|
||||
private Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002009 RID: 8201
|
||||
[Token(Token = "0x2002009")]
|
||||
public class EnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600CD6E RID: 52590 RVA: 0x002EB754 File Offset: 0x002E9954
|
||||
[Token(Token = "0x600CD6E")]
|
||||
[Address(RVA = "0x2FE28A0", Offset = "0x2FE18A0", VA = "0x182FE28A0")]
|
||||
public EnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x1700205F RID: 8287
|
||||
// (get) Token: 0x0600CD6F RID: 52591 RVA: 0x002EB784 File Offset: 0x002E9984
|
||||
[Token(Token = "0x1700205F")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD6F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD70 RID: 52592 RVA: 0x002EB798 File Offset: 0x002E9998
|
||||
[Token(Token = "0x600CD70")]
|
||||
[Address(RVA = "0x2FE24E0", Offset = "0x2FE14E0", VA = "0x182FE24E0")]
|
||||
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: 0x0600CD71 RID: 52593 RVA: 0x002EB804 File Offset: 0x002E9A04
|
||||
[Token(Token = "0x600CD71")]
|
||||
[Address(RVA = "0x2FE26E0", Offset = "0x2FE16E0", VA = "0x182FE26E0")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD71)
|
||||
|
||||
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: 0x0600CD72 RID: 52594 RVA: 0x002EB844 File Offset: 0x002E9A44
|
||||
[Token(Token = "0x600CD72")]
|
||||
[Address(RVA = "0x2FE2410", Offset = "0x2FE1410", VA = "0x182FE2410")]
|
||||
public EncryptedContentInfoParser GetEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this._nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
}
|
||||
this._nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD73 RID: 52595 RVA: 0x002EB870 File Offset: 0x002E9A70
|
||||
[Token(Token = "0x600CD73")]
|
||||
[Address(RVA = "0x2FE2780", Offset = "0x2FE1780", VA = "0x182FE2780")]
|
||||
public Asn1SetParser GetUnprotectedAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD73)
|
||||
|
||||
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: 0x0400824D RID: 33357
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400824D")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x0400824E RID: 33358
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400824E")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x0400824F RID: 33359
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400824F")]
|
||||
private IAsn1Convertible _nextObject;
|
||||
|
||||
// Token: 0x04008250 RID: 33360
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008250")]
|
||||
private bool _originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200200A RID: 8202
|
||||
[Token(Token = "0x200200A")]
|
||||
public class Evidence : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CD74 RID: 52596 RVA: 0x002EB898 File Offset: 0x002E9A98
|
||||
[Token(Token = "0x600CD74")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public Evidence(TimeStampTokenEvidence tstEvidence)
|
||||
{
|
||||
this.tstEvidence = tstEvidence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD75 RID: 52597 RVA: 0x002EB8B4 File Offset: 0x002E9AB4
|
||||
[Token(Token = "0x600CD75")]
|
||||
[Address(RVA = "0x2FE3DF0", Offset = "0x2FE2DF0", VA = "0x182FE3DF0")]
|
||||
private Evidence(Asn1TaggedObject tagged)
|
||||
{
|
||||
if (tagged.tagNo == 0)
|
||||
{
|
||||
int num = 0;
|
||||
TimeStampTokenEvidence instance = TimeStampTokenEvidence.GetInstance(tagged, num != 0);
|
||||
this.tstEvidence = instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD76 RID: 52598 RVA: 0x002EB8E8 File Offset: 0x002E9AE8
|
||||
[Token(Token = "0x600CD76")]
|
||||
[Address(RVA = "0x2FE3BB0", Offset = "0x2FE2BB0", VA = "0x182FE3BB0")]
|
||||
public static Evidence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD76)
|
||||
|
||||
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_43:
|
||||
stloc:string(var_8_49, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_61, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_8_49)), 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: 0x17002060 RID: 8288
|
||||
// (get) Token: 0x0600CD77 RID: 52599 RVA: 0x002EB958 File Offset: 0x002E9B58
|
||||
[Token(Token = "0x17002060")]
|
||||
public virtual TimeStampTokenEvidence TstEvidence
|
||||
{
|
||||
[Token(Token = "0x600CD77")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tstEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD78 RID: 52600 RVA: 0x002EB96C File Offset: 0x002E9B6C
|
||||
[Token(Token = "0x600CD78")]
|
||||
[Address(RVA = "0x2FE3D80", Offset = "0x2FE2D80", VA = "0x182FE3D80", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD78)
|
||||
|
||||
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: 0x04008251 RID: 33361
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008251")]
|
||||
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: 0x0200200B RID: 8203
|
||||
[Token(Token = "0x200200B")]
|
||||
public class IssuerAndSerialNumber : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD79 RID: 52601 RVA: 0x002EB998 File Offset: 0x002E9B98
|
||||
[Token(Token = "0x600CD79")]
|
||||
[Address(RVA = "0x2FE49F0", Offset = "0x2FE39F0", VA = "0x182FE49F0")]
|
||||
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: 0x0600CD7A RID: 52602 RVA: 0x002EB9E8 File Offset: 0x002E9BE8
|
||||
[Token(Token = "0x600CD7A")]
|
||||
[Address(RVA = "0x2FE4D20", Offset = "0x2FE3D20", VA = "0x182FE4D20")]
|
||||
[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: 0x0600CD7B RID: 52603 RVA: 0x002EBA30 File Offset: 0x002E9C30
|
||||
[Token(Token = "0x600CD7B")]
|
||||
[Address(RVA = "0x2FE4CA0", Offset = "0x2FE3CA0", VA = "0x182FE4CA0")]
|
||||
public IssuerAndSerialNumber(X509Name name, BigInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.serialNumber = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD7C RID: 52604 RVA: 0x002EBA58 File Offset: 0x002E9C58
|
||||
[Token(Token = "0x600CD7C")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public IssuerAndSerialNumber(X509Name name, DerInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x17002061 RID: 8289
|
||||
// (get) Token: 0x0600CD7D RID: 52605 RVA: 0x002EBA7C File Offset: 0x002E9C7C
|
||||
[Token(Token = "0x17002061")]
|
||||
public X509Name Name
|
||||
{
|
||||
[Token(Token = "0x600CD7D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002062 RID: 8290
|
||||
// (get) Token: 0x0600CD7E RID: 52606 RVA: 0x002EBA90 File Offset: 0x002E9C90
|
||||
[Token(Token = "0x17002062")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600CD7E")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD7F RID: 52607 RVA: 0x002EBAA4 File Offset: 0x002E9CA4
|
||||
[Token(Token = "0x600CD7F")]
|
||||
[Address(RVA = "0x2FE4B90", Offset = "0x2FE3B90", VA = "0x182FE4B90", 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: 0x04008252 RID: 33362
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008252")]
|
||||
private X509Name name;
|
||||
|
||||
// Token: 0x04008253 RID: 33363
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008253")]
|
||||
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