m
This commit is contained in:
+74
@@ -0,0 +1,74 @@
|
||||
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: 0x02001DE9 RID: 7657
|
||||
[Token(Token = "0x2001DE9")]
|
||||
public class ECDHCBasicAgreement : IBasicAgreement
|
||||
{
|
||||
// Token: 0x0600C00F RID: 49167 RVA: 0x002B513C File Offset: 0x002B333C
|
||||
[Token(Token = "0x600C00F")]
|
||||
[Address(RVA = "0x292CC70", Offset = "0x292BC70", VA = "0x18292CC70", 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: 0x0600C010 RID: 49168 RVA: 0x002B5174 File Offset: 0x002B3374
|
||||
[Token(Token = "0x600C010")]
|
||||
[Address(RVA = "0x292C860", Offset = "0x292B860", VA = "0x18292C860", Slot = "8")]
|
||||
public virtual int GetFieldSize()
|
||||
{
|
||||
string text = this.privKey.parameters.curve.ToString();
|
||||
text += 0;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C011 RID: 49169 RVA: 0x002B51A0 File Offset: 0x002B33A0
|
||||
[Token(Token = "0x600C011")]
|
||||
[Address(RVA = "0x292CA10", Offset = "0x292BA10", VA = "0x18292CA10", Slot = "9")]
|
||||
public virtual BigInteger CalculateAgreement(ICipherParameters pubKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C011)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Agreement.ECDHCBasicAgreement::CalculateAgreement(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_77:
|
||||
stloc:InvalidOperationException(var_14_81, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Infinity is not a valid public key for ECDHC")))
|
||||
}
|
||||
|
||||
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: 0x0600C012 RID: 49170 RVA: 0x002B5230 File Offset: 0x002B3430
|
||||
[Token(Token = "0x600C012")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public ECDHCBasicAgreement()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400797E RID: 31102
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400797E")]
|
||||
private ECPrivateKeyParameters privKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user