using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf { // Token: 0x02001F11 RID: 7953 [Token(Token = "0x2001F11")] public class PKMacValue : Asn1Encodable { // Token: 0x0600C8F2 RID: 51442 RVA: 0x002E0594 File Offset: 0x002DE794 [Token(Token = "0x600C8F2")] [Address(RVA = "0x188B9D0", Offset = "0x188A7D0", VA = "0x18188B9D0")] private PKMacValue(Asn1Sequence seq) { Asn1SequenceParser parser = seq.Parser; AlgorithmIdentifier algorithmIdentifier; this.algID = algorithmIdentifier; Asn1SequenceParser parser2 = seq.Parser; DerBitString derBitString; this.macValue = derBitString; } // Token: 0x0600C8F3 RID: 51443 RVA: 0x002E05CC File Offset: 0x002DE7CC [Token(Token = "0x600C8F3")] [Address(RVA = "0x188B590", Offset = "0x188A390", VA = "0x18188B590")] public static PKMacValue GetInstance(object obj) { /* An exception occurred when decompiling this method (0600C8F3) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PKMacValue BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PKMacValue::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: 0x0600C8F4 RID: 51444 RVA: 0x002E0628 File Offset: 0x002DE828 [Token(Token = "0x600C8F4")] [Address(RVA = "0x188B570", Offset = "0x188A370", VA = "0x18188B570")] public static PKMacValue GetInstance(Asn1TaggedObject obj, bool isExplicit) { return PKMacValue.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit)); } // Token: 0x0600C8F5 RID: 51445 RVA: 0x002E0644 File Offset: 0x002DE844 [Token(Token = "0x600C8F5")] [Address(RVA = "0x188B910", Offset = "0x188A710", VA = "0x18188B910")] public PKMacValue(PbmParameter pbmParams, DerBitString macValue) { AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(CmpObjectIdentifiers.passwordBasedMac, pbmParams); base..ctor(); this.algID = algorithmIdentifier; this.macValue = macValue; } // Token: 0x0600C8F6 RID: 51446 RVA: 0x002E0674 File Offset: 0x002DE874 [Token(Token = "0x600C8F6")] [Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")] public PKMacValue(AlgorithmIdentifier algID, DerBitString macValue) { this.algID = algID; this.macValue = macValue; } // Token: 0x17001F8A RID: 8074 // (get) Token: 0x0600C8F7 RID: 51447 RVA: 0x002E0698 File Offset: 0x002DE898 [Token(Token = "0x17001F8A")] public virtual AlgorithmIdentifier AlgID { [Token(Token = "0x600C8F7")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")] get { return this.algID; } } // Token: 0x17001F8B RID: 8075 // (get) Token: 0x0600C8F8 RID: 51448 RVA: 0x002E06AC File Offset: 0x002DE8AC [Token(Token = "0x17001F8B")] public virtual DerBitString MacValue { [Token(Token = "0x600C8F8")] [Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")] get { return this.macValue; } } // Token: 0x0600C8F9 RID: 51449 RVA: 0x002E06C0 File Offset: 0x002DE8C0 [Token(Token = "0x600C8F9")] [Address(RVA = "0x188B800", Offset = "0x188A600", VA = "0x18188B800", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[2]; AlgorithmIdentifier algorithmIdentifier = this.algID; if (algorithmIdentifier != 0) { } array[0] = algorithmIdentifier; DerBitString derBitString = this.macValue; if (derBitString != 0) { } array[1] = derBitString; DerSequence derSequence = new DerSequence(array); throw new NullReferenceException(); } // Token: 0x04008035 RID: 32821 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4008035")] private readonly AlgorithmIdentifier algID; // Token: 0x04008036 RID: 32822 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4008036")] private readonly DerBitString macValue; } }