scripts
This commit is contained in:
+197
@@ -0,0 +1,197 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x02001994 RID: 6548
|
||||
[Token(Token = "0x2001994")]
|
||||
[StructLayout(3)]
|
||||
public class AnssiNamedCurves
|
||||
{
|
||||
// Token: 0x0600AFCE RID: 45006 RVA: 0x0029263C File Offset: 0x0029083C
|
||||
[Token(Token = "0x600AFCE")]
|
||||
[Address(RVA = "0x518E70", Offset = "0x517870", VA = "0x180518E70")]
|
||||
private static ECCurve ConfigureCurve(ECCurve curve)
|
||||
{
|
||||
return curve;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFCF RID: 45007 RVA: 0x0029264C File Offset: 0x0029084C
|
||||
[Token(Token = "0x600AFCF")]
|
||||
[Address(RVA = "0x2673FB0", Offset = "0x26729B0", VA = "0x182673FB0")]
|
||||
private static BigInteger FromHex(string hex)
|
||||
{
|
||||
byte[] array = Hex.Decode(hex);
|
||||
return new BigInteger(1, array);
|
||||
}
|
||||
|
||||
// Token: 0x0600AFD0 RID: 45008 RVA: 0x00292668 File Offset: 0x00290868
|
||||
[Token(Token = "0x600AFD0")]
|
||||
[Address(RVA = "0x2673E70", Offset = "0x2672870", VA = "0x182673E70")]
|
||||
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: 0x0600AFD1 RID: 45009 RVA: 0x00292694 File Offset: 0x00290894
|
||||
[Token(Token = "0x600AFD1")]
|
||||
[Address(RVA = "0x2674500", Offset = "0x2672F00", VA = "0x182674500")]
|
||||
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: 0x0600AFD2 RID: 45010 RVA: 0x002926F4 File Offset: 0x002908F4
|
||||
[Token(Token = "0x600AFD2")]
|
||||
[Address(RVA = "0x2674040", Offset = "0x2672A40", VA = "0x182674040")]
|
||||
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: 0x0600AFD3 RID: 45011 RVA: 0x00292734 File Offset: 0x00290934
|
||||
[Token(Token = "0x600AFD3")]
|
||||
[Address(RVA = "0x2674280", Offset = "0x2672C80", VA = "0x182674280")]
|
||||
public static X9ECParameters GetByOid(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.curves;
|
||||
IDictionary dictionary2 = AnssiNamedCurves.objIds;
|
||||
X9ECParameters x9ECParameters;
|
||||
return x9ECParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFD4 RID: 45012 RVA: 0x0029275C File Offset: 0x0029095C
|
||||
[Token(Token = "0x600AFD4")]
|
||||
[Address(RVA = "0x2674400", Offset = "0x2672E00", VA = "0x182674400")]
|
||||
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: 0x0600AFD5 RID: 45013 RVA: 0x00292788 File Offset: 0x00290988
|
||||
[Token(Token = "0x600AFD5")]
|
||||
[Address(RVA = "0x2674360", Offset = "0x2672D60", VA = "0x182674360")]
|
||||
public static string GetName(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001C59 RID: 7257
|
||||
// (get) Token: 0x0600AFD6 RID: 45014 RVA: 0x002927A0 File Offset: 0x002909A0
|
||||
[Token(Token = "0x17001C59")]
|
||||
public static IEnumerable Names
|
||||
{
|
||||
[Token(Token = "0x600AFD6")]
|
||||
[Address(RVA = "0x2674720", Offset = "0x2673120", VA = "0x182674720")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = AnssiNamedCurves.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFD7 RID: 45015 RVA: 0x002927B8 File Offset: 0x002909B8
|
||||
[Token(Token = "0x600AFD7")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public AnssiNamedCurves()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040073AF RID: 29615
|
||||
[Token(Token = "0x40073AF")]
|
||||
private static readonly IDictionary objIds;
|
||||
|
||||
// Token: 0x040073B0 RID: 29616
|
||||
[Token(Token = "0x40073B0")]
|
||||
private static readonly IDictionary curves;
|
||||
|
||||
// Token: 0x040073B1 RID: 29617
|
||||
[Token(Token = "0x40073B1")]
|
||||
private static readonly IDictionary names;
|
||||
|
||||
// Token: 0x02001995 RID: 6549
|
||||
[Token(Token = "0x2001995")]
|
||||
internal class Frp256v1Holder : X9ECParametersHolder
|
||||
{
|
||||
// Token: 0x0600AFD8 RID: 45016 RVA: 0x002927CC File Offset: 0x002909CC
|
||||
[Token(Token = "0x600AFD8")]
|
||||
[Address(RVA = "0x3D4170", Offset = "0x3D2B70", VA = "0x1803D4170")]
|
||||
private Frp256v1Holder()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600AFD9 RID: 45017 RVA: 0x002927E0 File Offset: 0x002909E0
|
||||
[Token(Token = "0x600AFD9")]
|
||||
[Address(RVA = "0x26850C0", Offset = "0x2683AC0", VA = "0x1826850C0", 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: 0x0600AFDA RID: 45018 RVA: 0x00292848 File Offset: 0x00290A48
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600AFDA")]
|
||||
[Address(RVA = "0x2685260", Offset = "0x2683C60", VA = "0x182685260")]
|
||||
static Frp256v1Holder()
|
||||
{
|
||||
AnssiNamedCurves.Frp256v1Holder frp256v1Holder = new AnssiNamedCurves.Frp256v1Holder();
|
||||
}
|
||||
|
||||
// Token: 0x040073B2 RID: 29618
|
||||
[Token(Token = "0x40073B2")]
|
||||
internal static readonly X9ECParametersHolder Instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Anssi
|
||||
{
|
||||
// Token: 0x02001996 RID: 6550
|
||||
[Token(Token = "0x2001996")]
|
||||
[StructLayout(3)]
|
||||
public sealed class AnssiObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600AFDB RID: 45019 RVA: 0x0029285C File Offset: 0x00290A5C
|
||||
[Token(Token = "0x600AFDB")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private AnssiObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600AFDC RID: 45020 RVA: 0x00292870 File Offset: 0x00290A70
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600AFDC")]
|
||||
[Address(RVA = "0x26747D0", Offset = "0x26731D0", VA = "0x1826747D0")]
|
||||
static AnssiObjectIdentifiers()
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier("1.2.250.1.223.101.256.1");
|
||||
}
|
||||
|
||||
// Token: 0x040073B3 RID: 29619
|
||||
[Token(Token = "0x40073B3")]
|
||||
public static readonly DerObjectIdentifier FRP256v1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001798 RID: 6040
|
||||
[Token(Token = "0x2001798")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1Encodable : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A30B RID: 41739 RVA: 0x0025FB3C File Offset: 0x0025DD3C
|
||||
[Token(Token = "0x600A30B")]
|
||||
[Address(RVA = "0x2675140", Offset = "0x2673B40", VA = "0x182675140")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
new Asn1OutputStream(memoryStream).WriteObject(this);
|
||||
((IDisposable)memoryStream).Dispose();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A30C RID: 41740 RVA: 0x0025FB68 File Offset: 0x0025DD68
|
||||
[Token(Token = "0x600A30C")]
|
||||
[Address(RVA = "0x2675030", Offset = "0x2673A30", VA = "0x182675030")]
|
||||
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: 0x0600A30D RID: 41741 RVA: 0x0025FBA8 File Offset: 0x0025DDA8
|
||||
[Token(Token = "0x600A30D")]
|
||||
[Address(RVA = "0x2674FD0", Offset = "0x26739D0", VA = "0x182674FD0")]
|
||||
public byte[] GetDerEncoded()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A30D)
|
||||
|
||||
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: 0x0600A30E RID: 41742 RVA: 0x0025FBC4 File Offset: 0x0025DDC4
|
||||
[Token(Token = "0x600A30E")]
|
||||
[Address(RVA = "0x26751F0", Offset = "0x2673BF0", VA = "0x1826751F0", Slot = "2")]
|
||||
public sealed override int GetHashCode()
|
||||
{
|
||||
return this.ToAsn1Object().Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600A30F RID: 41743 RVA: 0x0025FBE4 File Offset: 0x0025DDE4
|
||||
[Token(Token = "0x600A30F")]
|
||||
[Address(RVA = "0x2674EF0", Offset = "0x26738F0", VA = "0x182674EF0", 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: 0x0600A310 RID: 41744
|
||||
[Token(Token = "0x600A310")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract Asn1Object ToAsn1Object();
|
||||
|
||||
// Token: 0x0600A311 RID: 41745 RVA: 0x0025FC10 File Offset: 0x0025DE10
|
||||
[Token(Token = "0x600A311")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected Asn1Encodable()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04006B14 RID: 27412
|
||||
[Token(Token = "0x4006B14")]
|
||||
public const string Der = "DER";
|
||||
|
||||
// Token: 0x04006B15 RID: 27413
|
||||
[Token(Token = "0x4006B15")]
|
||||
public const string Ber = "BER";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001799 RID: 6041
|
||||
[Token(Token = "0x2001799")]
|
||||
[StructLayout(3)]
|
||||
public class Asn1EncodableVector : IEnumerable
|
||||
{
|
||||
// Token: 0x0600A312 RID: 41746 RVA: 0x0025FC24 File Offset: 0x0025DE24
|
||||
[Token(Token = "0x600A312")]
|
||||
[Address(RVA = "0x2674A00", Offset = "0x2673400", VA = "0x182674A00")]
|
||||
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_6F;
|
||||
}
|
||||
array = new Asn1Encodable[1];
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array[0] = num;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (array != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return asn1EncodableVector;
|
||||
IL_6F:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A313 RID: 41747 RVA: 0x0025FCA8 File Offset: 0x0025DEA8
|
||||
[Token(Token = "0x600A313")]
|
||||
[Address(RVA = "0x2674D20", Offset = "0x2673720", VA = "0x182674D20")]
|
||||
public Asn1EncodableVector(params Asn1Encodable[] v)
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.v = list;
|
||||
base..ctor();
|
||||
this.Add(v);
|
||||
}
|
||||
|
||||
// Token: 0x0600A314 RID: 41748 RVA: 0x0025FCD4 File Offset: 0x0025DED4
|
||||
[Token(Token = "0x600A314")]
|
||||
[Address(RVA = "0x26748D0", Offset = "0x26732D0", VA = "0x1826748D0")]
|
||||
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: 0x0600A315 RID: 41749 RVA: 0x0025FD20 File Offset: 0x0025DF20
|
||||
[Token(Token = "0x600A315")]
|
||||
[Address(RVA = "0x2674830", Offset = "0x2673230", VA = "0x182674830")]
|
||||
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: 0x17001995 RID: 6549
|
||||
[Token(Token = "0x17001995")]
|
||||
public Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600A316")]
|
||||
[Address(RVA = "0x2674DF0", Offset = "0x26737F0", VA = "0x182674DF0")]
|
||||
get
|
||||
{
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
list = this.v;
|
||||
}
|
||||
while (list == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A317 RID: 41751 RVA: 0x0025FD80 File Offset: 0x0025DF80
|
||||
[Token(Token = "0x600A317")]
|
||||
[Address(RVA = "0x2674D10", Offset = "0x2673710", VA = "0x182674D10")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable Get(int index)
|
||||
{
|
||||
return this[index];
|
||||
}
|
||||
|
||||
// Token: 0x17001996 RID: 6550
|
||||
// (get) Token: 0x0600A318 RID: 41752 RVA: 0x0025FD94 File Offset: 0x0025DF94
|
||||
[Token(Token = "0x17001996")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600A318")]
|
||||
[Address(RVA = "0x2674EA0", Offset = "0x26738A0", VA = "0x182674EA0")]
|
||||
get
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001997 RID: 6551
|
||||
// (get) Token: 0x0600A319 RID: 41753 RVA: 0x0025FDB0 File Offset: 0x0025DFB0
|
||||
[Token(Token = "0x17001997")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600A319")]
|
||||
[Address(RVA = "0x2674DA0", Offset = "0x26737A0", VA = "0x182674DA0")]
|
||||
get
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A31A RID: 41754 RVA: 0x0025FDCC File Offset: 0x0025DFCC
|
||||
[Token(Token = "0x600A31A")]
|
||||
[Address(RVA = "0x2674CC0", Offset = "0x26736C0", VA = "0x182674CC0", Slot = "4")]
|
||||
public IEnumerator GetEnumerator()
|
||||
{
|
||||
IList list = this.v;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006B16 RID: 27414
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B16")]
|
||||
private IList v;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x0200179A RID: 6042
|
||||
[Token(Token = "0x200179A")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class Asn1Exception : IOException
|
||||
{
|
||||
// Token: 0x0600A31B RID: 41755 RVA: 0x0025FDE8 File Offset: 0x0025DFE8
|
||||
[Token(Token = "0x600A31B")]
|
||||
[Address(RVA = "0x1C85220", Offset = "0x1C83C20", VA = "0x181C85220")]
|
||||
public Asn1Exception()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A31C RID: 41756 RVA: 0x0025FDFC File Offset: 0x0025DFFC
|
||||
[Token(Token = "0x600A31C")]
|
||||
[Address(RVA = "0x47A3A0", Offset = "0x478DA0", VA = "0x18047A3A0")]
|
||||
public Asn1Exception(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A31D RID: 41757 RVA: 0x0025FE10 File Offset: 0x0025E010
|
||||
[Token(Token = "0x600A31D")]
|
||||
[Address(RVA = "0x47A3B0", Offset = "0x478DB0", VA = "0x18047A3B0")]
|
||||
public Asn1Exception(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001792 RID: 6034
|
||||
[Token(Token = "0x2001792")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1Generator
|
||||
{
|
||||
// Token: 0x0600A2F8 RID: 41720 RVA: 0x0025F710 File Offset: 0x0025D910
|
||||
[Token(Token = "0x600A2F8")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
protected Asn1Generator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
}
|
||||
|
||||
// Token: 0x17001993 RID: 6547
|
||||
// (get) Token: 0x0600A2F9 RID: 41721 RVA: 0x0025F72C File Offset: 0x0025D92C
|
||||
[Token(Token = "0x17001993")]
|
||||
protected Stream Out
|
||||
{
|
||||
[Token(Token = "0x600A2F9")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this._out;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A2FA RID: 41722
|
||||
[Token(Token = "0x600A2FA")]
|
||||
[Address(Slot = "4")]
|
||||
public abstract void AddObject(Asn1Encodable obj);
|
||||
|
||||
// Token: 0x0600A2FB RID: 41723
|
||||
[Token(Token = "0x600A2FB")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract Stream GetRawOutputStream();
|
||||
|
||||
// Token: 0x0600A2FC RID: 41724
|
||||
[Token(Token = "0x600A2FC")]
|
||||
[Address(Slot = "6")]
|
||||
public abstract void Close();
|
||||
|
||||
// Token: 0x04006B10 RID: 27408
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B10")]
|
||||
private Stream _out;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,301 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x0200179B RID: 6043
|
||||
[Token(Token = "0x200179B")]
|
||||
[StructLayout(3)]
|
||||
public class Asn1InputStream : FilterStream
|
||||
{
|
||||
// Token: 0x0600A31E RID: 41758 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600A31E")]
|
||||
[Address(RVA = "0x2675D80", Offset = "0x2674780", VA = "0x182675D80")]
|
||||
internal static int FindLimit(Stream input)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600A31F RID: 41759 RVA: 0x0025FE28 File Offset: 0x0025E028
|
||||
[Token(Token = "0x600A31F")]
|
||||
[Address(RVA = "0x26768D0", Offset = "0x26752D0", VA = "0x1826768D0")]
|
||||
public Asn1InputStream(Stream inputStream)
|
||||
{
|
||||
int num = Asn1InputStream.FindLimit(inputStream);
|
||||
base..ctor(inputStream);
|
||||
this.limit = num;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600A320 RID: 41760 RVA: 0x0025FE5C File Offset: 0x0025E05C
|
||||
[Token(Token = "0x600A320")]
|
||||
[Address(RVA = "0x2676860", Offset = "0x2675260", VA = "0x182676860")]
|
||||
public Asn1InputStream(Stream inputStream, int limit)
|
||||
: base(inputStream)
|
||||
{
|
||||
this.limit = limit;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600A321 RID: 41761 RVA: 0x0025FE88 File Offset: 0x0025E088
|
||||
[Token(Token = "0x600A321")]
|
||||
[Address(RVA = "0x2676950", Offset = "0x2675350", VA = "0x182676950")]
|
||||
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: 0x0600A322 RID: 41762 RVA: 0x0025FECC File Offset: 0x0025E0CC
|
||||
[Token(Token = "0x600A322")]
|
||||
[Address(RVA = "0x2675490", Offset = "0x2673E90", VA = "0x182675490")]
|
||||
private Asn1Object BuildObject(int tag, int tagNo, int length)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A322)
|
||||
|
||||
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: 0x0600A323 RID: 41763 RVA: 0x0025FF64 File Offset: 0x0025E164
|
||||
[Token(Token = "0x600A323")]
|
||||
[Address(RVA = "0x2675380", Offset = "0x2673D80", VA = "0x182675380")]
|
||||
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: 0x0600A324 RID: 41764 RVA: 0x0025FFA8 File Offset: 0x0025E1A8
|
||||
[Token(Token = "0x600A324")]
|
||||
[Address(RVA = "0x2675230", Offset = "0x2673C30", VA = "0x182675230", 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: 0x0600A325 RID: 41765 RVA: 0x0025FFF4 File Offset: 0x0025E1F4
|
||||
[Token(Token = "0x600A325")]
|
||||
[Address(RVA = "0x2675700", Offset = "0x2674100", VA = "0x182675700", Slot = "32")]
|
||||
internal virtual DerSequence CreateDerSequence(DefiniteLengthInputStream dIn)
|
||||
{
|
||||
DerSequence derSequence;
|
||||
return derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600A326 RID: 41766 RVA: 0x00260004 File Offset: 0x0025E204
|
||||
[Token(Token = "0x600A326")]
|
||||
[Address(RVA = "0x2675780", Offset = "0x2674180", VA = "0x182675780", Slot = "33")]
|
||||
internal virtual DerSet CreateDerSet(DefiniteLengthInputStream dIn)
|
||||
{
|
||||
DerSet derSet;
|
||||
return derSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600A327 RID: 41767 RVA: 0x00260014 File Offset: 0x0025E214
|
||||
[Token(Token = "0x600A327")]
|
||||
[Address(RVA = "0x2676280", Offset = "0x2674C80", VA = "0x182676280")]
|
||||
public Asn1Object ReadObject()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A327)
|
||||
|
||||
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: 0x0600A328 RID: 41768 RVA: 0x00260144 File Offset: 0x0025E344
|
||||
[Token(Token = "0x600A328")]
|
||||
[Address(RVA = "0x2676760", Offset = "0x2675160", VA = "0x182676760")]
|
||||
internal static int ReadTagNumber(Stream s, int tag)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A328)
|
||||
|
||||
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: 0x0600A329 RID: 41769 RVA: 0x00260170 File Offset: 0x0025E370
|
||||
[Token(Token = "0x600A329")]
|
||||
[Address(RVA = "0x2676070", Offset = "0x2674A70", VA = "0x182676070")]
|
||||
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: 0x0600A32A RID: 41770 RVA: 0x002601A8 File Offset: 0x0025E3A8
|
||||
[Token(Token = "0x600A32A")]
|
||||
[Address(RVA = "0x2675F50", Offset = "0x2674950", VA = "0x182675F50")]
|
||||
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: 0x0600A32B RID: 41771 RVA: 0x002601E8 File Offset: 0x0025E3E8
|
||||
[Token(Token = "0x600A32B")]
|
||||
[Address(RVA = "0x2675800", Offset = "0x2674200", VA = "0x182675800")]
|
||||
internal static Asn1Object CreatePrimitiveDerObject(int tagNo, DefiniteLengthInputStream defIn, byte[][] tmpBuffers)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A32B)
|
||||
|
||||
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: 0x04006B17 RID: 27415
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006B17")]
|
||||
private readonly int limit;
|
||||
|
||||
// Token: 0x04006B18 RID: 27416
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006B18")]
|
||||
private readonly byte[][] tmpBuffers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x0200179C RID: 6044
|
||||
[Token(Token = "0x200179C")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1Null : Asn1Object
|
||||
{
|
||||
// Token: 0x0600A32C RID: 41772 RVA: 0x002602E8 File Offset: 0x0025E4E8
|
||||
[Token(Token = "0x600A32C")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
internal Asn1Null()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A32D RID: 41773 RVA: 0x002602FC File Offset: 0x0025E4FC
|
||||
[Token(Token = "0x600A32D")]
|
||||
[Address(RVA = "0x2676A00", Offset = "0x2675400", VA = "0x182676A00", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return "NULL";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x0200179D RID: 6045
|
||||
[Token(Token = "0x200179D")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1Object : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A32E RID: 41774 RVA: 0x00260310 File Offset: 0x0025E510
|
||||
[Token(Token = "0x600A32E")]
|
||||
[Address(RVA = "0x2676A30", Offset = "0x2675430", VA = "0x182676A30")]
|
||||
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: 0x0600A32F RID: 41775 RVA: 0x00260394 File Offset: 0x0025E594
|
||||
[Token(Token = "0x600A32F")]
|
||||
[Address(RVA = "0x2676BC0", Offset = "0x26755C0", VA = "0x182676BC0")]
|
||||
public static Asn1Object FromStream(Stream inStr)
|
||||
{
|
||||
return new Asn1InputStream(inStr).ReadObject();
|
||||
}
|
||||
|
||||
// Token: 0x0600A330 RID: 41776 RVA: 0x002603C0 File Offset: 0x0025E5C0
|
||||
[Token(Token = "0x600A330")]
|
||||
[Address(RVA = "0x518E70", Offset = "0x517870", VA = "0x180518E70", Slot = "5")]
|
||||
public sealed override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600A331 RID: 41777
|
||||
[Token(Token = "0x600A331")]
|
||||
[Address(Slot = "6")]
|
||||
internal abstract void Encode(DerOutputStream derOut);
|
||||
|
||||
// Token: 0x0600A332 RID: 41778
|
||||
[Token(Token = "0x600A332")]
|
||||
[Address(Slot = "7")]
|
||||
protected abstract bool Asn1Equals(Asn1Object asn1Object);
|
||||
|
||||
// Token: 0x0600A333 RID: 41779
|
||||
[Token(Token = "0x600A333")]
|
||||
[Address(Slot = "8")]
|
||||
protected abstract int Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0600A334 RID: 41780 RVA: 0x002603D0 File Offset: 0x0025E5D0
|
||||
[Token(Token = "0x600A334")]
|
||||
[Address(RVA = "0x199F810", Offset = "0x199E210", VA = "0x18199F810")]
|
||||
internal bool CallAsn1Equals(Asn1Object obj)
|
||||
{
|
||||
return this.Asn1Equals(obj);
|
||||
}
|
||||
|
||||
// Token: 0x0600A335 RID: 41781 RVA: 0x002603E4 File Offset: 0x0025E5E4
|
||||
[Token(Token = "0x600A335")]
|
||||
[Address(RVA = "0x1170520", Offset = "0x116EF20", VA = "0x181170520")]
|
||||
internal int CallAsn1GetHashCode()
|
||||
{
|
||||
return this.Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600A336 RID: 41782 RVA: 0x002603F8 File Offset: 0x0025E5F8
|
||||
[Token(Token = "0x600A336")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected Asn1Object()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x0200179E RID: 6046
|
||||
[Token(Token = "0x200179E")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1OctetString : Asn1Object, Asn1OctetStringParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A337 RID: 41783 RVA: 0x0026040C File Offset: 0x0025E60C
|
||||
[Token(Token = "0x600A337")]
|
||||
[Address(RVA = "0x2676FD0", Offset = "0x26759D0", VA = "0x182676FD0")]
|
||||
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: 0x0600A338 RID: 41784 RVA: 0x00260454 File Offset: 0x0025E654
|
||||
[Token(Token = "0x600A338")]
|
||||
[Address(RVA = "0x2676DE0", Offset = "0x26757E0", VA = "0x182676DE0")]
|
||||
public static Asn1OctetString GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A338)
|
||||
|
||||
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: 0x0600A339 RID: 41785 RVA: 0x00260498 File Offset: 0x0025E698
|
||||
[Token(Token = "0x600A339")]
|
||||
[Address(RVA = "0x2677180", Offset = "0x2675B80", VA = "0x182677180")]
|
||||
internal Asn1OctetString(byte[] str)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A339)
|
||||
|
||||
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: 0x0600A33A RID: 41786 RVA: 0x002604C4 File Offset: 0x0025E6C4
|
||||
[Token(Token = "0x600A33A")]
|
||||
[Address(RVA = "0x2677200", Offset = "0x2675C00", VA = "0x182677200")]
|
||||
internal Asn1OctetString(Asn1Encodable obj)
|
||||
{
|
||||
byte[] encoded = obj.GetEncoded("DER");
|
||||
this.str = encoded;
|
||||
}
|
||||
|
||||
// Token: 0x0600A33B RID: 41787 RVA: 0x00260500 File Offset: 0x0025E700
|
||||
[Token(Token = "0x600A33B")]
|
||||
[Address(RVA = "0x26770B0", Offset = "0x2675AB0", VA = "0x1826770B0", Slot = "9")]
|
||||
public Stream GetOctetStream()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A33B)
|
||||
|
||||
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: 0x17001998 RID: 6552
|
||||
// (get) Token: 0x0600A33C RID: 41788 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17001998")]
|
||||
public Asn1OctetStringParser Parser
|
||||
{
|
||||
[Token(Token = "0x600A33C")]
|
||||
[Address(RVA = "0x518E70", Offset = "0x517870", VA = "0x180518E70")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A33D RID: 41789 RVA: 0x0026051C File Offset: 0x0025E71C
|
||||
[Token(Token = "0x600A33D")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "10")]
|
||||
public virtual byte[] GetOctets()
|
||||
{
|
||||
return this.str;
|
||||
}
|
||||
|
||||
// Token: 0x0600A33E RID: 41790 RVA: 0x00260530 File Offset: 0x0025E730
|
||||
[Token(Token = "0x600A33E")]
|
||||
[Address(RVA = "0x2676D70", Offset = "0x2675770", VA = "0x182676D70", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
Stream octetStream = this.GetOctetStream();
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600A33F RID: 41791 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600A33F")]
|
||||
[Address(RVA = "0x2676C80", Offset = "0x2675680", VA = "0x182676C80", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600A340 RID: 41792 RVA: 0x00260548 File Offset: 0x0025E748
|
||||
[Token(Token = "0x600A340")]
|
||||
[Address(RVA = "0x2677110", Offset = "0x2675B10", VA = "0x182677110", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string text = Hex.ToHexString(this.str);
|
||||
return "#" + text;
|
||||
}
|
||||
|
||||
// Token: 0x04006B19 RID: 27417
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B19")]
|
||||
internal byte[] str;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001793 RID: 6035
|
||||
[Token(Token = "0x2001793")]
|
||||
[StructLayout(3)]
|
||||
public interface Asn1OctetStringParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A2FD RID: 41725
|
||||
[Token(Token = "0x600A2FD")]
|
||||
[Address(Slot = "0")]
|
||||
Stream GetOctetStream();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x0200179F RID: 6047
|
||||
[Token(Token = "0x200179F")]
|
||||
[StructLayout(3)]
|
||||
public class Asn1OutputStream : DerOutputStream
|
||||
{
|
||||
// Token: 0x0600A341 RID: 41793 RVA: 0x0026056C File Offset: 0x0025E76C
|
||||
[Token(Token = "0x600A341")]
|
||||
[Address(RVA = "0x2677500", Offset = "0x2675F00", VA = "0x182677500")]
|
||||
public Asn1OutputStream(Stream os)
|
||||
: base(os)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A342 RID: 41794 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600A342")]
|
||||
[Address(RVA = "0x26772E0", Offset = "0x2675CE0", VA = "0x1826772E0", Slot = "31")]
|
||||
[Obsolete]
|
||||
public override void WriteObject(object obj)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017A0 RID: 6048
|
||||
[Token(Token = "0x20017A0")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class Asn1ParsingException : InvalidOperationException
|
||||
{
|
||||
// Token: 0x0600A343 RID: 41795 RVA: 0x00260580 File Offset: 0x0025E780
|
||||
[Token(Token = "0x600A343")]
|
||||
[Address(RVA = "0x68F0B0", Offset = "0x68DAB0", VA = "0x18068F0B0")]
|
||||
public Asn1ParsingException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A344 RID: 41796 RVA: 0x00260594 File Offset: 0x0025E794
|
||||
[Token(Token = "0x600A344")]
|
||||
[Address(RVA = "0x68F0A0", Offset = "0x68DAA0", VA = "0x18068F0A0")]
|
||||
public Asn1ParsingException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A345 RID: 41797 RVA: 0x002605A8 File Offset: 0x0025E7A8
|
||||
[Token(Token = "0x600A345")]
|
||||
[Address(RVA = "0x1CA2C00", Offset = "0x1CA1600", VA = "0x181CA2C00")]
|
||||
public Asn1ParsingException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,374 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017A1 RID: 6049
|
||||
[Token(Token = "0x20017A1")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1Sequence : Asn1Object, IEnumerable
|
||||
{
|
||||
// Token: 0x0600A346 RID: 41798 RVA: 0x002605C0 File Offset: 0x0025E7C0
|
||||
[Token(Token = "0x600A346")]
|
||||
[Address(RVA = "0x2677F10", Offset = "0x2676910", VA = "0x182677F10")]
|
||||
public static Asn1Sequence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A346)
|
||||
|
||||
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: 0x0600A347 RID: 41799 RVA: 0x00260624 File Offset: 0x0025E824
|
||||
[Token(Token = "0x600A347")]
|
||||
[Address(RVA = "0x2677C40", Offset = "0x2676640", VA = "0x182677C40")]
|
||||
public static Asn1Sequence GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A347)
|
||||
|
||||
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: 0x0600A348 RID: 41800 RVA: 0x002606AC File Offset: 0x0025E8AC
|
||||
[Token(Token = "0x600A348")]
|
||||
[Address(RVA = "0x2678240", Offset = "0x2676C40", VA = "0x182678240")]
|
||||
protected internal Asn1Sequence(int capacity)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(capacity);
|
||||
this.seq = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600A349 RID: 41801 RVA: 0x002606D0 File Offset: 0x0025E8D0
|
||||
[Token(Token = "0x600A349")]
|
||||
[Address(RVA = "0x2677BF0", Offset = "0x26765F0", VA = "0x182677BF0", Slot = "10")]
|
||||
public virtual IEnumerator GetEnumerator()
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A34A RID: 41802 RVA: 0x002606EC File Offset: 0x0025E8EC
|
||||
[Token(Token = "0x600A34A")]
|
||||
[Address(RVA = "0x5D3C80", Offset = "0x5D2680", VA = "0x1805D3C80")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return ((IEnumerable)this).GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x17001999 RID: 6553
|
||||
// (get) Token: 0x0600A34B RID: 41803 RVA: 0x00260700 File Offset: 0x0025E900
|
||||
[Token(Token = "0x17001999")]
|
||||
public virtual Asn1SequenceParser Parser
|
||||
{
|
||||
[Token(Token = "0x600A34B")]
|
||||
[Address(RVA = "0x26783B0", Offset = "0x2676DB0", VA = "0x1826783B0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
Asn1Sequence.Asn1SequenceParserImpl asn1SequenceParserImpl;
|
||||
asn1SequenceParserImpl.outer = this;
|
||||
Asn1Encodable asn1Encodable;
|
||||
asn1SequenceParserImpl.max = asn1Encodable;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700199A RID: 6554
|
||||
[Token(Token = "0x1700199A")]
|
||||
public virtual Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600A34C")]
|
||||
[Address(RVA = "0x2678300", Offset = "0x2676D00", VA = "0x182678300", Slot = "12")]
|
||||
get
|
||||
{
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
list = this.seq;
|
||||
}
|
||||
while (list == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A34D RID: 41805 RVA: 0x00260744 File Offset: 0x0025E944
|
||||
[Token(Token = "0x600A34D")]
|
||||
[Address(RVA = "0x1F59C10", Offset = "0x1F58610", VA = "0x181F59C10")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetObjectAt(int index)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A34D)
|
||||
|
||||
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: 0x1700199B RID: 6555
|
||||
// (get) Token: 0x0600A34E RID: 41806 RVA: 0x00260758 File Offset: 0x0025E958
|
||||
[Token(Token = "0x1700199B")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600A34E")]
|
||||
[Address(RVA = "0x9E3620", Offset = "0x9E2020", VA = "0x1809E3620")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A34E)
|
||||
|
||||
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: 0x1700199C RID: 6556
|
||||
// (get) Token: 0x0600A34F RID: 41807 RVA: 0x0026076C File Offset: 0x0025E96C
|
||||
[Token(Token = "0x1700199C")]
|
||||
public virtual int Count
|
||||
{
|
||||
[Token(Token = "0x600A34F")]
|
||||
[Address(RVA = "0x26782B0", Offset = "0x2676CB0", VA = "0x1826782B0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A350 RID: 41808 RVA: 0x00260788 File Offset: 0x0025E988
|
||||
[Token(Token = "0x600A350")]
|
||||
[Address(RVA = "0x2677960", Offset = "0x2676360", VA = "0x182677960", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IEnumerator enumerator = this.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
long num2 = asn1Encodable * (uint)17;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
DerNull.Instance.Finalize();
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A351 RID: 41809 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600A351")]
|
||||
[Address(RVA = "0x26777A0", Offset = "0x26761A0", VA = "0x1826777A0", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600A352 RID: 41810 RVA: 0x002607CC File Offset: 0x0025E9CC
|
||||
[Token(Token = "0x600A352")]
|
||||
[Address(RVA = "0x2677B10", Offset = "0x2676510", VA = "0x182677B10")]
|
||||
private Asn1Encodable GetCurrent(IEnumerator e)
|
||||
{
|
||||
while (e == 0)
|
||||
{
|
||||
}
|
||||
DerNull instance = DerNull.Instance;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A353 RID: 41811 RVA: 0x002607EC File Offset: 0x0025E9EC
|
||||
[Token(Token = "0x600A353")]
|
||||
[Address(RVA = "0x2677740", Offset = "0x2676140", VA = "0x182677740")]
|
||||
protected internal void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
IList list = this.seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A354 RID: 41812 RVA: 0x00260808 File Offset: 0x0025EA08
|
||||
[Token(Token = "0x600A354")]
|
||||
[Address(RVA = "0x2678230", Offset = "0x2676C30", VA = "0x182678230", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return CollectionUtilities.ToString(this.seq);
|
||||
}
|
||||
|
||||
// Token: 0x04006B1A RID: 27418
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B1A")]
|
||||
private readonly IList seq;
|
||||
|
||||
// Token: 0x020017A2 RID: 6050
|
||||
[Token(Token = "0x20017A2")]
|
||||
private class Asn1SequenceParserImpl : Asn1SequenceParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A355 RID: 41813 RVA: 0x00260820 File Offset: 0x0025EA20
|
||||
[Token(Token = "0x600A355")]
|
||||
[Address(RVA = "0x26776F0", Offset = "0x26760F0", VA = "0x1826776F0")]
|
||||
public Asn1SequenceParserImpl(Asn1Sequence outer)
|
||||
{
|
||||
this.outer = outer;
|
||||
Asn1Encodable asn1Encodable;
|
||||
this.max = asn1Encodable;
|
||||
}
|
||||
|
||||
// Token: 0x0600A356 RID: 41814 RVA: 0x00260848 File Offset: 0x0025EA48
|
||||
[Token(Token = "0x600A356")]
|
||||
[Address(RVA = "0x2677510", Offset = "0x2675F10", VA = "0x182677510", 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: 0x0600A357 RID: 41815 RVA: 0x002608B0 File Offset: 0x0025EAB0
|
||||
[Token(Token = "0x600A357")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A357)
|
||||
|
||||
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: 0x04006B1B RID: 27419
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B1B")]
|
||||
private readonly Asn1Sequence outer;
|
||||
|
||||
// Token: 0x04006B1C RID: 27420
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B1C")]
|
||||
private readonly int max;
|
||||
|
||||
// Token: 0x04006B1D RID: 27421
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4006B1D")]
|
||||
private int index;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001794 RID: 6036
|
||||
[Token(Token = "0x2001794")]
|
||||
[StructLayout(3)]
|
||||
public interface Asn1SequenceParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A2FE RID: 41726
|
||||
[Token(Token = "0x600A2FE")]
|
||||
[Address(Slot = "0")]
|
||||
IAsn1Convertible ReadObject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,511 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017A3 RID: 6051
|
||||
[Token(Token = "0x20017A3")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1Set : Asn1Object, IEnumerable
|
||||
{
|
||||
// Token: 0x0600A358 RID: 41816 RVA: 0x002608C4 File Offset: 0x0025EAC4
|
||||
[Token(Token = "0x600A358")]
|
||||
[Address(RVA = "0x2679050", Offset = "0x2677A50", VA = "0x182679050")]
|
||||
public static Asn1Set GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A358)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_3_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_4_56, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_3_40)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600A359 RID: 41817 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600A359")]
|
||||
[Address(RVA = "0x2678B60", Offset = "0x2677560", VA = "0x182678B60")]
|
||||
public static Asn1Set GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600A35A RID: 41818 RVA: 0x00260928 File Offset: 0x0025EB28
|
||||
[Token(Token = "0x600A35A")]
|
||||
[Address(RVA = "0x2679950", Offset = "0x2678350", VA = "0x182679950")]
|
||||
protected internal Asn1Set(int capacity)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(capacity);
|
||||
this._set = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600A35B RID: 41819 RVA: 0x0026094C File Offset: 0x0025EB4C
|
||||
[Token(Token = "0x600A35B")]
|
||||
[Address(RVA = "0x2678B10", Offset = "0x2677510", VA = "0x182678B10", Slot = "10")]
|
||||
public virtual IEnumerator GetEnumerator()
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A35C RID: 41820 RVA: 0x00260968 File Offset: 0x0025EB68
|
||||
[Token(Token = "0x600A35C")]
|
||||
[Address(RVA = "0x5D3C80", Offset = "0x5D2680", VA = "0x1805D3C80")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return ((IEnumerable)this).GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x1700199D RID: 6557
|
||||
[Token(Token = "0x1700199D")]
|
||||
public virtual Asn1Encodable this[int index]
|
||||
{
|
||||
[Token(Token = "0x600A35D")]
|
||||
[Address(RVA = "0x2679A10", Offset = "0x2678410", VA = "0x182679A10", Slot = "11")]
|
||||
get
|
||||
{
|
||||
IList set;
|
||||
do
|
||||
{
|
||||
set = this._set;
|
||||
}
|
||||
while (set == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A35E RID: 41822 RVA: 0x002609A0 File Offset: 0x0025EBA0
|
||||
[Token(Token = "0x600A35E")]
|
||||
[Address(RVA = "0x2679370", Offset = "0x2677D70", VA = "0x182679370")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetObjectAt(int index)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A35E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::GetObjectAt(System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IEnumerator(var_0_06, call:IEnumerator(IEnumerable::GetEnumerator, ldloc:Asn1Set[exp:IEnumerable](this)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x1700199E RID: 6558
|
||||
// (get) Token: 0x0600A35F RID: 41823 RVA: 0x002609B4 File Offset: 0x0025EBB4
|
||||
[Token(Token = "0x1700199E")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600A35F")]
|
||||
[Address(RVA = "0xA69C00", Offset = "0xA68600", VA = "0x180A69C00")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A35F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set::get_Size()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IEnumerator(var_0_06, call:IEnumerator(IEnumerable::GetEnumerator, ldloc:Asn1Set[exp:IEnumerable](this)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700199F RID: 6559
|
||||
// (get) Token: 0x0600A360 RID: 41824 RVA: 0x002609C8 File Offset: 0x0025EBC8
|
||||
[Token(Token = "0x1700199F")]
|
||||
public virtual int Count
|
||||
{
|
||||
[Token(Token = "0x600A360")]
|
||||
[Address(RVA = "0x26799C0", Offset = "0x26783C0", VA = "0x1826799C0", Slot = "12")]
|
||||
get
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A361 RID: 41825 RVA: 0x002609E4 File Offset: 0x0025EBE4
|
||||
[Token(Token = "0x600A361")]
|
||||
[Address(RVA = "0x2679840", Offset = "0x2678240", VA = "0x182679840", Slot = "13")]
|
||||
public virtual Asn1Encodable[] ToArray()
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
Asn1Encodable[] array = new Asn1Encodable[asn1Encodable];
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable2 > 0)
|
||||
{
|
||||
IEnumerator enumerator = this.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = enumerator;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x170019A0 RID: 6560
|
||||
// (get) Token: 0x0600A362 RID: 41826 RVA: 0x00260A20 File Offset: 0x0025EC20
|
||||
[Token(Token = "0x170019A0")]
|
||||
public Asn1SetParser Parser
|
||||
{
|
||||
[Token(Token = "0x600A362")]
|
||||
[Address(RVA = "0x2679AC0", Offset = "0x26784C0", VA = "0x182679AC0")]
|
||||
get
|
||||
{
|
||||
Asn1Set.Asn1SetParserImpl asn1SetParserImpl;
|
||||
asn1SetParserImpl.outer = this;
|
||||
Asn1Encodable asn1Encodable;
|
||||
asn1SetParserImpl.max = asn1Encodable;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A363 RID: 41827 RVA: 0x00260A40 File Offset: 0x0025EC40
|
||||
[Token(Token = "0x600A363")]
|
||||
[Address(RVA = "0x2678880", Offset = "0x2677280", VA = "0x182678880", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IEnumerator enumerator = this.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
long num2 = asn1Encodable * (uint)17;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
DerNull.Instance.Finalize();
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A364 RID: 41828 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600A364")]
|
||||
[Address(RVA = "0x26786C0", Offset = "0x26770C0", VA = "0x1826786C0", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600A365 RID: 41829 RVA: 0x00260A84 File Offset: 0x0025EC84
|
||||
[Token(Token = "0x600A365")]
|
||||
[Address(RVA = "0x2678A30", Offset = "0x2677430", VA = "0x182678A30")]
|
||||
private Asn1Encodable GetCurrent(IEnumerator e)
|
||||
{
|
||||
while (e == 0)
|
||||
{
|
||||
}
|
||||
DerNull instance = DerNull.Instance;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A366 RID: 41830 RVA: 0x00260AA4 File Offset: 0x0025ECA4
|
||||
[Token(Token = "0x600A366")]
|
||||
[Address(RVA = "0x2679390", Offset = "0x2677D90", VA = "0x182679390")]
|
||||
protected internal void Sort()
|
||||
{
|
||||
Asn1Encodable[] array;
|
||||
byte[][] array2;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IList set = this._set;
|
||||
IList set2 = this._set;
|
||||
array = new Asn1Encodable[0];
|
||||
IList set3 = this._set;
|
||||
array2 = new byte[array][];
|
||||
IList set4 = this._set;
|
||||
num = 0;
|
||||
if (num < set3)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num >= array2)
|
||||
{
|
||||
goto IL_B1;
|
||||
}
|
||||
IList set5 = this._set;
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num++;
|
||||
num += 19;
|
||||
num += 19;
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array[0] = num;
|
||||
byte[] array3;
|
||||
if (array3 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = array3;
|
||||
num++;
|
||||
IList set6 = this._set;
|
||||
IL_B1:
|
||||
Asn1Set.DerComparer derComparer = new Asn1Set.DerComparer();
|
||||
Array.Sort(array2, array, derComparer);
|
||||
IList set7 = this._set;
|
||||
if (num < derComparer)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num < num)
|
||||
{
|
||||
IList set8 = this._set;
|
||||
uint num3;
|
||||
if (num < (int)num3)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
IList set9 = this._set;
|
||||
num++;
|
||||
while (set9 != 0)
|
||||
{
|
||||
}
|
||||
num += num;
|
||||
num++;
|
||||
num += 19;
|
||||
num += num;
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A367 RID: 41831 RVA: 0x00260BF0 File Offset: 0x0025EDF0
|
||||
[Token(Token = "0x600A367")]
|
||||
[Address(RVA = "0x2678660", Offset = "0x2677060", VA = "0x182678660")]
|
||||
protected internal void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
IList set = this._set;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A368 RID: 41832 RVA: 0x00260C0C File Offset: 0x0025EE0C
|
||||
[Token(Token = "0x600A368")]
|
||||
[Address(RVA = "0x2678230", Offset = "0x2676C30", VA = "0x182678230", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return CollectionUtilities.ToString(this._set);
|
||||
}
|
||||
|
||||
// Token: 0x04006B1E RID: 27422
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B1E")]
|
||||
private readonly IList _set;
|
||||
|
||||
// Token: 0x020017A4 RID: 6052
|
||||
[Token(Token = "0x20017A4")]
|
||||
private class Asn1SetParserImpl : Asn1SetParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A369 RID: 41833 RVA: 0x00260C24 File Offset: 0x0025EE24
|
||||
[Token(Token = "0x600A369")]
|
||||
[Address(RVA = "0x2678610", Offset = "0x2677010", VA = "0x182678610")]
|
||||
public Asn1SetParserImpl(Asn1Set outer)
|
||||
{
|
||||
this.outer = outer;
|
||||
Asn1Encodable asn1Encodable;
|
||||
this.max = asn1Encodable;
|
||||
}
|
||||
|
||||
// Token: 0x0600A36A RID: 41834 RVA: 0x00260C4C File Offset: 0x0025EE4C
|
||||
[Token(Token = "0x600A36A")]
|
||||
[Address(RVA = "0x2678430", Offset = "0x2676E30", VA = "0x182678430", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
IEnumerator enumerator;
|
||||
do
|
||||
{
|
||||
int num = this.index;
|
||||
if (num == this.max)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1Set asn1Set = this.outer;
|
||||
int num2 = num + 1;
|
||||
this.index = num2;
|
||||
enumerator = asn1Set.GetEnumerator();
|
||||
if (enumerator == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
if (enumerator == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (enumerator == 0 || enumerator == 0);
|
||||
bool flag = enumerator.MoveNext();
|
||||
}
|
||||
|
||||
// Token: 0x0600A36B RID: 41835 RVA: 0x00260CB4 File Offset: 0x0025EEB4
|
||||
[Token(Token = "0x600A36B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
public virtual Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A36B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set/Asn1SetParserImpl::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Set(var_0_06, ldfld:Asn1Set(Asn1SetParserImpl::outer, ldloc:Asn1SetParserImpl(this)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x04006B1F RID: 27423
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B1F")]
|
||||
private readonly Asn1Set outer;
|
||||
|
||||
// Token: 0x04006B20 RID: 27424
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B20")]
|
||||
private readonly int max;
|
||||
|
||||
// Token: 0x04006B21 RID: 27425
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4006B21")]
|
||||
private int index;
|
||||
}
|
||||
|
||||
// Token: 0x020017A5 RID: 6053
|
||||
[Token(Token = "0x20017A5")]
|
||||
private class DerComparer : IComparer
|
||||
{
|
||||
// Token: 0x0600A36C RID: 41836 RVA: 0x00260CC8 File Offset: 0x0025EEC8
|
||||
[Token(Token = "0x600A36C")]
|
||||
[Address(RVA = "0x26847D0", Offset = "0x26831D0", VA = "0x1826847D0", Slot = "4")]
|
||||
public int Compare(object x, object y)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A36C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set/DerComparer::Compare(System.Object,System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_4:
|
||||
stloc:int32(var_2, add:int32(ldloc:int32(var_2), ldc.i4:int32(1)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600A36D RID: 41837 RVA: 0x00260D10 File Offset: 0x0025EF10
|
||||
[Token(Token = "0x600A36D")]
|
||||
[Address(RVA = "0x2684780", Offset = "0x2683180", VA = "0x182684780")]
|
||||
private bool AllZeroesFrom(byte[] bs, int pos)
|
||||
{
|
||||
int length = bs.Length;
|
||||
if (pos < length)
|
||||
{
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600A36E RID: 41838 RVA: 0x00260D34 File Offset: 0x0025EF34
|
||||
[Token(Token = "0x600A36E")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public DerComparer()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001795 RID: 6037
|
||||
[Token(Token = "0x2001795")]
|
||||
[StructLayout(3)]
|
||||
public interface Asn1SetParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A2FF RID: 41727
|
||||
[Token(Token = "0x600A2FF")]
|
||||
[Address(Slot = "0")]
|
||||
IAsn1Convertible ReadObject();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,288 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001796 RID: 6038
|
||||
[Token(Token = "0x2001796")]
|
||||
[StructLayout(3)]
|
||||
public class Asn1StreamParser
|
||||
{
|
||||
// Token: 0x0600A300 RID: 41728 RVA: 0x0025F740 File Offset: 0x0025D940
|
||||
[Token(Token = "0x600A300")]
|
||||
[Address(RVA = "0x267AC40", Offset = "0x2679640", VA = "0x18267AC40")]
|
||||
public Asn1StreamParser(Stream inStream)
|
||||
{
|
||||
int num = Asn1InputStream.FindLimit(inStream);
|
||||
}
|
||||
|
||||
// Token: 0x0600A301 RID: 41729 RVA: 0x0025F754 File Offset: 0x0025D954
|
||||
[Token(Token = "0x600A301")]
|
||||
[Address(RVA = "0x267AAF0", Offset = "0x26794F0", VA = "0x18267AAF0")]
|
||||
public Asn1StreamParser(Stream inStream, int limit)
|
||||
{
|
||||
inStream.Dispose();
|
||||
this._in = inStream;
|
||||
this._limit = limit;
|
||||
byte[][] array = new byte[16][];
|
||||
this.tmpBuffers = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600A302 RID: 41730 RVA: 0x0025F7A0 File Offset: 0x0025D9A0
|
||||
[Token(Token = "0x600A302")]
|
||||
[Address(RVA = "0x267ABC0", Offset = "0x26795C0", VA = "0x18267ABC0")]
|
||||
public Asn1StreamParser(byte[] encoding)
|
||||
{
|
||||
int num;
|
||||
MemoryStream memoryStream = new MemoryStream(encoding, num != 0);
|
||||
num = 0;
|
||||
int length = encoding.Length;
|
||||
}
|
||||
|
||||
// Token: 0x0600A303 RID: 41731 RVA: 0x0025F7C4 File Offset: 0x0025D9C4
|
||||
[Token(Token = "0x600A303")]
|
||||
[Address(RVA = "0x2679D80", Offset = "0x2678780", VA = "0x182679D80")]
|
||||
internal IAsn1Convertible ReadIndef(int tagValue)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A303)
|
||||
|
||||
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_2_22, newobj:Asn1Exception(Asn1Exception::.ctor, call:string(string::Concat, ldstr:string("unknown BER object encountered: 0x"), ldstr:string("X"))))
|
||||
}
|
||||
|
||||
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: 0x0600A304 RID: 41732 RVA: 0x0025F7F4 File Offset: 0x0025D9F4
|
||||
[Token(Token = "0x600A304")]
|
||||
[Address(RVA = "0x2679B40", Offset = "0x2678540", VA = "0x182679B40")]
|
||||
internal IAsn1Convertible ReadImplicit(bool constructed, int tag)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A304)
|
||||
|
||||
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: 0x0600A305 RID: 41733 RVA: 0x0025F888 File Offset: 0x0025DA88
|
||||
[Token(Token = "0x600A305")]
|
||||
[Address(RVA = "0x267A460", Offset = "0x2678E60", VA = "0x18267A460")]
|
||||
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: 0x0600A306 RID: 41734 RVA: 0x0025F94C File Offset: 0x0025DB4C
|
||||
[Token(Token = "0x600A306")]
|
||||
[Address(RVA = "0x2679E90", Offset = "0x2678890", VA = "0x182679E90", 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: 0x0600A307 RID: 41735 RVA: 0x0025FAC4 File Offset: 0x0025DCC4
|
||||
[Token(Token = "0x600A307")]
|
||||
[Address(RVA = "0x267A9D0", Offset = "0x26793D0", VA = "0x18267A9D0")]
|
||||
private void Set00Check(bool enabled)
|
||||
{
|
||||
Stream @in;
|
||||
do
|
||||
{
|
||||
@in = this._in;
|
||||
}
|
||||
while (@in != 0 && @in != 0 && (@in == 0 || @in == 0));
|
||||
}
|
||||
|
||||
// Token: 0x0600A308 RID: 41736 RVA: 0x0025FAF4 File Offset: 0x0025DCF4
|
||||
[Token(Token = "0x600A308")]
|
||||
[Address(RVA = "0x267A800", Offset = "0x2679200", VA = "0x18267A800")]
|
||||
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: 0x04006B11 RID: 27409
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B11")]
|
||||
private readonly Stream _in;
|
||||
|
||||
// Token: 0x04006B12 RID: 27410
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B12")]
|
||||
private readonly int _limit;
|
||||
|
||||
// Token: 0x04006B13 RID: 27411
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006B13")]
|
||||
private readonly byte[][] tmpBuffers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,286 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017A6 RID: 6054
|
||||
[Token(Token = "0x20017A6")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Asn1TaggedObject : Asn1Object, Asn1TaggedObjectParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A36F RID: 41839 RVA: 0x00260D48 File Offset: 0x0025EF48
|
||||
[Token(Token = "0x600A36F")]
|
||||
[Address(RVA = "0x267B240", Offset = "0x2679C40", VA = "0x18267B240")]
|
||||
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: 0x0600A370 RID: 41840 RVA: 0x00260D7C File Offset: 0x0025EF7C
|
||||
[Token(Token = "0x600A370")]
|
||||
[Address(RVA = "0x267ADD0", Offset = "0x26797D0", VA = "0x18267ADD0")]
|
||||
public static Asn1TaggedObject GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A370)
|
||||
|
||||
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: 0x0600A371 RID: 41841 RVA: 0x00260DBC File Offset: 0x0025EFBC
|
||||
[Token(Token = "0x600A371")]
|
||||
[Address(RVA = "0x267AEC0", Offset = "0x26798C0", VA = "0x18267AEC0")]
|
||||
public static Asn1TaggedObject GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A371)
|
||||
|
||||
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: 0x0600A372 RID: 41842 RVA: 0x00260DFC File Offset: 0x0025EFFC
|
||||
[Token(Token = "0x600A372")]
|
||||
[Address(RVA = "0x267B600", Offset = "0x267A000", VA = "0x18267B600")]
|
||||
protected Asn1TaggedObject(int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
this.tagNo = tagNo;
|
||||
this.obj = obj;
|
||||
this.explicitly = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600A373 RID: 41843 RVA: 0x00260E2C File Offset: 0x0025F02C
|
||||
[Token(Token = "0x600A373")]
|
||||
[Address(RVA = "0x267B570", Offset = "0x2679F70", VA = "0x18267B570")]
|
||||
protected Asn1TaggedObject(bool explicitly, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (explicitly)
|
||||
{
|
||||
}
|
||||
bool flag;
|
||||
this.explicitly = flag;
|
||||
this.tagNo = tagNo;
|
||||
this.obj = obj;
|
||||
}
|
||||
|
||||
// Token: 0x0600A374 RID: 41844 RVA: 0x00260E60 File Offset: 0x0025F060
|
||||
[Token(Token = "0x600A374")]
|
||||
[Address(RVA = "0x267AC80", Offset = "0x2679680", VA = "0x18267AC80", 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: 0x0600A375 RID: 41845 RVA: 0x00260EA8 File Offset: 0x0025F0A8
|
||||
[Token(Token = "0x600A375")]
|
||||
[Address(RVA = "0x267AD80", Offset = "0x2679780", VA = "0x18267AD80", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A375)
|
||||
|
||||
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: 0x170019A1 RID: 6561
|
||||
// (get) Token: 0x0600A376 RID: 41846 RVA: 0x00260EC8 File Offset: 0x0025F0C8
|
||||
[Token(Token = "0x170019A1")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600A376")]
|
||||
[Address(RVA = "0x3C1C50", Offset = "0x3C0650", VA = "0x1803C1C50", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A377 RID: 41847 RVA: 0x00260EDC File Offset: 0x0025F0DC
|
||||
[Token(Token = "0x600A377")]
|
||||
[Address(RVA = "0x4F5380", Offset = "0x4F3D80", VA = "0x1804F5380")]
|
||||
public bool IsExplicit()
|
||||
{
|
||||
return this.explicitly;
|
||||
}
|
||||
|
||||
// Token: 0x0600A378 RID: 41848 RVA: 0x00260EF0 File Offset: 0x0025F0F0
|
||||
[Token(Token = "0x600A378")]
|
||||
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970")]
|
||||
public bool IsEmpty()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A379 RID: 41849 RVA: 0x00260F00 File Offset: 0x0025F100
|
||||
[Token(Token = "0x600A379")]
|
||||
[Address(RVA = "0x267B220", Offset = "0x2679C20", VA = "0x18267B220")]
|
||||
public Asn1Object GetObject()
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.obj;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
}
|
||||
return asn1Encodable.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0600A37A RID: 41850 RVA: 0x00260F20 File Offset: 0x0025F120
|
||||
[Token(Token = "0x600A37A")]
|
||||
[Address(RVA = "0x267B000", Offset = "0x2679A00", VA = "0x18267B000", 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: 0x0600A37B RID: 41851 RVA: 0x00260FB4 File Offset: 0x0025F1B4
|
||||
[Token(Token = "0x600A37B")]
|
||||
[Address(RVA = "0x267B390", Offset = "0x2679D90", VA = "0x18267B390", 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: 0x04006B22 RID: 27426
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B22")]
|
||||
internal int tagNo;
|
||||
|
||||
// Token: 0x04006B23 RID: 27427
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4006B23")]
|
||||
internal bool explicitly = true;
|
||||
|
||||
// Token: 0x04006B24 RID: 27428
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B24")]
|
||||
internal Asn1Encodable obj;
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001797 RID: 6039
|
||||
[Token(Token = "0x2001797")]
|
||||
[StructLayout(3)]
|
||||
public interface Asn1TaggedObjectParser : IAsn1Convertible
|
||||
{
|
||||
// Token: 0x17001994 RID: 6548
|
||||
// (get) Token: 0x0600A309 RID: 41737
|
||||
[Token(Token = "0x17001994")]
|
||||
int TagNo
|
||||
{
|
||||
[Token(Token = "0x600A309")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600A30A RID: 41738
|
||||
[Token(Token = "0x600A30A")]
|
||||
[Address(Slot = "1")]
|
||||
IAsn1Convertible GetObjectParser(int tag, bool isExplicit);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017A7 RID: 6055
|
||||
[Token(Token = "0x20017A7")]
|
||||
[StructLayout(3)]
|
||||
public class Asn1Tags
|
||||
{
|
||||
// Token: 0x0600A37C RID: 41852 RVA: 0x00261024 File Offset: 0x0025F224
|
||||
[Token(Token = "0x600A37C")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public Asn1Tags()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04006B25 RID: 27429
|
||||
[Token(Token = "0x4006B25")]
|
||||
public const int Boolean = 1;
|
||||
|
||||
// Token: 0x04006B26 RID: 27430
|
||||
[Token(Token = "0x4006B26")]
|
||||
public const int Integer = 2;
|
||||
|
||||
// Token: 0x04006B27 RID: 27431
|
||||
[Token(Token = "0x4006B27")]
|
||||
public const int BitString = 3;
|
||||
|
||||
// Token: 0x04006B28 RID: 27432
|
||||
[Token(Token = "0x4006B28")]
|
||||
public const int OctetString = 4;
|
||||
|
||||
// Token: 0x04006B29 RID: 27433
|
||||
[Token(Token = "0x4006B29")]
|
||||
public const int Null = 5;
|
||||
|
||||
// Token: 0x04006B2A RID: 27434
|
||||
[Token(Token = "0x4006B2A")]
|
||||
public const int ObjectIdentifier = 6;
|
||||
|
||||
// Token: 0x04006B2B RID: 27435
|
||||
[Token(Token = "0x4006B2B")]
|
||||
public const int External = 8;
|
||||
|
||||
// Token: 0x04006B2C RID: 27436
|
||||
[Token(Token = "0x4006B2C")]
|
||||
public const int Enumerated = 10;
|
||||
|
||||
// Token: 0x04006B2D RID: 27437
|
||||
[Token(Token = "0x4006B2D")]
|
||||
public const int Sequence = 16;
|
||||
|
||||
// Token: 0x04006B2E RID: 27438
|
||||
[Token(Token = "0x4006B2E")]
|
||||
public const int SequenceOf = 16;
|
||||
|
||||
// Token: 0x04006B2F RID: 27439
|
||||
[Token(Token = "0x4006B2F")]
|
||||
public const int Set = 17;
|
||||
|
||||
// Token: 0x04006B30 RID: 27440
|
||||
[Token(Token = "0x4006B30")]
|
||||
public const int SetOf = 17;
|
||||
|
||||
// Token: 0x04006B31 RID: 27441
|
||||
[Token(Token = "0x4006B31")]
|
||||
public const int NumericString = 18;
|
||||
|
||||
// Token: 0x04006B32 RID: 27442
|
||||
[Token(Token = "0x4006B32")]
|
||||
public const int PrintableString = 19;
|
||||
|
||||
// Token: 0x04006B33 RID: 27443
|
||||
[Token(Token = "0x4006B33")]
|
||||
public const int T61String = 20;
|
||||
|
||||
// Token: 0x04006B34 RID: 27444
|
||||
[Token(Token = "0x4006B34")]
|
||||
public const int VideotexString = 21;
|
||||
|
||||
// Token: 0x04006B35 RID: 27445
|
||||
[Token(Token = "0x4006B35")]
|
||||
public const int IA5String = 22;
|
||||
|
||||
// Token: 0x04006B36 RID: 27446
|
||||
[Token(Token = "0x4006B36")]
|
||||
public const int UtcTime = 23;
|
||||
|
||||
// Token: 0x04006B37 RID: 27447
|
||||
[Token(Token = "0x4006B37")]
|
||||
public const int GeneralizedTime = 24;
|
||||
|
||||
// Token: 0x04006B38 RID: 27448
|
||||
[Token(Token = "0x4006B38")]
|
||||
public const int GraphicString = 25;
|
||||
|
||||
// Token: 0x04006B39 RID: 27449
|
||||
[Token(Token = "0x4006B39")]
|
||||
public const int VisibleString = 26;
|
||||
|
||||
// Token: 0x04006B3A RID: 27450
|
||||
[Token(Token = "0x4006B3A")]
|
||||
public const int GeneralString = 27;
|
||||
|
||||
// Token: 0x04006B3B RID: 27451
|
||||
[Token(Token = "0x4006B3B")]
|
||||
public const int UniversalString = 28;
|
||||
|
||||
// Token: 0x04006B3C RID: 27452
|
||||
[Token(Token = "0x4006B3C")]
|
||||
public const int BmpString = 30;
|
||||
|
||||
// Token: 0x04006B3D RID: 27453
|
||||
[Token(Token = "0x4006B3D")]
|
||||
public const int Utf8String = 12;
|
||||
|
||||
// Token: 0x04006B3E RID: 27454
|
||||
[Token(Token = "0x4006B3E")]
|
||||
public const int Constructed = 32;
|
||||
|
||||
// Token: 0x04006B3F RID: 27455
|
||||
[Token(Token = "0x4006B3F")]
|
||||
public const int Application = 64;
|
||||
|
||||
// Token: 0x04006B40 RID: 27456
|
||||
[Token(Token = "0x4006B40")]
|
||||
public const int Tagged = 128;
|
||||
}
|
||||
}
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.BC
|
||||
{
|
||||
// Token: 0x02001993 RID: 6547
|
||||
[Token(Token = "0x2001993")]
|
||||
[StructLayout(3)]
|
||||
public abstract class BCObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600AFCC RID: 45004 RVA: 0x00292414 File Offset: 0x00290614
|
||||
[Token(Token = "0x600AFCC")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected BCObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400738D RID: 29581
|
||||
[Token(Token = "0x400738D")]
|
||||
public static readonly DerObjectIdentifier bc = new DerObjectIdentifier("1.3.6.1.4.1.22554");
|
||||
|
||||
// Token: 0x0400738E RID: 29582
|
||||
[Token(Token = "0x400738E")]
|
||||
public static readonly DerObjectIdentifier bc_pbe = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400738F RID: 29583
|
||||
[Token(Token = "0x400738F")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007390 RID: 29584
|
||||
[Token(Token = "0x4007390")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007391 RID: 29585
|
||||
[Token(Token = "0x4007391")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha384 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007392 RID: 29586
|
||||
[Token(Token = "0x4007392")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha512 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007393 RID: 29587
|
||||
[Token(Token = "0x4007393")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha224 = BCObjectIdentifiers.bc_pbe.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007394 RID: 29588
|
||||
[Token(Token = "0x4007394")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs5 = BCObjectIdentifiers.bc_pbe_sha1.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007395 RID: 29589
|
||||
[Token(Token = "0x4007395")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12 = BCObjectIdentifiers.bc_pbe_sha1.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007396 RID: 29590
|
||||
[Token(Token = "0x4007396")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs5 = BCObjectIdentifiers.bc_pbe_sha256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007397 RID: 29591
|
||||
[Token(Token = "0x4007397")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12 = BCObjectIdentifiers.bc_pbe_sha256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007398 RID: 29592
|
||||
[Token(Token = "0x4007398")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes128_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007399 RID: 29593
|
||||
[Token(Token = "0x4007399")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes192_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400739A RID: 29594
|
||||
[Token(Token = "0x400739A")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes256_cbc = BCObjectIdentifiers.bc_pbe_sha1_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400739B RID: 29595
|
||||
[Token(Token = "0x400739B")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes128_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400739C RID: 29596
|
||||
[Token(Token = "0x400739C")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes192_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400739D RID: 29597
|
||||
[Token(Token = "0x400739D")]
|
||||
public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes256_cbc = BCObjectIdentifiers.bc_pbe_sha256_pkcs12.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400739E RID: 29598
|
||||
[Token(Token = "0x400739E")]
|
||||
public static readonly DerObjectIdentifier bc_sig = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400739F RID: 29599
|
||||
[Token(Token = "0x400739F")]
|
||||
public static readonly DerObjectIdentifier sphincs256 = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A0 RID: 29600
|
||||
[Token(Token = "0x40073A0")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_BLAKE512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A1 RID: 29601
|
||||
[Token(Token = "0x40073A1")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_SHA512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A2 RID: 29602
|
||||
[Token(Token = "0x40073A2")]
|
||||
public static readonly DerObjectIdentifier sphincs256_with_SHA3_512 = BCObjectIdentifiers.sphincs256.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A3 RID: 29603
|
||||
[Token(Token = "0x40073A3")]
|
||||
public static readonly DerObjectIdentifier xmss = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A4 RID: 29604
|
||||
[Token(Token = "0x40073A4")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHA256 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A5 RID: 29605
|
||||
[Token(Token = "0x40073A5")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHA512 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A6 RID: 29606
|
||||
[Token(Token = "0x40073A6")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHAKE128 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A7 RID: 29607
|
||||
[Token(Token = "0x40073A7")]
|
||||
public static readonly DerObjectIdentifier xmss_with_SHAKE256 = BCObjectIdentifiers.xmss.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A8 RID: 29608
|
||||
[Token(Token = "0x40073A8")]
|
||||
public static readonly DerObjectIdentifier xmss_mt = BCObjectIdentifiers.bc_sig.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073A9 RID: 29609
|
||||
[Token(Token = "0x40073A9")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHA256 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073AA RID: 29610
|
||||
[Token(Token = "0x40073AA")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHA512 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073AB RID: 29611
|
||||
[Token(Token = "0x40073AB")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHAKE128 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073AC RID: 29612
|
||||
[Token(Token = "0x40073AC")]
|
||||
public static readonly DerObjectIdentifier xmss_mt_with_SHAKE256 = BCObjectIdentifiers.xmss_mt.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073AD RID: 29613
|
||||
[Token(Token = "0x40073AD")]
|
||||
public static readonly DerObjectIdentifier bc_exch = BCObjectIdentifiers.bc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x040073AE RID: 29614
|
||||
[Token(Token = "0x40073AE")]
|
||||
public static readonly DerObjectIdentifier newHope = BCObjectIdentifiers.bc_exch.Asn1GetHashCode();
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B2 RID: 6066
|
||||
[Token(Token = "0x20017B2")]
|
||||
[StructLayout(3)]
|
||||
public class BerApplicationSpecific : DerApplicationSpecific
|
||||
{
|
||||
// Token: 0x0600A3A7 RID: 41895 RVA: 0x00261780 File Offset: 0x0025F980
|
||||
[Token(Token = "0x600A3A7")]
|
||||
[Address(RVA = "0x267C040", Offset = "0x267AA40", VA = "0x18267C040")]
|
||||
public BerApplicationSpecific(int tagNo, Asn1EncodableVector vec)
|
||||
: base(tagNo, vec)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B3 RID: 6067
|
||||
[Token(Token = "0x20017B3")]
|
||||
[StructLayout(3)]
|
||||
public class BerApplicationSpecificParser : IAsn1ApplicationSpecificParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A3A8 RID: 41896 RVA: 0x00261798 File Offset: 0x0025F998
|
||||
[Token(Token = "0x600A3A8")]
|
||||
[Address(RVA = "0x3C1040", Offset = "0x3BFA40", VA = "0x1803C1040")]
|
||||
internal BerApplicationSpecificParser(int tag, Asn1StreamParser parser)
|
||||
{
|
||||
this.tag = tag;
|
||||
this.parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600A3A9 RID: 41897 RVA: 0x002617BC File Offset: 0x0025F9BC
|
||||
[Token(Token = "0x600A3A9")]
|
||||
[Address(RVA = "0x1CDD4D0", Offset = "0x1CDBED0", VA = "0x181CDD4D0", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser asn1StreamParser = this.parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A3AA RID: 41898 RVA: 0x002617D8 File Offset: 0x0025F9D8
|
||||
[Token(Token = "0x600A3AA")]
|
||||
[Address(RVA = "0x267BFC0", Offset = "0x267A9C0", VA = "0x18267BFC0", 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: 0x04006B4E RID: 27470
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B4E")]
|
||||
private readonly int tag;
|
||||
|
||||
// Token: 0x04006B4F RID: 27471
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B4F")]
|
||||
private readonly Asn1StreamParser parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017A8 RID: 6056
|
||||
[Token(Token = "0x20017A8")]
|
||||
[StructLayout(3)]
|
||||
public class BerBitString : DerBitString
|
||||
{
|
||||
// Token: 0x0600A37D RID: 41853 RVA: 0x00261038 File Offset: 0x0025F238
|
||||
[Token(Token = "0x600A37D")]
|
||||
[Address(RVA = "0x267C150", Offset = "0x267AB50", VA = "0x18267C150")]
|
||||
public BerBitString(byte[] data, int padBits)
|
||||
: base(data, padBits)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A37E RID: 41854 RVA: 0x00261050 File Offset: 0x0025F250
|
||||
[Token(Token = "0x600A37E")]
|
||||
[Address(RVA = "0x267C1D0", Offset = "0x267ABD0", VA = "0x18267C1D0")]
|
||||
public BerBitString(byte[] data)
|
||||
: base(data)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A37F RID: 41855 RVA: 0x00261064 File Offset: 0x0025F264
|
||||
[Token(Token = "0x600A37F")]
|
||||
[Address(RVA = "0x267C240", Offset = "0x267AC40", VA = "0x18267C240")]
|
||||
public BerBitString(int namedBits)
|
||||
: base(namedBits)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A380 RID: 41856 RVA: 0x00261078 File Offset: 0x0025F278
|
||||
[Token(Token = "0x600A380")]
|
||||
[Address(RVA = "0x267C2A0", Offset = "0x267ACA0", VA = "0x18267C2A0")]
|
||||
public BerBitString(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A381 RID: 41857 RVA: 0x0026108C File Offset: 0x0025F28C
|
||||
[Token(Token = "0x600A381")]
|
||||
[Address(RVA = "0x267C050", Offset = "0x267AA50", VA = "0x18267C050", 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,128 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017A9 RID: 6057
|
||||
[Token(Token = "0x20017A9")]
|
||||
[StructLayout(3)]
|
||||
public class BerGenerator : Asn1Generator
|
||||
{
|
||||
// Token: 0x0600A382 RID: 41858 RVA: 0x002610C8 File Offset: 0x0025F2C8
|
||||
[Token(Token = "0x600A382")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
protected BerGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
}
|
||||
|
||||
// Token: 0x0600A383 RID: 41859 RVA: 0x002610E4 File Offset: 0x0025F2E4
|
||||
[Token(Token = "0x600A383")]
|
||||
[Address(RVA = "0x267C5A0", Offset = "0x267AFA0", VA = "0x18267C5A0")]
|
||||
public BerGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
this._tagged = true;
|
||||
}
|
||||
|
||||
// Token: 0x0600A384 RID: 41860 RVA: 0x00261114 File Offset: 0x0025F314
|
||||
[Token(Token = "0x600A384")]
|
||||
[Address(RVA = "0x267C310", Offset = "0x267AD10", VA = "0x18267C310", Slot = "4")]
|
||||
public override void AddObject(Asn1Encodable obj)
|
||||
{
|
||||
((IDisposable)new BerOutputStream(this._out)).Dispose();
|
||||
}
|
||||
|
||||
// Token: 0x0600A385 RID: 41861 RVA: 0x00261138 File Offset: 0x0025F338
|
||||
[Token(Token = "0x600A385")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Stream GetRawOutputStream()
|
||||
{
|
||||
return this._out;
|
||||
}
|
||||
|
||||
// Token: 0x0600A386 RID: 41862 RVA: 0x0026114C File Offset: 0x0025F34C
|
||||
[Token(Token = "0x600A386")]
|
||||
[Address(RVA = "0x267C3A0", Offset = "0x267ADA0", VA = "0x18267C3A0", Slot = "6")]
|
||||
public override void Close()
|
||||
{
|
||||
this.WriteBerEnd();
|
||||
}
|
||||
|
||||
// Token: 0x0600A387 RID: 41863 RVA: 0x00261160 File Offset: 0x0025F360
|
||||
[Token(Token = "0x600A387")]
|
||||
[Address(RVA = "0x267C550", Offset = "0x267AF50", VA = "0x18267C550")]
|
||||
private void WriteHdr(int tag)
|
||||
{
|
||||
Stream @out = this._out;
|
||||
bool canRead = this._out.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600A388 RID: 41864 RVA: 0x00261188 File Offset: 0x0025F388
|
||||
[Token(Token = "0x600A388")]
|
||||
[Address(RVA = "0x267C470", Offset = "0x267AE70", VA = "0x18267C470")]
|
||||
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: 0x0600A389 RID: 41865 RVA: 0x002611E4 File Offset: 0x0025F3E4
|
||||
[Token(Token = "0x600A389")]
|
||||
[Address(RVA = "0x267C3B0", Offset = "0x267ADB0", VA = "0x18267C3B0")]
|
||||
protected void WriteBerBody(Stream contentStream)
|
||||
{
|
||||
Stream @out = this._out;
|
||||
Streams.PipeAll(contentStream, @out);
|
||||
}
|
||||
|
||||
// Token: 0x0600A38A RID: 41866 RVA: 0x00261200 File Offset: 0x0025F400
|
||||
[Token(Token = "0x600A38A")]
|
||||
[Address(RVA = "0x267C3D0", Offset = "0x267ADD0", VA = "0x18267C3D0")]
|
||||
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: 0x04006B41 RID: 27457
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B41")]
|
||||
private bool _tagged;
|
||||
|
||||
// Token: 0x04006B42 RID: 27458
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x4006B42")]
|
||||
private bool _isExplicit;
|
||||
|
||||
// Token: 0x04006B43 RID: 27459
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4006B43")]
|
||||
private int _tagNo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B4 RID: 6068
|
||||
[Token(Token = "0x20017B4")]
|
||||
[StructLayout(3)]
|
||||
public class BerNull : DerNull
|
||||
{
|
||||
// Token: 0x0600A3AB RID: 41899 RVA: 0x00261808 File Offset: 0x0025FA08
|
||||
[Token(Token = "0x600A3AB")]
|
||||
[Address(RVA = "0x267C7D0", Offset = "0x267B1D0", VA = "0x18267C7D0")]
|
||||
[Obsolete]
|
||||
public BerNull()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3AC RID: 41900 RVA: 0x0026181C File Offset: 0x0025FA1C
|
||||
[Token(Token = "0x600A3AC")]
|
||||
[Address(RVA = "0x267C770", Offset = "0x267B170", VA = "0x18267C770")]
|
||||
private BerNull(int dummy)
|
||||
: base(dummy)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3AD RID: 41901 RVA: 0x00261830 File Offset: 0x0025FA30
|
||||
[Token(Token = "0x600A3AD")]
|
||||
[Address(RVA = "0x267C5F0", Offset = "0x267AFF0", VA = "0x18267C5F0", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
if (derOut != 0 && (derOut != 0 || derOut != 0))
|
||||
{
|
||||
((IDisposable)derOut).Dispose();
|
||||
return;
|
||||
}
|
||||
base.Encode(derOut);
|
||||
}
|
||||
|
||||
// Token: 0x0600A3AE RID: 41902 RVA: 0x0026185C File Offset: 0x0025FA5C
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600A3AE")]
|
||||
[Address(RVA = "0x267C6E0", Offset = "0x267B0E0", VA = "0x18267C6E0")]
|
||||
static BerNull()
|
||||
{
|
||||
int num;
|
||||
BerNull berNull = new BerNull(num);
|
||||
num = 0;
|
||||
}
|
||||
|
||||
// Token: 0x04006B50 RID: 27472
|
||||
[Token(Token = "0x4006B50")]
|
||||
public new static readonly BerNull Instance;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B5 RID: 6069
|
||||
[Token(Token = "0x20017B5")]
|
||||
[StructLayout(3)]
|
||||
public class BerOctetString : DerOctetString, IEnumerable
|
||||
{
|
||||
// Token: 0x0600A3AF RID: 41903 RVA: 0x00261874 File Offset: 0x0025FA74
|
||||
[Token(Token = "0x600A3AF")]
|
||||
[Address(RVA = "0x267CEE0", Offset = "0x267B8E0", VA = "0x18267CEE0")]
|
||||
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_70;
|
||||
}
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
enumerator += enumerator;
|
||||
num += 2;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
byte[] array = BerOctetString.ToBytes(list);
|
||||
BerOctetString berOctetString;
|
||||
berOctetString.octs = list;
|
||||
return berOctetString;
|
||||
IL_70:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A3B0 RID: 41904 RVA: 0x002618F8 File Offset: 0x0025FAF8
|
||||
[Token(Token = "0x600A3B0")]
|
||||
[Address(RVA = "0x267D4E0", Offset = "0x267BEE0", VA = "0x18267D4E0")]
|
||||
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_55;
|
||||
}
|
||||
if (memoryStream.ReadByte() != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
IL_55:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A3B1 RID: 41905 RVA: 0x00261968 File Offset: 0x0025FB68
|
||||
[Token(Token = "0x600A3B1")]
|
||||
[Address(RVA = "0x267D7F0", Offset = "0x267C1F0", VA = "0x18267D7F0")]
|
||||
public BerOctetString(byte[] str)
|
||||
: base(str)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3B2 RID: 41906 RVA: 0x0026197C File Offset: 0x0025FB7C
|
||||
[Token(Token = "0x600A3B2")]
|
||||
[Address(RVA = "0x267D7A0", Offset = "0x267C1A0", VA = "0x18267D7A0")]
|
||||
public BerOctetString(IEnumerable octets)
|
||||
{
|
||||
byte[] array = BerOctetString.ToBytes(octets);
|
||||
base..ctor(array);
|
||||
this.octs = octets;
|
||||
}
|
||||
|
||||
// Token: 0x0600A3B3 RID: 41907 RVA: 0x002619A0 File Offset: 0x0025FBA0
|
||||
[Token(Token = "0x600A3B3")]
|
||||
[Address(RVA = "0x267D7E0", Offset = "0x267C1E0", VA = "0x18267D7E0")]
|
||||
public BerOctetString(Asn1Object obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3B4 RID: 41908 RVA: 0x002619B4 File Offset: 0x0025FBB4
|
||||
[Token(Token = "0x600A3B4")]
|
||||
[Address(RVA = "0x267D800", Offset = "0x267C200", VA = "0x18267D800")]
|
||||
public BerOctetString(Asn1Encodable obj)
|
||||
{
|
||||
Asn1Object asn1Object = obj.ToAsn1Object();
|
||||
base..ctor(asn1Object);
|
||||
}
|
||||
|
||||
// Token: 0x0600A3B5 RID: 41909 RVA: 0x002619D8 File Offset: 0x0025FBD8
|
||||
[Token(Token = "0x600A3B5")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "10")]
|
||||
public override byte[] GetOctets()
|
||||
{
|
||||
return this.str;
|
||||
}
|
||||
|
||||
// Token: 0x0600A3B6 RID: 41910 RVA: 0x002619EC File Offset: 0x0025FBEC
|
||||
[Token(Token = "0x600A3B6")]
|
||||
[Address(RVA = "0x267D310", Offset = "0x267BD10", VA = "0x18267D310", 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: 0x0600A3B7 RID: 41911 RVA: 0x00261A74 File Offset: 0x0025FC74
|
||||
[Token(Token = "0x600A3B7")]
|
||||
[Address(RVA = "0x267D4D0", Offset = "0x267BED0", VA = "0x18267D4D0")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetObjects()
|
||||
{
|
||||
return this.GetEnumerator();
|
||||
}
|
||||
|
||||
// Token: 0x0600A3B8 RID: 41912 RVA: 0x00261A88 File Offset: 0x0025FC88
|
||||
[Token(Token = "0x600A3B8")]
|
||||
[Address(RVA = "0x267D1A0", Offset = "0x267BBA0", VA = "0x18267D1A0")]
|
||||
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: 0x0600A3B9 RID: 41913 RVA: 0x00261B0C File Offset: 0x0025FD0C
|
||||
[Token(Token = "0x600A3B9")]
|
||||
[Address(RVA = "0x267CBE0", Offset = "0x267B5E0", VA = "0x18267CBE0", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (derOut == 0 || (derOut == 0 && derOut == 0))
|
||||
{
|
||||
goto IL_51;
|
||||
}
|
||||
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_59;
|
||||
}
|
||||
derOut.WriteObject(num);
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_51:
|
||||
base.Encode(derOut);
|
||||
return;
|
||||
IL_59:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006B51 RID: 27473
|
||||
[Token(Token = "0x4006B51")]
|
||||
private const int MaxLength = 1000;
|
||||
|
||||
// Token: 0x04006B52 RID: 27474
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B52")]
|
||||
private readonly IEnumerable octs;
|
||||
}
|
||||
}
|
||||
+172
@@ -0,0 +1,172 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017AA RID: 6058
|
||||
[Token(Token = "0x20017AA")]
|
||||
[StructLayout(3)]
|
||||
public class BerOctetStringGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600A38B RID: 41867 RVA: 0x00261248 File Offset: 0x0025F448
|
||||
[Token(Token = "0x600A38B")]
|
||||
[Address(RVA = "0x267C9C0", Offset = "0x267B3C0", VA = "0x18267C9C0")]
|
||||
public BerOctetStringGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(36);
|
||||
}
|
||||
|
||||
// Token: 0x0600A38C RID: 41868 RVA: 0x0026126C File Offset: 0x0025F46C
|
||||
[Token(Token = "0x600A38C")]
|
||||
[Address(RVA = "0x267CA00", Offset = "0x267B400", VA = "0x18267CA00")]
|
||||
public BerOctetStringGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
base.WriteBerHeader(36);
|
||||
}
|
||||
|
||||
// Token: 0x0600A38D RID: 41869 RVA: 0x0026129C File Offset: 0x0025F49C
|
||||
[Token(Token = "0x600A38D")]
|
||||
[Address(RVA = "0x267C830", Offset = "0x267B230", VA = "0x18267C830")]
|
||||
public Stream GetOctetOutputStream()
|
||||
{
|
||||
byte[] array = new byte[1000];
|
||||
return this.GetOctetOutputStream(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600A38E RID: 41870 RVA: 0x002612BC File Offset: 0x0025F4BC
|
||||
[Token(Token = "0x600A38E")]
|
||||
[Address(RVA = "0x267C880", Offset = "0x267B280", VA = "0x18267C880")]
|
||||
public Stream GetOctetOutputStream(int bufSize)
|
||||
{
|
||||
if (bufSize < 1)
|
||||
{
|
||||
}
|
||||
byte[] array = new byte[bufSize];
|
||||
return this.GetOctetOutputStream(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600A38F RID: 41871 RVA: 0x002612DC File Offset: 0x0025F4DC
|
||||
[Token(Token = "0x600A38F")]
|
||||
[Address(RVA = "0x267C900", Offset = "0x267B300", VA = "0x18267C900")]
|
||||
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: 0x020017AB RID: 6059
|
||||
[Token(Token = "0x20017AB")]
|
||||
private class BufferedBerOctetStream : BaseOutputStream
|
||||
{
|
||||
// Token: 0x0600A390 RID: 41872 RVA: 0x00261318 File Offset: 0x0025F518
|
||||
[Token(Token = "0x600A390")]
|
||||
[Address(RVA = "0x267FA70", Offset = "0x267E470", VA = "0x18267FA70")]
|
||||
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: 0x0600A391 RID: 41873 RVA: 0x0026135C File Offset: 0x0025F55C
|
||||
[Token(Token = "0x600A391")]
|
||||
[Address(RVA = "0x267F8B0", Offset = "0x267E2B0", VA = "0x18267F8B0", 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: 0x0600A392 RID: 41874 RVA: 0x002613BC File Offset: 0x0025F5BC
|
||||
[Token(Token = "0x600A392")]
|
||||
[Address(RVA = "0x267F930", Offset = "0x267E330", VA = "0x18267F930", 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: 0x0600A393 RID: 41875 RVA: 0x00261470 File Offset: 0x0025F670
|
||||
[Token(Token = "0x600A393")]
|
||||
[Address(RVA = "0x267F860", Offset = "0x267E260", VA = "0x18267F860", 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: 0x04006B44 RID: 27460
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006B44")]
|
||||
private byte[] _buf;
|
||||
|
||||
// Token: 0x04006B45 RID: 27461
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006B45")]
|
||||
private int _off;
|
||||
|
||||
// Token: 0x04006B46 RID: 27462
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4006B46")]
|
||||
private readonly BerOctetStringGenerator _gen;
|
||||
|
||||
// Token: 0x04006B47 RID: 27463
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4006B47")]
|
||||
private readonly DerOutputStream _derOut;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017AC RID: 6060
|
||||
[Token(Token = "0x20017AC")]
|
||||
[StructLayout(3)]
|
||||
public class BerOctetStringParser : Asn1OctetStringParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A394 RID: 41876 RVA: 0x002614B8 File Offset: 0x0025F6B8
|
||||
[Token(Token = "0x600A394")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
internal BerOctetStringParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600A395 RID: 41877 RVA: 0x002614D4 File Offset: 0x0025F6D4
|
||||
[Token(Token = "0x600A395")]
|
||||
[Address(RVA = "0x267CA60", Offset = "0x267B460", VA = "0x18267CA60", Slot = "4")]
|
||||
public Stream GetOctetStream()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A395)
|
||||
|
||||
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: 0x0600A396 RID: 41878 RVA: 0x002614EC File Offset: 0x0025F6EC
|
||||
[Token(Token = "0x600A396")]
|
||||
[Address(RVA = "0x267CAC0", Offset = "0x267B4C0", VA = "0x18267CAC0", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
BerOctetString berOctetString = new BerOctetString(Streams.ReadAll(new ConstructedOctetStream(this._parser)));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006B48 RID: 27464
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B48")]
|
||||
private readonly Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B6 RID: 6070
|
||||
[Token(Token = "0x20017B6")]
|
||||
[StructLayout(3)]
|
||||
public class BerOutputStream : DerOutputStream
|
||||
{
|
||||
// Token: 0x0600A3BA RID: 41914 RVA: 0x00261B78 File Offset: 0x0025FD78
|
||||
[Token(Token = "0x600A3BA")]
|
||||
[Address(RVA = "0x2677500", Offset = "0x2675F00", VA = "0x182677500")]
|
||||
public BerOutputStream(Stream os)
|
||||
: base(os)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3BB RID: 41915 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600A3BB")]
|
||||
[Address(RVA = "0x267D840", Offset = "0x267C240", VA = "0x18267D840", Slot = "31")]
|
||||
[Obsolete]
|
||||
public override void WriteObject(object obj)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B7 RID: 6071
|
||||
[Token(Token = "0x20017B7")]
|
||||
[StructLayout(3)]
|
||||
public class BerSequence : DerSequence
|
||||
{
|
||||
// Token: 0x0600A3BC RID: 41916 RVA: 0x00261B8C File Offset: 0x0025FD8C
|
||||
[Token(Token = "0x600A3BC")]
|
||||
[Address(RVA = "0x267DEC0", Offset = "0x267C8C0", VA = "0x18267DEC0")]
|
||||
public new static BerSequence FromVector(Asn1EncodableVector v)
|
||||
{
|
||||
IList v2 = v.v;
|
||||
return new BerSequence(v);
|
||||
}
|
||||
|
||||
// Token: 0x0600A3BD RID: 41917 RVA: 0x00261BAC File Offset: 0x0025FDAC
|
||||
[Token(Token = "0x600A3BD")]
|
||||
[Address(RVA = "0x267E070", Offset = "0x267CA70", VA = "0x18267E070")]
|
||||
public BerSequence()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3BE RID: 41918 RVA: 0x00261BC0 File Offset: 0x0025FDC0
|
||||
[Token(Token = "0x600A3BE")]
|
||||
[Address(RVA = "0x267E0D0", Offset = "0x267CAD0", VA = "0x18267E0D0")]
|
||||
public BerSequence(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3BF RID: 41919 RVA: 0x00261BD4 File Offset: 0x0025FDD4
|
||||
[Token(Token = "0x600A3BF")]
|
||||
[Address(RVA = "0x267E140", Offset = "0x267CB40", VA = "0x18267E140")]
|
||||
public BerSequence(params Asn1Encodable[] v)
|
||||
: base(v)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3C0 RID: 41920 RVA: 0x00261BE8 File Offset: 0x0025FDE8
|
||||
[Token(Token = "0x600A3C0")]
|
||||
[Address(RVA = "0x267E1B0", Offset = "0x267CBB0", VA = "0x18267E1B0")]
|
||||
public BerSequence(Asn1EncodableVector v)
|
||||
: base(v)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3C1 RID: 41921 RVA: 0x00261BFC File Offset: 0x0025FDFC
|
||||
[Token(Token = "0x600A3C1")]
|
||||
[Address(RVA = "0x267DBB0", Offset = "0x267C5B0", VA = "0x18267DBB0", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (derOut == 0 || (derOut == 0 && derOut == 0))
|
||||
{
|
||||
goto IL_51;
|
||||
}
|
||||
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_59;
|
||||
}
|
||||
derOut.WriteObject(num);
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_51:
|
||||
base.Encode(derOut);
|
||||
return;
|
||||
IL_59:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A3C2 RID: 41922 RVA: 0x00261C68 File Offset: 0x0025FE68
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600A3C2")]
|
||||
[Address(RVA = "0x267DFE0", Offset = "0x267C9E0", VA = "0x18267DFE0")]
|
||||
static BerSequence()
|
||||
{
|
||||
BerSequence berSequence = new BerSequence();
|
||||
}
|
||||
|
||||
// Token: 0x04006B53 RID: 27475
|
||||
[Token(Token = "0x4006B53")]
|
||||
public new static readonly BerSequence Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017AD RID: 6061
|
||||
[Token(Token = "0x20017AD")]
|
||||
[StructLayout(3)]
|
||||
public class BerSequenceGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600A397 RID: 41879 RVA: 0x00261520 File Offset: 0x0025F720
|
||||
[Token(Token = "0x600A397")]
|
||||
[Address(RVA = "0x267DAC0", Offset = "0x267C4C0", VA = "0x18267DAC0")]
|
||||
public BerSequenceGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(48);
|
||||
}
|
||||
|
||||
// Token: 0x0600A398 RID: 41880 RVA: 0x00261544 File Offset: 0x0025F744
|
||||
[Token(Token = "0x600A398")]
|
||||
[Address(RVA = "0x267DA60", Offset = "0x267C460", VA = "0x18267DA60")]
|
||||
public BerSequenceGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
base.WriteBerHeader(48);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017AE RID: 6062
|
||||
[Token(Token = "0x20017AE")]
|
||||
[StructLayout(3)]
|
||||
public class BerSequenceParser : Asn1SequenceParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A399 RID: 41881 RVA: 0x00261574 File Offset: 0x0025F774
|
||||
[Token(Token = "0x600A399")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
internal BerSequenceParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600A39A RID: 41882 RVA: 0x00261590 File Offset: 0x0025F790
|
||||
[Token(Token = "0x600A39A")]
|
||||
[Address(RVA = "0x18CD430", Offset = "0x18CBE30", VA = "0x1818CD430", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A39B RID: 41883 RVA: 0x002615AC File Offset: 0x0025F7AC
|
||||
[Token(Token = "0x600A39B")]
|
||||
[Address(RVA = "0x267DB00", Offset = "0x267C500", VA = "0x18267DB00", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
BerSequence berSequence = new BerSequence(this._parser.ReadVector());
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006B49 RID: 27465
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B49")]
|
||||
private readonly Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B8 RID: 6072
|
||||
[Token(Token = "0x20017B8")]
|
||||
[StructLayout(3)]
|
||||
public class BerSet : DerSet
|
||||
{
|
||||
// Token: 0x0600A3C3 RID: 41923 RVA: 0x00261C7C File Offset: 0x0025FE7C
|
||||
[Token(Token = "0x600A3C3")]
|
||||
[Address(RVA = "0x267E770", Offset = "0x267D170", VA = "0x18267E770")]
|
||||
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: 0x0600A3C4 RID: 41924 RVA: 0x00261CA4 File Offset: 0x0025FEA4
|
||||
[Token(Token = "0x600A3C4")]
|
||||
[Address(RVA = "0x267E680", Offset = "0x267D080", VA = "0x18267E680")]
|
||||
internal new static BerSet FromVector(Asn1EncodableVector v, bool needsSorting)
|
||||
{
|
||||
IList v2 = v.v;
|
||||
return new BerSet(v, needsSorting);
|
||||
}
|
||||
|
||||
// Token: 0x0600A3C5 RID: 41925 RVA: 0x00261CC8 File Offset: 0x0025FEC8
|
||||
[Token(Token = "0x600A3C5")]
|
||||
[Address(RVA = "0x267E990", Offset = "0x267D390", VA = "0x18267E990")]
|
||||
public BerSet()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3C6 RID: 41926 RVA: 0x00261CDC File Offset: 0x0025FEDC
|
||||
[Token(Token = "0x600A3C6")]
|
||||
[Address(RVA = "0x267E920", Offset = "0x267D320", VA = "0x18267E920")]
|
||||
public BerSet(Asn1Encodable obj)
|
||||
: base(obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3C7 RID: 41927 RVA: 0x00261CF0 File Offset: 0x0025FEF0
|
||||
[Token(Token = "0x600A3C7")]
|
||||
[Address(RVA = "0x267E9F0", Offset = "0x267D3F0", VA = "0x18267E9F0")]
|
||||
public BerSet(Asn1EncodableVector v)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(v, num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600A3C8 RID: 41928 RVA: 0x00261D08 File Offset: 0x0025FF08
|
||||
[Token(Token = "0x600A3C8")]
|
||||
[Address(RVA = "0x267EA60", Offset = "0x267D460", VA = "0x18267EA60")]
|
||||
internal BerSet(Asn1EncodableVector v, bool needsSorting)
|
||||
: base(v, needsSorting)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3C9 RID: 41929 RVA: 0x00261D20 File Offset: 0x0025FF20
|
||||
[Token(Token = "0x600A3C9")]
|
||||
[Address(RVA = "0x267E370", Offset = "0x267CD70", VA = "0x18267E370", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (derOut == 0 || (derOut == 0 && derOut == 0))
|
||||
{
|
||||
goto IL_51;
|
||||
}
|
||||
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_59;
|
||||
}
|
||||
derOut.WriteObject(num);
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_51:
|
||||
base.Encode(derOut);
|
||||
return;
|
||||
IL_59:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A3CA RID: 41930 RVA: 0x00261D8C File Offset: 0x0025FF8C
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600A3CA")]
|
||||
[Address(RVA = "0x267E890", Offset = "0x267D290", VA = "0x18267E890")]
|
||||
static BerSet()
|
||||
{
|
||||
BerSet berSet = new BerSet();
|
||||
}
|
||||
|
||||
// Token: 0x04006B54 RID: 27476
|
||||
[Token(Token = "0x4006B54")]
|
||||
public new static readonly BerSet Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017AF RID: 6063
|
||||
[Token(Token = "0x20017AF")]
|
||||
[StructLayout(3)]
|
||||
public class BerSetGenerator : BerGenerator
|
||||
{
|
||||
// Token: 0x0600A39C RID: 41884 RVA: 0x002615D0 File Offset: 0x0025F7D0
|
||||
[Token(Token = "0x600A39C")]
|
||||
[Address(RVA = "0x267E280", Offset = "0x267CC80", VA = "0x18267E280")]
|
||||
public BerSetGenerator(Stream outStream)
|
||||
{
|
||||
this._out = outStream;
|
||||
base.WriteBerHeader(49);
|
||||
}
|
||||
|
||||
// Token: 0x0600A39D RID: 41885 RVA: 0x002615F4 File Offset: 0x0025F7F4
|
||||
[Token(Token = "0x600A39D")]
|
||||
[Address(RVA = "0x267E220", Offset = "0x267CC20", VA = "0x18267E220")]
|
||||
public BerSetGenerator(Stream outStream, int tagNo, bool isExplicit)
|
||||
{
|
||||
this._out = outStream;
|
||||
this._isExplicit = isExplicit;
|
||||
this._tagNo = tagNo;
|
||||
base.WriteBerHeader(49);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B0 RID: 6064
|
||||
[Token(Token = "0x20017B0")]
|
||||
[StructLayout(3)]
|
||||
public class BerSetParser : Asn1SetParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A39E RID: 41886 RVA: 0x00261624 File Offset: 0x0025F824
|
||||
[Token(Token = "0x600A39E")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
internal BerSetParser(Asn1StreamParser parser)
|
||||
{
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x0600A39F RID: 41887 RVA: 0x00261640 File Offset: 0x0025F840
|
||||
[Token(Token = "0x600A39F")]
|
||||
[Address(RVA = "0x18CD430", Offset = "0x18CBE30", VA = "0x1818CD430", Slot = "4")]
|
||||
public IAsn1Convertible ReadObject()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A3A0 RID: 41888 RVA: 0x0026165C File Offset: 0x0025F85C
|
||||
[Token(Token = "0x600A3A0")]
|
||||
[Address(RVA = "0x267E2C0", Offset = "0x267CCC0", VA = "0x18267E2C0", Slot = "5")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
int num;
|
||||
BerSet berSet = new BerSet(this._parser.ReadVector(), num != 0);
|
||||
num = 0;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006B4A RID: 27466
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B4A")]
|
||||
private readonly Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B9 RID: 6073
|
||||
[Token(Token = "0x20017B9")]
|
||||
[StructLayout(3)]
|
||||
public class BerTaggedObject : DerTaggedObject
|
||||
{
|
||||
// Token: 0x0600A3CB RID: 41931 RVA: 0x00261DA0 File Offset: 0x0025FFA0
|
||||
[Token(Token = "0x600A3CB")]
|
||||
[Address(RVA = "0x267F180", Offset = "0x267DB80", VA = "0x18267F180")]
|
||||
public BerTaggedObject(int tagNo, Asn1Encodable obj)
|
||||
: base(tagNo, obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3CC RID: 41932 RVA: 0x00261DB8 File Offset: 0x0025FFB8
|
||||
[Token(Token = "0x600A3CC")]
|
||||
[Address(RVA = "0x267F170", Offset = "0x267DB70", VA = "0x18267F170")]
|
||||
public BerTaggedObject(bool explicitly, int tagNo, Asn1Encodable obj)
|
||||
: base(explicitly, tagNo, obj)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3CD RID: 41933 RVA: 0x00261DD0 File Offset: 0x0025FFD0
|
||||
[Token(Token = "0x600A3CD")]
|
||||
[Address(RVA = "0x267F190", Offset = "0x267DB90", VA = "0x18267F190")]
|
||||
public BerTaggedObject(int tagNo)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A3CE RID: 41934 RVA: 0x00261DE0 File Offset: 0x0025FFE0
|
||||
[Token(Token = "0x600A3CE")]
|
||||
[Address(RVA = "0x267ED20", Offset = "0x267D720", VA = "0x18267ED20", 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);
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x020017B1 RID: 6065
|
||||
[Token(Token = "0x20017B1")]
|
||||
[StructLayout(3)]
|
||||
public class BerTaggedObjectParser : Asn1TaggedObjectParser, IAsn1Convertible
|
||||
{
|
||||
// Token: 0x0600A3A1 RID: 41889 RVA: 0x00261684 File Offset: 0x0025F884
|
||||
[Token(Token = "0x600A3A1")]
|
||||
[Address(RVA = "0x267EC70", Offset = "0x267D670", VA = "0x18267EC70")]
|
||||
[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: 0x0600A3A2 RID: 41890 RVA: 0x002616B4 File Offset: 0x0025F8B4
|
||||
[Token(Token = "0x600A3A2")]
|
||||
[Address(RVA = "0x12D4D40", Offset = "0x12D3740", VA = "0x1812D4D40")]
|
||||
internal BerTaggedObjectParser(bool constructed, int tagNumber, Asn1StreamParser parser)
|
||||
{
|
||||
this._constructed = constructed;
|
||||
this._tagNumber = tagNumber;
|
||||
this._parser = parser;
|
||||
}
|
||||
|
||||
// Token: 0x170019A2 RID: 6562
|
||||
// (get) Token: 0x0600A3A3 RID: 41891 RVA: 0x002616DC File Offset: 0x0025F8DC
|
||||
[Token(Token = "0x170019A2")]
|
||||
public bool IsConstructed
|
||||
{
|
||||
[Token(Token = "0x600A3A3")]
|
||||
[Address(RVA = "0x559440", Offset = "0x557E40", VA = "0x180559440")]
|
||||
get
|
||||
{
|
||||
return this._constructed;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019A3 RID: 6563
|
||||
// (get) Token: 0x0600A3A4 RID: 41892 RVA: 0x002616F0 File Offset: 0x0025F8F0
|
||||
[Token(Token = "0x170019A3")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600A3A4")]
|
||||
[Address(RVA = "0x55D550", Offset = "0x55BF50", VA = "0x18055D550", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this._tagNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A3A5 RID: 41893 RVA: 0x00261704 File Offset: 0x0025F904
|
||||
[Token(Token = "0x600A3A5")]
|
||||
[Address(RVA = "0x267EAE0", Offset = "0x267D4E0", VA = "0x18267EAE0", Slot = "5")]
|
||||
public IAsn1Convertible GetObjectParser(int tag, bool isExplicit)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A3A5)
|
||||
|
||||
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: 0x0600A3A6 RID: 41894 RVA: 0x00261748 File Offset: 0x0025F948
|
||||
[Token(Token = "0x600A3A6")]
|
||||
[Address(RVA = "0x267EBB0", Offset = "0x267D5B0", VA = "0x18267EBB0", Slot = "6")]
|
||||
public Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1StreamParser parser = this._parser;
|
||||
int tagNumber = this._tagNumber;
|
||||
bool constructed = this._constructed;
|
||||
return parser.ReadTaggedObject(constructed, tagNumber);
|
||||
}
|
||||
|
||||
// Token: 0x04006B4B RID: 27467
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006B4B")]
|
||||
private bool _constructed;
|
||||
|
||||
// Token: 0x04006B4C RID: 27468
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4006B4C")]
|
||||
private int _tagNumber;
|
||||
|
||||
// Token: 0x04006B4D RID: 27469
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006B4D")]
|
||||
private Asn1StreamParser _parser;
|
||||
}
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Bsi
|
||||
{
|
||||
// Token: 0x02001992 RID: 6546
|
||||
[Token(Token = "0x2001992")]
|
||||
[StructLayout(3)]
|
||||
public abstract class BsiObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600AFCA RID: 45002 RVA: 0x00292294 File Offset: 0x00290494
|
||||
[Token(Token = "0x600AFCA")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected BsiObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007376 RID: 29558
|
||||
[Token(Token = "0x4007376")]
|
||||
public static readonly DerObjectIdentifier bsi_de = new DerObjectIdentifier("0.4.0.127.0.7");
|
||||
|
||||
// Token: 0x04007377 RID: 29559
|
||||
[Token(Token = "0x4007377")]
|
||||
public static readonly DerObjectIdentifier id_ecc = BsiObjectIdentifiers.bsi_de.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007378 RID: 29560
|
||||
[Token(Token = "0x4007378")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_signatures = BsiObjectIdentifiers.id_ecc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007379 RID: 29561
|
||||
[Token(Token = "0x4007379")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA1 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400737A RID: 29562
|
||||
[Token(Token = "0x400737A")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA224 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400737B RID: 29563
|
||||
[Token(Token = "0x400737B")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA256 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400737C RID: 29564
|
||||
[Token(Token = "0x400737C")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA384 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400737D RID: 29565
|
||||
[Token(Token = "0x400737D")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_SHA512 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400737E RID: 29566
|
||||
[Token(Token = "0x400737E")]
|
||||
public static readonly DerObjectIdentifier ecdsa_plain_RIPEMD160 = BsiObjectIdentifiers.ecdsa_plain_signatures.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400737F RID: 29567
|
||||
[Token(Token = "0x400737F")]
|
||||
public static readonly DerObjectIdentifier algorithm = BsiObjectIdentifiers.bsi_de.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007380 RID: 29568
|
||||
[Token(Token = "0x4007380")]
|
||||
public static readonly DerObjectIdentifier ecka_eg = BsiObjectIdentifiers.id_ecc.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007381 RID: 29569
|
||||
[Token(Token = "0x4007381")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf = BsiObjectIdentifiers.ecka_eg.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007382 RID: 29570
|
||||
[Token(Token = "0x4007382")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA1 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007383 RID: 29571
|
||||
[Token(Token = "0x4007383")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA224 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007384 RID: 29572
|
||||
[Token(Token = "0x4007384")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA256 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007385 RID: 29573
|
||||
[Token(Token = "0x4007385")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA384 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007386 RID: 29574
|
||||
[Token(Token = "0x4007386")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_SHA512 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007387 RID: 29575
|
||||
[Token(Token = "0x4007387")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_X963kdf_RIPEMD160 = BsiObjectIdentifiers.ecka_eg_X963kdf.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007388 RID: 29576
|
||||
[Token(Token = "0x4007388")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF = BsiObjectIdentifiers.ecka_eg.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007389 RID: 29577
|
||||
[Token(Token = "0x4007389")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_3DES = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400738A RID: 29578
|
||||
[Token(Token = "0x400738A")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES128 = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400738B RID: 29579
|
||||
[Token(Token = "0x400738B")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES192 = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400738C RID: 29580
|
||||
[Token(Token = "0x400738C")]
|
||||
public static readonly DerObjectIdentifier ecka_eg_SessionKDF_AES256 = BsiObjectIdentifiers.ecka_eg_SessionKDF.Asn1GetHashCode();
|
||||
}
|
||||
}
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196B RID: 6507
|
||||
[Token(Token = "0x200196B")]
|
||||
[StructLayout(3)]
|
||||
public class CAKeyUpdAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEC0 RID: 44736 RVA: 0x0028E358 File Offset: 0x0028C558
|
||||
[Token(Token = "0x600AEC0")]
|
||||
[Address(RVA = "0x267FED0", Offset = "0x267E8D0", VA = "0x18267FED0")]
|
||||
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: 0x0600AEC1 RID: 44737 RVA: 0x0028E3A0 File Offset: 0x0028C5A0
|
||||
[Token(Token = "0x600AEC1")]
|
||||
[Address(RVA = "0x267FB00", Offset = "0x267E500", VA = "0x18267FB00")]
|
||||
public static CAKeyUpdAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEC1)
|
||||
|
||||
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: 0x17001C17 RID: 7191
|
||||
// (get) Token: 0x0600AEC2 RID: 44738 RVA: 0x0028E408 File Offset: 0x0028C608
|
||||
[Token(Token = "0x17001C17")]
|
||||
public virtual CmpCertificate OldWithNew
|
||||
{
|
||||
[Token(Token = "0x600AEC2")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.oldWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C18 RID: 7192
|
||||
// (get) Token: 0x0600AEC3 RID: 44739 RVA: 0x0028E41C File Offset: 0x0028C61C
|
||||
[Token(Token = "0x17001C18")]
|
||||
public virtual CmpCertificate NewWithOld
|
||||
{
|
||||
[Token(Token = "0x600AEC3")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newWithOld;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C19 RID: 7193
|
||||
// (get) Token: 0x0600AEC4 RID: 44740 RVA: 0x0028E430 File Offset: 0x0028C630
|
||||
[Token(Token = "0x17001C19")]
|
||||
public virtual CmpCertificate NewWithNew
|
||||
{
|
||||
[Token(Token = "0x600AEC4")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.newWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEC5 RID: 44741 RVA: 0x0028E444 File Offset: 0x0028C644
|
||||
[Token(Token = "0x600AEC5")]
|
||||
[Address(RVA = "0x267FD60", Offset = "0x267E760", VA = "0x18267FD60", 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: 0x040072B0 RID: 29360
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B0")]
|
||||
private readonly CmpCertificate oldWithNew;
|
||||
|
||||
// Token: 0x040072B1 RID: 29361
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072B1")]
|
||||
private readonly CmpCertificate newWithOld;
|
||||
|
||||
// Token: 0x040072B2 RID: 29362
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072B2")]
|
||||
private readonly CmpCertificate newWithNew;
|
||||
}
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196C RID: 6508
|
||||
[Token(Token = "0x200196C")]
|
||||
[StructLayout(3)]
|
||||
public class CertConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEC6 RID: 44742 RVA: 0x0028E4A0 File Offset: 0x0028C6A0
|
||||
[Token(Token = "0x600AEC6")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private CertConfirmContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEC7 RID: 44743 RVA: 0x0028E4BC File Offset: 0x0028C6BC
|
||||
[Token(Token = "0x600AEC7")]
|
||||
[Address(RVA = "0x267FF70", Offset = "0x267E970", VA = "0x18267FF70")]
|
||||
public static CertConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEC7)
|
||||
|
||||
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: 0x0600AEC8 RID: 44744 RVA: 0x0028E514 File Offset: 0x0028C714
|
||||
[Token(Token = "0x600AEC8")]
|
||||
[Address(RVA = "0x2680160", Offset = "0x267EB60", VA = "0x182680160", 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: 0x0600AEC9 RID: 44745 RVA: 0x0028E560 File Offset: 0x0028C760
|
||||
[Token(Token = "0x600AEC9")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEC9)
|
||||
|
||||
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: 0x040072B3 RID: 29363
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B3")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196D RID: 6509
|
||||
[Token(Token = "0x200196D")]
|
||||
[StructLayout(3)]
|
||||
public class CertOrEncCert : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AECA RID: 44746 RVA: 0x0028E574 File Offset: 0x0028C774
|
||||
[Token(Token = "0x600AECA")]
|
||||
[Address(RVA = "0x2680680", Offset = "0x267F080", VA = "0x182680680")]
|
||||
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: 0x0600AECB RID: 44747 RVA: 0x0028E60C File Offset: 0x0028C80C
|
||||
[Token(Token = "0x600AECB")]
|
||||
[Address(RVA = "0x2680270", Offset = "0x267EC70", VA = "0x182680270")]
|
||||
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: 0x0600AECC RID: 44748 RVA: 0x0028E6D8 File Offset: 0x0028C8D8
|
||||
[Token(Token = "0x600AECC")]
|
||||
[Address(RVA = "0x26807D0", Offset = "0x267F1D0", VA = "0x1826807D0")]
|
||||
public CertOrEncCert(CmpCertificate certificate)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AECC)
|
||||
|
||||
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: 0x0600AECD RID: 44749 RVA: 0x0028E704 File Offset: 0x0028C904
|
||||
[Token(Token = "0x600AECD")]
|
||||
[Address(RVA = "0x2680600", Offset = "0x267F000", VA = "0x182680600")]
|
||||
public CertOrEncCert(EncryptedValue encryptedCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AECD)
|
||||
|
||||
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: 0x17001C1A RID: 7194
|
||||
// (get) Token: 0x0600AECE RID: 44750 RVA: 0x0028E730 File Offset: 0x0028C930
|
||||
[Token(Token = "0x17001C1A")]
|
||||
public virtual CmpCertificate Certificate
|
||||
{
|
||||
[Token(Token = "0x600AECE")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certificate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C1B RID: 7195
|
||||
// (get) Token: 0x0600AECF RID: 44751 RVA: 0x0028E744 File Offset: 0x0028C944
|
||||
[Token(Token = "0x17001C1B")]
|
||||
public virtual EncryptedValue EncryptedCert
|
||||
{
|
||||
[Token(Token = "0x600AECF")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AED0 RID: 44752 RVA: 0x0028E758 File Offset: 0x0028C958
|
||||
[Token(Token = "0x600AED0")]
|
||||
[Address(RVA = "0x2680560", Offset = "0x267EF60", VA = "0x182680560", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED0)
|
||||
|
||||
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: 0x040072B4 RID: 29364
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B4")]
|
||||
private readonly CmpCertificate certificate;
|
||||
|
||||
// Token: 0x040072B5 RID: 29365
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072B5")]
|
||||
private readonly EncryptedValue encryptedCert;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196E RID: 6510
|
||||
[Token(Token = "0x200196E")]
|
||||
[StructLayout(3)]
|
||||
public class CertRepMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AED1 RID: 44753 RVA: 0x0028E798 File Offset: 0x0028C998
|
||||
[Token(Token = "0x600AED1")]
|
||||
[Address(RVA = "0x2680F30", Offset = "0x267F930", VA = "0x182680F30")]
|
||||
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: 0x0600AED2 RID: 44754 RVA: 0x0028E7EC File Offset: 0x0028C9EC
|
||||
[Token(Token = "0x600AED2")]
|
||||
[Address(RVA = "0x2680970", Offset = "0x267F370", VA = "0x182680970")]
|
||||
public static CertRepMessage GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED2)
|
||||
|
||||
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: 0x0600AED3 RID: 44755 RVA: 0x0028E858 File Offset: 0x0028CA58
|
||||
[Token(Token = "0x600AED3")]
|
||||
[Address(RVA = "0x2681050", Offset = "0x267FA50", VA = "0x182681050")]
|
||||
public CertRepMessage(CmpCertificate[] caPubs, CertResponse[] response)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED3)
|
||||
|
||||
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: 0x0600AED4 RID: 44756 RVA: 0x0028E89C File Offset: 0x0028CA9C
|
||||
[Token(Token = "0x600AED4")]
|
||||
[Address(RVA = "0x2680850", Offset = "0x267F250", VA = "0x182680850", 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: 0x0600AED5 RID: 44757 RVA: 0x0028E8EC File Offset: 0x0028CAEC
|
||||
[Token(Token = "0x600AED5")]
|
||||
[Address(RVA = "0x2680C40", Offset = "0x267F640", VA = "0x182680C40", 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: 0x0600AED6 RID: 44758 RVA: 0x0028E938 File Offset: 0x0028CB38
|
||||
[Token(Token = "0x600AED6")]
|
||||
[Address(RVA = "0x2680D50", Offset = "0x267F750", VA = "0x182680D50", 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: 0x040072B6 RID: 29366
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B6")]
|
||||
private readonly Asn1Sequence caPubs;
|
||||
|
||||
// Token: 0x040072B7 RID: 29367
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072B7")]
|
||||
private readonly Asn1Sequence response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196F RID: 6511
|
||||
[Token(Token = "0x200196F")]
|
||||
[StructLayout(3)]
|
||||
public class CertResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AED7 RID: 44759 RVA: 0x0028E9B8 File Offset: 0x0028CBB8
|
||||
[Token(Token = "0x600AED7")]
|
||||
[Address(RVA = "0x2681540", Offset = "0x267FF40", VA = "0x182681540")]
|
||||
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: 0x0600AED8 RID: 44760 RVA: 0x0028EA34 File Offset: 0x0028CC34
|
||||
[Token(Token = "0x600AED8")]
|
||||
[Address(RVA = "0x2681130", Offset = "0x267FB30", VA = "0x182681130")]
|
||||
public static CertResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED8)
|
||||
|
||||
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: 0x0600AED9 RID: 44761 RVA: 0x0028EA84 File Offset: 0x0028CC84
|
||||
[Token(Token = "0x600AED9")]
|
||||
[Address(RVA = "0x26816D0", Offset = "0x26800D0", VA = "0x1826816D0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED9)
|
||||
|
||||
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: 0x0600AEDA RID: 44762 RVA: 0x0028EAD4 File Offset: 0x0028CCD4
|
||||
[Token(Token = "0x600AEDA")]
|
||||
[Address(RVA = "0x26817A0", Offset = "0x26801A0", VA = "0x1826817A0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEDA)
|
||||
|
||||
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: 0x17001C1C RID: 7196
|
||||
// (get) Token: 0x0600AEDB RID: 44763 RVA: 0x0028EB24 File Offset: 0x0028CD24
|
||||
[Token(Token = "0x17001C1C")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600AEDB")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C1D RID: 7197
|
||||
// (get) Token: 0x0600AEDC RID: 44764 RVA: 0x0028EB38 File Offset: 0x0028CD38
|
||||
[Token(Token = "0x17001C1D")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600AEDC")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C1E RID: 7198
|
||||
// (get) Token: 0x0600AEDD RID: 44765 RVA: 0x0028EB4C File Offset: 0x0028CD4C
|
||||
[Token(Token = "0x17001C1E")]
|
||||
public virtual CertifiedKeyPair CertifiedKeyPair
|
||||
{
|
||||
[Token(Token = "0x600AEDD")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.certifiedKeyPair;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEDE RID: 44766 RVA: 0x0028EB60 File Offset: 0x0028CD60
|
||||
[Token(Token = "0x600AEDE")]
|
||||
[Address(RVA = "0x2681320", Offset = "0x267FD20", VA = "0x182681320", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.certReqId;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
PkiStatusInfo pkiStatusInfo = this.status;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array[1] = pkiStatusInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
||||
CertifiedKeyPair certifiedKeyPair = this.certifiedKeyPair;
|
||||
if (certifiedKeyPair != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = certifiedKeyPair;
|
||||
Asn1OctetString asn1OctetString = this.rspInfo;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = asn1OctetString;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072B8 RID: 29368
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B8")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040072B9 RID: 29369
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072B9")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040072BA RID: 29370
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072BA")]
|
||||
private readonly CertifiedKeyPair certifiedKeyPair;
|
||||
|
||||
// Token: 0x040072BB RID: 29371
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40072BB")]
|
||||
private readonly Asn1OctetString rspInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001970 RID: 6512
|
||||
[Token(Token = "0x2001970")]
|
||||
[StructLayout(3)]
|
||||
public class CertStatus : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEDF RID: 44767 RVA: 0x0028EBEC File Offset: 0x0028CDEC
|
||||
[Token(Token = "0x600AEDF")]
|
||||
[Address(RVA = "0x2681D60", Offset = "0x2680760", VA = "0x182681D60")]
|
||||
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: 0x0600AEE0 RID: 44768 RVA: 0x0028EC38 File Offset: 0x0028CE38
|
||||
[Token(Token = "0x600AEE0")]
|
||||
[Address(RVA = "0x2681CC0", Offset = "0x26806C0", VA = "0x182681CC0")]
|
||||
public CertStatus(byte[] certHash, BigInteger certReqId)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(certHash);
|
||||
this.certHash = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(certReqId);
|
||||
this.certReqId = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEE1 RID: 44769 RVA: 0x0028EC68 File Offset: 0x0028CE68
|
||||
[Token(Token = "0x600AEE1")]
|
||||
[Address(RVA = "0x2681E20", Offset = "0x2680820", VA = "0x182681E20")]
|
||||
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: 0x0600AEE2 RID: 44770 RVA: 0x0028ECA0 File Offset: 0x0028CEA0
|
||||
[Token(Token = "0x600AEE2")]
|
||||
[Address(RVA = "0x2681880", Offset = "0x2680280", VA = "0x182681880")]
|
||||
public static CertStatus GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEE2)
|
||||
|
||||
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: 0x17001C1F RID: 7199
|
||||
// (get) Token: 0x0600AEE3 RID: 44771 RVA: 0x0028ED08 File Offset: 0x0028CF08
|
||||
[Token(Token = "0x17001C1F")]
|
||||
public virtual Asn1OctetString CertHash
|
||||
{
|
||||
[Token(Token = "0x600AEE3")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certHash;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C20 RID: 7200
|
||||
// (get) Token: 0x0600AEE4 RID: 44772 RVA: 0x0028ED1C File Offset: 0x0028CF1C
|
||||
[Token(Token = "0x17001C20")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600AEE4")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C21 RID: 7201
|
||||
// (get) Token: 0x0600AEE5 RID: 44773 RVA: 0x0028ED30 File Offset: 0x0028CF30
|
||||
[Token(Token = "0x17001C21")]
|
||||
public virtual PkiStatusInfo StatusInfo
|
||||
{
|
||||
[Token(Token = "0x600AEE5")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.statusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEE6 RID: 44774 RVA: 0x0028ED44 File Offset: 0x0028CF44
|
||||
[Token(Token = "0x600AEE6")]
|
||||
[Address(RVA = "0x2681B00", Offset = "0x2680500", VA = "0x182681B00", 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: 0x040072BC RID: 29372
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072BC")]
|
||||
private readonly Asn1OctetString certHash;
|
||||
|
||||
// Token: 0x040072BD RID: 29373
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072BD")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040072BE RID: 29374
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072BE")]
|
||||
private readonly PkiStatusInfo statusInfo;
|
||||
}
|
||||
}
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001971 RID: 6513
|
||||
[Token(Token = "0x2001971")]
|
||||
[StructLayout(3)]
|
||||
public class CertifiedKeyPair : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEE7 RID: 44775 RVA: 0x0028EDBC File Offset: 0x0028CFBC
|
||||
[Token(Token = "0x600AEE7")]
|
||||
[Address(RVA = "0x26823D0", Offset = "0x2680DD0", VA = "0x1826823D0")]
|
||||
private CertifiedKeyPair(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertOrEncCert certOrEncCert;
|
||||
this.certOrEncCert = certOrEncCert;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
EncryptedValue instance = EncryptedValue.GetInstance(asn1TaggedObject);
|
||||
this.privateKey = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject2;
|
||||
PkiPublicationInfo instance2 = PkiPublicationInfo.GetInstance(asn1TaggedObject2);
|
||||
this.publicationInfo = instance2;
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject3;
|
||||
Asn1Encodable obj = asn1TaggedObject3.obj;
|
||||
if (asn1TaggedObject3.tagNo != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object = obj.ToAsn1Object();
|
||||
}
|
||||
if (obj == 0)
|
||||
{
|
||||
EncryptedValue instance3 = EncryptedValue.GetInstance(0);
|
||||
this.privateKey = instance3;
|
||||
return;
|
||||
}
|
||||
int num;
|
||||
EncryptedValue instance4 = EncryptedValue.GetInstance(num);
|
||||
this.privateKey = instance4;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEE8 RID: 44776 RVA: 0x0028EE6C File Offset: 0x0028D06C
|
||||
[Token(Token = "0x600AEE8")]
|
||||
[Address(RVA = "0x2681ED0", Offset = "0x26808D0", VA = "0x182681ED0")]
|
||||
public static CertifiedKeyPair GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEE8)
|
||||
|
||||
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: 0x0600AEE9 RID: 44777 RVA: 0x0028EEBC File Offset: 0x0028D0BC
|
||||
[Token(Token = "0x600AEE9")]
|
||||
[Address(RVA = "0x2682540", Offset = "0x2680F40", VA = "0x182682540")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEE9)
|
||||
|
||||
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: 0x0600AEEA RID: 44778 RVA: 0x0028EEF8 File Offset: 0x0028D0F8
|
||||
[Token(Token = "0x600AEEA")]
|
||||
[Address(RVA = "0x2682330", Offset = "0x2680D30", VA = "0x182682330")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert, EncryptedValue privateKey, PkiPublicationInfo publicationInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEEA)
|
||||
|
||||
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: 0x17001C22 RID: 7202
|
||||
// (get) Token: 0x0600AEEB RID: 44779 RVA: 0x0028EF30 File Offset: 0x0028D130
|
||||
[Token(Token = "0x17001C22")]
|
||||
public virtual CertOrEncCert CertOrEncCert
|
||||
{
|
||||
[Token(Token = "0x600AEEB")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certOrEncCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C23 RID: 7203
|
||||
// (get) Token: 0x0600AEEC RID: 44780 RVA: 0x0028EF44 File Offset: 0x0028D144
|
||||
[Token(Token = "0x17001C23")]
|
||||
public virtual EncryptedValue PrivateKey
|
||||
{
|
||||
[Token(Token = "0x600AEEC")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.privateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C24 RID: 7204
|
||||
// (get) Token: 0x0600AEED RID: 44781 RVA: 0x0028EF58 File Offset: 0x0028D158
|
||||
[Token(Token = "0x17001C24")]
|
||||
public virtual PkiPublicationInfo PublicationInfo
|
||||
{
|
||||
[Token(Token = "0x600AEED")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.publicationInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEEE RID: 44782 RVA: 0x0028EF6C File Offset: 0x0028D16C
|
||||
[Token(Token = "0x600AEEE")]
|
||||
[Address(RVA = "0x26820C0", Offset = "0x2680AC0", VA = "0x1826820C0", 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: 0x040072BF RID: 29375
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072BF")]
|
||||
private readonly CertOrEncCert certOrEncCert;
|
||||
|
||||
// Token: 0x040072C0 RID: 29376
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072C0")]
|
||||
private readonly EncryptedValue privateKey;
|
||||
|
||||
// Token: 0x040072C1 RID: 29377
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072C1")]
|
||||
private readonly PkiPublicationInfo publicationInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001972 RID: 6514
|
||||
[Token(Token = "0x2001972")]
|
||||
[StructLayout(3)]
|
||||
public class Challenge : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEEF RID: 44783 RVA: 0x0028F02C File Offset: 0x0028D22C
|
||||
[Token(Token = "0x600AEEF")]
|
||||
[Address(RVA = "0x2682A60", Offset = "0x2681460", VA = "0x182682A60")]
|
||||
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: 0x0600AEF0 RID: 44784 RVA: 0x0028F078 File Offset: 0x0028D278
|
||||
[Token(Token = "0x600AEF0")]
|
||||
[Address(RVA = "0x26825D0", Offset = "0x2680FD0", VA = "0x1826825D0")]
|
||||
public static Challenge GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEF0)
|
||||
|
||||
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: 0x17001C25 RID: 7205
|
||||
// (get) Token: 0x0600AEF1 RID: 44785 RVA: 0x0028F0E0 File Offset: 0x0028D2E0
|
||||
[Token(Token = "0x17001C25")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600AEF1")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEF2 RID: 44786 RVA: 0x0028F0F4 File Offset: 0x0028D2F4
|
||||
[Token(Token = "0x600AEF2")]
|
||||
[Address(RVA = "0x2682850", Offset = "0x2681250", VA = "0x182682850", 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: 0x040072C2 RID: 29378
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072C2")]
|
||||
private readonly AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x040072C3 RID: 29379
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072C3")]
|
||||
private readonly Asn1OctetString witness;
|
||||
|
||||
// Token: 0x040072C4 RID: 29380
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072C4")]
|
||||
private readonly Asn1OctetString challenge;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001973 RID: 6515
|
||||
[Token(Token = "0x2001973")]
|
||||
[StructLayout(3)]
|
||||
public class CmpCertificate : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AEF3 RID: 44787 RVA: 0x0028F17C File Offset: 0x0028D37C
|
||||
[Token(Token = "0x600AEF3")]
|
||||
[Address(RVA = "0x3C3A00", Offset = "0x3C2400", VA = "0x1803C3A00")]
|
||||
public CmpCertificate(AttributeCertificate x509v2AttrCert)
|
||||
{
|
||||
this.x509v2AttrCert = x509v2AttrCert;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEF4 RID: 44788 RVA: 0x0028F198 File Offset: 0x0028D398
|
||||
[Token(Token = "0x600AEF4")]
|
||||
[Address(RVA = "0x2682EC0", Offset = "0x26818C0", VA = "0x182682EC0")]
|
||||
public CmpCertificate(X509CertificateStructure x509v3PKCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEF4)
|
||||
|
||||
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: 0x0600AEF5 RID: 44789 RVA: 0x0028F1D4 File Offset: 0x0028D3D4
|
||||
[Token(Token = "0x600AEF5")]
|
||||
[Address(RVA = "0x2682B30", Offset = "0x2681530", VA = "0x182682B30")]
|
||||
public static CmpCertificate GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEF5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_79:
|
||||
stloc:ArgumentException(var_12_88, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001C26 RID: 7206
|
||||
// (get) Token: 0x0600AEF6 RID: 44790 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17001C26")]
|
||||
public virtual bool IsX509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600AEF6")]
|
||||
[Address(RVA = "0x7BA0E0", Offset = "0x7B8AE0", VA = "0x1807BA0E0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C27 RID: 7207
|
||||
// (get) Token: 0x0600AEF7 RID: 44791 RVA: 0x0028F26C File Offset: 0x0028D46C
|
||||
[Token(Token = "0x17001C27")]
|
||||
public virtual X509CertificateStructure X509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600AEF7")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.x509v3PKCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C28 RID: 7208
|
||||
// (get) Token: 0x0600AEF8 RID: 44792 RVA: 0x0028F280 File Offset: 0x0028D480
|
||||
[Token(Token = "0x17001C28")]
|
||||
public virtual AttributeCertificate X509v2AttrCert
|
||||
{
|
||||
[Token(Token = "0x600AEF8")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEF9 RID: 44793 RVA: 0x0028F294 File Offset: 0x0028D494
|
||||
[Token(Token = "0x600AEF9")]
|
||||
[Address(RVA = "0x2682E20", Offset = "0x2681820", VA = "0x182682E20", 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: 0x040072C5 RID: 29381
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072C5")]
|
||||
private readonly X509CertificateStructure x509v3PKCert;
|
||||
|
||||
// Token: 0x040072C6 RID: 29382
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072C6")]
|
||||
private readonly AttributeCertificate x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001974 RID: 6516
|
||||
[Token(Token = "0x2001974")]
|
||||
[StructLayout(3)]
|
||||
public abstract class CmpObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600AEFA RID: 44794 RVA: 0x0028F2D0 File Offset: 0x0028D4D0
|
||||
[Token(Token = "0x600AEFA")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected CmpObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040072C7 RID: 29383
|
||||
[Token(Token = "0x40072C7")]
|
||||
public static readonly DerObjectIdentifier passwordBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.13");
|
||||
|
||||
// Token: 0x040072C8 RID: 29384
|
||||
[Token(Token = "0x40072C8")]
|
||||
public static readonly DerObjectIdentifier dhBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.30");
|
||||
|
||||
// Token: 0x040072C9 RID: 29385
|
||||
[Token(Token = "0x40072C9")]
|
||||
public static readonly DerObjectIdentifier it_caProtEncCert = new DerObjectIdentifier("1.3.6.1.5.5.7.4.1");
|
||||
|
||||
// Token: 0x040072CA RID: 29386
|
||||
[Token(Token = "0x40072CA")]
|
||||
public static readonly DerObjectIdentifier it_signKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.2");
|
||||
|
||||
// Token: 0x040072CB RID: 29387
|
||||
[Token(Token = "0x40072CB")]
|
||||
public static readonly DerObjectIdentifier it_encKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.3");
|
||||
|
||||
// Token: 0x040072CC RID: 29388
|
||||
[Token(Token = "0x40072CC")]
|
||||
public static readonly DerObjectIdentifier it_preferredSymAlg = new DerObjectIdentifier("1.3.6.1.5.5.7.4.4");
|
||||
|
||||
// Token: 0x040072CD RID: 29389
|
||||
[Token(Token = "0x40072CD")]
|
||||
public static readonly DerObjectIdentifier it_caKeyUpdateInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.4.5");
|
||||
|
||||
// Token: 0x040072CE RID: 29390
|
||||
[Token(Token = "0x40072CE")]
|
||||
public static readonly DerObjectIdentifier it_currentCRL = new DerObjectIdentifier("1.3.6.1.5.5.7.4.6");
|
||||
|
||||
// Token: 0x040072CF RID: 29391
|
||||
[Token(Token = "0x40072CF")]
|
||||
public static readonly DerObjectIdentifier it_unsupportedOIDs = new DerObjectIdentifier("1.3.6.1.5.5.7.4.7");
|
||||
|
||||
// Token: 0x040072D0 RID: 29392
|
||||
[Token(Token = "0x40072D0")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamReq = new DerObjectIdentifier("1.3.6.1.5.5.7.4.10");
|
||||
|
||||
// Token: 0x040072D1 RID: 29393
|
||||
[Token(Token = "0x40072D1")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamRep = new DerObjectIdentifier("1.3.6.1.5.5.7.4.11");
|
||||
|
||||
// Token: 0x040072D2 RID: 29394
|
||||
[Token(Token = "0x40072D2")]
|
||||
public static readonly DerObjectIdentifier it_revPassphrase = new DerObjectIdentifier("1.3.6.1.5.5.7.4.12");
|
||||
|
||||
// Token: 0x040072D3 RID: 29395
|
||||
[Token(Token = "0x40072D3")]
|
||||
public static readonly DerObjectIdentifier it_implicitConfirm = new DerObjectIdentifier("1.3.6.1.5.5.7.4.13");
|
||||
|
||||
// Token: 0x040072D4 RID: 29396
|
||||
[Token(Token = "0x40072D4")]
|
||||
public static readonly DerObjectIdentifier it_confirmWaitTime = new DerObjectIdentifier("1.3.6.1.5.5.7.4.14");
|
||||
|
||||
// Token: 0x040072D5 RID: 29397
|
||||
[Token(Token = "0x40072D5")]
|
||||
public static readonly DerObjectIdentifier it_origPKIMessage = new DerObjectIdentifier("1.3.6.1.5.5.7.4.15");
|
||||
|
||||
// Token: 0x040072D6 RID: 29398
|
||||
[Token(Token = "0x40072D6")]
|
||||
public static readonly DerObjectIdentifier it_suppLangTags = new DerObjectIdentifier("1.3.6.1.5.5.7.4.16");
|
||||
|
||||
// Token: 0x040072D7 RID: 29399
|
||||
[Token(Token = "0x40072D7")]
|
||||
public static readonly DerObjectIdentifier regCtrl_regToken = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.1");
|
||||
|
||||
// Token: 0x040072D8 RID: 29400
|
||||
[Token(Token = "0x40072D8")]
|
||||
public static readonly DerObjectIdentifier regCtrl_authenticator = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.2");
|
||||
|
||||
// Token: 0x040072D9 RID: 29401
|
||||
[Token(Token = "0x40072D9")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiPublicationInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.3");
|
||||
|
||||
// Token: 0x040072DA RID: 29402
|
||||
[Token(Token = "0x40072DA")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiArchiveOptions = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.4");
|
||||
|
||||
// Token: 0x040072DB RID: 29403
|
||||
[Token(Token = "0x40072DB")]
|
||||
public static readonly DerObjectIdentifier regCtrl_oldCertID = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.5");
|
||||
|
||||
// Token: 0x040072DC RID: 29404
|
||||
[Token(Token = "0x40072DC")]
|
||||
public static readonly DerObjectIdentifier regCtrl_protocolEncrKey = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.6");
|
||||
|
||||
// Token: 0x040072DD RID: 29405
|
||||
[Token(Token = "0x40072DD")]
|
||||
public static readonly DerObjectIdentifier regCtrl_altCertTemplate = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.7");
|
||||
|
||||
// Token: 0x040072DE RID: 29406
|
||||
[Token(Token = "0x40072DE")]
|
||||
public static readonly DerObjectIdentifier regInfo_utf8Pairs = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.1");
|
||||
|
||||
// Token: 0x040072DF RID: 29407
|
||||
[Token(Token = "0x40072DF")]
|
||||
public static readonly DerObjectIdentifier regInfo_certReq = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.2");
|
||||
|
||||
// Token: 0x040072E0 RID: 29408
|
||||
[Token(Token = "0x40072E0")]
|
||||
public static readonly DerObjectIdentifier ct_encKeyWithID = new DerObjectIdentifier("1.2.840.113549.1.9.16.1.21");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001975 RID: 6517
|
||||
[Token(Token = "0x2001975")]
|
||||
[StructLayout(3)]
|
||||
public class CrlAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEFC RID: 44796 RVA: 0x0028F478 File Offset: 0x0028D678
|
||||
[Token(Token = "0x600AEFC")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private CrlAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEFD RID: 44797 RVA: 0x0028F494 File Offset: 0x0028D694
|
||||
[Token(Token = "0x600AEFD")]
|
||||
[Address(RVA = "0x26834E0", Offset = "0x2681EE0", VA = "0x1826834E0")]
|
||||
public static CrlAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEFD)
|
||||
|
||||
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: 0x0600AEFE RID: 44798 RVA: 0x0028F4EC File Offset: 0x0028D6EC
|
||||
[Token(Token = "0x600AEFE")]
|
||||
[Address(RVA = "0x26836D0", Offset = "0x26820D0", VA = "0x1826836D0", 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: 0x0600AEFF RID: 44799 RVA: 0x0028F538 File Offset: 0x0028D738
|
||||
[Token(Token = "0x600AEFF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEFF)
|
||||
|
||||
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: 0x040072E1 RID: 29409
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E1")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001976 RID: 6518
|
||||
[Token(Token = "0x2001976")]
|
||||
[StructLayout(3)]
|
||||
public class ErrorMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF00 RID: 44800 RVA: 0x0028F54C File Offset: 0x0028D74C
|
||||
[Token(Token = "0x600AF00")]
|
||||
[Address(RVA = "0x2684E60", Offset = "0x2683860", VA = "0x182684E60")]
|
||||
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: 0x0600AF01 RID: 44801 RVA: 0x0028F59C File Offset: 0x0028D79C
|
||||
[Token(Token = "0x600AF01")]
|
||||
[Address(RVA = "0x26849A0", Offset = "0x26833A0", VA = "0x1826849A0")]
|
||||
public static ErrorMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF01)
|
||||
|
||||
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: 0x0600AF02 RID: 44802 RVA: 0x0028F60C File Offset: 0x0028D80C
|
||||
[Token(Token = "0x600AF02")]
|
||||
[Address(RVA = "0x2684F90", Offset = "0x2683990", VA = "0x182684F90")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF02)
|
||||
|
||||
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: 0x0600AF03 RID: 44803 RVA: 0x0028F648 File Offset: 0x0028D848
|
||||
[Token(Token = "0x600AF03")]
|
||||
[Address(RVA = "0x2685020", Offset = "0x2683A20", VA = "0x182685020")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo, DerInteger errorCode, PkiFreeText errorDetails)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF03)
|
||||
|
||||
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: 0x17001C29 RID: 7209
|
||||
// (get) Token: 0x0600AF04 RID: 44804 RVA: 0x0028F680 File Offset: 0x0028D880
|
||||
[Token(Token = "0x17001C29")]
|
||||
public virtual PkiStatusInfo PkiStatusInfo
|
||||
{
|
||||
[Token(Token = "0x600AF04")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pkiStatusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C2A RID: 7210
|
||||
// (get) Token: 0x0600AF05 RID: 44805 RVA: 0x0028F694 File Offset: 0x0028D894
|
||||
[Token(Token = "0x17001C2A")]
|
||||
public virtual DerInteger ErrorCode
|
||||
{
|
||||
[Token(Token = "0x600AF05")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.errorCode;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C2B RID: 7211
|
||||
// (get) Token: 0x0600AF06 RID: 44806 RVA: 0x0028F6A8 File Offset: 0x0028D8A8
|
||||
[Token(Token = "0x17001C2B")]
|
||||
public virtual PkiFreeText ErrorDetails
|
||||
{
|
||||
[Token(Token = "0x600AF06")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.errorDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF07 RID: 44807 RVA: 0x0028F6BC File Offset: 0x0028D8BC
|
||||
[Token(Token = "0x600AF07")]
|
||||
[Address(RVA = "0x2684C90", Offset = "0x2683690", VA = "0x182684C90", 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: 0x040072E2 RID: 29410
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E2")]
|
||||
private readonly PkiStatusInfo pkiStatusInfo;
|
||||
|
||||
// Token: 0x040072E3 RID: 29411
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072E3")]
|
||||
private readonly DerInteger errorCode;
|
||||
|
||||
// Token: 0x040072E4 RID: 29412
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072E4")]
|
||||
private readonly PkiFreeText errorDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001977 RID: 6519
|
||||
[Token(Token = "0x2001977")]
|
||||
[StructLayout(3)]
|
||||
public class GenMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF08 RID: 44808 RVA: 0x0028F734 File Offset: 0x0028D934
|
||||
[Token(Token = "0x600AF08")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private GenMsgContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF09 RID: 44809 RVA: 0x0028F750 File Offset: 0x0028D950
|
||||
[Token(Token = "0x600AF09")]
|
||||
[Address(RVA = "0x26852C0", Offset = "0x2683CC0", VA = "0x1826852C0")]
|
||||
public static GenMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF09)
|
||||
|
||||
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: 0x0600AF0A RID: 44810 RVA: 0x0028F7A8 File Offset: 0x0028D9A8
|
||||
[Token(Token = "0x600AF0A")]
|
||||
[Address(RVA = "0x26855C0", Offset = "0x2683FC0", VA = "0x1826855C0")]
|
||||
public GenMsgContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF0B RID: 44811 RVA: 0x0028F7CC File Offset: 0x0028D9CC
|
||||
[Token(Token = "0x600AF0B")]
|
||||
[Address(RVA = "0x26854B0", Offset = "0x2683EB0", VA = "0x1826854B0", 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: 0x0600AF0C RID: 44812 RVA: 0x0028F818 File Offset: 0x0028DA18
|
||||
[Token(Token = "0x600AF0C")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF0C)
|
||||
|
||||
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: 0x040072E5 RID: 29413
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E5")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001978 RID: 6520
|
||||
[Token(Token = "0x2001978")]
|
||||
[StructLayout(3)]
|
||||
public class GenRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF0D RID: 44813 RVA: 0x0028F82C File Offset: 0x0028DA2C
|
||||
[Token(Token = "0x600AF0D")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private GenRepContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF0E RID: 44814 RVA: 0x0028F848 File Offset: 0x0028DA48
|
||||
[Token(Token = "0x600AF0E")]
|
||||
[Address(RVA = "0x2685630", Offset = "0x2684030", VA = "0x182685630")]
|
||||
public static GenRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF0E)
|
||||
|
||||
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: 0x0600AF0F RID: 44815 RVA: 0x0028F8A0 File Offset: 0x0028DAA0
|
||||
[Token(Token = "0x600AF0F")]
|
||||
[Address(RVA = "0x2685930", Offset = "0x2684330", VA = "0x182685930")]
|
||||
public GenRepContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF10 RID: 44816 RVA: 0x0028F8C4 File Offset: 0x0028DAC4
|
||||
[Token(Token = "0x600AF10")]
|
||||
[Address(RVA = "0x2685820", Offset = "0x2684220", VA = "0x182685820", 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: 0x0600AF11 RID: 44817 RVA: 0x0028F910 File Offset: 0x0028DB10
|
||||
[Token(Token = "0x600AF11")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF11)
|
||||
|
||||
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: 0x040072E6 RID: 29414
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E6")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001979 RID: 6521
|
||||
[Token(Token = "0x2001979")]
|
||||
[StructLayout(3)]
|
||||
public class InfoTypeAndValue : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF12 RID: 44818 RVA: 0x0028F924 File Offset: 0x0028DB24
|
||||
[Token(Token = "0x600AF12")]
|
||||
[Address(RVA = "0x2687070", Offset = "0x2685A70", VA = "0x182687070")]
|
||||
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: 0x0600AF13 RID: 44819 RVA: 0x0028F960 File Offset: 0x0028DB60
|
||||
[Token(Token = "0x600AF13")]
|
||||
[Address(RVA = "0x2686C80", Offset = "0x2685680", VA = "0x182686C80")]
|
||||
public static InfoTypeAndValue GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF13)
|
||||
|
||||
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: 0x0600AF14 RID: 44820 RVA: 0x0028F9B0 File Offset: 0x0028DBB0
|
||||
[Token(Token = "0x600AF14")]
|
||||
[Address(RVA = "0xC25EB0", Offset = "0xC248B0", VA = "0x180C25EB0")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF15 RID: 44821 RVA: 0x0028F9D4 File Offset: 0x0028DBD4
|
||||
[Token(Token = "0x600AF15")]
|
||||
[Address(RVA = "0x3C39C0", Offset = "0x3C23C0", VA = "0x1803C39C0")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType, Asn1Encodable optionalValue)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = optionalValue;
|
||||
}
|
||||
|
||||
// Token: 0x17001C2C RID: 7212
|
||||
// (get) Token: 0x0600AF16 RID: 44822 RVA: 0x0028F9F8 File Offset: 0x0028DBF8
|
||||
[Token(Token = "0x17001C2C")]
|
||||
public virtual DerObjectIdentifier InfoType
|
||||
{
|
||||
[Token(Token = "0x600AF16")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.infoType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C2D RID: 7213
|
||||
// (get) Token: 0x0600AF17 RID: 44823 RVA: 0x0028FA0C File Offset: 0x0028DC0C
|
||||
[Token(Token = "0x17001C2D")]
|
||||
public virtual Asn1Encodable InfoValue
|
||||
{
|
||||
[Token(Token = "0x600AF17")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.infoValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF18 RID: 44824 RVA: 0x0028FA20 File Offset: 0x0028DC20
|
||||
[Token(Token = "0x600AF18")]
|
||||
[Address(RVA = "0x2686F00", Offset = "0x2685900", VA = "0x182686F00", 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: 0x040072E7 RID: 29415
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E7")]
|
||||
private readonly DerObjectIdentifier infoType;
|
||||
|
||||
// Token: 0x040072E8 RID: 29416
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072E8")]
|
||||
private readonly Asn1Encodable infoValue;
|
||||
}
|
||||
}
|
||||
+208
@@ -0,0 +1,208 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197A RID: 6522
|
||||
[Token(Token = "0x200197A")]
|
||||
[StructLayout(3)]
|
||||
public class KeyRecRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF19 RID: 44825 RVA: 0x0028FA8C File Offset: 0x0028DC8C
|
||||
[Token(Token = "0x600AF19")]
|
||||
[Address(RVA = "0x28F1D50", Offset = "0x28F0750", VA = "0x1828F1D50")]
|
||||
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: 0x0600AF1A RID: 44826 RVA: 0x0028FB3C File Offset: 0x0028DD3C
|
||||
[Token(Token = "0x600AF1A")]
|
||||
[Address(RVA = "0x28F1900", Offset = "0x28F0300", VA = "0x1828F1900")]
|
||||
public static KeyRecRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF1A)
|
||||
|
||||
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: 0x17001C2E RID: 7214
|
||||
// (get) Token: 0x0600AF1B RID: 44827 RVA: 0x0028FB8C File Offset: 0x0028DD8C
|
||||
[Token(Token = "0x17001C2E")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600AF1B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C2F RID: 7215
|
||||
// (get) Token: 0x0600AF1C RID: 44828 RVA: 0x0028FBA0 File Offset: 0x0028DDA0
|
||||
[Token(Token = "0x17001C2F")]
|
||||
public virtual CmpCertificate NewSigCert
|
||||
{
|
||||
[Token(Token = "0x600AF1C")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newSigCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF1D RID: 44829 RVA: 0x0028FBB4 File Offset: 0x0028DDB4
|
||||
[Token(Token = "0x600AF1D")]
|
||||
[Address(RVA = "0x28F17E0", Offset = "0x28F01E0", VA = "0x1828F17E0", 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: 0x0600AF1E RID: 44830 RVA: 0x0028FC04 File Offset: 0x0028DE04
|
||||
[Token(Token = "0x600AF1E")]
|
||||
[Address(RVA = "0x28F1AF0", Offset = "0x28F04F0", VA = "0x1828F1AF0", 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: 0x0600AF1F RID: 44831 RVA: 0x0028FC54 File Offset: 0x0028DE54
|
||||
[Token(Token = "0x600AF1F")]
|
||||
[Address(RVA = "0x28F1C10", Offset = "0x28F0610", VA = "0x1828F1C10", 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: 0x0600AF20 RID: 44832 RVA: 0x0028FCCC File Offset: 0x0028DECC
|
||||
[Token(Token = "0x600AF20")]
|
||||
[Address(RVA = "0x28F16E0", Offset = "0x28F00E0", VA = "0x1828F16E0")]
|
||||
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: 0x040072E9 RID: 29417
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E9")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040072EA RID: 29418
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072EA")]
|
||||
private readonly CmpCertificate newSigCert;
|
||||
|
||||
// Token: 0x040072EB RID: 29419
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072EB")]
|
||||
private readonly Asn1Sequence caCerts;
|
||||
|
||||
// Token: 0x040072EC RID: 29420
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40072EC")]
|
||||
private readonly Asn1Sequence keyPairHist;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197B RID: 6523
|
||||
[Token(Token = "0x200197B")]
|
||||
[StructLayout(3)]
|
||||
public class OobCertHash : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF21 RID: 44833 RVA: 0x0028FD08 File Offset: 0x0028DF08
|
||||
[Token(Token = "0x600AF21")]
|
||||
[Address(RVA = "0x28F3680", Offset = "0x28F2080", VA = "0x1828F3680")]
|
||||
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: 0x0600AF22 RID: 44834 RVA: 0x0028FD54 File Offset: 0x0028DF54
|
||||
[Token(Token = "0x600AF22")]
|
||||
[Address(RVA = "0x28F3210", Offset = "0x28F1C10", VA = "0x1828F3210")]
|
||||
public static OobCertHash GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF22)
|
||||
|
||||
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: 0x17001C30 RID: 7216
|
||||
// (get) Token: 0x0600AF23 RID: 44835 RVA: 0x0028FDC4 File Offset: 0x0028DFC4
|
||||
[Token(Token = "0x17001C30")]
|
||||
public virtual AlgorithmIdentifier HashAlg
|
||||
{
|
||||
[Token(Token = "0x600AF23")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.hashAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C31 RID: 7217
|
||||
// (get) Token: 0x0600AF24 RID: 44836 RVA: 0x0028FDD8 File Offset: 0x0028DFD8
|
||||
[Token(Token = "0x17001C31")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600AF24")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF25 RID: 44837 RVA: 0x0028FDEC File Offset: 0x0028DFEC
|
||||
[Token(Token = "0x600AF25")]
|
||||
[Address(RVA = "0x28F3540", Offset = "0x28F1F40", VA = "0x1828F3540", 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: 0x0600AF26 RID: 44838 RVA: 0x0028FE54 File Offset: 0x0028E054
|
||||
[Token(Token = "0x600AF26")]
|
||||
[Address(RVA = "0x28F3110", Offset = "0x28F1B10", VA = "0x1828F3110")]
|
||||
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: 0x040072ED RID: 29421
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072ED")]
|
||||
private readonly AlgorithmIdentifier hashAlg;
|
||||
|
||||
// Token: 0x040072EE RID: 29422
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072EE")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x040072EF RID: 29423
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072EF")]
|
||||
private readonly DerBitString hashVal;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001987 RID: 6535
|
||||
[Token(Token = "0x2001987")]
|
||||
[StructLayout(3)]
|
||||
public class PbmParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF86 RID: 44934 RVA: 0x0029121C File Offset: 0x0028F41C
|
||||
[Token(Token = "0x600AF86")]
|
||||
[Address(RVA = "0x28F65C0", Offset = "0x28F4FC0", VA = "0x1828F65C0")]
|
||||
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: 0x0600AF87 RID: 44935 RVA: 0x00291274 File Offset: 0x0028F474
|
||||
[Token(Token = "0x600AF87")]
|
||||
[Address(RVA = "0x28F6180", Offset = "0x28F4B80", VA = "0x1828F6180")]
|
||||
public static PbmParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF87)
|
||||
|
||||
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: 0x0600AF88 RID: 44936 RVA: 0x002912E4 File Offset: 0x0028F4E4
|
||||
[Token(Token = "0x600AF88")]
|
||||
[Address(RVA = "0x28F6690", Offset = "0x28F5090", VA = "0x1828F6690")]
|
||||
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: 0x0600AF89 RID: 44937 RVA: 0x00291324 File Offset: 0x0028F524
|
||||
[Token(Token = "0x600AF89")]
|
||||
[Address(RVA = "0x9BCAC0", Offset = "0x9BB4C0", VA = "0x1809BCAC0")]
|
||||
public PbmParameter(Asn1OctetString salt, AlgorithmIdentifier owf, DerInteger iterationCount, AlgorithmIdentifier mac)
|
||||
{
|
||||
this.salt = salt;
|
||||
this.iterationCount = iterationCount;
|
||||
this.mac = 0;
|
||||
this.owf = owf;
|
||||
}
|
||||
|
||||
// Token: 0x17001C49 RID: 7241
|
||||
// (get) Token: 0x0600AF8A RID: 44938 RVA: 0x00291354 File Offset: 0x0028F554
|
||||
[Token(Token = "0x17001C49")]
|
||||
public virtual Asn1OctetString Salt
|
||||
{
|
||||
[Token(Token = "0x600AF8A")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.salt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4A RID: 7242
|
||||
// (get) Token: 0x0600AF8B RID: 44939 RVA: 0x00291368 File Offset: 0x0028F568
|
||||
[Token(Token = "0x17001C4A")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600AF8B")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4B RID: 7243
|
||||
// (get) Token: 0x0600AF8C RID: 44940 RVA: 0x0029137C File Offset: 0x0028F57C
|
||||
[Token(Token = "0x17001C4B")]
|
||||
public virtual DerInteger IterationCount
|
||||
{
|
||||
[Token(Token = "0x600AF8C")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.iterationCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4C RID: 7244
|
||||
// (get) Token: 0x0600AF8D RID: 44941 RVA: 0x00291390 File Offset: 0x0028F590
|
||||
[Token(Token = "0x17001C4C")]
|
||||
public virtual AlgorithmIdentifier Mac
|
||||
{
|
||||
[Token(Token = "0x600AF8D")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF8E RID: 44942 RVA: 0x002913A4 File Offset: 0x0028F5A4
|
||||
[Token(Token = "0x600AF8E")]
|
||||
[Address(RVA = "0x28F6400", Offset = "0x28F4E00", VA = "0x1828F6400", 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: 0x0400735C RID: 29532
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400735C")]
|
||||
private Asn1OctetString salt;
|
||||
|
||||
// Token: 0x0400735D RID: 29533
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400735D")]
|
||||
private AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x0400735E RID: 29534
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400735E")]
|
||||
private DerInteger iterationCount;
|
||||
|
||||
// Token: 0x0400735F RID: 29535
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400735F")]
|
||||
private AlgorithmIdentifier mac;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197C RID: 6524
|
||||
[Token(Token = "0x200197C")]
|
||||
[StructLayout(3)]
|
||||
public class PkiBody : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AF27 RID: 44839 RVA: 0x0028FE90 File Offset: 0x0028E090
|
||||
[Token(Token = "0x600AF27")]
|
||||
[Address(RVA = "0x28F6A00", Offset = "0x28F5400", VA = "0x1828F6A00")]
|
||||
public static PkiBody GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF27)
|
||||
|
||||
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: 0x0600AF28 RID: 44840 RVA: 0x0028FEF0 File Offset: 0x0028E0F0
|
||||
[Token(Token = "0x600AF28")]
|
||||
[Address(RVA = "0x28F6C80", Offset = "0x28F5680", VA = "0x1828F6C80")]
|
||||
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: 0x0600AF29 RID: 44841 RVA: 0x0028FF30 File Offset: 0x0028E130
|
||||
[Token(Token = "0x600AF29")]
|
||||
[Address(RVA = "0x28F6CE0", Offset = "0x28F56E0", VA = "0x1828F6CE0")]
|
||||
public PkiBody(int type, Asn1Encodable content)
|
||||
{
|
||||
this.tagNo = type;
|
||||
Asn1Encodable bodyForType = PkiBody.GetBodyForType(type, content);
|
||||
this.body = bodyForType;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF2A RID: 44842 RVA: 0x0028FF5C File Offset: 0x0028E15C
|
||||
[Token(Token = "0x600AF2A")]
|
||||
[Address(RVA = "0x28F6750", Offset = "0x28F5150", VA = "0x1828F6750")]
|
||||
private static Asn1Encodable GetBodyForType(int type, Asn1Encodable o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF2A)
|
||||
|
||||
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: 0x17001C32 RID: 7218
|
||||
// (get) Token: 0x0600AF2B RID: 44843 RVA: 0x0028FF8C File Offset: 0x0028E18C
|
||||
[Token(Token = "0x17001C32")]
|
||||
public virtual int Type
|
||||
{
|
||||
[Token(Token = "0x600AF2B")]
|
||||
[Address(RVA = "0x3C1C50", Offset = "0x3C0650", VA = "0x1803C1C50", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C33 RID: 7219
|
||||
// (get) Token: 0x0600AF2C RID: 44844 RVA: 0x0028FFA0 File Offset: 0x0028E1A0
|
||||
[Token(Token = "0x17001C33")]
|
||||
public virtual Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600AF2C")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF2D RID: 44845 RVA: 0x0028FFB4 File Offset: 0x0028E1B4
|
||||
[Token(Token = "0x600AF2D")]
|
||||
[Address(RVA = "0x28F6C10", Offset = "0x28F5610", VA = "0x1828F6C10", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF2D)
|
||||
|
||||
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: 0x040072F0 RID: 29424
|
||||
[Token(Token = "0x40072F0")]
|
||||
public const int TYPE_INIT_REQ = 0;
|
||||
|
||||
// Token: 0x040072F1 RID: 29425
|
||||
[Token(Token = "0x40072F1")]
|
||||
public const int TYPE_INIT_REP = 1;
|
||||
|
||||
// Token: 0x040072F2 RID: 29426
|
||||
[Token(Token = "0x40072F2")]
|
||||
public const int TYPE_CERT_REQ = 2;
|
||||
|
||||
// Token: 0x040072F3 RID: 29427
|
||||
[Token(Token = "0x40072F3")]
|
||||
public const int TYPE_CERT_REP = 3;
|
||||
|
||||
// Token: 0x040072F4 RID: 29428
|
||||
[Token(Token = "0x40072F4")]
|
||||
public const int TYPE_P10_CERT_REQ = 4;
|
||||
|
||||
// Token: 0x040072F5 RID: 29429
|
||||
[Token(Token = "0x40072F5")]
|
||||
public const int TYPE_POPO_CHALL = 5;
|
||||
|
||||
// Token: 0x040072F6 RID: 29430
|
||||
[Token(Token = "0x40072F6")]
|
||||
public const int TYPE_POPO_REP = 6;
|
||||
|
||||
// Token: 0x040072F7 RID: 29431
|
||||
[Token(Token = "0x40072F7")]
|
||||
public const int TYPE_KEY_UPDATE_REQ = 7;
|
||||
|
||||
// Token: 0x040072F8 RID: 29432
|
||||
[Token(Token = "0x40072F8")]
|
||||
public const int TYPE_KEY_UPDATE_REP = 8;
|
||||
|
||||
// Token: 0x040072F9 RID: 29433
|
||||
[Token(Token = "0x40072F9")]
|
||||
public const int TYPE_KEY_RECOVERY_REQ = 9;
|
||||
|
||||
// Token: 0x040072FA RID: 29434
|
||||
[Token(Token = "0x40072FA")]
|
||||
public const int TYPE_KEY_RECOVERY_REP = 10;
|
||||
|
||||
// Token: 0x040072FB RID: 29435
|
||||
[Token(Token = "0x40072FB")]
|
||||
public const int TYPE_REVOCATION_REQ = 11;
|
||||
|
||||
// Token: 0x040072FC RID: 29436
|
||||
[Token(Token = "0x40072FC")]
|
||||
public const int TYPE_REVOCATION_REP = 12;
|
||||
|
||||
// Token: 0x040072FD RID: 29437
|
||||
[Token(Token = "0x40072FD")]
|
||||
public const int TYPE_CROSS_CERT_REQ = 13;
|
||||
|
||||
// Token: 0x040072FE RID: 29438
|
||||
[Token(Token = "0x40072FE")]
|
||||
public const int TYPE_CROSS_CERT_REP = 14;
|
||||
|
||||
// Token: 0x040072FF RID: 29439
|
||||
[Token(Token = "0x40072FF")]
|
||||
public const int TYPE_CA_KEY_UPDATE_ANN = 15;
|
||||
|
||||
// Token: 0x04007300 RID: 29440
|
||||
[Token(Token = "0x4007300")]
|
||||
public const int TYPE_CERT_ANN = 16;
|
||||
|
||||
// Token: 0x04007301 RID: 29441
|
||||
[Token(Token = "0x4007301")]
|
||||
public const int TYPE_REVOCATION_ANN = 17;
|
||||
|
||||
// Token: 0x04007302 RID: 29442
|
||||
[Token(Token = "0x4007302")]
|
||||
public const int TYPE_CRL_ANN = 18;
|
||||
|
||||
// Token: 0x04007303 RID: 29443
|
||||
[Token(Token = "0x4007303")]
|
||||
public const int TYPE_CONFIRM = 19;
|
||||
|
||||
// Token: 0x04007304 RID: 29444
|
||||
[Token(Token = "0x4007304")]
|
||||
public const int TYPE_NESTED = 20;
|
||||
|
||||
// Token: 0x04007305 RID: 29445
|
||||
[Token(Token = "0x4007305")]
|
||||
public const int TYPE_GEN_MSG = 21;
|
||||
|
||||
// Token: 0x04007306 RID: 29446
|
||||
[Token(Token = "0x4007306")]
|
||||
public const int TYPE_GEN_REP = 22;
|
||||
|
||||
// Token: 0x04007307 RID: 29447
|
||||
[Token(Token = "0x4007307")]
|
||||
public const int TYPE_ERROR = 23;
|
||||
|
||||
// Token: 0x04007308 RID: 29448
|
||||
[Token(Token = "0x4007308")]
|
||||
public const int TYPE_CERT_CONFIRM = 24;
|
||||
|
||||
// Token: 0x04007309 RID: 29449
|
||||
[Token(Token = "0x4007309")]
|
||||
public const int TYPE_POLL_REQ = 25;
|
||||
|
||||
// Token: 0x0400730A RID: 29450
|
||||
[Token(Token = "0x400730A")]
|
||||
public const int TYPE_POLL_REP = 26;
|
||||
|
||||
// Token: 0x0400730B RID: 29451
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400730B")]
|
||||
private int tagNo;
|
||||
|
||||
// Token: 0x0400730C RID: 29452
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400730C")]
|
||||
private Asn1Encodable body;
|
||||
}
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197D RID: 6525
|
||||
[Token(Token = "0x200197D")]
|
||||
[StructLayout(3)]
|
||||
public class PkiConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF2E RID: 44846 RVA: 0x0028FFD8 File Offset: 0x0028E1D8
|
||||
[Token(Token = "0x600AF2E")]
|
||||
[Address(RVA = "0x28F6D30", Offset = "0x28F5730", VA = "0x1828F6D30")]
|
||||
public static PkiConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF2E)
|
||||
|
||||
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: 0x0600AF2F RID: 44847 RVA: 0x00290024 File Offset: 0x0028E224
|
||||
[Token(Token = "0x600AF2F")]
|
||||
[Address(RVA = "0x3D4170", Offset = "0x3D2B70", VA = "0x1803D4170")]
|
||||
public PkiConfirmContent()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600AF30 RID: 44848 RVA: 0x00290038 File Offset: 0x0028E238
|
||||
[Token(Token = "0x600AF30")]
|
||||
[Address(RVA = "0x28F6EC0", Offset = "0x28F58C0", VA = "0x1828F6EC0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF30)
|
||||
|
||||
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,147 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197E RID: 6526
|
||||
[Token(Token = "0x200197E")]
|
||||
[StructLayout(3)]
|
||||
public class PkiFailureInfo : DerBitString
|
||||
{
|
||||
// Token: 0x0600AF31 RID: 44849 RVA: 0x0029004C File Offset: 0x0028E24C
|
||||
[Token(Token = "0x600AF31")]
|
||||
[Address(RVA = "0x28F6F90", Offset = "0x28F5990", VA = "0x1828F6F90")]
|
||||
public PkiFailureInfo(int info)
|
||||
: base(info)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600AF32 RID: 44850 RVA: 0x00290060 File Offset: 0x0028E260
|
||||
[Token(Token = "0x600AF32")]
|
||||
[Address(RVA = "0x28F6FF0", Offset = "0x28F59F0", VA = "0x1828F6FF0")]
|
||||
public PkiFailureInfo(DerBitString info)
|
||||
{
|
||||
byte[] octets = info.GetOctets();
|
||||
byte[] bytes = info.GetBytes();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF33 RID: 44851 RVA: 0x00290084 File Offset: 0x0028E284
|
||||
[Token(Token = "0x600AF33")]
|
||||
[Address(RVA = "0x28F6F20", Offset = "0x28F5920", VA = "0x1828F6F20", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
int padBits = this.PadBits;
|
||||
string text;
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0400730D RID: 29453
|
||||
[Token(Token = "0x400730D")]
|
||||
public const int BadAlg = 128;
|
||||
|
||||
// Token: 0x0400730E RID: 29454
|
||||
[Token(Token = "0x400730E")]
|
||||
public const int BadMessageCheck = 64;
|
||||
|
||||
// Token: 0x0400730F RID: 29455
|
||||
[Token(Token = "0x400730F")]
|
||||
public const int BadRequest = 32;
|
||||
|
||||
// Token: 0x04007310 RID: 29456
|
||||
[Token(Token = "0x4007310")]
|
||||
public const int BadTime = 16;
|
||||
|
||||
// Token: 0x04007311 RID: 29457
|
||||
[Token(Token = "0x4007311")]
|
||||
public const int BadCertId = 8;
|
||||
|
||||
// Token: 0x04007312 RID: 29458
|
||||
[Token(Token = "0x4007312")]
|
||||
public const int BadDataFormat = 4;
|
||||
|
||||
// Token: 0x04007313 RID: 29459
|
||||
[Token(Token = "0x4007313")]
|
||||
public const int WrongAuthority = 2;
|
||||
|
||||
// Token: 0x04007314 RID: 29460
|
||||
[Token(Token = "0x4007314")]
|
||||
public const int IncorrectData = 1;
|
||||
|
||||
// Token: 0x04007315 RID: 29461
|
||||
[Token(Token = "0x4007315")]
|
||||
public const int MissingTimeStamp = 32768;
|
||||
|
||||
// Token: 0x04007316 RID: 29462
|
||||
[Token(Token = "0x4007316")]
|
||||
public const int BadPop = 16384;
|
||||
|
||||
// Token: 0x04007317 RID: 29463
|
||||
[Token(Token = "0x4007317")]
|
||||
public const int CertRevoked = 8192;
|
||||
|
||||
// Token: 0x04007318 RID: 29464
|
||||
[Token(Token = "0x4007318")]
|
||||
public const int CertConfirmed = 4096;
|
||||
|
||||
// Token: 0x04007319 RID: 29465
|
||||
[Token(Token = "0x4007319")]
|
||||
public const int WrongIntegrity = 2048;
|
||||
|
||||
// Token: 0x0400731A RID: 29466
|
||||
[Token(Token = "0x400731A")]
|
||||
public const int BadRecipientNonce = 1024;
|
||||
|
||||
// Token: 0x0400731B RID: 29467
|
||||
[Token(Token = "0x400731B")]
|
||||
public const int TimeNotAvailable = 512;
|
||||
|
||||
// Token: 0x0400731C RID: 29468
|
||||
[Token(Token = "0x400731C")]
|
||||
public const int UnacceptedPolicy = 256;
|
||||
|
||||
// Token: 0x0400731D RID: 29469
|
||||
[Token(Token = "0x400731D")]
|
||||
public const int UnacceptedExtension = 8388608;
|
||||
|
||||
// Token: 0x0400731E RID: 29470
|
||||
[Token(Token = "0x400731E")]
|
||||
public const int AddInfoNotAvailable = 4194304;
|
||||
|
||||
// Token: 0x0400731F RID: 29471
|
||||
[Token(Token = "0x400731F")]
|
||||
public const int BadSenderNonce = 2097152;
|
||||
|
||||
// Token: 0x04007320 RID: 29472
|
||||
[Token(Token = "0x4007320")]
|
||||
public const int BadCertTemplate = 1048576;
|
||||
|
||||
// Token: 0x04007321 RID: 29473
|
||||
[Token(Token = "0x4007321")]
|
||||
public const int SignerNotTrusted = 524288;
|
||||
|
||||
// Token: 0x04007322 RID: 29474
|
||||
[Token(Token = "0x4007322")]
|
||||
public const int TransactionIdInUse = 262144;
|
||||
|
||||
// Token: 0x04007323 RID: 29475
|
||||
[Token(Token = "0x4007323")]
|
||||
public const int UnsupportedVersion = 131072;
|
||||
|
||||
// Token: 0x04007324 RID: 29476
|
||||
[Token(Token = "0x4007324")]
|
||||
public const int NotAuthorized = 65536;
|
||||
|
||||
// Token: 0x04007325 RID: 29477
|
||||
[Token(Token = "0x4007325")]
|
||||
public const int SystemUnavail = -2147483648;
|
||||
|
||||
// Token: 0x04007326 RID: 29478
|
||||
[Token(Token = "0x4007326")]
|
||||
public const int SystemFailure = 1073741824;
|
||||
|
||||
// Token: 0x04007327 RID: 29479
|
||||
[Token(Token = "0x4007327")]
|
||||
public const int DuplicateCertReq = 536870912;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197F RID: 6527
|
||||
[Token(Token = "0x200197F")]
|
||||
[StructLayout(3)]
|
||||
public class PkiFreeText : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF34 RID: 44852 RVA: 0x0029009C File Offset: 0x0028E29C
|
||||
[Token(Token = "0x600AF34")]
|
||||
[Address(RVA = "0x28F70A0", Offset = "0x28F5AA0", VA = "0x1828F70A0")]
|
||||
public static PkiFreeText GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiFreeText.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AF35 RID: 44853 RVA: 0x002900B8 File Offset: 0x0028E2B8
|
||||
[Token(Token = "0x600AF35")]
|
||||
[Address(RVA = "0x28F70C0", Offset = "0x28F5AC0", VA = "0x1828F70C0")]
|
||||
public static PkiFreeText GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF35)
|
||||
|
||||
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: 0x0600AF36 RID: 44854 RVA: 0x00290108 File Offset: 0x0028E308
|
||||
[Token(Token = "0x600AF36")]
|
||||
[Address(RVA = "0x28F7360", Offset = "0x28F5D60", VA = "0x1828F7360")]
|
||||
public PkiFreeText(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0 && (enumerator == 0 || enumerator == 0))
|
||||
{
|
||||
goto IL_37;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
this.strings = seq;
|
||||
return;
|
||||
IL_37:
|
||||
ArgumentException ex = new ArgumentException("attempt to insert non UTF8 STRING into PkiFreeText");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF37 RID: 44855 RVA: 0x0029015C File Offset: 0x0028E35C
|
||||
[Token(Token = "0x600AF37")]
|
||||
[Address(RVA = "0x28F7540", Offset = "0x28F5F40", VA = "0x1828F7540")]
|
||||
public PkiFreeText(DerUtf8String p)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(p);
|
||||
this.strings = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x17001C34 RID: 7220
|
||||
// (get) Token: 0x0600AF38 RID: 44856 RVA: 0x00290180 File Offset: 0x0028E380
|
||||
[Token(Token = "0x17001C34")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600AF38")]
|
||||
[Address(RVA = "0x2253620", Offset = "0x2252020", VA = "0x182253620")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C35 RID: 7221
|
||||
// (get) Token: 0x0600AF39 RID: 44857 RVA: 0x002901A0 File Offset: 0x0028E3A0
|
||||
[Token(Token = "0x17001C35")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600AF39")]
|
||||
[Address(RVA = "0x2253620", Offset = "0x2252020", VA = "0x182253620")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C36 RID: 7222
|
||||
[Token(Token = "0x17001C36")]
|
||||
public DerUtf8String this[int index]
|
||||
{
|
||||
[Token(Token = "0x600AF3A")]
|
||||
[Address(RVA = "0x28F72B0", Offset = "0x28F5CB0", VA = "0x1828F72B0")]
|
||||
get
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF3B RID: 44859 RVA: 0x002901E8 File Offset: 0x0028E3E8
|
||||
[Token(Token = "0x600AF3B")]
|
||||
[Address(RVA = "0x28F72B0", Offset = "0x28F5CB0", VA = "0x1828F72B0")]
|
||||
[Obsolete]
|
||||
public DerUtf8String GetStringAt(int index)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF3C RID: 44860 RVA: 0x00290210 File Offset: 0x0028E410
|
||||
[Token(Token = "0x600AF3C")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF3C)
|
||||
|
||||
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: 0x04007328 RID: 29480
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007328")]
|
||||
internal Asn1Sequence strings;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,425 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001980 RID: 6528
|
||||
[Token(Token = "0x2001980")]
|
||||
[StructLayout(3)]
|
||||
public class PkiHeader : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF3D RID: 44861 RVA: 0x00290224 File Offset: 0x0028E424
|
||||
[Token(Token = "0x600AF3D")]
|
||||
[Address(RVA = "0x28F8840", Offset = "0x28F7240", VA = "0x1828F8840")]
|
||||
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: 0x0600AF3E RID: 44862 RVA: 0x00290334 File Offset: 0x0028E534
|
||||
[Token(Token = "0x600AF3E")]
|
||||
[Address(RVA = "0x28F8290", Offset = "0x28F6C90", VA = "0x1828F8290")]
|
||||
public static PkiHeader GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF3E)
|
||||
|
||||
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: 0x0600AF3F RID: 44863 RVA: 0x00290384 File Offset: 0x0028E584
|
||||
[Token(Token = "0x600AF3F")]
|
||||
[Address(RVA = "0x28F87B0", Offset = "0x28F71B0", VA = "0x1828F87B0")]
|
||||
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: 0x0600AF40 RID: 44864 RVA: 0x002903B4 File Offset: 0x0028E5B4
|
||||
[Token(Token = "0x600AF40")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
private PkiHeader(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x17001C37 RID: 7223
|
||||
// (get) Token: 0x0600AF41 RID: 44865 RVA: 0x002903DC File Offset: 0x0028E5DC
|
||||
[Token(Token = "0x17001C37")]
|
||||
public virtual DerInteger Pvno
|
||||
{
|
||||
[Token(Token = "0x600AF41")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pvno;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C38 RID: 7224
|
||||
// (get) Token: 0x0600AF42 RID: 44866 RVA: 0x002903F0 File Offset: 0x0028E5F0
|
||||
[Token(Token = "0x17001C38")]
|
||||
public virtual GeneralName Sender
|
||||
{
|
||||
[Token(Token = "0x600AF42")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.sender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C39 RID: 7225
|
||||
// (get) Token: 0x0600AF43 RID: 44867 RVA: 0x00290404 File Offset: 0x0028E604
|
||||
[Token(Token = "0x17001C39")]
|
||||
public virtual GeneralName Recipient
|
||||
{
|
||||
[Token(Token = "0x600AF43")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.recipient;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3A RID: 7226
|
||||
// (get) Token: 0x0600AF44 RID: 44868 RVA: 0x00290418 File Offset: 0x0028E618
|
||||
[Token(Token = "0x17001C3A")]
|
||||
public virtual DerGeneralizedTime MessageTime
|
||||
{
|
||||
[Token(Token = "0x600AF44")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.messageTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3B RID: 7227
|
||||
// (get) Token: 0x0600AF45 RID: 44869 RVA: 0x0029042C File Offset: 0x0028E62C
|
||||
[Token(Token = "0x17001C3B")]
|
||||
public virtual AlgorithmIdentifier ProtectionAlg
|
||||
{
|
||||
[Token(Token = "0x600AF45")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.protectionAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3C RID: 7228
|
||||
// (get) Token: 0x0600AF46 RID: 44870 RVA: 0x00290440 File Offset: 0x0028E640
|
||||
[Token(Token = "0x17001C3C")]
|
||||
public virtual Asn1OctetString SenderKID
|
||||
{
|
||||
[Token(Token = "0x600AF46")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.senderKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3D RID: 7229
|
||||
// (get) Token: 0x0600AF47 RID: 44871 RVA: 0x00290454 File Offset: 0x0028E654
|
||||
[Token(Token = "0x17001C3D")]
|
||||
public virtual Asn1OctetString RecipKID
|
||||
{
|
||||
[Token(Token = "0x600AF47")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return this.recipKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3E RID: 7230
|
||||
// (get) Token: 0x0600AF48 RID: 44872 RVA: 0x00290468 File Offset: 0x0028E668
|
||||
[Token(Token = "0x17001C3E")]
|
||||
public virtual Asn1OctetString TransactionID
|
||||
{
|
||||
[Token(Token = "0x600AF48")]
|
||||
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.transactionID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3F RID: 7231
|
||||
// (get) Token: 0x0600AF49 RID: 44873 RVA: 0x0029047C File Offset: 0x0028E67C
|
||||
[Token(Token = "0x17001C3F")]
|
||||
public virtual Asn1OctetString SenderNonce
|
||||
{
|
||||
[Token(Token = "0x600AF49")]
|
||||
[Address(RVA = "0x462740", Offset = "0x461140", VA = "0x180462740", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return this.senderNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C40 RID: 7232
|
||||
// (get) Token: 0x0600AF4A RID: 44874 RVA: 0x00290490 File Offset: 0x0028E690
|
||||
[Token(Token = "0x17001C40")]
|
||||
public virtual Asn1OctetString RecipNonce
|
||||
{
|
||||
[Token(Token = "0x600AF4A")]
|
||||
[Address(RVA = "0x4B81A0", Offset = "0x4B6BA0", VA = "0x1804B81A0", Slot = "15")]
|
||||
get
|
||||
{
|
||||
return this.recipNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C41 RID: 7233
|
||||
// (get) Token: 0x0600AF4B RID: 44875 RVA: 0x002904A4 File Offset: 0x0028E6A4
|
||||
[Token(Token = "0x17001C41")]
|
||||
public virtual PkiFreeText FreeText
|
||||
{
|
||||
[Token(Token = "0x600AF4B")]
|
||||
[Address(RVA = "0x3EDE90", Offset = "0x3EC890", VA = "0x1803EDE90", Slot = "16")]
|
||||
get
|
||||
{
|
||||
return this.freeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF4C RID: 44876 RVA: 0x002904B8 File Offset: 0x0028E6B8
|
||||
[Token(Token = "0x600AF4C")]
|
||||
[Address(RVA = "0x28F8170", Offset = "0x28F6B70", VA = "0x1828F8170", 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: 0x0600AF4D RID: 44877 RVA: 0x00290508 File Offset: 0x0028E708
|
||||
[Token(Token = "0x600AF4D")]
|
||||
[Address(RVA = "0x28F8480", Offset = "0x28F6E80", VA = "0x1828F8480", 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: 0x0600AF4E RID: 44878 RVA: 0x00290614 File Offset: 0x0028E814
|
||||
[Token(Token = "0x600AF4E")]
|
||||
[Address(RVA = "0x28F8070", Offset = "0x28F6A70", VA = "0x1828F8070")]
|
||||
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: 0x04007329 RID: 29481
|
||||
[Token(Token = "0x4007329")]
|
||||
public static readonly GeneralName NULL_NAME = new GeneralName(X509Name.GetInstance(new DerSequence()));
|
||||
|
||||
// Token: 0x0400732A RID: 29482
|
||||
[Token(Token = "0x400732A")]
|
||||
public static readonly int CMP_1999;
|
||||
|
||||
// Token: 0x0400732B RID: 29483
|
||||
[Token(Token = "0x400732B")]
|
||||
public static readonly int CMP_2000;
|
||||
|
||||
// Token: 0x0400732C RID: 29484
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400732C")]
|
||||
private readonly DerInteger pvno;
|
||||
|
||||
// Token: 0x0400732D RID: 29485
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400732D")]
|
||||
private readonly GeneralName sender;
|
||||
|
||||
// Token: 0x0400732E RID: 29486
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400732E")]
|
||||
private readonly GeneralName recipient;
|
||||
|
||||
// Token: 0x0400732F RID: 29487
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400732F")]
|
||||
private readonly DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x04007330 RID: 29488
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007330")]
|
||||
private readonly AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x04007331 RID: 29489
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007331")]
|
||||
private readonly Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x04007332 RID: 29490
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007332")]
|
||||
private readonly Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x04007333 RID: 29491
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007333")]
|
||||
private readonly Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04007334 RID: 29492
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007334")]
|
||||
private readonly Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04007335 RID: 29493
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4007335")]
|
||||
private readonly Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04007336 RID: 29494
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4007336")]
|
||||
private readonly PkiFreeText freeText;
|
||||
|
||||
// Token: 0x04007337 RID: 29495
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4007337")]
|
||||
private readonly Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
+411
@@ -0,0 +1,411 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001981 RID: 6529
|
||||
[Token(Token = "0x2001981")]
|
||||
[StructLayout(3)]
|
||||
public class PkiHeaderBuilder
|
||||
{
|
||||
// Token: 0x0600AF50 RID: 44880 RVA: 0x00290674 File Offset: 0x0028E874
|
||||
[Token(Token = "0x600AF50")]
|
||||
[Address(RVA = "0x28F7FE0", Offset = "0x28F69E0", VA = "0x1828F7FE0")]
|
||||
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: 0x0600AF51 RID: 44881 RVA: 0x002906AC File Offset: 0x0028E8AC
|
||||
[Token(Token = "0x600AF51")]
|
||||
[Address(RVA = "0x74BD80", Offset = "0x74A780", VA = "0x18074BD80")]
|
||||
private PkiHeaderBuilder(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF52 RID: 44882 RVA: 0x002906D4 File Offset: 0x0028E8D4
|
||||
[Token(Token = "0x600AF52")]
|
||||
[Address(RVA = "0x1E87640", Offset = "0x1E86040", VA = "0x181E87640", Slot = "4")]
|
||||
public virtual PkiHeaderBuilder SetMessageTime(DerGeneralizedTime time)
|
||||
{
|
||||
this.messageTime = time;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF53 RID: 44883 RVA: 0x002906EC File Offset: 0x0028E8EC
|
||||
[Token(Token = "0x600AF53")]
|
||||
[Address(RVA = "0x12D4620", Offset = "0x12D3020", VA = "0x1812D4620", Slot = "5")]
|
||||
public virtual PkiHeaderBuilder SetProtectionAlg(AlgorithmIdentifier aid)
|
||||
{
|
||||
this.protectionAlg = aid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF54 RID: 44884 RVA: 0x00290704 File Offset: 0x0028E904
|
||||
[Token(Token = "0x600AF54")]
|
||||
[Address(RVA = "0x28F7E30", Offset = "0x28F6830", VA = "0x1828F7E30", Slot = "6")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF55 RID: 44885 RVA: 0x00290724 File Offset: 0x0028E924
|
||||
[Token(Token = "0x600AF55")]
|
||||
[Address(RVA = "0x1C075B0", Offset = "0x1C05FB0", VA = "0x181C075B0", Slot = "7")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(Asn1OctetString kid)
|
||||
{
|
||||
this.senderKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF56 RID: 44886 RVA: 0x0029073C File Offset: 0x0028E93C
|
||||
[Token(Token = "0x600AF56")]
|
||||
[Address(RVA = "0x28F7D10", Offset = "0x28F6710", VA = "0x1828F7D10", Slot = "8")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF57 RID: 44887 RVA: 0x0029075C File Offset: 0x0028E95C
|
||||
[Token(Token = "0x600AF57")]
|
||||
[Address(RVA = "0x1ECC590", Offset = "0x1ECAF90", VA = "0x181ECC590", Slot = "9")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(DerOctetString kid)
|
||||
{
|
||||
this.recipKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF58 RID: 44888 RVA: 0x00290774 File Offset: 0x0028E974
|
||||
[Token(Token = "0x600AF58")]
|
||||
[Address(RVA = "0x28F7F50", Offset = "0x28F6950", VA = "0x1828F7F50", Slot = "10")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(byte[] tid)
|
||||
{
|
||||
if (tid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(tid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF59 RID: 44889 RVA: 0x00290794 File Offset: 0x0028E994
|
||||
[Token(Token = "0x600AF59")]
|
||||
[Address(RVA = "0x1ECC580", Offset = "0x1ECAF80", VA = "0x181ECC580", Slot = "11")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(Asn1OctetString tid)
|
||||
{
|
||||
this.transactionID = tid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5A RID: 44890 RVA: 0x002907AC File Offset: 0x0028E9AC
|
||||
[Token(Token = "0x600AF5A")]
|
||||
[Address(RVA = "0x28F7EC0", Offset = "0x28F68C0", VA = "0x1828F7EC0", Slot = "12")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5B RID: 44891 RVA: 0x002907CC File Offset: 0x0028E9CC
|
||||
[Token(Token = "0x600AF5B")]
|
||||
[Address(RVA = "0x1ECC5A0", Offset = "0x1ECAFA0", VA = "0x181ECC5A0", Slot = "13")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.senderNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5C RID: 44892 RVA: 0x002907E4 File Offset: 0x0028E9E4
|
||||
[Token(Token = "0x600AF5C")]
|
||||
[Address(RVA = "0x28F7DA0", Offset = "0x28F67A0", VA = "0x1828F7DA0", Slot = "14")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5D RID: 44893 RVA: 0x00290804 File Offset: 0x0028EA04
|
||||
[Token(Token = "0x600AF5D")]
|
||||
[Address(RVA = "0x1ECC570", Offset = "0x1ECAF70", VA = "0x181ECC570", Slot = "15")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.recipNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5E RID: 44894 RVA: 0x0029081C File Offset: 0x0028EA1C
|
||||
[Token(Token = "0x600AF5E")]
|
||||
[Address(RVA = "0x28F7B10", Offset = "0x28F6510", VA = "0x1828F7B10", Slot = "16")]
|
||||
public virtual PkiHeaderBuilder SetFreeText(PkiFreeText text)
|
||||
{
|
||||
this.freeText = text;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5F RID: 44895 RVA: 0x00290834 File Offset: 0x0028EA34
|
||||
[Token(Token = "0x600AF5F")]
|
||||
[Address(RVA = "0x28F7B20", Offset = "0x28F6520", VA = "0x1828F7B20", Slot = "17")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue genInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF5F)
|
||||
|
||||
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: 0x0600AF60 RID: 44896 RVA: 0x00290848 File Offset: 0x0028EA48
|
||||
[Token(Token = "0x600AF60")]
|
||||
[Address(RVA = "0x28F7BA0", Offset = "0x28F65A0", VA = "0x1828F7BA0", 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: 0x0600AF61 RID: 44897 RVA: 0x002908A0 File Offset: 0x0028EAA0
|
||||
[Token(Token = "0x600AF61")]
|
||||
[Address(RVA = "0x28F7D00", Offset = "0x28F6700", VA = "0x1828F7D00", Slot = "19")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(Asn1Sequence seqOfInfoTypeAndValue)
|
||||
{
|
||||
this.generalInfo = seqOfInfoTypeAndValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF62 RID: 44898 RVA: 0x002908B8 File Offset: 0x0028EAB8
|
||||
[Token(Token = "0x600AF62")]
|
||||
[Address(RVA = "0x28F7AB0", Offset = "0x28F64B0", VA = "0x1828F7AB0")]
|
||||
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue generalInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF62)
|
||||
|
||||
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: 0x0600AF63 RID: 44899 RVA: 0x002908CC File Offset: 0x0028EACC
|
||||
[Token(Token = "0x600AF63")]
|
||||
[Address(RVA = "0x28F7960", Offset = "0x28F6360", VA = "0x1828F7960")]
|
||||
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: 0x0600AF64 RID: 44900 RVA: 0x0029091C File Offset: 0x0028EB1C
|
||||
[Token(Token = "0x600AF64")]
|
||||
[Address(RVA = "0x28F76B0", Offset = "0x28F60B0", VA = "0x1828F76B0", 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: 0x0600AF65 RID: 44901 RVA: 0x00290A80 File Offset: 0x0028EC80
|
||||
[Token(Token = "0x600AF65")]
|
||||
[Address(RVA = "0x28F75B0", Offset = "0x28F5FB0", VA = "0x1828F75B0")]
|
||||
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: 0x04007338 RID: 29496
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007338")]
|
||||
private DerInteger pvno;
|
||||
|
||||
// Token: 0x04007339 RID: 29497
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007339")]
|
||||
private GeneralName sender;
|
||||
|
||||
// Token: 0x0400733A RID: 29498
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400733A")]
|
||||
private GeneralName recipient;
|
||||
|
||||
// Token: 0x0400733B RID: 29499
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400733B")]
|
||||
private DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x0400733C RID: 29500
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400733C")]
|
||||
private AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x0400733D RID: 29501
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400733D")]
|
||||
private Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x0400733E RID: 29502
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400733E")]
|
||||
private Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x0400733F RID: 29503
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400733F")]
|
||||
private Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04007340 RID: 29504
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007340")]
|
||||
private Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04007341 RID: 29505
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4007341")]
|
||||
private Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04007342 RID: 29506
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4007342")]
|
||||
private PkiFreeText freeText;
|
||||
|
||||
// Token: 0x04007343 RID: 29507
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4007343")]
|
||||
private Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001982 RID: 6530
|
||||
[Token(Token = "0x2001982")]
|
||||
[StructLayout(3)]
|
||||
public class PkiMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF66 RID: 44902 RVA: 0x00290ABC File Offset: 0x0028ECBC
|
||||
[Token(Token = "0x600AF66")]
|
||||
[Address(RVA = "0x28F9140", Offset = "0x28F7B40", VA = "0x1828F9140")]
|
||||
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: 0x0600AF67 RID: 44903 RVA: 0x00290B14 File Offset: 0x0028ED14
|
||||
[Token(Token = "0x600AF67")]
|
||||
[Address(RVA = "0x28F8D70", Offset = "0x28F7770", VA = "0x1828F8D70")]
|
||||
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: 0x0600AF68 RID: 44904 RVA: 0x00290B48 File Offset: 0x0028ED48
|
||||
[Token(Token = "0x600AF68")]
|
||||
[Address(RVA = "0x28F8FD0", Offset = "0x28F79D0", VA = "0x1828F8FD0")]
|
||||
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: 0x0600AF69 RID: 44905 RVA: 0x00290B78 File Offset: 0x0028ED78
|
||||
[Token(Token = "0x600AF69")]
|
||||
[Address(RVA = "0x28F9070", Offset = "0x28F7A70", VA = "0x1828F9070")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = protection;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF6A RID: 44906 RVA: 0x00290BA0 File Offset: 0x0028EDA0
|
||||
[Token(Token = "0x600AF6A")]
|
||||
[Address(RVA = "0x28F90E0", Offset = "0x28F7AE0", VA = "0x1828F90E0")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x17001C42 RID: 7234
|
||||
// (get) Token: 0x0600AF6B RID: 44907 RVA: 0x00290BCC File Offset: 0x0028EDCC
|
||||
[Token(Token = "0x17001C42")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600AF6B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C43 RID: 7235
|
||||
// (get) Token: 0x0600AF6C RID: 44908 RVA: 0x00290BE0 File Offset: 0x0028EDE0
|
||||
[Token(Token = "0x17001C43")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600AF6C")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C44 RID: 7236
|
||||
// (get) Token: 0x0600AF6D RID: 44909 RVA: 0x00290BF4 File Offset: 0x0028EDF4
|
||||
[Token(Token = "0x17001C44")]
|
||||
public virtual DerBitString Protection
|
||||
{
|
||||
[Token(Token = "0x600AF6D")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.protection;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF6E RID: 44910 RVA: 0x00290C08 File Offset: 0x0028EE08
|
||||
[Token(Token = "0x600AF6E")]
|
||||
[Address(RVA = "0x28F8C50", Offset = "0x28F7650", VA = "0x1828F8C50", 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: 0x0600AF6F RID: 44911 RVA: 0x00290C58 File Offset: 0x0028EE58
|
||||
[Token(Token = "0x600AF6F")]
|
||||
[Address(RVA = "0x28F8E70", Offset = "0x28F7870", VA = "0x1828F8E70", 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: 0x0600AF70 RID: 44912 RVA: 0x00290CCC File Offset: 0x0028EECC
|
||||
[Token(Token = "0x600AF70")]
|
||||
[Address(RVA = "0x28F8B50", Offset = "0x28F7550", VA = "0x1828F8B50")]
|
||||
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: 0x04007344 RID: 29508
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007344")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04007345 RID: 29509
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007345")]
|
||||
private readonly PkiBody body;
|
||||
|
||||
// Token: 0x04007346 RID: 29510
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007346")]
|
||||
private readonly DerBitString protection;
|
||||
|
||||
// Token: 0x04007347 RID: 29511
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007347")]
|
||||
private readonly Asn1Sequence extraCerts;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001983 RID: 6531
|
||||
[Token(Token = "0x2001983")]
|
||||
[StructLayout(3)]
|
||||
public class PkiMessages : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF71 RID: 44913 RVA: 0x00290D08 File Offset: 0x0028EF08
|
||||
[Token(Token = "0x600AF71")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PkiMessages(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF72 RID: 44914 RVA: 0x00290D24 File Offset: 0x0028EF24
|
||||
[Token(Token = "0x600AF72")]
|
||||
[Address(RVA = "0x28F9310", Offset = "0x28F7D10", VA = "0x1828F9310")]
|
||||
public static PkiMessages GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF72)
|
||||
|
||||
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: 0x0600AF73 RID: 44915 RVA: 0x00290D7C File Offset: 0x0028EF7C
|
||||
[Token(Token = "0x600AF73")]
|
||||
[Address(RVA = "0x28F96F0", Offset = "0x28F80F0", VA = "0x1828F96F0")]
|
||||
public PkiMessages(params PkiMessage[] msgs)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(msgs);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF74 RID: 44916 RVA: 0x00290DA0 File Offset: 0x0028EFA0
|
||||
[Token(Token = "0x600AF74")]
|
||||
[Address(RVA = "0x28F9500", Offset = "0x28F7F00", VA = "0x1828F9500", 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: 0x0600AF75 RID: 44917 RVA: 0x00290E1C File Offset: 0x0028F01C
|
||||
[Token(Token = "0x600AF75")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF75)
|
||||
|
||||
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: 0x04007348 RID: 29512
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007348")]
|
||||
private Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001984 RID: 6532
|
||||
[Token(Token = "0x2001984")]
|
||||
[StructLayout(3, Size = 4)]
|
||||
public enum PkiStatus
|
||||
{
|
||||
// Token: 0x0400734A RID: 29514
|
||||
[Token(Token = "0x400734A")]
|
||||
Granted,
|
||||
// Token: 0x0400734B RID: 29515
|
||||
[Token(Token = "0x400734B")]
|
||||
GrantedWithMods,
|
||||
// Token: 0x0400734C RID: 29516
|
||||
[Token(Token = "0x400734C")]
|
||||
Rejection,
|
||||
// Token: 0x0400734D RID: 29517
|
||||
[Token(Token = "0x400734D")]
|
||||
Waiting,
|
||||
// Token: 0x0400734E RID: 29518
|
||||
[Token(Token = "0x400734E")]
|
||||
RevocationWarning,
|
||||
// Token: 0x0400734F RID: 29519
|
||||
[Token(Token = "0x400734F")]
|
||||
RevocationNotification,
|
||||
// Token: 0x04007350 RID: 29520
|
||||
[Token(Token = "0x4007350")]
|
||||
KeyUpdateWarning
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001985 RID: 6533
|
||||
[Token(Token = "0x2001985")]
|
||||
[StructLayout(3)]
|
||||
public class PkiStatusEncodable : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF76 RID: 44918 RVA: 0x00290E30 File Offset: 0x0028F030
|
||||
[Token(Token = "0x600AF76")]
|
||||
[Address(RVA = "0x28F9C60", Offset = "0x28F8660", VA = "0x1828F9C60")]
|
||||
private PkiStatusEncodable(PkiStatus status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger((int)status);
|
||||
base..ctor();
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF77 RID: 44919 RVA: 0x00290E54 File Offset: 0x0028F054
|
||||
[Token(Token = "0x600AF77")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PkiStatusEncodable(DerInteger status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF78 RID: 44920 RVA: 0x00290E70 File Offset: 0x0028F070
|
||||
[Token(Token = "0x600AF78")]
|
||||
[Address(RVA = "0x28F9760", Offset = "0x28F8160", VA = "0x1828F9760")]
|
||||
public static PkiStatusEncodable GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF78)
|
||||
|
||||
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: 0x17001C45 RID: 7237
|
||||
// (get) Token: 0x0600AF79 RID: 44921 RVA: 0x00290EC8 File Offset: 0x0028F0C8
|
||||
[Token(Token = "0x17001C45")]
|
||||
public virtual BigInteger Value
|
||||
{
|
||||
[Token(Token = "0x600AF79")]
|
||||
[Address(RVA = "0x1DF1A60", Offset = "0x1DF0460", VA = "0x181DF1A60", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF7A RID: 44922 RVA: 0x00290EE8 File Offset: 0x0028F0E8
|
||||
[Token(Token = "0x600AF7A")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF7A)
|
||||
|
||||
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: 0x0600AF7B RID: 44923 RVA: 0x00290EFC File Offset: 0x0028F0FC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600AF7B")]
|
||||
[Address(RVA = "0x28F9950", Offset = "0x28F8350", VA = "0x1828F9950")]
|
||||
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: 0x04007351 RID: 29521
|
||||
[Token(Token = "0x4007351")]
|
||||
public static readonly PkiStatusEncodable granted;
|
||||
|
||||
// Token: 0x04007352 RID: 29522
|
||||
[Token(Token = "0x4007352")]
|
||||
public static readonly PkiStatusEncodable grantedWithMods;
|
||||
|
||||
// Token: 0x04007353 RID: 29523
|
||||
[Token(Token = "0x4007353")]
|
||||
public static readonly PkiStatusEncodable rejection;
|
||||
|
||||
// Token: 0x04007354 RID: 29524
|
||||
[Token(Token = "0x4007354")]
|
||||
public static readonly PkiStatusEncodable waiting;
|
||||
|
||||
// Token: 0x04007355 RID: 29525
|
||||
[Token(Token = "0x4007355")]
|
||||
public static readonly PkiStatusEncodable revocationWarning;
|
||||
|
||||
// Token: 0x04007356 RID: 29526
|
||||
[Token(Token = "0x4007356")]
|
||||
public static readonly PkiStatusEncodable revocationNotification;
|
||||
|
||||
// Token: 0x04007357 RID: 29527
|
||||
[Token(Token = "0x4007357")]
|
||||
public static readonly PkiStatusEncodable keyUpdateWaiting;
|
||||
|
||||
// Token: 0x04007358 RID: 29528
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007358")]
|
||||
private readonly DerInteger status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001986 RID: 6534
|
||||
[Token(Token = "0x2001986")]
|
||||
[StructLayout(3)]
|
||||
public class PkiStatusInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF7C RID: 44924 RVA: 0x00290FE4 File Offset: 0x0028F1E4
|
||||
[Token(Token = "0x600AF7C")]
|
||||
[Address(RVA = "0x28F9CD0", Offset = "0x28F86D0", VA = "0x1828F9CD0")]
|
||||
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AF7D RID: 44925 RVA: 0x00291000 File Offset: 0x0028F200
|
||||
[Token(Token = "0x600AF7D")]
|
||||
[Address(RVA = "0x28F9CF0", Offset = "0x28F86F0", VA = "0x1828F9CF0")]
|
||||
public static PkiStatusInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF7D)
|
||||
|
||||
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: 0x0600AF7E RID: 44926 RVA: 0x00291050 File Offset: 0x0028F250
|
||||
[Token(Token = "0x600AF7E")]
|
||||
[Address(RVA = "0x28FA200", Offset = "0x28F8C00", VA = "0x1828FA200")]
|
||||
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: 0x0600AF7F RID: 44927 RVA: 0x002910BC File Offset: 0x0028F2BC
|
||||
[Token(Token = "0x600AF7F")]
|
||||
[Address(RVA = "0x28FA3D0", Offset = "0x28F8DD0", VA = "0x1828FA3D0")]
|
||||
public PkiStatusInfo(int status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF80 RID: 44928 RVA: 0x002910E0 File Offset: 0x0028F2E0
|
||||
[Token(Token = "0x600AF80")]
|
||||
[Address(RVA = "0x28FA0F0", Offset = "0x28F8AF0", VA = "0x1828FA0F0")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF81 RID: 44929 RVA: 0x00291108 File Offset: 0x0028F308
|
||||
[Token(Token = "0x600AF81")]
|
||||
[Address(RVA = "0x28FA170", Offset = "0x28F8B70", VA = "0x1828FA170")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
this.failInfo = failInfo;
|
||||
}
|
||||
|
||||
// Token: 0x17001C46 RID: 7238
|
||||
// (get) Token: 0x0600AF82 RID: 44930 RVA: 0x00291138 File Offset: 0x0028F338
|
||||
[Token(Token = "0x17001C46")]
|
||||
public BigInteger Status
|
||||
{
|
||||
[Token(Token = "0x600AF82")]
|
||||
[Address(RVA = "0x1DF1A60", Offset = "0x1DF0460", VA = "0x181DF1A60")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C47 RID: 7239
|
||||
// (get) Token: 0x0600AF83 RID: 44931 RVA: 0x00291158 File Offset: 0x0028F358
|
||||
[Token(Token = "0x17001C47")]
|
||||
public PkiFreeText StatusString
|
||||
{
|
||||
[Token(Token = "0x600AF83")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.statusString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C48 RID: 7240
|
||||
// (get) Token: 0x0600AF84 RID: 44932 RVA: 0x0029116C File Offset: 0x0028F36C
|
||||
[Token(Token = "0x17001C48")]
|
||||
public DerBitString FailInfo
|
||||
{
|
||||
[Token(Token = "0x600AF84")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.failInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF85 RID: 44933 RVA: 0x00291180 File Offset: 0x0028F380
|
||||
[Token(Token = "0x600AF85")]
|
||||
[Address(RVA = "0x28F9EE0", Offset = "0x28F88E0", VA = "0x1828F9EE0", 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: 0x04007359 RID: 29529
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007359")]
|
||||
private DerInteger status;
|
||||
|
||||
// Token: 0x0400735A RID: 29530
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400735A")]
|
||||
private PkiFreeText statusString;
|
||||
|
||||
// Token: 0x0400735B RID: 29531
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400735B")]
|
||||
private DerBitString failInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001988 RID: 6536
|
||||
[Token(Token = "0x2001988")]
|
||||
[StructLayout(3)]
|
||||
public class PollRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF8F RID: 44943 RVA: 0x00291414 File Offset: 0x0028F614
|
||||
[Token(Token = "0x600AF8F")]
|
||||
[Address(RVA = "0x28FA880", Offset = "0x28F9280", VA = "0x1828FA880")]
|
||||
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: 0x0600AF90 RID: 44944 RVA: 0x00291460 File Offset: 0x0028F660
|
||||
[Token(Token = "0x600AF90")]
|
||||
[Address(RVA = "0x28FA440", Offset = "0x28F8E40", VA = "0x1828FA440")]
|
||||
public static PollRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF90)
|
||||
|
||||
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: 0x0600AF91 RID: 44945 RVA: 0x002914C8 File Offset: 0x0028F6C8
|
||||
[Token(Token = "0x600AF91")]
|
||||
[Address(RVA = "0x262CDE0", Offset = "0x262B7E0", VA = "0x18262CDE0")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF92 RID: 44946 RVA: 0x002914F4 File Offset: 0x0028F6F4
|
||||
[Token(Token = "0x600AF92")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter, PkiFreeText reason)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
// Token: 0x17001C4D RID: 7245
|
||||
// (get) Token: 0x0600AF93 RID: 44947 RVA: 0x0029151C File Offset: 0x0028F71C
|
||||
[Token(Token = "0x17001C4D")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600AF93")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4E RID: 7246
|
||||
// (get) Token: 0x0600AF94 RID: 44948 RVA: 0x00291530 File Offset: 0x0028F730
|
||||
[Token(Token = "0x17001C4E")]
|
||||
public virtual DerInteger CheckAfter
|
||||
{
|
||||
[Token(Token = "0x600AF94")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.checkAfter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4F RID: 7247
|
||||
// (get) Token: 0x0600AF95 RID: 44949 RVA: 0x00291544 File Offset: 0x0028F744
|
||||
[Token(Token = "0x17001C4F")]
|
||||
public virtual PkiFreeText Reason
|
||||
{
|
||||
[Token(Token = "0x600AF95")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.reason;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF96 RID: 44950 RVA: 0x00291558 File Offset: 0x0028F758
|
||||
[Token(Token = "0x600AF96")]
|
||||
[Address(RVA = "0x28FA6C0", Offset = "0x28F90C0", VA = "0x1828FA6C0", 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: 0x04007360 RID: 29536
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007360")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x04007361 RID: 29537
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007361")]
|
||||
private readonly DerInteger checkAfter;
|
||||
|
||||
// Token: 0x04007362 RID: 29538
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007362")]
|
||||
private readonly PkiFreeText reason;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001989 RID: 6537
|
||||
[Token(Token = "0x2001989")]
|
||||
[StructLayout(3)]
|
||||
public class PollReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF97 RID: 44951 RVA: 0x002915D0 File Offset: 0x0028F7D0
|
||||
[Token(Token = "0x600AF97")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PollReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF98 RID: 44952 RVA: 0x002915EC File Offset: 0x0028F7EC
|
||||
[Token(Token = "0x600AF98")]
|
||||
[Address(RVA = "0x28FAB80", Offset = "0x28F9580", VA = "0x1828FAB80")]
|
||||
public static PollReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF98)
|
||||
|
||||
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: 0x0600AF99 RID: 44953 RVA: 0x00291644 File Offset: 0x0028F844
|
||||
[Token(Token = "0x600AF99")]
|
||||
[Address(RVA = "0x28FA940", Offset = "0x28F9340", VA = "0x1828FA940", 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: 0x0600AF9A RID: 44954 RVA: 0x002916CC File Offset: 0x0028F8CC
|
||||
[Token(Token = "0x600AF9A")]
|
||||
[Address(RVA = "0x28FAD70", Offset = "0x28F9770", VA = "0x1828FAD70")]
|
||||
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: 0x0600AF9B RID: 44955 RVA: 0x0029170C File Offset: 0x0028F90C
|
||||
[Token(Token = "0x600AF9B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF9B)
|
||||
|
||||
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: 0x04007363 RID: 29539
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007363")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198A RID: 6538
|
||||
[Token(Token = "0x200198A")]
|
||||
[StructLayout(3)]
|
||||
public class PopoDecKeyChallContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF9C RID: 44956 RVA: 0x00291720 File Offset: 0x0028F920
|
||||
[Token(Token = "0x600AF9C")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PopoDecKeyChallContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF9D RID: 44957 RVA: 0x0029173C File Offset: 0x0028F93C
|
||||
[Token(Token = "0x600AF9D")]
|
||||
[Address(RVA = "0x28FAE80", Offset = "0x28F9880", VA = "0x1828FAE80")]
|
||||
public static PopoDecKeyChallContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF9D)
|
||||
|
||||
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: 0x0600AF9E RID: 44958 RVA: 0x00291794 File Offset: 0x0028F994
|
||||
[Token(Token = "0x600AF9E")]
|
||||
[Address(RVA = "0x28FB070", Offset = "0x28F9A70", VA = "0x1828FB070", 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: 0x0600AF9F RID: 44959 RVA: 0x002917E0 File Offset: 0x0028F9E0
|
||||
[Token(Token = "0x600AF9F")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF9F)
|
||||
|
||||
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: 0x04007364 RID: 29540
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007364")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198B RID: 6539
|
||||
[Token(Token = "0x200198B")]
|
||||
[StructLayout(3)]
|
||||
public class PopoDecKeyRespContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFA0 RID: 44960 RVA: 0x002917F4 File Offset: 0x0028F9F4
|
||||
[Token(Token = "0x600AFA0")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PopoDecKeyRespContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFA1 RID: 44961 RVA: 0x00291810 File Offset: 0x0028FA10
|
||||
[Token(Token = "0x600AFA1")]
|
||||
[Address(RVA = "0x28FB180", Offset = "0x28F9B80", VA = "0x1828FB180")]
|
||||
public static PopoDecKeyRespContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFA1)
|
||||
|
||||
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: 0x0600AFA2 RID: 44962 RVA: 0x00291868 File Offset: 0x0028FA68
|
||||
[Token(Token = "0x600AFA2")]
|
||||
[Address(RVA = "0x28FB370", Offset = "0x28F9D70", VA = "0x1828FB370", 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: 0x0600AFA3 RID: 44963 RVA: 0x002918B4 File Offset: 0x0028FAB4
|
||||
[Token(Token = "0x600AFA3")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFA3)
|
||||
|
||||
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: 0x04007365 RID: 29541
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007365")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198C RID: 6540
|
||||
[Token(Token = "0x200198C")]
|
||||
[StructLayout(3)]
|
||||
public class ProtectedPart : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFA4 RID: 44964 RVA: 0x002918C8 File Offset: 0x0028FAC8
|
||||
[Token(Token = "0x600AFA4")]
|
||||
[Address(RVA = "0x28FB800", Offset = "0x28FA200", VA = "0x1828FB800")]
|
||||
private ProtectedPart(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiHeader pkiHeader;
|
||||
this.header = pkiHeader;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiBody pkiBody;
|
||||
this.body = pkiBody;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFA5 RID: 44965 RVA: 0x00291900 File Offset: 0x0028FB00
|
||||
[Token(Token = "0x600AFA5")]
|
||||
[Address(RVA = "0x28FB480", Offset = "0x28F9E80", VA = "0x1828FB480")]
|
||||
public static ProtectedPart GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFA5)
|
||||
|
||||
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: 0x0600AFA6 RID: 44966 RVA: 0x0029195C File Offset: 0x0028FB5C
|
||||
[Token(Token = "0x600AFA6")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public ProtectedPart(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
// Token: 0x17001C50 RID: 7248
|
||||
// (get) Token: 0x0600AFA7 RID: 44967 RVA: 0x00291980 File Offset: 0x0028FB80
|
||||
[Token(Token = "0x17001C50")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600AFA7")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C51 RID: 7249
|
||||
// (get) Token: 0x0600AFA8 RID: 44968 RVA: 0x00291994 File Offset: 0x0028FB94
|
||||
[Token(Token = "0x17001C51")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600AFA8")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFA9 RID: 44969 RVA: 0x002919A8 File Offset: 0x0028FBA8
|
||||
[Token(Token = "0x600AFA9")]
|
||||
[Address(RVA = "0x28FB6F0", Offset = "0x28FA0F0", VA = "0x1828FB6F0", 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: 0x04007366 RID: 29542
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007366")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04007367 RID: 29543
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007367")]
|
||||
private readonly PkiBody body;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198D RID: 6541
|
||||
[Token(Token = "0x200198D")]
|
||||
[StructLayout(3)]
|
||||
public class RevAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFAA RID: 44970 RVA: 0x002919F0 File Offset: 0x0028FBF0
|
||||
[Token(Token = "0x600AFAA")]
|
||||
[Address(RVA = "0x28FD820", Offset = "0x28FC220", VA = "0x1828FD820")]
|
||||
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: 0x0600AFAB RID: 44971 RVA: 0x00291A5C File Offset: 0x0028FC5C
|
||||
[Token(Token = "0x600AFAB")]
|
||||
[Address(RVA = "0x28FD2A0", Offset = "0x28FBCA0", VA = "0x1828FD2A0")]
|
||||
public static RevAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFAB)
|
||||
|
||||
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: 0x17001C52 RID: 7250
|
||||
// (get) Token: 0x0600AFAC RID: 44972 RVA: 0x00291AD0 File Offset: 0x0028FCD0
|
||||
[Token(Token = "0x17001C52")]
|
||||
public virtual PkiStatusEncodable Status
|
||||
{
|
||||
[Token(Token = "0x600AFAC")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C53 RID: 7251
|
||||
// (get) Token: 0x0600AFAD RID: 44973 RVA: 0x00291AE4 File Offset: 0x0028FCE4
|
||||
[Token(Token = "0x17001C53")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600AFAD")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C54 RID: 7252
|
||||
// (get) Token: 0x0600AFAE RID: 44974 RVA: 0x00291AF8 File Offset: 0x0028FCF8
|
||||
[Token(Token = "0x17001C54")]
|
||||
public virtual DerGeneralizedTime WillBeRevokedAt
|
||||
{
|
||||
[Token(Token = "0x600AFAE")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.willBeRevokedAt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C55 RID: 7253
|
||||
// (get) Token: 0x0600AFAF RID: 44975 RVA: 0x00291B0C File Offset: 0x0028FD0C
|
||||
[Token(Token = "0x17001C55")]
|
||||
public virtual DerGeneralizedTime BadSinceDate
|
||||
{
|
||||
[Token(Token = "0x600AFAF")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.badSinceDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C56 RID: 7254
|
||||
// (get) Token: 0x0600AFB0 RID: 44976 RVA: 0x00291B20 File Offset: 0x0028FD20
|
||||
[Token(Token = "0x17001C56")]
|
||||
public virtual X509Extensions CrlDetails
|
||||
{
|
||||
[Token(Token = "0x600AFB0")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.crlDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB1 RID: 44977 RVA: 0x00291B34 File Offset: 0x0028FD34
|
||||
[Token(Token = "0x600AFB1")]
|
||||
[Address(RVA = "0x28FD5C0", Offset = "0x28FBFC0", VA = "0x1828FD5C0", 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: 0x04007368 RID: 29544
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007368")]
|
||||
private readonly PkiStatusEncodable status;
|
||||
|
||||
// Token: 0x04007369 RID: 29545
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007369")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x0400736A RID: 29546
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400736A")]
|
||||
private readonly DerGeneralizedTime willBeRevokedAt;
|
||||
|
||||
// Token: 0x0400736B RID: 29547
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400736B")]
|
||||
private readonly DerGeneralizedTime badSinceDate;
|
||||
|
||||
// Token: 0x0400736C RID: 29548
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400736C")]
|
||||
private readonly X509Extensions crlDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198E RID: 6542
|
||||
[Token(Token = "0x200198E")]
|
||||
[StructLayout(3)]
|
||||
public class RevDetails : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFB2 RID: 44978 RVA: 0x00291BD8 File Offset: 0x0028FDD8
|
||||
[Token(Token = "0x600AFB2")]
|
||||
[Address(RVA = "0x28FDDA0", Offset = "0x28FC7A0", VA = "0x1828FDDA0")]
|
||||
private RevDetails(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertTemplate certTemplate;
|
||||
this.certDetails = certTemplate;
|
||||
int num = 0;
|
||||
this.crlEntryDetails = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB3 RID: 44979 RVA: 0x00291C1C File Offset: 0x0028FE1C
|
||||
[Token(Token = "0x600AFB3")]
|
||||
[Address(RVA = "0x28FD990", Offset = "0x28FC390", VA = "0x1828FD990")]
|
||||
public static RevDetails GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFB3)
|
||||
|
||||
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: 0x0600AFB4 RID: 44980 RVA: 0x00291C7C File Offset: 0x0028FE7C
|
||||
[Token(Token = "0x600AFB4")]
|
||||
[Address(RVA = "0x937E60", Offset = "0x936860", VA = "0x180937E60")]
|
||||
public RevDetails(CertTemplate certDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB5 RID: 44981 RVA: 0x00291CA0 File Offset: 0x0028FEA0
|
||||
[Token(Token = "0x600AFB5")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public RevDetails(CertTemplate certDetails, X509Extensions crlEntryDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = crlEntryDetails;
|
||||
}
|
||||
|
||||
// Token: 0x17001C57 RID: 7255
|
||||
// (get) Token: 0x0600AFB6 RID: 44982 RVA: 0x00291CC4 File Offset: 0x0028FEC4
|
||||
[Token(Token = "0x17001C57")]
|
||||
public virtual CertTemplate CertDetails
|
||||
{
|
||||
[Token(Token = "0x600AFB6")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C58 RID: 7256
|
||||
// (get) Token: 0x0600AFB7 RID: 44983 RVA: 0x00291CD8 File Offset: 0x0028FED8
|
||||
[Token(Token = "0x17001C58")]
|
||||
public virtual X509Extensions CrlEntryDetails
|
||||
{
|
||||
[Token(Token = "0x600AFB7")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.crlEntryDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB8 RID: 44984 RVA: 0x00291CEC File Offset: 0x0028FEEC
|
||||
[Token(Token = "0x600AFB8")]
|
||||
[Address(RVA = "0x28FDC30", Offset = "0x28FC630", VA = "0x1828FDC30", 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: 0x0400736D RID: 29549
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400736D")]
|
||||
private readonly CertTemplate certDetails;
|
||||
|
||||
// Token: 0x0400736E RID: 29550
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400736E")]
|
||||
private readonly X509Extensions crlEntryDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198F RID: 6543
|
||||
[Token(Token = "0x200198F")]
|
||||
[StructLayout(3)]
|
||||
public class RevRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFB9 RID: 44985 RVA: 0x00291D4C File Offset: 0x0028FF4C
|
||||
[Token(Token = "0x600AFB9")]
|
||||
[Address(RVA = "0x28FEDE0", Offset = "0x28FD7E0", VA = "0x1828FEDE0")]
|
||||
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: 0x0600AFBA RID: 44986 RVA: 0x00291DA8 File Offset: 0x0028FFA8
|
||||
[Token(Token = "0x600AFBA")]
|
||||
[Address(RVA = "0x28FE800", Offset = "0x28FD200", VA = "0x1828FE800")]
|
||||
public static RevRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFBA)
|
||||
|
||||
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: 0x0600AFBB RID: 44987 RVA: 0x00291E28 File Offset: 0x00290028
|
||||
[Token(Token = "0x600AFBB")]
|
||||
[Address(RVA = "0x28FEBB0", Offset = "0x28FD5B0", VA = "0x1828FEBB0", 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: 0x0600AFBC RID: 44988 RVA: 0x00291E74 File Offset: 0x00290074
|
||||
[Token(Token = "0x600AFBC")]
|
||||
[Address(RVA = "0x28FEA90", Offset = "0x28FD490", VA = "0x1828FEA90", 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: 0x0600AFBD RID: 44989 RVA: 0x00291EC4 File Offset: 0x002900C4
|
||||
[Token(Token = "0x600AFBD")]
|
||||
[Address(RVA = "0x28FE6E0", Offset = "0x28FD0E0", VA = "0x1828FE6E0", 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: 0x0600AFBE RID: 44990 RVA: 0x00291F14 File Offset: 0x00290114
|
||||
[Token(Token = "0x600AFBE")]
|
||||
[Address(RVA = "0x28FECC0", Offset = "0x28FD6C0", VA = "0x1828FECC0", 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: 0x0600AFBF RID: 44991 RVA: 0x00291F78 File Offset: 0x00290178
|
||||
[Token(Token = "0x600AFBF")]
|
||||
[Address(RVA = "0x28FE5E0", Offset = "0x28FCFE0", VA = "0x1828FE5E0")]
|
||||
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: 0x0400736F RID: 29551
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400736F")]
|
||||
private readonly Asn1Sequence status;
|
||||
|
||||
// Token: 0x04007370 RID: 29552
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007370")]
|
||||
private readonly Asn1Sequence revCerts;
|
||||
|
||||
// Token: 0x04007371 RID: 29553
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007371")]
|
||||
private readonly Asn1Sequence crls;
|
||||
}
|
||||
}
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001990 RID: 6544
|
||||
[Token(Token = "0x2001990")]
|
||||
[StructLayout(3)]
|
||||
public class RevRepContentBuilder
|
||||
{
|
||||
// Token: 0x0600AFC0 RID: 44992 RVA: 0x00291FB4 File Offset: 0x002901B4
|
||||
[Token(Token = "0x600AFC0")]
|
||||
[Address(RVA = "0x28FDF60", Offset = "0x28FC960", VA = "0x1828FDF60", 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: 0x0600AFC1 RID: 44993 RVA: 0x00291FEC File Offset: 0x002901EC
|
||||
[Token(Token = "0x600AFC1")]
|
||||
[Address(RVA = "0x28FE030", Offset = "0x28FCA30", VA = "0x1828FE030", 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: 0x0600AFC2 RID: 44994 RVA: 0x00292064 File Offset: 0x00290264
|
||||
[Token(Token = "0x600AFC2")]
|
||||
[Address(RVA = "0x28FDE90", Offset = "0x28FC890", VA = "0x1828FDE90", 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: 0x0600AFC3 RID: 44995 RVA: 0x0029209C File Offset: 0x0029029C
|
||||
[Token(Token = "0x600AFC3")]
|
||||
[Address(RVA = "0x28FE1F0", Offset = "0x28FCBF0", VA = "0x1828FE1F0", 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: 0x0600AFC4 RID: 44996 RVA: 0x00292174 File Offset: 0x00290374
|
||||
[Token(Token = "0x600AFC4")]
|
||||
[Address(RVA = "0x28FE500", Offset = "0x28FCF00", VA = "0x1828FE500")]
|
||||
public RevRepContentBuilder()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
this.status = asn1EncodableVector;
|
||||
Asn1EncodableVector asn1EncodableVector2;
|
||||
this.revCerts = asn1EncodableVector2;
|
||||
Asn1EncodableVector asn1EncodableVector3;
|
||||
this.crls = asn1EncodableVector3;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04007372 RID: 29554
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007372")]
|
||||
private readonly Asn1EncodableVector status;
|
||||
|
||||
// Token: 0x04007373 RID: 29555
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007373")]
|
||||
private readonly Asn1EncodableVector revCerts;
|
||||
|
||||
// Token: 0x04007374 RID: 29556
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007374")]
|
||||
private readonly Asn1EncodableVector crls;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001991 RID: 6545
|
||||
[Token(Token = "0x2001991")]
|
||||
[StructLayout(3)]
|
||||
public class RevReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFC5 RID: 44997 RVA: 0x0029219C File Offset: 0x0029039C
|
||||
[Token(Token = "0x600AFC5")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private RevReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC6 RID: 44998 RVA: 0x002921B8 File Offset: 0x002903B8
|
||||
[Token(Token = "0x600AFC6")]
|
||||
[Address(RVA = "0x28FEEC0", Offset = "0x28FD8C0", VA = "0x1828FEEC0")]
|
||||
public static RevReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFC6)
|
||||
|
||||
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: 0x0600AFC7 RID: 44999 RVA: 0x00292210 File Offset: 0x00290410
|
||||
[Token(Token = "0x600AFC7")]
|
||||
[Address(RVA = "0x28FF1C0", Offset = "0x28FDBC0", VA = "0x1828FF1C0")]
|
||||
public RevReqContent(params RevDetails[] revDetails)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(revDetails);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC8 RID: 45000 RVA: 0x00292234 File Offset: 0x00290434
|
||||
[Token(Token = "0x600AFC8")]
|
||||
[Address(RVA = "0x28FF0B0", Offset = "0x28FDAB0", VA = "0x1828FF0B0", 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: 0x0600AFC9 RID: 45001 RVA: 0x00292280 File Offset: 0x00290480
|
||||
[Token(Token = "0x600AFC9")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFC9)
|
||||
|
||||
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: 0x04007375 RID: 29557
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007375")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193B RID: 6459
|
||||
[Token(Token = "0x200193B")]
|
||||
[StructLayout(3)]
|
||||
public class Attribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD45 RID: 44357 RVA: 0x00288B04 File Offset: 0x00286D04
|
||||
[Token(Token = "0x600AD45")]
|
||||
[Address(RVA = "0x28E92B0", Offset = "0x28E7CB0", VA = "0x1828E92B0")]
|
||||
public static Attribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD45)
|
||||
|
||||
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: 0x0600AD46 RID: 44358 RVA: 0x00288B5C File Offset: 0x00286D5C
|
||||
[Token(Token = "0x600AD46")]
|
||||
[Address(RVA = "0x28E96C0", Offset = "0x28E80C0", VA = "0x1828E96C0")]
|
||||
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: 0x0600AD47 RID: 44359 RVA: 0x00288BA8 File Offset: 0x00286DA8
|
||||
[Token(Token = "0x600AD47")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public Attribute(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17001B96 RID: 7062
|
||||
// (get) Token: 0x0600AD48 RID: 44360 RVA: 0x00288BCC File Offset: 0x00286DCC
|
||||
[Token(Token = "0x17001B96")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600AD48")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B97 RID: 7063
|
||||
// (get) Token: 0x0600AD49 RID: 44361 RVA: 0x00288BE0 File Offset: 0x00286DE0
|
||||
[Token(Token = "0x17001B97")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600AD49")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD4A RID: 44362 RVA: 0x00288BF4 File Offset: 0x00286DF4
|
||||
[Token(Token = "0x600AD4A")]
|
||||
[Address(RVA = "0x28E95B0", Offset = "0x28E7FB0", VA = "0x1828E95B0", 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: 0x0400720B RID: 29195
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400720B")]
|
||||
private DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x0400720C RID: 29196
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400720C")]
|
||||
private Asn1Set attrValues;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,386 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193C RID: 6460
|
||||
[Token(Token = "0x200193C")]
|
||||
[StructLayout(3)]
|
||||
public class AttributeTable
|
||||
{
|
||||
// Token: 0x0600AD4B RID: 44363 RVA: 0x00288C3C File Offset: 0x00286E3C
|
||||
[Token(Token = "0x600AD4B")]
|
||||
[Address(RVA = "0x28E8D10", Offset = "0x28E7710", VA = "0x1828E8D10")]
|
||||
[Obsolete]
|
||||
public AttributeTable(Hashtable attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD4C RID: 44364 RVA: 0x00288C60 File Offset: 0x00286E60
|
||||
[Token(Token = "0x600AD4C")]
|
||||
[Address(RVA = "0x28E8CA0", Offset = "0x28E76A0", VA = "0x1828E8CA0")]
|
||||
public AttributeTable(IDictionary attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD4D RID: 44365 RVA: 0x00288C84 File Offset: 0x00286E84
|
||||
[Token(Token = "0x600AD4D")]
|
||||
[Address(RVA = "0x28E8A60", Offset = "0x28E7460", VA = "0x1828E8A60")]
|
||||
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_63;
|
||||
}
|
||||
instance = Attribute.GetInstance(num);
|
||||
this.AddAttribute(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_63:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AD4E RID: 44366 RVA: 0x00288CFC File Offset: 0x00286EFC
|
||||
[Token(Token = "0x600AD4E")]
|
||||
[Address(RVA = "0x28E8D80", Offset = "0x28E7780", VA = "0x1828E8D80")]
|
||||
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: 0x0600AD4F RID: 44367 RVA: 0x00288D38 File Offset: 0x00286F38
|
||||
[Token(Token = "0x600AD4F")]
|
||||
[Address(RVA = "0x28E8930", Offset = "0x28E7330", VA = "0x1828E8930")]
|
||||
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: 0x0600AD50 RID: 44368 RVA: 0x00288D80 File Offset: 0x00286F80
|
||||
[Token(Token = "0x600AD50")]
|
||||
[Address(RVA = "0x28E7B40", Offset = "0x28E6540", VA = "0x1828E7B40")]
|
||||
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: 0x17001B98 RID: 7064
|
||||
[Token(Token = "0x17001B98")]
|
||||
public Attribute this[DerObjectIdentifier oid]
|
||||
{
|
||||
[Token(Token = "0x600AD51")]
|
||||
[Address(RVA = "0x28E90B0", Offset = "0x28E7AB0", VA = "0x1828E90B0")]
|
||||
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: 0x0600AD52 RID: 44370 RVA: 0x00288E10 File Offset: 0x00287010
|
||||
[Token(Token = "0x600AD52")]
|
||||
[Address(RVA = "0x28E8270", Offset = "0x28E6C70", VA = "0x1828E8270")]
|
||||
[Obsolete]
|
||||
public Attribute Get(DerObjectIdentifier oid)
|
||||
{
|
||||
return this[oid];
|
||||
}
|
||||
|
||||
// Token: 0x0600AD53 RID: 44371 RVA: 0x00288E24 File Offset: 0x00287024
|
||||
[Token(Token = "0x600AD53")]
|
||||
[Address(RVA = "0x28E7DE0", Offset = "0x28E67E0", VA = "0x1828E7DE0")]
|
||||
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 != -1)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
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: 0x17001B99 RID: 7065
|
||||
// (get) Token: 0x0600AD54 RID: 44372 RVA: 0x00288EE0 File Offset: 0x002870E0
|
||||
[Token(Token = "0x17001B99")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600AD54")]
|
||||
[Address(RVA = "0x28E8E80", Offset = "0x28E7880", VA = "0x1828E8E80")]
|
||||
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)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD55 RID: 44373 RVA: 0x00288F34 File Offset: 0x00287134
|
||||
[Token(Token = "0x600AD55")]
|
||||
[Address(RVA = "0x28E8870", Offset = "0x28E7270", VA = "0x1828E8870")]
|
||||
public IDictionary ToDictionary()
|
||||
{
|
||||
return Platform.CreateHashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600AD56 RID: 44374 RVA: 0x00288F4C File Offset: 0x0028714C
|
||||
[Token(Token = "0x600AD56")]
|
||||
[Address(RVA = "0x28E88D0", Offset = "0x28E72D0", VA = "0x1828E88D0")]
|
||||
[Obsolete]
|
||||
public Hashtable ToHashtable()
|
||||
{
|
||||
return new Hashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600AD57 RID: 44375 RVA: 0x00288F64 File Offset: 0x00287164
|
||||
[Token(Token = "0x600AD57")]
|
||||
[Address(RVA = "0x28E83B0", Offset = "0x28E6DB0", VA = "0x1828E83B0")]
|
||||
public Asn1EncodableVector ToAsn1EncodableVector()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
Asn1Encodable[] array;
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if (array == 0)
|
||||
{
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Attribute instance;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
instance = Attribute.GetInstance(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
array = new Asn1Encodable[1];
|
||||
Attribute instance2 = Attribute.GetInstance(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AD58 RID: 44376 RVA: 0x00289030 File Offset: 0x00287230
|
||||
[Token(Token = "0x600AD58")]
|
||||
[Address(RVA = "0x28E87C0", Offset = "0x28E71C0", VA = "0x1828E87C0")]
|
||||
public Attributes ToAttributes()
|
||||
{
|
||||
BerSet berSet = new BerSet(this.ToAsn1EncodableVector());
|
||||
Attributes attributes;
|
||||
attributes.attributes = berSet;
|
||||
return attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD59 RID: 44377 RVA: 0x00289054 File Offset: 0x00287254
|
||||
[Token(Token = "0x600AD59")]
|
||||
[Address(RVA = "0x28E7CD0", Offset = "0x28E66D0", VA = "0x1828E7CD0")]
|
||||
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: 0x0600AD5A RID: 44378 RVA: 0x00289094 File Offset: 0x00287294
|
||||
[Token(Token = "0x600AD5A")]
|
||||
[Address(RVA = "0x28E8280", Offset = "0x28E6C80", VA = "0x1828E8280")]
|
||||
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: 0x0400720D RID: 29197
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400720D")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193D RID: 6461
|
||||
[Token(Token = "0x200193D")]
|
||||
[StructLayout(3)]
|
||||
public class Attributes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD5B RID: 44379 RVA: 0x002890C8 File Offset: 0x002872C8
|
||||
[Token(Token = "0x600AD5B")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private Attributes(Asn1Set attributes)
|
||||
{
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD5C RID: 44380 RVA: 0x002890E4 File Offset: 0x002872E4
|
||||
[Token(Token = "0x600AD5C")]
|
||||
[Address(RVA = "0x28E9A10", Offset = "0x28E8410", VA = "0x1828E9A10")]
|
||||
public Attributes(Asn1EncodableVector v)
|
||||
{
|
||||
BerSet berSet = new BerSet(v);
|
||||
this.attributes = berSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD5D RID: 44381 RVA: 0x00289108 File Offset: 0x00287308
|
||||
[Token(Token = "0x600AD5D")]
|
||||
[Address(RVA = "0x28E9910", Offset = "0x28E8310", VA = "0x1828E9910")]
|
||||
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: 0x0600AD5E RID: 44382 RVA: 0x0028913C File Offset: 0x0028733C
|
||||
[Token(Token = "0x600AD5E")]
|
||||
[Address(RVA = "0x28E9800", Offset = "0x28E8200", VA = "0x1828E9800", 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: 0x0600AD5F RID: 44383 RVA: 0x00289188 File Offset: 0x00287388
|
||||
[Token(Token = "0x600AD5F")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD5F)
|
||||
|
||||
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: 0x0400720E RID: 29198
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400720E")]
|
||||
private readonly Asn1Set attributes;
|
||||
}
|
||||
}
|
||||
+327
@@ -0,0 +1,327 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193E RID: 6462
|
||||
[Token(Token = "0x200193E")]
|
||||
[StructLayout(3)]
|
||||
public class AuthEnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD60 RID: 44384 RVA: 0x0028919C File Offset: 0x0028739C
|
||||
[Token(Token = "0x600AD60")]
|
||||
[Address(RVA = "0x28EA810", Offset = "0x28E9210", VA = "0x1828EA810")]
|
||||
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: 0x0600AD61 RID: 44385 RVA: 0x002891EC File Offset: 0x002873EC
|
||||
[Token(Token = "0x600AD61")]
|
||||
[Address(RVA = "0x28EA8C0", Offset = "0x28E92C0", VA = "0x1828EA8C0")]
|
||||
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: 0x0600AD62 RID: 44386 RVA: 0x002892C4 File Offset: 0x002874C4
|
||||
[Token(Token = "0x600AD62")]
|
||||
[Address(RVA = "0x28EA1A0", Offset = "0x28E8BA0", VA = "0x1828EA1A0")]
|
||||
public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD63 RID: 44387 RVA: 0x002892E0 File Offset: 0x002874E0
|
||||
[Token(Token = "0x600AD63")]
|
||||
[Address(RVA = "0x28EA1C0", Offset = "0x28E8BC0", VA = "0x1828EA1C0")]
|
||||
public static AuthEnvelopedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD63)
|
||||
|
||||
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: 0x17001B9A RID: 7066
|
||||
// (get) Token: 0x0600AD64 RID: 44388 RVA: 0x00289330 File Offset: 0x00287530
|
||||
[Token(Token = "0x17001B9A")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD64")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9B RID: 7067
|
||||
// (get) Token: 0x0600AD65 RID: 44389 RVA: 0x00289344 File Offset: 0x00287544
|
||||
[Token(Token = "0x17001B9B")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600AD65")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9C RID: 7068
|
||||
// (get) Token: 0x0600AD66 RID: 44390 RVA: 0x00289358 File Offset: 0x00287558
|
||||
[Token(Token = "0x17001B9C")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600AD66")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9D RID: 7069
|
||||
// (get) Token: 0x0600AD67 RID: 44391 RVA: 0x0028936C File Offset: 0x0028756C
|
||||
[Token(Token = "0x17001B9D")]
|
||||
public EncryptedContentInfo AuthEncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600AD67")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.authEncryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9E RID: 7070
|
||||
// (get) Token: 0x0600AD68 RID: 44392 RVA: 0x00289380 File Offset: 0x00287580
|
||||
[Token(Token = "0x17001B9E")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600AD68")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9F RID: 7071
|
||||
// (get) Token: 0x0600AD69 RID: 44393 RVA: 0x00289394 File Offset: 0x00287594
|
||||
[Token(Token = "0x17001B9F")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600AD69")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA0 RID: 7072
|
||||
// (get) Token: 0x0600AD6A RID: 44394 RVA: 0x002893A8 File Offset: 0x002875A8
|
||||
[Token(Token = "0x17001BA0")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600AD6A")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD6B RID: 44395 RVA: 0x002893BC File Offset: 0x002875BC
|
||||
[Token(Token = "0x600AD6B")]
|
||||
[Address(RVA = "0x28EA3B0", Offset = "0x28E8DB0", VA = "0x1828EA3B0", 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: 0x0400720F RID: 29199
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400720F")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007210 RID: 29200
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007210")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04007211 RID: 29201
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007211")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04007212 RID: 29202
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007212")]
|
||||
private EncryptedContentInfo authEncryptedContentInfo;
|
||||
|
||||
// Token: 0x04007213 RID: 29203
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007213")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04007214 RID: 29204
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007214")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04007215 RID: 29205
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007215")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+209
@@ -0,0 +1,209 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193F RID: 6463
|
||||
[Token(Token = "0x200193F")]
|
||||
[StructLayout(3)]
|
||||
public class AuthEnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600AD6C RID: 44396 RVA: 0x00289520 File Offset: 0x00287720
|
||||
[Token(Token = "0x600AD6C")]
|
||||
[Address(RVA = "0x28EA0D0", Offset = "0x28E8AD0", VA = "0x1828EA0D0")]
|
||||
public AuthEnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001BA1 RID: 7073
|
||||
// (get) Token: 0x0600AD6D RID: 44397 RVA: 0x00289550 File Offset: 0x00287750
|
||||
[Token(Token = "0x17001BA1")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD6D")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD6E RID: 44398 RVA: 0x00289564 File Offset: 0x00287764
|
||||
[Token(Token = "0x600AD6E")]
|
||||
[Address(RVA = "0x28E9D10", Offset = "0x28E8710", VA = "0x1828E9D10")]
|
||||
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: 0x0600AD6F RID: 44399 RVA: 0x002895D0 File Offset: 0x002877D0
|
||||
[Token(Token = "0x600AD6F")]
|
||||
[Address(RVA = "0x28E9F10", Offset = "0x28E8910", VA = "0x1828E9F10")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD6F)
|
||||
|
||||
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: 0x0600AD70 RID: 44400 RVA: 0x00289610 File Offset: 0x00287810
|
||||
[Token(Token = "0x600AD70")]
|
||||
[Address(RVA = "0x28E9BC0", Offset = "0x28E85C0", VA = "0x1828E9BC0")]
|
||||
public EncryptedContentInfoParser GetAuthEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD71 RID: 44401 RVA: 0x0028963C File Offset: 0x0028783C
|
||||
[Token(Token = "0x600AD71")]
|
||||
[Address(RVA = "0x28E9A80", Offset = "0x28E8480", VA = "0x1828E9A80")]
|
||||
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: 0x0600AD72 RID: 44402 RVA: 0x0028968C File Offset: 0x0028788C
|
||||
[Token(Token = "0x600AD72")]
|
||||
[Address(RVA = "0x28E9C90", Offset = "0x28E8690", VA = "0x1828E9C90")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD73 RID: 44403 RVA: 0x002896BC File Offset: 0x002878BC
|
||||
[Token(Token = "0x600AD73")]
|
||||
[Address(RVA = "0x28E9FB0", Offset = "0x28E89B0", VA = "0x1828E9FB0")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD73)
|
||||
|
||||
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: 0x04007216 RID: 29206
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007216")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04007217 RID: 29207
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007217")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007218 RID: 29208
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007218")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04007219 RID: 29209
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007219")]
|
||||
private bool originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
+476
@@ -0,0 +1,476 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001940 RID: 6464
|
||||
[Token(Token = "0x2001940")]
|
||||
[StructLayout(3)]
|
||||
public class AuthenticatedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD74 RID: 44404 RVA: 0x002896E4 File Offset: 0x002878E4
|
||||
[Token(Token = "0x600AD74")]
|
||||
[Address(RVA = "0x28EC530", Offset = "0x28EAF30", VA = "0x1828EC530")]
|
||||
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: 0x0600AD75 RID: 44405 RVA: 0x00289750 File Offset: 0x00287950
|
||||
[Token(Token = "0x600AD75")]
|
||||
[Address(RVA = "0x28EC0F0", Offset = "0x28EAAF0", VA = "0x1828EC0F0")]
|
||||
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: 0x0600AD76 RID: 44406 RVA: 0x00289860 File Offset: 0x00287A60
|
||||
[Token(Token = "0x600AD76")]
|
||||
[Address(RVA = "0x28EBB70", Offset = "0x28EA570", VA = "0x1828EBB70")]
|
||||
public static AuthenticatedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthenticatedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD77 RID: 44407 RVA: 0x0028987C File Offset: 0x00287A7C
|
||||
[Token(Token = "0x600AD77")]
|
||||
[Address(RVA = "0x28EB980", Offset = "0x28EA380", VA = "0x1828EB980")]
|
||||
public static AuthenticatedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD77)
|
||||
|
||||
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: 0x17001BA2 RID: 7074
|
||||
// (get) Token: 0x0600AD78 RID: 44408 RVA: 0x002898CC File Offset: 0x00287ACC
|
||||
[Token(Token = "0x17001BA2")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD78")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA3 RID: 7075
|
||||
// (get) Token: 0x0600AD79 RID: 44409 RVA: 0x002898E0 File Offset: 0x00287AE0
|
||||
[Token(Token = "0x17001BA3")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600AD79")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA4 RID: 7076
|
||||
// (get) Token: 0x0600AD7A RID: 44410 RVA: 0x002898F4 File Offset: 0x00287AF4
|
||||
[Token(Token = "0x17001BA4")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600AD7A")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA5 RID: 7077
|
||||
// (get) Token: 0x0600AD7B RID: 44411 RVA: 0x00289908 File Offset: 0x00287B08
|
||||
[Token(Token = "0x17001BA5")]
|
||||
public AlgorithmIdentifier MacAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600AD7B")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.macAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA6 RID: 7078
|
||||
// (get) Token: 0x0600AD7C RID: 44412 RVA: 0x0028991C File Offset: 0x00287B1C
|
||||
[Token(Token = "0x17001BA6")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600AD7C")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA7 RID: 7079
|
||||
// (get) Token: 0x0600AD7D RID: 44413 RVA: 0x00289930 File Offset: 0x00287B30
|
||||
[Token(Token = "0x17001BA7")]
|
||||
public ContentInfo EncapsulatedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600AD7D")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.encapsulatedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA8 RID: 7080
|
||||
// (get) Token: 0x0600AD7E RID: 44414 RVA: 0x00289944 File Offset: 0x00287B44
|
||||
[Token(Token = "0x17001BA8")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600AD7E")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA9 RID: 7081
|
||||
// (get) Token: 0x0600AD7F RID: 44415 RVA: 0x00289958 File Offset: 0x00287B58
|
||||
[Token(Token = "0x17001BA9")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600AD7F")]
|
||||
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BAA RID: 7082
|
||||
// (get) Token: 0x0600AD80 RID: 44416 RVA: 0x0028996C File Offset: 0x00287B6C
|
||||
[Token(Token = "0x17001BAA")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600AD80")]
|
||||
[Address(RVA = "0x462740", Offset = "0x461140", VA = "0x180462740")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD81 RID: 44417 RVA: 0x00289980 File Offset: 0x00287B80
|
||||
[Token(Token = "0x600AD81")]
|
||||
[Address(RVA = "0x28EBB90", Offset = "0x28EA590", VA = "0x1828EBB90", 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: 0x0600AD82 RID: 44418 RVA: 0x00289B4C File Offset: 0x00287D4C
|
||||
[Token(Token = "0x600AD82")]
|
||||
[Address(RVA = "0x28EB5E0", Offset = "0x28E9FE0", VA = "0x1828EB5E0")]
|
||||
public static int CalculateVersion(OriginatorInfo origInfo)
|
||||
{
|
||||
int num;
|
||||
for (;;)
|
||||
{
|
||||
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_6C;
|
||||
}
|
||||
if (num2 != 2)
|
||||
{
|
||||
while (num2 != 3)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num == -1)
|
||||
{
|
||||
goto IL_54;
|
||||
}
|
||||
IEnumerator enumerator2 = origInfo.crls.GetEnumerator();
|
||||
if (enumerator2 != 0)
|
||||
{
|
||||
while (enumerator2 == 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
goto IL_54;
|
||||
}
|
||||
IL_58:
|
||||
num++;
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
IL_54:
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_58;
|
||||
}
|
||||
goto IL_78;
|
||||
}
|
||||
return num;
|
||||
IL_6C:
|
||||
throw new NullReferenceException();
|
||||
IL_78:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400721A RID: 29210
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400721A")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400721B RID: 29211
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400721B")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400721C RID: 29212
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400721C")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x0400721D RID: 29213
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400721D")]
|
||||
private AlgorithmIdentifier macAlgorithm;
|
||||
|
||||
// Token: 0x0400721E RID: 29214
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400721E")]
|
||||
private AlgorithmIdentifier digestAlgorithm;
|
||||
|
||||
// Token: 0x0400721F RID: 29215
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400721F")]
|
||||
private ContentInfo encapsulatedContentInfo;
|
||||
|
||||
// Token: 0x04007220 RID: 29216
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007220")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04007221 RID: 29217
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007221")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04007222 RID: 29218
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007222")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001941 RID: 6465
|
||||
[Token(Token = "0x2001941")]
|
||||
[StructLayout(3)]
|
||||
public class AuthenticatedDataParser
|
||||
{
|
||||
// Token: 0x0600AD83 RID: 44419 RVA: 0x00289BD8 File Offset: 0x00287DD8
|
||||
[Token(Token = "0x600AD83")]
|
||||
[Address(RVA = "0x28EB510", Offset = "0x28E9F10", VA = "0x1828EB510")]
|
||||
public AuthenticatedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001BAB RID: 7083
|
||||
// (get) Token: 0x0600AD84 RID: 44420 RVA: 0x00289C08 File Offset: 0x00287E08
|
||||
[Token(Token = "0x17001BAB")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD84")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD85 RID: 44421 RVA: 0x00289C1C File Offset: 0x00287E1C
|
||||
[Token(Token = "0x600AD85")]
|
||||
[Address(RVA = "0x28EB150", Offset = "0x28E9B50", VA = "0x1828EB150")]
|
||||
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: 0x0600AD86 RID: 44422 RVA: 0x00289C88 File Offset: 0x00287E88
|
||||
[Token(Token = "0x600AD86")]
|
||||
[Address(RVA = "0x28EB350", Offset = "0x28E9D50", VA = "0x1828EB350")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD86)
|
||||
|
||||
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: 0x0600AD87 RID: 44423 RVA: 0x00289CC8 File Offset: 0x00287EC8
|
||||
[Token(Token = "0x600AD87")]
|
||||
[Address(RVA = "0x28EAFF0", Offset = "0x28E99F0", VA = "0x1828EAFF0")]
|
||||
public AlgorithmIdentifier GetMacAlgorithm()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
return AlgorithmIdentifier.GetInstance(0);
|
||||
}
|
||||
|
||||
// Token: 0x0600AD88 RID: 44424 RVA: 0x00289CF4 File Offset: 0x00287EF4
|
||||
[Token(Token = "0x600AD88")]
|
||||
[Address(RVA = "0x28EAE30", Offset = "0x28E9830", VA = "0x1828EAE30")]
|
||||
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: 0x0600AD89 RID: 44425 RVA: 0x00289D44 File Offset: 0x00287F44
|
||||
[Token(Token = "0x600AD89")]
|
||||
[Address(RVA = "0x28EAF20", Offset = "0x28E9920", VA = "0x1828EAF20")]
|
||||
public ContentInfoParser GetEnapsulatedContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD8A RID: 44426 RVA: 0x00289D70 File Offset: 0x00287F70
|
||||
[Token(Token = "0x600AD8A")]
|
||||
[Address(RVA = "0x28EACF0", Offset = "0x28E96F0", VA = "0x1828EACF0")]
|
||||
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: 0x0600AD8B RID: 44427 RVA: 0x00289DC0 File Offset: 0x00287FC0
|
||||
[Token(Token = "0x600AD8B")]
|
||||
[Address(RVA = "0x28EB0D0", Offset = "0x28E9AD0", VA = "0x1828EB0D0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD8C RID: 44428 RVA: 0x00289DF0 File Offset: 0x00287FF0
|
||||
[Token(Token = "0x600AD8C")]
|
||||
[Address(RVA = "0x28EB3F0", Offset = "0x28E9DF0", VA = "0x1828EB3F0")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD8C)
|
||||
|
||||
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: 0x04007223 RID: 29219
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007223")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04007224 RID: 29220
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007224")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007225 RID: 29221
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007225")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04007226 RID: 29222
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007226")]
|
||||
private bool originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001942 RID: 6466
|
||||
[Token(Token = "0x2001942")]
|
||||
[StructLayout(3)]
|
||||
public abstract class CmsAttributes
|
||||
{
|
||||
// Token: 0x0600AD8D RID: 44429 RVA: 0x00289E18 File Offset: 0x00288018
|
||||
[Token(Token = "0x600AD8D")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected CmsAttributes()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007227 RID: 29223
|
||||
[Token(Token = "0x4007227")]
|
||||
public static readonly DerObjectIdentifier ContentType = PkcsObjectIdentifiers.Pkcs9AtContentType;
|
||||
|
||||
// Token: 0x04007228 RID: 29224
|
||||
[Token(Token = "0x4007228")]
|
||||
public static readonly DerObjectIdentifier MessageDigest = PkcsObjectIdentifiers.Pkcs9AtMessageDigest;
|
||||
|
||||
// Token: 0x04007229 RID: 29225
|
||||
[Token(Token = "0x4007229")]
|
||||
public static readonly DerObjectIdentifier SigningTime = PkcsObjectIdentifiers.Pkcs9AtSigningTime;
|
||||
|
||||
// Token: 0x0400722A RID: 29226
|
||||
[Token(Token = "0x400722A")]
|
||||
public static readonly DerObjectIdentifier CounterSignature = PkcsObjectIdentifiers.Pkcs9AtCounterSignature;
|
||||
|
||||
// Token: 0x0400722B RID: 29227
|
||||
[Token(Token = "0x400722B")]
|
||||
public static readonly DerObjectIdentifier ContentHint = PkcsObjectIdentifiers.IdAAContentHint;
|
||||
}
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001943 RID: 6467
|
||||
[Token(Token = "0x2001943")]
|
||||
[StructLayout(3)]
|
||||
public abstract class CmsObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600AD8F RID: 44431 RVA: 0x00289E6C File Offset: 0x0028806C
|
||||
[Token(Token = "0x600AD8F")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected CmsObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400722C RID: 29228
|
||||
[Token(Token = "0x400722C")]
|
||||
public static readonly DerObjectIdentifier Data = PkcsObjectIdentifiers.Data;
|
||||
|
||||
// Token: 0x0400722D RID: 29229
|
||||
[Token(Token = "0x400722D")]
|
||||
public static readonly DerObjectIdentifier SignedData = PkcsObjectIdentifiers.SignedData;
|
||||
|
||||
// Token: 0x0400722E RID: 29230
|
||||
[Token(Token = "0x400722E")]
|
||||
public static readonly DerObjectIdentifier EnvelopedData = PkcsObjectIdentifiers.EnvelopedData;
|
||||
|
||||
// Token: 0x0400722F RID: 29231
|
||||
[Token(Token = "0x400722F")]
|
||||
public static readonly DerObjectIdentifier SignedAndEnvelopedData = PkcsObjectIdentifiers.SignedAndEnvelopedData;
|
||||
|
||||
// Token: 0x04007230 RID: 29232
|
||||
[Token(Token = "0x4007230")]
|
||||
public static readonly DerObjectIdentifier DigestedData = PkcsObjectIdentifiers.DigestedData;
|
||||
|
||||
// Token: 0x04007231 RID: 29233
|
||||
[Token(Token = "0x4007231")]
|
||||
public static readonly DerObjectIdentifier EncryptedData = PkcsObjectIdentifiers.EncryptedData;
|
||||
|
||||
// Token: 0x04007232 RID: 29234
|
||||
[Token(Token = "0x4007232")]
|
||||
public static readonly DerObjectIdentifier AuthenticatedData = PkcsObjectIdentifiers.IdCTAuthData;
|
||||
|
||||
// Token: 0x04007233 RID: 29235
|
||||
[Token(Token = "0x4007233")]
|
||||
public static readonly DerObjectIdentifier CompressedData = PkcsObjectIdentifiers.IdCTCompressedData;
|
||||
|
||||
// Token: 0x04007234 RID: 29236
|
||||
[Token(Token = "0x4007234")]
|
||||
public static readonly DerObjectIdentifier AuthEnvelopedData = PkcsObjectIdentifiers.IdCTAuthEnvelopedData;
|
||||
|
||||
// Token: 0x04007235 RID: 29237
|
||||
[Token(Token = "0x4007235")]
|
||||
public static readonly DerObjectIdentifier timestampedData = PkcsObjectIdentifiers.IdCTTimestampedData;
|
||||
|
||||
// Token: 0x04007236 RID: 29238
|
||||
[Token(Token = "0x4007236")]
|
||||
public static readonly DerObjectIdentifier id_ri = new DerObjectIdentifier("1.3.6.1.5.5.7.16");
|
||||
|
||||
// Token: 0x04007237 RID: 29239
|
||||
[Token(Token = "0x4007237")]
|
||||
public static readonly DerObjectIdentifier id_ri_ocsp_response = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007238 RID: 29240
|
||||
[Token(Token = "0x4007238")]
|
||||
public static readonly DerObjectIdentifier id_ri_scvp = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001944 RID: 6468
|
||||
[Token(Token = "0x2001944")]
|
||||
[StructLayout(3)]
|
||||
public class CompressedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD91 RID: 44433 RVA: 0x00289F24 File Offset: 0x00288124
|
||||
[Token(Token = "0x600AD91")]
|
||||
[Address(RVA = "0x28ECFE0", Offset = "0x28EB9E0", VA = "0x1828ECFE0")]
|
||||
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: 0x0600AD92 RID: 44434 RVA: 0x00289F58 File Offset: 0x00288158
|
||||
[Token(Token = "0x600AD92")]
|
||||
[Address(RVA = "0x28ED060", Offset = "0x28EBA60", VA = "0x1828ED060")]
|
||||
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: 0x0600AD93 RID: 44435 RVA: 0x00289FA8 File Offset: 0x002881A8
|
||||
[Token(Token = "0x600AD93")]
|
||||
[Address(RVA = "0x28ECB80", Offset = "0x28EB580", VA = "0x1828ECB80")]
|
||||
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD94 RID: 44436 RVA: 0x00289FC4 File Offset: 0x002881C4
|
||||
[Token(Token = "0x600AD94")]
|
||||
[Address(RVA = "0x28ECBA0", Offset = "0x28EB5A0", VA = "0x1828ECBA0")]
|
||||
public static CompressedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD94)
|
||||
|
||||
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: 0x17001BAC RID: 7084
|
||||
// (get) Token: 0x0600AD95 RID: 44437 RVA: 0x0028A028 File Offset: 0x00288228
|
||||
[Token(Token = "0x17001BAC")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD95")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BAD RID: 7085
|
||||
// (get) Token: 0x0600AD96 RID: 44438 RVA: 0x0028A03C File Offset: 0x0028823C
|
||||
[Token(Token = "0x17001BAD")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600AD96")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BAE RID: 7086
|
||||
// (get) Token: 0x0600AD97 RID: 44439 RVA: 0x0028A050 File Offset: 0x00288250
|
||||
[Token(Token = "0x17001BAE")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600AD97")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.encapContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD98 RID: 44440 RVA: 0x0028A064 File Offset: 0x00288264
|
||||
[Token(Token = "0x600AD98")]
|
||||
[Address(RVA = "0x28ECE70", Offset = "0x28EB870", VA = "0x1828ECE70", 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: 0x04007239 RID: 29241
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007239")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400723A RID: 29242
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400723A")]
|
||||
private AlgorithmIdentifier compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400723B RID: 29243
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400723B")]
|
||||
private ContentInfo encapContentInfo;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001945 RID: 6469
|
||||
[Token(Token = "0x2001945")]
|
||||
[StructLayout(3)]
|
||||
public class CompressedDataParser
|
||||
{
|
||||
// Token: 0x0600AD99 RID: 44441 RVA: 0x0028A0C0 File Offset: 0x002882C0
|
||||
[Token(Token = "0x600AD99")]
|
||||
[Address(RVA = "0x28ECA00", Offset = "0x28EB400", VA = "0x1828ECA00")]
|
||||
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: 0x17001BAF RID: 7087
|
||||
// (get) Token: 0x0600AD9A RID: 44442 RVA: 0x0028A100 File Offset: 0x00288300
|
||||
[Token(Token = "0x17001BAF")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD9A")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB0 RID: 7088
|
||||
// (get) Token: 0x0600AD9B RID: 44443 RVA: 0x0028A114 File Offset: 0x00288314
|
||||
[Token(Token = "0x17001BB0")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600AD9B")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this._compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD9C RID: 44444 RVA: 0x0028A128 File Offset: 0x00288328
|
||||
[Token(Token = "0x600AD9C")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
return this._encapContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0400723C RID: 29244
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400723C")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x0400723D RID: 29245
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400723D")]
|
||||
private AlgorithmIdentifier _compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400723E RID: 29246
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400723E")]
|
||||
private ContentInfoParser _encapContentInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001946 RID: 6470
|
||||
[Token(Token = "0x2001946")]
|
||||
[StructLayout(3)]
|
||||
public class ContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD9D RID: 44445 RVA: 0x0028A13C File Offset: 0x0028833C
|
||||
[Token(Token = "0x600AD9D")]
|
||||
[Address(RVA = "0x28ED320", Offset = "0x28EBD20", VA = "0x1828ED320")]
|
||||
public static ContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD9D)
|
||||
|
||||
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: 0x0600AD9E RID: 44446 RVA: 0x0028A18C File Offset: 0x0028838C
|
||||
[Token(Token = "0x600AD9E")]
|
||||
[Address(RVA = "0x28ED300", Offset = "0x28EBD00", VA = "0x1828ED300")]
|
||||
public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return ContentInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD9F RID: 44447 RVA: 0x0028A1A8 File Offset: 0x002883A8
|
||||
[Token(Token = "0x600AD9F")]
|
||||
[Address(RVA = "0x28ED6B0", Offset = "0x28EC0B0", VA = "0x1828ED6B0")]
|
||||
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: 0x0600ADA0 RID: 44448 RVA: 0x0028A204 File Offset: 0x00288404
|
||||
[Token(Token = "0x600ADA0")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x17001BB1 RID: 7089
|
||||
// (get) Token: 0x0600ADA1 RID: 44449 RVA: 0x0028A228 File Offset: 0x00288428
|
||||
[Token(Token = "0x17001BB1")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600ADA1")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB2 RID: 7090
|
||||
// (get) Token: 0x0600ADA2 RID: 44450 RVA: 0x0028A23C File Offset: 0x0028843C
|
||||
[Token(Token = "0x17001BB2")]
|
||||
public Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600ADA2")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADA3 RID: 44451 RVA: 0x0028A250 File Offset: 0x00288450
|
||||
[Token(Token = "0x600ADA3")]
|
||||
[Address(RVA = "0x28ED510", Offset = "0x28EBF10", VA = "0x1828ED510", 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: 0x0400723F RID: 29247
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400723F")]
|
||||
private readonly DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04007240 RID: 29248
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007240")]
|
||||
private readonly Asn1Encodable content;
|
||||
}
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001947 RID: 6471
|
||||
[Token(Token = "0x2001947")]
|
||||
[StructLayout(3)]
|
||||
public class ContentInfoParser
|
||||
{
|
||||
// Token: 0x0600ADA4 RID: 44452 RVA: 0x0028A2C8 File Offset: 0x002884C8
|
||||
[Token(Token = "0x600ADA4")]
|
||||
[Address(RVA = "0x28ED1E0", Offset = "0x28EBBE0", VA = "0x1828ED1E0")]
|
||||
public ContentInfoParser(Asn1SequenceParser seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this.contentType = seq;
|
||||
if (seq == 0 || seq != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001BB3 RID: 7091
|
||||
// (get) Token: 0x0600ADA5 RID: 44453 RVA: 0x0028A300 File Offset: 0x00288500
|
||||
[Token(Token = "0x17001BB3")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600ADA5")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADA6 RID: 44454 RVA: 0x0028A314 File Offset: 0x00288514
|
||||
[Token(Token = "0x600ADA6")]
|
||||
[Address(RVA = "0x28ED170", Offset = "0x28EBB70", VA = "0x1828ED170")]
|
||||
public IAsn1Convertible GetContent(int tag)
|
||||
{
|
||||
if (this.content != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007241 RID: 29249
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007241")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04007242 RID: 29250
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007242")]
|
||||
private Asn1TaggedObjectParser content;
|
||||
}
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc
|
||||
{
|
||||
// Token: 0x0200196A RID: 6506
|
||||
[Token(Token = "0x200196A")]
|
||||
[StructLayout(3)]
|
||||
public class MQVuserKeyingMaterial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEB9 RID: 44729 RVA: 0x0028E1CC File Offset: 0x0028C3CC
|
||||
[Token(Token = "0x600AEB9")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public MQVuserKeyingMaterial(OriginatorPublicKey ephemeralPublicKey, Asn1OctetString addedukm)
|
||||
{
|
||||
this.ephemeralPublicKey = ephemeralPublicKey;
|
||||
this.addedukm = addedukm;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEBA RID: 44730 RVA: 0x0028E1F0 File Offset: 0x0028C3F0
|
||||
[Token(Token = "0x600AEBA")]
|
||||
[Address(RVA = "0x28F29D0", Offset = "0x28F13D0", VA = "0x1828F29D0")]
|
||||
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: 0x0600AEBB RID: 44731 RVA: 0x0028E238 File Offset: 0x0028C438
|
||||
[Token(Token = "0x600AEBB")]
|
||||
[Address(RVA = "0x28F2810", Offset = "0x28F1210", VA = "0x1828F2810")]
|
||||
public static MQVuserKeyingMaterial GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return MQVuserKeyingMaterial.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AEBC RID: 44732 RVA: 0x0028E254 File Offset: 0x0028C454
|
||||
[Token(Token = "0x600AEBC")]
|
||||
[Address(RVA = "0x28F2540", Offset = "0x28F0F40", VA = "0x1828F2540")]
|
||||
public static MQVuserKeyingMaterial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEBC)
|
||||
|
||||
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: 0x17001C15 RID: 7189
|
||||
// (get) Token: 0x0600AEBD RID: 44733 RVA: 0x0028E2B4 File Offset: 0x0028C4B4
|
||||
[Token(Token = "0x17001C15")]
|
||||
public OriginatorPublicKey EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600AEBD")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C16 RID: 7190
|
||||
// (get) Token: 0x0600AEBE RID: 44734 RVA: 0x0028E2C8 File Offset: 0x0028C4C8
|
||||
[Token(Token = "0x17001C16")]
|
||||
public Asn1OctetString AddedUkm
|
||||
{
|
||||
[Token(Token = "0x600AEBE")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.addedukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEBF RID: 44735 RVA: 0x0028E2DC File Offset: 0x0028C4DC
|
||||
[Token(Token = "0x600AEBF")]
|
||||
[Address(RVA = "0x28F2830", Offset = "0x28F1230", VA = "0x1828F2830", 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: 0x040072AE RID: 29358
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072AE")]
|
||||
private OriginatorPublicKey ephemeralPublicKey;
|
||||
|
||||
// Token: 0x040072AF RID: 29359
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072AF")]
|
||||
private Asn1OctetString addedukm;
|
||||
}
|
||||
}
|
||||
+174
@@ -0,0 +1,174 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001948 RID: 6472
|
||||
[Token(Token = "0x2001948")]
|
||||
[StructLayout(3)]
|
||||
public class EncryptedContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADA7 RID: 44455 RVA: 0x0028A32C File Offset: 0x0028852C
|
||||
[Token(Token = "0x600ADA7")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
public EncryptedContentInfo(DerObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, Asn1OctetString encryptedContent)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.contentEncryptionAlgorithm = contentEncryptionAlgorithm;
|
||||
this.encryptedContent = encryptedContent;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADA8 RID: 44456 RVA: 0x0028A354 File Offset: 0x00288554
|
||||
[Token(Token = "0x600ADA8")]
|
||||
[Address(RVA = "0x28EDE50", Offset = "0x28EC850", VA = "0x1828EDE50")]
|
||||
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: 0x0600ADA9 RID: 44457 RVA: 0x0028A3B8 File Offset: 0x002885B8
|
||||
[Token(Token = "0x600ADA9")]
|
||||
[Address(RVA = "0x28EDA60", Offset = "0x28EC460", VA = "0x1828EDA60")]
|
||||
public static EncryptedContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADA9)
|
||||
|
||||
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: 0x17001BB4 RID: 7092
|
||||
// (get) Token: 0x0600ADAA RID: 44458 RVA: 0x0028A408 File Offset: 0x00288608
|
||||
[Token(Token = "0x17001BB4")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600ADAA")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB5 RID: 7093
|
||||
// (get) Token: 0x0600ADAB RID: 44459 RVA: 0x0028A41C File Offset: 0x0028861C
|
||||
[Token(Token = "0x17001BB5")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600ADAB")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB6 RID: 7094
|
||||
// (get) Token: 0x0600ADAC RID: 44460 RVA: 0x0028A430 File Offset: 0x00288630
|
||||
[Token(Token = "0x17001BB6")]
|
||||
public Asn1OctetString EncryptedContent
|
||||
{
|
||||
[Token(Token = "0x600ADAC")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADAD RID: 44461 RVA: 0x0028A444 File Offset: 0x00288644
|
||||
[Token(Token = "0x600ADAD")]
|
||||
[Address(RVA = "0x28EDC50", Offset = "0x28EC650", VA = "0x1828EDC50", 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: 0x04007243 RID: 29251
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007243")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04007244 RID: 29252
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007244")]
|
||||
private AlgorithmIdentifier contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04007245 RID: 29253
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007245")]
|
||||
private Asn1OctetString encryptedContent;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001949 RID: 6473
|
||||
[Token(Token = "0x2001949")]
|
||||
[StructLayout(3)]
|
||||
public class EncryptedContentInfoParser
|
||||
{
|
||||
// Token: 0x0600ADAE RID: 44462 RVA: 0x0028A4D8 File Offset: 0x002886D8
|
||||
[Token(Token = "0x600ADAE")]
|
||||
[Address(RVA = "0x28ED910", Offset = "0x28EC310", VA = "0x1828ED910")]
|
||||
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: 0x17001BB7 RID: 7095
|
||||
// (get) Token: 0x0600ADAF RID: 44463 RVA: 0x0028A518 File Offset: 0x00288718
|
||||
[Token(Token = "0x17001BB7")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600ADAF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this._contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB8 RID: 7096
|
||||
// (get) Token: 0x0600ADB0 RID: 44464 RVA: 0x0028A52C File Offset: 0x0028872C
|
||||
[Token(Token = "0x17001BB8")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600ADB0")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this._contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADB1 RID: 44465 RVA: 0x0028A540 File Offset: 0x00288740
|
||||
[Token(Token = "0x600ADB1")]
|
||||
[Address(RVA = "0x28ED8B0", Offset = "0x28EC2B0", VA = "0x1828ED8B0")]
|
||||
public IAsn1Convertible GetEncryptedContent(int tag)
|
||||
{
|
||||
Asn1TaggedObjectParser encryptedContent = this._encryptedContent;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007246 RID: 29254
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007246")]
|
||||
private DerObjectIdentifier _contentType;
|
||||
|
||||
// Token: 0x04007247 RID: 29255
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007247")]
|
||||
private AlgorithmIdentifier _contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04007248 RID: 29256
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007248")]
|
||||
private Asn1TaggedObjectParser _encryptedContent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194A RID: 6474
|
||||
[Token(Token = "0x200194A")]
|
||||
[StructLayout(3)]
|
||||
public class EncryptedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADB2 RID: 44466 RVA: 0x0028A55C File Offset: 0x0028875C
|
||||
[Token(Token = "0x600ADB2")]
|
||||
[Address(RVA = "0x28EDFD0", Offset = "0x28EC9D0", VA = "0x1828EDFD0")]
|
||||
public static EncryptedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADB2)
|
||||
|
||||
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: 0x0600ADB3 RID: 44467 RVA: 0x0028A5A8 File Offset: 0x002887A8
|
||||
[Token(Token = "0x600ADB3")]
|
||||
[Address(RVA = "0x28EE650", Offset = "0x28ED050", VA = "0x1828EE650")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADB3)
|
||||
|
||||
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: 0x0600ADB4 RID: 44468 RVA: 0x0028A5EC File Offset: 0x002887EC
|
||||
[Token(Token = "0x600ADB4")]
|
||||
[Address(RVA = "0x28EE3C0", Offset = "0x28ECDC0", VA = "0x1828EE3C0")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADB4)
|
||||
|
||||
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: 0x0600ADB5 RID: 44469 RVA: 0x0028A62C File Offset: 0x0028882C
|
||||
[Token(Token = "0x600ADB5")]
|
||||
[Address(RVA = "0x28EE490", Offset = "0x28ECE90", VA = "0x1828EE490")]
|
||||
private EncryptedData(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADB5)
|
||||
|
||||
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: 0x17001BB9 RID: 7097
|
||||
// (get) Token: 0x0600ADB6 RID: 44470 RVA: 0x0028A684 File Offset: 0x00288884
|
||||
[Token(Token = "0x17001BB9")]
|
||||
public virtual DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADB6")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBA RID: 7098
|
||||
// (get) Token: 0x0600ADB7 RID: 44471 RVA: 0x0028A698 File Offset: 0x00288898
|
||||
[Token(Token = "0x17001BBA")]
|
||||
public virtual EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600ADB7")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBB RID: 7099
|
||||
// (get) Token: 0x0600ADB8 RID: 44472 RVA: 0x0028A6AC File Offset: 0x002888AC
|
||||
[Token(Token = "0x17001BBB")]
|
||||
public virtual Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600ADB8")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADB9 RID: 44473 RVA: 0x0028A6C0 File Offset: 0x002888C0
|
||||
[Token(Token = "0x600ADB9")]
|
||||
[Address(RVA = "0x28EE1C0", Offset = "0x28ECBC0", VA = "0x1828EE1C0", 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: 0x04007249 RID: 29257
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007249")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x0400724A RID: 29258
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400724A")]
|
||||
private readonly EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x0400724B RID: 29259
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400724B")]
|
||||
private readonly Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194B RID: 6475
|
||||
[Token(Token = "0x200194B")]
|
||||
[StructLayout(3)]
|
||||
public class EnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADBA RID: 44474 RVA: 0x0028A750 File Offset: 0x00288950
|
||||
[Token(Token = "0x600ADBA")]
|
||||
[Address(RVA = "0x28EF390", Offset = "0x28EDD90", VA = "0x1828EF390")]
|
||||
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: 0x0600ADBB RID: 44475 RVA: 0x0028A790 File Offset: 0x00288990
|
||||
[Token(Token = "0x600ADBB")]
|
||||
[Address(RVA = "0x28EF6D0", Offset = "0x28EE0D0", VA = "0x1828EF6D0")]
|
||||
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: 0x0600ADBC RID: 44476 RVA: 0x0028A7D4 File Offset: 0x002889D4
|
||||
[Token(Token = "0x600ADBC")]
|
||||
[Address(RVA = "0x28EF450", Offset = "0x28EDE50", VA = "0x1828EF450")]
|
||||
[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: 0x0600ADBD RID: 44477 RVA: 0x0028A874 File Offset: 0x00288A74
|
||||
[Token(Token = "0x600ADBD")]
|
||||
[Address(RVA = "0x28EEE50", Offset = "0x28ED850", VA = "0x1828EEE50")]
|
||||
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: 0x0600ADBE RID: 44478 RVA: 0x0028A8B0 File Offset: 0x00288AB0
|
||||
[Token(Token = "0x600ADBE")]
|
||||
[Address(RVA = "0x28EEF50", Offset = "0x28ED950", VA = "0x1828EEF50")]
|
||||
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: 0x17001BBC RID: 7100
|
||||
// (get) Token: 0x0600ADBF RID: 44479 RVA: 0x0028A8E4 File Offset: 0x00288AE4
|
||||
[Token(Token = "0x17001BBC")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADBF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBD RID: 7101
|
||||
// (get) Token: 0x0600ADC0 RID: 44480 RVA: 0x0028A8F8 File Offset: 0x00288AF8
|
||||
[Token(Token = "0x17001BBD")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600ADC0")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBE RID: 7102
|
||||
// (get) Token: 0x0600ADC1 RID: 44481 RVA: 0x0028A90C File Offset: 0x00288B0C
|
||||
[Token(Token = "0x17001BBE")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600ADC1")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBF RID: 7103
|
||||
// (get) Token: 0x0600ADC2 RID: 44482 RVA: 0x0028A920 File Offset: 0x00288B20
|
||||
[Token(Token = "0x17001BBF")]
|
||||
public EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600ADC2")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BC0 RID: 7104
|
||||
// (get) Token: 0x0600ADC3 RID: 44483 RVA: 0x0028A934 File Offset: 0x00288B34
|
||||
[Token(Token = "0x17001BC0")]
|
||||
public Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600ADC3")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADC4 RID: 44484 RVA: 0x0028A948 File Offset: 0x00288B48
|
||||
[Token(Token = "0x600ADC4")]
|
||||
[Address(RVA = "0x28EF050", Offset = "0x28EDA50", VA = "0x1828EF050", 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: 0x0600ADC5 RID: 44485 RVA: 0x0028AA44 File Offset: 0x00288C44
|
||||
[Token(Token = "0x600ADC5")]
|
||||
[Address(RVA = "0x28EEC70", Offset = "0x28ED670", VA = "0x1828EEC70")]
|
||||
public static int CalculateVersion(OriginatorInfo originatorInfo, Asn1Set recipientInfos, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (originatorInfo != 0 || unprotectedAttrs != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
int intValue;
|
||||
if (recipientInfos.GetEnumerator() != 0)
|
||||
{
|
||||
RecipientInfo recipientInfo;
|
||||
intValue = recipientInfo.Version.Value.IntValue;
|
||||
while (intValue == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (intValue != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)78L)
|
||||
{
|
||||
}
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)76L)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return 2;
|
||||
}
|
||||
|
||||
// Token: 0x0400724C RID: 29260
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400724C")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400724D RID: 29261
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400724D")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400724E RID: 29262
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400724E")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x0400724F RID: 29263
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400724F")]
|
||||
private EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x04007250 RID: 29264
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007250")]
|
||||
private Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
+170
@@ -0,0 +1,170 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194C RID: 6476
|
||||
[Token(Token = "0x200194C")]
|
||||
[StructLayout(3)]
|
||||
public class EnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600ADC6 RID: 44486 RVA: 0x0028AAB4 File Offset: 0x00288CB4
|
||||
[Token(Token = "0x600ADC6")]
|
||||
[Address(RVA = "0x28EEBA0", Offset = "0x28ED5A0", VA = "0x1828EEBA0")]
|
||||
public EnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001BC1 RID: 7105
|
||||
// (get) Token: 0x0600ADC7 RID: 44487 RVA: 0x0028AAE4 File Offset: 0x00288CE4
|
||||
[Token(Token = "0x17001BC1")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADC7")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADC8 RID: 44488 RVA: 0x0028AAF8 File Offset: 0x00288CF8
|
||||
[Token(Token = "0x600ADC8")]
|
||||
[Address(RVA = "0x28EE7E0", Offset = "0x28ED1E0", VA = "0x1828EE7E0")]
|
||||
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: 0x0600ADC9 RID: 44489 RVA: 0x0028AB64 File Offset: 0x00288D64
|
||||
[Token(Token = "0x600ADC9")]
|
||||
[Address(RVA = "0x28EE9E0", Offset = "0x28ED3E0", VA = "0x1828EE9E0")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADC9)
|
||||
|
||||
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: 0x0600ADCA RID: 44490 RVA: 0x0028ABA4 File Offset: 0x00288DA4
|
||||
[Token(Token = "0x600ADCA")]
|
||||
[Address(RVA = "0x28EE710", Offset = "0x28ED110", VA = "0x1828EE710")]
|
||||
public EncryptedContentInfoParser GetEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this._nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
}
|
||||
this._nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADCB RID: 44491 RVA: 0x0028ABD0 File Offset: 0x00288DD0
|
||||
[Token(Token = "0x600ADCB")]
|
||||
[Address(RVA = "0x28EEA80", Offset = "0x28ED480", VA = "0x1828EEA80")]
|
||||
public Asn1SetParser GetUnprotectedAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADCB)
|
||||
|
||||
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: 0x04007251 RID: 29265
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007251")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x04007252 RID: 29266
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007252")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04007253 RID: 29267
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007253")]
|
||||
private IAsn1Convertible _nextObject;
|
||||
|
||||
// Token: 0x04007254 RID: 29268
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007254")]
|
||||
private bool _originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194D RID: 6477
|
||||
[Token(Token = "0x200194D")]
|
||||
[StructLayout(3)]
|
||||
public class Evidence : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600ADCC RID: 44492 RVA: 0x0028ABF8 File Offset: 0x00288DF8
|
||||
[Token(Token = "0x600ADCC")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public Evidence(TimeStampTokenEvidence tstEvidence)
|
||||
{
|
||||
this.tstEvidence = tstEvidence;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADCD RID: 44493 RVA: 0x0028AC14 File Offset: 0x00288E14
|
||||
[Token(Token = "0x600ADCD")]
|
||||
[Address(RVA = "0x28EF9D0", Offset = "0x28EE3D0", VA = "0x1828EF9D0")]
|
||||
private Evidence(Asn1TaggedObject tagged)
|
||||
{
|
||||
if (tagged.tagNo == 0)
|
||||
{
|
||||
int num = 0;
|
||||
TimeStampTokenEvidence instance = TimeStampTokenEvidence.GetInstance(tagged, num != 0);
|
||||
this.tstEvidence = instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADCE RID: 44494 RVA: 0x0028AC48 File Offset: 0x00288E48
|
||||
[Token(Token = "0x600ADCE")]
|
||||
[Address(RVA = "0x28EF790", Offset = "0x28EE190", VA = "0x1828EF790")]
|
||||
public static Evidence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADCE)
|
||||
|
||||
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: 0x17001BC2 RID: 7106
|
||||
// (get) Token: 0x0600ADCF RID: 44495 RVA: 0x0028ACB8 File Offset: 0x00288EB8
|
||||
[Token(Token = "0x17001BC2")]
|
||||
public virtual TimeStampTokenEvidence TstEvidence
|
||||
{
|
||||
[Token(Token = "0x600ADCF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tstEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADD0 RID: 44496 RVA: 0x0028ACCC File Offset: 0x00288ECC
|
||||
[Token(Token = "0x600ADD0")]
|
||||
[Address(RVA = "0x28EF960", Offset = "0x28EE360", VA = "0x1828EF960", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADD0)
|
||||
|
||||
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: 0x04007255 RID: 29269
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007255")]
|
||||
private TimeStampTokenEvidence tstEvidence;
|
||||
}
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194E RID: 6478
|
||||
[Token(Token = "0x200194E")]
|
||||
[StructLayout(3)]
|
||||
public class IssuerAndSerialNumber : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADD1 RID: 44497 RVA: 0x0028ACF8 File Offset: 0x00288EF8
|
||||
[Token(Token = "0x600ADD1")]
|
||||
[Address(RVA = "0x28EFA20", Offset = "0x28EE420", VA = "0x1828EFA20")]
|
||||
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: 0x0600ADD2 RID: 44498 RVA: 0x0028AD48 File Offset: 0x00288F48
|
||||
[Token(Token = "0x600ADD2")]
|
||||
[Address(RVA = "0x28EFD50", Offset = "0x28EE750", VA = "0x1828EFD50")]
|
||||
[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: 0x0600ADD3 RID: 44499 RVA: 0x0028AD90 File Offset: 0x00288F90
|
||||
[Token(Token = "0x600ADD3")]
|
||||
[Address(RVA = "0x28EFCD0", Offset = "0x28EE6D0", VA = "0x1828EFCD0")]
|
||||
public IssuerAndSerialNumber(X509Name name, BigInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.serialNumber = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADD4 RID: 44500 RVA: 0x0028ADB8 File Offset: 0x00288FB8
|
||||
[Token(Token = "0x600ADD4")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public IssuerAndSerialNumber(X509Name name, DerInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x17001BC3 RID: 7107
|
||||
// (get) Token: 0x0600ADD5 RID: 44501 RVA: 0x0028ADDC File Offset: 0x00288FDC
|
||||
[Token(Token = "0x17001BC3")]
|
||||
public X509Name Name
|
||||
{
|
||||
[Token(Token = "0x600ADD5")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BC4 RID: 7108
|
||||
// (get) Token: 0x0600ADD6 RID: 44502 RVA: 0x0028ADF0 File Offset: 0x00288FF0
|
||||
[Token(Token = "0x17001BC4")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600ADD6")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADD7 RID: 44503 RVA: 0x0028AE04 File Offset: 0x00289004
|
||||
[Token(Token = "0x600ADD7")]
|
||||
[Address(RVA = "0x28EFBC0", Offset = "0x28EE5C0", VA = "0x1828EFBC0", 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: 0x04007256 RID: 29270
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007256")]
|
||||
private X509Name name;
|
||||
|
||||
// Token: 0x04007257 RID: 29271
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007257")]
|
||||
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