using System; using System.Collections; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms { // Token: 0x02002024 RID: 8228 [Token(Token = "0x2002024")] public class TimeStampTokenEvidence : Asn1Encodable { // Token: 0x0600CE4C RID: 52812 RVA: 0x002EE978 File Offset: 0x002ECB78 [Token(Token = "0x600CE4C")] [Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")] public TimeStampTokenEvidence(TimeStampAndCrl[] timeStampAndCrls) { this.timeStampAndCrls = timeStampAndCrls; } // Token: 0x0600CE4D RID: 52813 RVA: 0x002EE994 File Offset: 0x002ECB94 [Token(Token = "0x600CE4D")] [Address(RVA = "0x23BCF90", Offset = "0x23BBF90", VA = "0x1823BCF90")] public TimeStampTokenEvidence(TimeStampAndCrl timeStampAndCrl) { TimeStampAndCrl[] array = new TimeStampAndCrl[1]; if (timeStampAndCrl != 0) { } array[0] = timeStampAndCrl; this.timeStampAndCrls = array; } // Token: 0x0600CE4E RID: 52814 RVA: 0x002EE9C8 File Offset: 0x002ECBC8 [Token(Token = "0x600CE4E")] [Address(RVA = "0x23BCBB0", Offset = "0x23BBBB0", VA = "0x1823BCBB0")] private TimeStampTokenEvidence(Asn1Sequence seq) { int num; do { num = 0; base..ctor(); Asn1Encodable asn1Encodable; TimeStampAndCrl[] array = new TimeStampAndCrl[asn1Encodable]; this.timeStampAndCrls = array; IEnumerator enumerator = seq.GetEnumerator(); if (enumerator != 0) { if (num < enumerator) { num += num; num++; } if (enumerator == 0) { } if (enumerator == 0) { goto IL_B7; } TimeStampAndCrl[] array2 = this.timeStampAndCrls; num++; TimeStampAndCrl timeStampAndCrl; ContentInfo instance = ContentInfo.GetInstance(timeStampAndCrl); timeStampAndCrl.timeStamp = instance; Asn1Encodable asn1Encodable2; if (asn1Encodable2 == (ulong)2L) { Asn1Sequence asn1Sequence; Asn1SequenceParser parser = asn1Sequence.Parser; CertificateList certificateList; timeStampAndCrl.crl = certificateList; if (asn1Sequence == 0) { goto IL_9F; } } if (num != 0) { } array2[0] = num; } if (enumerator != 0) { } } while (num != 0); return; IL_9F: throw new ArrayTypeMismatchException(); IL_B7: throw new NullReferenceException(); } // Token: 0x0600CE4F RID: 52815 RVA: 0x002EEA94 File Offset: 0x002ECC94 [Token(Token = "0x600CE4F")] [Address(RVA = "0x23BC9D0", Offset = "0x23BB9D0", VA = "0x1823BC9D0")] public static TimeStampTokenEvidence GetInstance(Asn1TaggedObject tagged, bool isExplicit) { Asn1Sequence instance; Asn1Sequence instance2; for (;;) { instance = Asn1Sequence.GetInstance(tagged, isExplicit); if (instance == 0) { return; } if (instance == 0) { break; } if (instance2 != 0) { return; } } instance2 = Asn1Sequence.GetInstance(instance); return new TimeStampTokenEvidence(instance2); } // Token: 0x0600CE50 RID: 52816 RVA: 0x002EEAD0 File Offset: 0x002ECCD0 [Token(Token = "0x600CE50")] [Address(RVA = "0x23BC8D0", Offset = "0x23BB8D0", VA = "0x1823BC8D0")] public static TimeStampTokenEvidence GetInstance(object obj) { while (obj != 0) { Asn1Sequence instance; if (obj == 0) { instance = Asn1Sequence.GetInstance(obj); return new TimeStampTokenEvidence(instance); } if (instance != 0) { return; } } } // Token: 0x0600CE51 RID: 52817 RVA: 0x002EEB04 File Offset: 0x002ECD04 [Token(Token = "0x600CE51")] [Address(RVA = "0x23BCB30", Offset = "0x23BBB30", VA = "0x1823BCB30", Slot = "6")] public virtual TimeStampAndCrl[] ToTimeStampAndCrlArray() { TimeStampAndCrl[] array = this.timeStampAndCrls; throw new NullReferenceException(); } // Token: 0x0600CE52 RID: 52818 RVA: 0x002EEB20 File Offset: 0x002ECD20 [Token(Token = "0x600CE52")] [Address(RVA = "0x23BCAD0", Offset = "0x23BBAD0", VA = "0x1823BCAD0", Slot = "5")] public override Asn1Object ToAsn1Object() { /* An exception occurred when decompiling this method (0600CE52) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.TimeStampTokenEvidence::ToAsn1Object() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:DerSequence(var_0_0B, newobj:DerSequence(DerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.TimeStampAndCrl[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](TimeStampTokenEvidence::timeStampAndCrls, ldloc:TimeStampTokenEvidence(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: 0x0400829E RID: 33438 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400829E")] private TimeStampAndCrl[] timeStampAndCrls; } }