scripts
This commit is contained in:
@@ -0,0 +1,386 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp
|
||||
{
|
||||
// Token: 0x02001869 RID: 6249
|
||||
[Token(Token = "0x2001869")]
|
||||
[StructLayout(3)]
|
||||
public class TstInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A8A0 RID: 43168 RVA: 0x00275048 File Offset: 0x00273248
|
||||
[Token(Token = "0x600A8A0")]
|
||||
[Address(RVA = "0x2638BD0", Offset = "0x26375D0", VA = "0x182638BD0")]
|
||||
public static TstInfo GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A8A0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp.TstInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp.TstInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_58:
|
||||
stloc:ArgumentException(var_11_62, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Bad object format in 'TstInfo' factory.")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(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: 0x0600A8A1 RID: 43169 RVA: 0x002750B8 File Offset: 0x002732B8
|
||||
[Token(Token = "0x600A8A1")]
|
||||
[Address(RVA = "0x2639500", Offset = "0x2637F00", VA = "0x182639500")]
|
||||
private TstInfo(Asn1Sequence seq)
|
||||
{
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
DerInteger derInteger;
|
||||
this.version = derInteger;
|
||||
DerObjectIdentifier instance = DerObjectIdentifier.GetInstance(derInteger);
|
||||
this.tsaPolicyId = instance;
|
||||
MessageImprint instance2 = MessageImprint.GetInstance(instance);
|
||||
this.messageImprint = instance2;
|
||||
DerInteger instance3 = DerInteger.GetInstance(instance2);
|
||||
this.serialNumber = instance3;
|
||||
DerGeneralizedTime instance4 = DerGeneralizedTime.GetInstance(instance3);
|
||||
this.genTime = instance4;
|
||||
DerBoolean @false = DerBoolean.False;
|
||||
this.ordering = @false;
|
||||
DerBoolean false2 = DerBoolean.False;
|
||||
DerBoolean false3 = DerBoolean.False;
|
||||
GeneralName generalName;
|
||||
if (0 == 0)
|
||||
{
|
||||
this.tsa = generalName;
|
||||
}
|
||||
if (generalName == (ulong)1L)
|
||||
{
|
||||
X509Extensions x509Extensions;
|
||||
this.extensions = x509Extensions;
|
||||
Accuracy accuracy;
|
||||
if (x509Extensions != 0)
|
||||
{
|
||||
this.accuracy = accuracy;
|
||||
}
|
||||
DerBoolean derBoolean;
|
||||
if (accuracy != 0)
|
||||
{
|
||||
this.ordering = derBoolean;
|
||||
}
|
||||
while (derBoolean == 0)
|
||||
{
|
||||
}
|
||||
DerInteger derInteger2;
|
||||
this.nonce = derInteger2;
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A8A2 RID: 43170 RVA: 0x00275194 File Offset: 0x00273394
|
||||
[Token(Token = "0x600A8A2")]
|
||||
[Address(RVA = "0x2639430", Offset = "0x2637E30", VA = "0x182639430")]
|
||||
public TstInfo(DerObjectIdentifier tsaPolicyId, MessageImprint messageImprint, DerInteger serialNumber, DerGeneralizedTime genTime, Accuracy accuracy, DerBoolean ordering, DerInteger nonce, GeneralName tsa, X509Extensions extensions)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(1);
|
||||
this.genTime = 0;
|
||||
this.accuracy = 0;
|
||||
this.ordering = 0;
|
||||
this.nonce = 0;
|
||||
this.tsa = 0;
|
||||
this.version = derInteger;
|
||||
this.messageImprint = messageImprint;
|
||||
this.serialNumber = serialNumber;
|
||||
this.extensions = 0;
|
||||
this.tsaPolicyId = tsaPolicyId;
|
||||
}
|
||||
|
||||
// Token: 0x17001A7F RID: 6783
|
||||
// (get) Token: 0x0600A8A3 RID: 43171 RVA: 0x002751F4 File Offset: 0x002733F4
|
||||
[Token(Token = "0x17001A7F")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600A8A3")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A80 RID: 6784
|
||||
// (get) Token: 0x0600A8A4 RID: 43172 RVA: 0x00275208 File Offset: 0x00273408
|
||||
[Token(Token = "0x17001A80")]
|
||||
public MessageImprint MessageImprint
|
||||
{
|
||||
[Token(Token = "0x600A8A4")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.messageImprint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A81 RID: 6785
|
||||
// (get) Token: 0x0600A8A5 RID: 43173 RVA: 0x0027521C File Offset: 0x0027341C
|
||||
[Token(Token = "0x17001A81")]
|
||||
public DerObjectIdentifier Policy
|
||||
{
|
||||
[Token(Token = "0x600A8A5")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.tsaPolicyId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A82 RID: 6786
|
||||
// (get) Token: 0x0600A8A6 RID: 43174 RVA: 0x00275230 File Offset: 0x00273430
|
||||
[Token(Token = "0x17001A82")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600A8A6")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A83 RID: 6787
|
||||
// (get) Token: 0x0600A8A7 RID: 43175 RVA: 0x00275244 File Offset: 0x00273444
|
||||
[Token(Token = "0x17001A83")]
|
||||
public Accuracy Accuracy
|
||||
{
|
||||
[Token(Token = "0x600A8A7")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.accuracy;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A84 RID: 6788
|
||||
// (get) Token: 0x0600A8A8 RID: 43176 RVA: 0x00275258 File Offset: 0x00273458
|
||||
[Token(Token = "0x17001A84")]
|
||||
public DerGeneralizedTime GenTime
|
||||
{
|
||||
[Token(Token = "0x600A8A8")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.genTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A85 RID: 6789
|
||||
// (get) Token: 0x0600A8A9 RID: 43177 RVA: 0x0027526C File Offset: 0x0027346C
|
||||
[Token(Token = "0x17001A85")]
|
||||
public DerBoolean Ordering
|
||||
{
|
||||
[Token(Token = "0x600A8A9")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.ordering;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A86 RID: 6790
|
||||
// (get) Token: 0x0600A8AA RID: 43178 RVA: 0x00275280 File Offset: 0x00273480
|
||||
[Token(Token = "0x17001A86")]
|
||||
public DerInteger Nonce
|
||||
{
|
||||
[Token(Token = "0x600A8AA")]
|
||||
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")]
|
||||
get
|
||||
{
|
||||
return this.nonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A87 RID: 6791
|
||||
// (get) Token: 0x0600A8AB RID: 43179 RVA: 0x00275294 File Offset: 0x00273494
|
||||
[Token(Token = "0x17001A87")]
|
||||
public GeneralName Tsa
|
||||
{
|
||||
[Token(Token = "0x600A8AB")]
|
||||
[Address(RVA = "0x462740", Offset = "0x461140", VA = "0x180462740")]
|
||||
get
|
||||
{
|
||||
return this.tsa;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A88 RID: 6792
|
||||
// (get) Token: 0x0600A8AC RID: 43180 RVA: 0x002752A8 File Offset: 0x002734A8
|
||||
[Token(Token = "0x17001A88")]
|
||||
public X509Extensions Extensions
|
||||
{
|
||||
[Token(Token = "0x600A8AC")]
|
||||
[Address(RVA = "0x4B81A0", Offset = "0x4B6BA0", VA = "0x1804B81A0")]
|
||||
get
|
||||
{
|
||||
return this.extensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A8AD RID: 43181 RVA: 0x002752BC File Offset: 0x002734BC
|
||||
[Token(Token = "0x600A8AD")]
|
||||
[Address(RVA = "0x2638EE0", Offset = "0x26378E0", VA = "0x182638EE0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[5];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
DerObjectIdentifier derObjectIdentifier = this.tsaPolicyId;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derObjectIdentifier;
|
||||
MessageImprint messageImprint = this.messageImprint;
|
||||
if (messageImprint != 0)
|
||||
{
|
||||
}
|
||||
array[2] = messageImprint;
|
||||
DerInteger derInteger2 = this.serialNumber;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[3] = derInteger2;
|
||||
DerGeneralizedTime derGeneralizedTime = this.genTime;
|
||||
if (derGeneralizedTime != 0)
|
||||
{
|
||||
}
|
||||
array[4] = derGeneralizedTime;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.accuracy != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Accuracy accuracy = this.accuracy;
|
||||
if (accuracy != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = accuracy;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerBoolean derBoolean = this.ordering;
|
||||
if (derBoolean != 0 && derBoolean.IsTrue)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerBoolean derBoolean2 = this.ordering;
|
||||
if (derBoolean2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derBoolean2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
if (this.nonce != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
DerInteger derInteger3 = this.nonce;
|
||||
if (derInteger3 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derInteger3;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
if (this.tsa != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
GeneralName generalName = this.tsa;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, generalName);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array5);
|
||||
}
|
||||
if (this.extensions != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
X509Extensions x509Extensions = this.extensions;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num2 != 0, 1, x509Extensions);
|
||||
num2 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array6);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006DCE RID: 28110
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006DCE")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x04006DCF RID: 28111
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006DCF")]
|
||||
private readonly DerObjectIdentifier tsaPolicyId;
|
||||
|
||||
// Token: 0x04006DD0 RID: 28112
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006DD0")]
|
||||
private readonly MessageImprint messageImprint;
|
||||
|
||||
// Token: 0x04006DD1 RID: 28113
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006DD1")]
|
||||
private readonly DerInteger serialNumber;
|
||||
|
||||
// Token: 0x04006DD2 RID: 28114
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006DD2")]
|
||||
private readonly DerGeneralizedTime genTime;
|
||||
|
||||
// Token: 0x04006DD3 RID: 28115
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006DD3")]
|
||||
private readonly Accuracy accuracy;
|
||||
|
||||
// Token: 0x04006DD4 RID: 28116
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4006DD4")]
|
||||
private readonly DerBoolean ordering;
|
||||
|
||||
// Token: 0x04006DD5 RID: 28117
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4006DD5")]
|
||||
private readonly DerInteger nonce;
|
||||
|
||||
// Token: 0x04006DD6 RID: 28118
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4006DD6")]
|
||||
private readonly GeneralName tsa;
|
||||
|
||||
// Token: 0x04006DD7 RID: 28119
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4006DD7")]
|
||||
private readonly X509Extensions extensions;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user