using System; using System.IO; using System.Runtime.InteropServices; 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: 0x02001808 RID: 6152 [Token(Token = "0x2001808")] [StructLayout(3)] public class X9ECParameters : Asn1Encodable { // Token: 0x0600A5AE RID: 42414 RVA: 0x002680B4 File Offset: 0x002662B4 [Token(Token = "0x600A5AE")] [Address(RVA = "0x2785DE0", Offset = "0x27847E0", VA = "0x182785DE0")] 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: 0x0600A5AF RID: 42415 RVA: 0x002680E8 File Offset: 0x002662E8 [Token(Token = "0x600A5AF")] [Address(RVA = "0x2786680", Offset = "0x2785080", VA = "0x182786680")] public X9ECParameters(Asn1Sequence seq) { /* An exception occurred when decompiling this method (0600A5AF) 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: 0x0600A5B0 RID: 42416 RVA: 0x00268204 File Offset: 0x00266404 [Token(Token = "0x600A5B0")] [Address(RVA = "0x2786280", Offset = "0x2784C80", VA = "0x182786280")] public X9ECParameters(ECCurve curve, ECPoint g, BigInteger n) { } // Token: 0x0600A5B1 RID: 42417 RVA: 0x00268214 File Offset: 0x00266414 [Token(Token = "0x600A5B1")] [Address(RVA = "0x2786250", Offset = "0x2784C50", VA = "0x182786250")] public X9ECParameters(ECCurve curve, X9ECPoint g, BigInteger n, BigInteger h) { } // Token: 0x0600A5B2 RID: 42418 RVA: 0x00268224 File Offset: 0x00266424 [Token(Token = "0x600A5B2")] [Address(RVA = "0x2786CB0", Offset = "0x27856B0", VA = "0x182786CB0")] public X9ECParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h) { } // Token: 0x0600A5B3 RID: 42419 RVA: 0x00268234 File Offset: 0x00266434 [Token(Token = "0x600A5B3")] [Address(RVA = "0x2786BA0", Offset = "0x27855A0", VA = "0x182786BA0")] 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: 0x0600A5B4 RID: 42420 RVA: 0x00268268 File Offset: 0x00266468 [Token(Token = "0x600A5B4")] [Address(RVA = "0x27862A0", Offset = "0x2784CA0", VA = "0x1827862A0")] public X9ECParameters(ECCurve curve, X9ECPoint g, BigInteger n, BigInteger h, byte[] seed) { /* An exception occurred when decompiling this method (0600A5B4) 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: 0x170019CF RID: 6607 // (get) Token: 0x0600A5B5 RID: 42421 RVA: 0x00268348 File Offset: 0x00266548 [Token(Token = "0x170019CF")] public ECCurve Curve { [Token(Token = "0x600A5B5")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.curve; } } // Token: 0x170019D0 RID: 6608 // (get) Token: 0x0600A5B6 RID: 42422 RVA: 0x0026835C File Offset: 0x0026655C [Token(Token = "0x170019D0")] public ECPoint G { [Token(Token = "0x600A5B6")] [Address(RVA = "0x2786D50", Offset = "0x2785750", VA = "0x182786D50")] 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: 0x170019D1 RID: 6609 // (get) Token: 0x0600A5B7 RID: 42423 RVA: 0x002683A0 File Offset: 0x002665A0 [Token(Token = "0x170019D1")] public BigInteger N { [Token(Token = "0x600A5B7")] [Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")] get { return this.n; } } // Token: 0x170019D2 RID: 6610 // (get) Token: 0x0600A5B8 RID: 42424 RVA: 0x002683B4 File Offset: 0x002665B4 [Token(Token = "0x170019D2")] public BigInteger H { [Token(Token = "0x600A5B8")] [Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")] get { return this.h; } } // Token: 0x0600A5B9 RID: 42425 RVA: 0x002683C8 File Offset: 0x002665C8 [Token(Token = "0x600A5B9")] [Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")] public byte[] GetSeed() { return this.seed; } // Token: 0x170019D3 RID: 6611 // (get) Token: 0x0600A5BA RID: 42426 RVA: 0x002683DC File Offset: 0x002665DC [Token(Token = "0x170019D3")] public X9Curve CurveEntry { [Token(Token = "0x600A5BA")] [Address(RVA = "0x2786CE0", Offset = "0x27856E0", VA = "0x182786CE0")] get { ECCurve eccurve = this.curve; byte[] array = this.seed; return new X9Curve(eccurve, array); } } // Token: 0x170019D4 RID: 6612 // (get) Token: 0x0600A5BB RID: 42427 RVA: 0x00268400 File Offset: 0x00266600 [Token(Token = "0x170019D4")] public X9FieldID FieldIDEntry { [Token(Token = "0x600A5BB")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")] get { return this.fieldID; } } // Token: 0x170019D5 RID: 6613 // (get) Token: 0x0600A5BC RID: 42428 RVA: 0x00268414 File Offset: 0x00266614 [Token(Token = "0x170019D5")] public X9ECPoint BaseEntry { [Token(Token = "0x600A5BC")] [Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")] get { return this.g; } } // Token: 0x0600A5BD RID: 42429 RVA: 0x00268428 File Offset: 0x00266628 [Token(Token = "0x600A5BD")] [Address(RVA = "0x2785EE0", Offset = "0x27848E0", VA = "0x182785EE0", 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: 0x04006BBF RID: 27583 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006BBF")] private X9FieldID fieldID; // Token: 0x04006BC0 RID: 27584 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006BC0")] private ECCurve curve; // Token: 0x04006BC1 RID: 27585 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4006BC1")] private X9ECPoint g; // Token: 0x04006BC2 RID: 27586 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4006BC2")] private BigInteger n; // Token: 0x04006BC3 RID: 27587 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4006BC3")] private BigInteger h; // Token: 0x04006BC4 RID: 27588 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4006BC4")] private byte[] seed; } }