using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Agreement { // Token: 0x02001D08 RID: 7432 [Token(Token = "0x2001D08")] public class ECDHBasicAgreement : IBasicAgreement { // Token: 0x0600BC3D RID: 48189 RVA: 0x002AC770 File Offset: 0x002AA970 [Token(Token = "0x600BC3D")] [Address(RVA = "0x2009130", Offset = "0x2007F30", VA = "0x182009130", Slot = "7")] public virtual void Init(ICipherParameters parameters) { int num; do { num = 0; } while (parameters != 0 && ((parameters != 0 && (parameters == 0 || parameters == 0)) || (parameters != 0 && parameters == 0))); this.privKey = num; } // Token: 0x0600BC3E RID: 48190 RVA: 0x002AC7A8 File Offset: 0x002AA9A8 [Token(Token = "0x600BC3E")] [Address(RVA = "0x20090E0", Offset = "0x2007EE0", VA = "0x1820090E0", Slot = "8")] public virtual int GetFieldSize() { string text = this.privKey.parameters.curve.ToString(); text += 0; throw new NullReferenceException(); } // Token: 0x0600BC3F RID: 48191 RVA: 0x002AC7D4 File Offset: 0x002AA9D4 [Token(Token = "0x600BC3F")] [Address(RVA = "0x2008DF0", Offset = "0x2007BF0", VA = "0x182008DF0", Slot = "9")] public virtual BigInteger CalculateAgreement(ICipherParameters pubKey) { /* An exception occurred when decompiling this method (0600BC3F) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Agreement.ECDHBasicAgreement::CalculateAgreement(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_83: stloc:InvalidOperationException(var_14_8D, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Infinity is not a valid public key for ECDH"))) } 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 1660 */; } // Token: 0x0600BC40 RID: 48192 RVA: 0x002AC870 File Offset: 0x002AAA70 [Token(Token = "0x600BC40")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] public ECDHBasicAgreement() { } // Token: 0x040077C4 RID: 30660 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40077C4")] protected internal ECPrivateKeyParameters privKey; } }