using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9 { // Token: 0x02001DE4 RID: 7652 [Token(Token = "0x2001DE4")] public class X9Curve : Asn1Encodable { // Token: 0x0600C181 RID: 49537 RVA: 0x002C0414 File Offset: 0x002BE614 [Token(Token = "0x600C181")] [Address(RVA = "0x1671FF0", Offset = "0x1670DF0", VA = "0x181671FF0")] public X9Curve(ECCurve curve) { } // Token: 0x0600C182 RID: 49538 RVA: 0x002C0424 File Offset: 0x002BE624 [Token(Token = "0x600C182")] [Address(RVA = "0x1672030", Offset = "0x1670E30", VA = "0x181672030")] public X9Curve(ECCurve curve, byte[] seed) { /* An exception occurred when decompiling this method (0600C182) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9Curve::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve,System.Byte[]) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_4A: stloc:ArgumentException(var_3_54, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("This type of ECCurve is not implemented"))) } 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: 0x0600C183 RID: 49539 RVA: 0x002C0488 File Offset: 0x002BE688 [Token(Token = "0x600C183")] [Address(RVA = "0x1672000", Offset = "0x1670E00", VA = "0x181672000")] [Obsolete] public X9Curve(X9FieldID fieldID, Asn1Sequence seq) { } // Token: 0x0600C184 RID: 49540 RVA: 0x002C049C File Offset: 0x002BE69C [Token(Token = "0x600C184")] [Address(RVA = "0x16721B0", Offset = "0x1670FB0", VA = "0x1816721B0")] public X9Curve(X9FieldID fieldID, BigInteger order, BigInteger cofactor, Asn1Sequence seq) { /* An exception occurred when decompiling this method (0600C184) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9Curve::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9FieldID,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_D0: stloc:ArgumentNullException(var_33_DA, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("fieldID"))) stloc:ArgumentException(var_34_E6, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("This type of ECCurve is not implemented"))) } 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.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: 0x17001DCF RID: 7631 // (get) Token: 0x0600C185 RID: 49541 RVA: 0x002C0590 File Offset: 0x002BE790 [Token(Token = "0x17001DCF")] public ECCurve Curve { [Token(Token = "0x600C185")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")] get { return this.curve; } } // Token: 0x0600C186 RID: 49542 RVA: 0x002C05A4 File Offset: 0x002BE7A4 [Token(Token = "0x600C186")] [Address(RVA = "0x1671BF0", Offset = "0x16709F0", VA = "0x181671BF0")] public byte[] GetSeed() { return Arrays.Clone(this.seed); } // Token: 0x0600C187 RID: 49543 RVA: 0x002C05BC File Offset: 0x002BE7BC [Token(Token = "0x600C187")] [Address(RVA = "0x1671C50", Offset = "0x1670A50", VA = "0x181671C50", Slot = "5")] public override Asn1Object ToAsn1Object() { DerObjectIdentifier derObjectIdentifier = this.fieldIdentifier; DerObjectIdentifier derObjectIdentifier2 = this.fieldIdentifier; Asn1Encodable[] array = new Asn1Encodable[1]; IFiniteField field = this.curve.Field; X9FieldElement x9FieldElement; x9FieldElement.f = field; Asn1Object asn1Object = x9FieldElement.ToAsn1Object(); if (asn1Object != 0) { } array[0] = asn1Object; Asn1EncodableVector asn1EncodableVector; asn1EncodableVector.Add(array); Asn1Encodable[] array2 = new Asn1Encodable[1]; ECFieldElement a = this.curve.A; X9FieldElement x9FieldElement2; x9FieldElement2.f = a; Asn1Object asn1Object2 = x9FieldElement2.ToAsn1Object(); if (asn1Object2 != 0) { } array2[0] = asn1Object2; asn1EncodableVector.Add(array2); if (this.seed != (ulong)0L) { Asn1Encodable[] array3 = new Asn1Encodable[1]; DerBitString derBitString = new DerBitString(this.seed); if (derBitString != 0) { } array3[0] = derBitString; asn1EncodableVector.Add(array3); } DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x040079FF RID: 31231 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40079FF")] private readonly ECCurve curve; // Token: 0x04007A00 RID: 31232 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007A00")] private readonly byte[] seed; // Token: 0x04007A01 RID: 31233 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007A01")] private readonly DerObjectIdentifier fieldIdentifier; } }