using System; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms { // Token: 0x02001957 RID: 6487 [Token(Token = "0x2001957")] [StructLayout(3)] public class OriginatorPublicKey : Asn1Encodable { // Token: 0x0600AE1F RID: 44575 RVA: 0x0028BDB0 File Offset: 0x00289FB0 [Token(Token = "0x600AE1F")] [Address(RVA = "0x28F4BD0", Offset = "0x28F35D0", VA = "0x1828F4BD0")] public OriginatorPublicKey(AlgorithmIdentifier algorithm, byte[] publicKey) { this.mAlgorithm = algorithm; DerBitString derBitString = new DerBitString(publicKey); this.mPublicKey = derBitString; } // Token: 0x0600AE20 RID: 44576 RVA: 0x0028BDD8 File Offset: 0x00289FD8 [Token(Token = "0x600AE20")] [Address(RVA = "0x28F4B10", Offset = "0x28F3510", VA = "0x1828F4B10")] [Obsolete] public OriginatorPublicKey(Asn1Sequence seq) { Asn1SequenceParser parser = seq.Parser; AlgorithmIdentifier algorithmIdentifier; this.mAlgorithm = algorithmIdentifier; Asn1SequenceParser parser2 = seq.Parser; DerBitString derBitString; this.mPublicKey = derBitString; } // Token: 0x0600AE21 RID: 44577 RVA: 0x0028BE10 File Offset: 0x0028A010 [Token(Token = "0x600AE21")] [Address(RVA = "0x28F49E0", Offset = "0x28F33E0", VA = "0x1828F49E0")] public static OriginatorPublicKey GetInstance(Asn1TaggedObject obj, bool explicitly) { return OriginatorPublicKey.GetInstance(Asn1Sequence.GetInstance(obj, explicitly)); } // Token: 0x0600AE22 RID: 44578 RVA: 0x0028BE2C File Offset: 0x0028A02C [Token(Token = "0x600AE22")] [Address(RVA = "0x28F47A0", Offset = "0x28F31A0", VA = "0x1828F47A0")] public static OriginatorPublicKey GetInstance(object obj) { /* An exception occurred when decompiling this method (0600AE22) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorPublicKey BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorPublicKey::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_4B: stloc:string(var_10_51, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_11_64, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid OriginatorPublicKey: "), ldloc:string(var_10_51)))) } 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: 0x17001BE2 RID: 7138 // (get) Token: 0x0600AE23 RID: 44579 RVA: 0x0028BEA0 File Offset: 0x0028A0A0 [Token(Token = "0x17001BE2")] public AlgorithmIdentifier Algorithm { [Token(Token = "0x600AE23")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")] get { return this.mAlgorithm; } } // Token: 0x17001BE3 RID: 7139 // (get) Token: 0x0600AE24 RID: 44580 RVA: 0x0028BEB4 File Offset: 0x0028A0B4 [Token(Token = "0x17001BE3")] public DerBitString PublicKey { [Token(Token = "0x600AE24")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.mPublicKey; } } // Token: 0x0600AE25 RID: 44581 RVA: 0x0028BEC8 File Offset: 0x0028A0C8 [Token(Token = "0x600AE25")] [Address(RVA = "0x28F4A00", Offset = "0x28F3400", VA = "0x1828F4A00", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[2]; AlgorithmIdentifier algorithmIdentifier = this.mAlgorithm; if (algorithmIdentifier != 0) { } array[0] = algorithmIdentifier; DerBitString derBitString = this.mPublicKey; if (derBitString != 0) { } array[1] = derBitString; DerSequence derSequence = new DerSequence(array); throw new NullReferenceException(); } // Token: 0x04007271 RID: 29297 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4007271")] private readonly AlgorithmIdentifier mAlgorithm; // Token: 0x04007272 RID: 29298 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4007272")] private readonly DerBitString mPublicKey; } }