using System; using System.IO; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Multiplier; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9 { // Token: 0x02001EC5 RID: 7877 [Token(Token = "0x2001EC5")] public class X9ECParameters : Asn1Encodable { // Token: 0x0600C556 RID: 50518 RVA: 0x002C8EF8 File Offset: 0x002C70F8 [Token(Token = "0x600C556")] [Address(RVA = "0x2153780", Offset = "0x2152780", VA = "0x182153780")] public static X9ECParameters GetInstance(object obj) { while (obj != 0) { Asn1Sequence instance; if (obj == 0) { instance = Asn1Sequence.GetInstance(obj); return new X9ECParameters(instance); } if (instance != 0) { return; } } } // Token: 0x0600C557 RID: 50519 RVA: 0x002C8F2C File Offset: 0x002C712C [Token(Token = "0x600C557")] [Address(RVA = "0x2154020", Offset = "0x2153020", VA = "0x182154020")] public X9ECParameters(Asn1Sequence seq) { /* An exception occurred when decompiling this method (0600C557) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9ECParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_102: stloc:ArgumentException(var_29_10C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("bad version in X9ECParameters"))) } 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: 0x0600C558 RID: 50520 RVA: 0x002C9048 File Offset: 0x002C7248 [Token(Token = "0x600C558")] [Address(RVA = "0x2153C20", Offset = "0x2152C20", VA = "0x182153C20")] public X9ECParameters(ECCurve curve, ECPoint g, BigInteger n) { } // Token: 0x0600C559 RID: 50521 RVA: 0x002C9058 File Offset: 0x002C7258 [Token(Token = "0x600C559")] [Address(RVA = "0x2153BF0", Offset = "0x2152BF0", VA = "0x182153BF0")] public X9ECParameters(ECCurve curve, X9ECPoint g, BigInteger n, BigInteger h) { } // Token: 0x0600C55A RID: 50522 RVA: 0x002C9068 File Offset: 0x002C7268 [Token(Token = "0x600C55A")] [Address(RVA = "0x2154650", Offset = "0x2153650", VA = "0x182154650")] public X9ECParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h) { } // Token: 0x0600C55B RID: 50523 RVA: 0x002C9078 File Offset: 0x002C7278 [Token(Token = "0x600C55B")] [Address(RVA = "0x2154540", Offset = "0x2153540", VA = "0x182154540")] public X9ECParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h, byte[] seed) { bool flag = g.IsNormalized(); X9ECPoint x9ECPoint; x9ECPoint.p = flag; byte[] array; DerOctetString derOctetString = new DerOctetString(array); x9ECPoint.encoding = derOctetString; } // Token: 0x0600C55C RID: 50524 RVA: 0x002C90AC File Offset: 0x002C72AC [Token(Token = "0x600C55C")] [Address(RVA = "0x2153C40", Offset = "0x2152C40", VA = "0x182153C40")] public X9ECParameters(ECCurve curve, X9ECPoint g, BigInteger n, BigInteger h, byte[] seed) { /* An exception occurred when decompiling this method (0600C55C) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9ECParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9ECPoint,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Byte[]) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_C5: stloc:ArgumentException(var_10_CF, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("'curve' is of an unsupported type"))) } 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: 0x17001E6D RID: 7789 // (get) Token: 0x0600C55D RID: 50525 RVA: 0x002C918C File Offset: 0x002C738C [Token(Token = "0x17001E6D")] public ECCurve Curve { [Token(Token = "0x600C55D")] [Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")] get { return this.curve; } } // Token: 0x17001E6E RID: 7790 // (get) Token: 0x0600C55E RID: 50526 RVA: 0x002C91A0 File Offset: 0x002C73A0 [Token(Token = "0x17001E6E")] public ECPoint G { [Token(Token = "0x600C55E")] [Address(RVA = "0x21546F0", Offset = "0x21536F0", VA = "0x1821546F0")] get { X9ECPoint x9ECPoint = this.g; ECPoint p = x9ECPoint.p; if (p == 0) { Asn1OctetString encoding = x9ECPoint.encoding; ECCurve c = x9ECPoint.c; Stream octetStream = encoding.GetOctetStream(); ECMultiplier multiplier = c.GetMultiplier(); } return p; } } // Token: 0x17001E6F RID: 7791 // (get) Token: 0x0600C55F RID: 50527 RVA: 0x002C91E4 File Offset: 0x002C73E4 [Token(Token = "0x17001E6F")] public BigInteger N { [Token(Token = "0x600C55F")] [Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")] get { return this.n; } } // Token: 0x17001E70 RID: 7792 // (get) Token: 0x0600C560 RID: 50528 RVA: 0x002C91F8 File Offset: 0x002C73F8 [Token(Token = "0x17001E70")] public BigInteger H { [Token(Token = "0x600C560")] [Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")] get { return this.h; } } // Token: 0x0600C561 RID: 50529 RVA: 0x002C920C File Offset: 0x002C740C [Token(Token = "0x600C561")] [Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")] public byte[] GetSeed() { return this.seed; } // Token: 0x17001E71 RID: 7793 // (get) Token: 0x0600C562 RID: 50530 RVA: 0x002C9220 File Offset: 0x002C7420 [Token(Token = "0x17001E71")] public X9Curve CurveEntry { [Token(Token = "0x600C562")] [Address(RVA = "0x2154680", Offset = "0x2153680", VA = "0x182154680")] get { ECCurve eccurve = this.curve; byte[] array = this.seed; return new X9Curve(eccurve, array); } } // Token: 0x17001E72 RID: 7794 // (get) Token: 0x0600C563 RID: 50531 RVA: 0x002C9244 File Offset: 0x002C7444 [Token(Token = "0x17001E72")] public X9FieldID FieldIDEntry { [Token(Token = "0x600C563")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")] get { return this.fieldID; } } // Token: 0x17001E73 RID: 7795 // (get) Token: 0x0600C564 RID: 50532 RVA: 0x002C9258 File Offset: 0x002C7458 [Token(Token = "0x17001E73")] public X9ECPoint BaseEntry { [Token(Token = "0x600C564")] [Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")] get { return this.g; } } // Token: 0x0600C565 RID: 50533 RVA: 0x002C926C File Offset: 0x002C746C [Token(Token = "0x600C565")] [Address(RVA = "0x2153880", Offset = "0x2152880", VA = "0x182153880", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[5]; DerInteger derInteger = new DerInteger(BigInteger.One); if (derInteger != 0) { } array[0] = derInteger; X9FieldID x9FieldID = this.fieldID; if (x9FieldID != 0) { } array[1] = x9FieldID; ECCurve eccurve = this.curve; byte[] array2 = this.seed; X9Curve x9Curve = new X9Curve(eccurve, array2); if (x9Curve != 0) { } array[2] = x9Curve; X9ECPoint x9ECPoint = this.g; if (x9ECPoint != 0) { } array[3] = x9ECPoint; DerInteger derInteger2 = new DerInteger(this.n); if (derInteger2 != 0) { } array[4] = derInteger2; Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array); if (this.h != (ulong)0L) { Asn1Encodable[] array3 = new Asn1Encodable[1]; DerInteger derInteger3 = new DerInteger(this.h); if (derInteger3 != 0) { } array3[0] = derInteger3; asn1EncodableVector.Add(array3); } DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x04007BBB RID: 31675 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007BBB")] private X9FieldID fieldID; // Token: 0x04007BBC RID: 31676 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007BBC")] private ECCurve curve; // Token: 0x04007BBD RID: 31677 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007BBD")] private X9ECPoint g; // Token: 0x04007BBE RID: 31678 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4007BBE")] private BigInteger n; // Token: 0x04007BBF RID: 31679 [FieldOffset(Offset = "0x30")] [Token(Token = "0x4007BBF")] private BigInteger h; // Token: 0x04007BC0 RID: 31680 [FieldOffset(Offset = "0x38")] [Token(Token = "0x4007BC0")] private byte[] seed; } }