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: 0x02001964 RID: 6500 [Token(Token = "0x2001964")] [StructLayout(3)] public class SignerInfo : Asn1Encodable { // Token: 0x0600AE8B RID: 44683 RVA: 0x0028D640 File Offset: 0x0028B840 [Token(Token = "0x600AE8B")] [Address(RVA = "0x1EE1480", Offset = "0x1EDFE80", VA = "0x181EE1480")] public static SignerInfo GetInstance(object obj) { /* An exception occurred when decompiling this method (0600AE8B) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignerInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignerInfo::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_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_2C)), 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: 0x0600AE8C RID: 44684 RVA: 0x0028D694 File Offset: 0x0028B894 [Token(Token = "0x600AE8C")] [Address(RVA = "0x1EE1A60", Offset = "0x1EE0460", VA = "0x181EE1A60")] public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Asn1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Asn1Set unauthenticatedAttributes) { bool isTagged = sid.IsTagged; DerInteger derInteger = new DerInteger(3); this.version = derInteger; this.digEncryptionAlgorithm = 0; this.encryptedDigest = 0; this.authenticatedAttributes = authenticatedAttributes; this.unauthenticatedAttributes = 0; this.sid = sid; this.digAlgorithm = digAlgorithm; } // Token: 0x0600AE8D RID: 44685 RVA: 0x0028D6EC File Offset: 0x0028B8EC [Token(Token = "0x600AE8D")] [Address(RVA = "0x1EE1E70", Offset = "0x1EE0870", VA = "0x181EE1E70")] public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Attributes authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Attributes unauthenticatedAttributes) { bool isTagged = sid.IsTagged; DerInteger derInteger = new DerInteger(3); this.version = derInteger; this.sid = sid; this.digAlgorithm = digAlgorithm; Asn1Set instance = Asn1Set.GetInstance(authenticatedAttributes); this.authenticatedAttributes = instance; this.digEncryptionAlgorithm = 0; this.encryptedDigest = 0; Asn1Set asn1Set; this.unauthenticatedAttributes = asn1Set; } // Token: 0x0600AE8E RID: 44686 RVA: 0x0028D74C File Offset: 0x0028B94C [Token(Token = "0x600AE8E")] [Address(RVA = "0x1EE1B40", Offset = "0x1EE0540", VA = "0x181EE1B40")] [Obsolete] public SignerInfo(Asn1Sequence seq) { int num; for (;;) { base..ctor(); IEnumerator enumerator = seq.GetEnumerator(); if (enumerator == 0) { } num = 0; if (enumerator != 0) { this.version = enumerator; SignerIdentifier signerIdentifier; this.sid = signerIdentifier; AlgorithmIdentifier instance = AlgorithmIdentifier.GetInstance(signerIdentifier); this.digAlgorithm = instance; Asn1Set asn1Set; if (instance != 0 && instance != 0) { if (instance == 0) { continue; } this.authenticatedAttributes = asn1Set; } this.authenticatedAttributes = num; AlgorithmIdentifier instance2 = AlgorithmIdentifier.GetInstance(asn1Set); this.digEncryptionAlgorithm = instance2; Asn1OctetString instance3 = Asn1OctetString.GetInstance(instance2); this.encryptedDigest = instance3; if (instance3 == 0) { break; } if (instance3 == 0 || instance3 != 0) { goto IL_9A; } } } this.unauthenticatedAttributes = num; return; IL_9A: Asn1Set asn1Set2; this.unauthenticatedAttributes = asn1Set2; } // Token: 0x17001C03 RID: 7171 // (get) Token: 0x0600AE8F RID: 44687 RVA: 0x0028D804 File Offset: 0x0028BA04 [Token(Token = "0x17001C03")] public DerInteger Version { [Token(Token = "0x600AE8F")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")] get { return this.version; } } // Token: 0x17001C04 RID: 7172 // (get) Token: 0x0600AE90 RID: 44688 RVA: 0x0028D818 File Offset: 0x0028BA18 [Token(Token = "0x17001C04")] public SignerIdentifier SignerID { [Token(Token = "0x600AE90")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.sid; } } // Token: 0x17001C05 RID: 7173 // (get) Token: 0x0600AE91 RID: 44689 RVA: 0x0028D82C File Offset: 0x0028BA2C [Token(Token = "0x17001C05")] public Asn1Set AuthenticatedAttributes { [Token(Token = "0x600AE91")] [Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")] get { return this.authenticatedAttributes; } } // Token: 0x17001C06 RID: 7174 // (get) Token: 0x0600AE92 RID: 44690 RVA: 0x0028D840 File Offset: 0x0028BA40 [Token(Token = "0x17001C06")] public AlgorithmIdentifier DigestAlgorithm { [Token(Token = "0x600AE92")] [Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")] get { return this.digAlgorithm; } } // Token: 0x17001C07 RID: 7175 // (get) Token: 0x0600AE93 RID: 44691 RVA: 0x0028D854 File Offset: 0x0028BA54 [Token(Token = "0x17001C07")] public Asn1OctetString EncryptedDigest { [Token(Token = "0x600AE93")] [Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")] get { return this.encryptedDigest; } } // Token: 0x17001C08 RID: 7176 // (get) Token: 0x0600AE94 RID: 44692 RVA: 0x0028D868 File Offset: 0x0028BA68 [Token(Token = "0x17001C08")] public AlgorithmIdentifier DigestEncryptionAlgorithm { [Token(Token = "0x600AE94")] [Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")] get { return this.digEncryptionAlgorithm; } } // Token: 0x17001C09 RID: 7177 // (get) Token: 0x0600AE95 RID: 44693 RVA: 0x0028D87C File Offset: 0x0028BA7C [Token(Token = "0x17001C09")] public Asn1Set UnauthenticatedAttributes { [Token(Token = "0x600AE95")] [Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")] get { return this.unauthenticatedAttributes; } } // Token: 0x0600AE96 RID: 44694 RVA: 0x0028D890 File Offset: 0x0028BA90 [Token(Token = "0x600AE96")] [Address(RVA = "0x1EE1680", Offset = "0x1EE0080", VA = "0x181EE1680", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[3]; DerInteger derInteger = this.version; if (derInteger != 0) { } array[0] = derInteger; SignerIdentifier signerIdentifier = this.sid; if (signerIdentifier != 0) { } array[1] = signerIdentifier; AlgorithmIdentifier algorithmIdentifier = this.digAlgorithm; if (algorithmIdentifier != 0) { } array[2] = algorithmIdentifier; Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array); if (this.authenticatedAttributes != (ulong)0L) { Asn1Encodable[] array2 = new Asn1Encodable[1]; Asn1Set asn1Set = this.authenticatedAttributes; int num; int num2; DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set); num2 = 0; num = 0; if (derTaggedObject != 0) { } array2[0] = derTaggedObject; asn1EncodableVector.Add(array2); } Asn1Encodable[] array3 = new Asn1Encodable[2]; AlgorithmIdentifier algorithmIdentifier2 = this.digEncryptionAlgorithm; if (algorithmIdentifier2 != 0) { } array3[0] = algorithmIdentifier2; Asn1OctetString asn1OctetString = this.encryptedDigest; if (asn1OctetString != 0) { } array3[1] = asn1OctetString; asn1EncodableVector.Add(array3); if (this.unauthenticatedAttributes != (ulong)0L) { Asn1Encodable[] array4 = new Asn1Encodable[1]; Asn1Set asn1Set2 = this.unauthenticatedAttributes; int num3; DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2); num3 = 0; if (derTaggedObject2 != 0) { } array4[0] = derTaggedObject2; asn1EncodableVector.Add(array4); } DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x04007298 RID: 29336 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4007298")] private DerInteger version; // Token: 0x04007299 RID: 29337 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4007299")] private SignerIdentifier sid; // Token: 0x0400729A RID: 29338 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x400729A")] private AlgorithmIdentifier digAlgorithm; // Token: 0x0400729B RID: 29339 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x400729B")] private Asn1Set authenticatedAttributes; // Token: 0x0400729C RID: 29340 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x400729C")] private AlgorithmIdentifier digEncryptionAlgorithm; // Token: 0x0400729D RID: 29341 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x400729D")] private Asn1OctetString encryptedDigest; // Token: 0x0400729E RID: 29342 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x400729E")] private Asn1Set unauthenticatedAttributes; } }