using System; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters { // Token: 0x0200163A RID: 5690 [Token(Token = "0x200163A")] [StructLayout(3)] public class SM2KeyExchangePublicParameters : ICipherParameters { // Token: 0x060097C1 RID: 38849 RVA: 0x0021A0A0 File Offset: 0x002182A0 [Token(Token = "0x60097C1")] [Address(RVA = "0x1DDF360", Offset = "0x1DDDD60", VA = "0x181DDF360")] public SM2KeyExchangePublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey) { /* An exception occurred when decompiling this method (060097C1) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SM2KeyExchangePublicParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_24: stloc:ArgumentNullException(var_1_2E, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("staticPublicKey"))) stloc:ArgumentException(var_2_39, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Static and ephemeral public keys have different domain parameters"))) } 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: 0x17001861 RID: 6241 // (get) Token: 0x060097C2 RID: 38850 RVA: 0x0021A0E8 File Offset: 0x002182E8 [Token(Token = "0x17001861")] public virtual ECPublicKeyParameters StaticPublicKey { [Token(Token = "0x60097C2")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")] get { return this.mStaticPublicKey; } } // Token: 0x17001862 RID: 6242 // (get) Token: 0x060097C3 RID: 38851 RVA: 0x0021A0FC File Offset: 0x002182FC [Token(Token = "0x17001862")] public virtual ECPublicKeyParameters EphemeralPublicKey { [Token(Token = "0x60097C3")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")] get { return this.mEphemeralPublicKey; } } // Token: 0x040063DF RID: 25567 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x40063DF")] private readonly ECPublicKeyParameters mStaticPublicKey; // Token: 0x040063E0 RID: 25568 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x40063E0")] private readonly ECPublicKeyParameters mEphemeralPublicKey; } }