101 lines
4.9 KiB
C#
101 lines
4.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Agreement.JPake
|
|
{
|
|
// Token: 0x0200173D RID: 5949
|
|
[Token(Token = "0x200173D")]
|
|
[StructLayout(3)]
|
|
public class JPakePrimeOrderGroup
|
|
{
|
|
// Token: 0x0600A0D2 RID: 41170 RVA: 0x0025699C File Offset: 0x00254B9C
|
|
[Token(Token = "0x600A0D2")]
|
|
[Address(RVA = "0x65B8A0", Offset = "0x65A2A0", VA = "0x18065B8A0")]
|
|
public JPakePrimeOrderGroup(BigInteger p, BigInteger q, BigInteger g)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600A0D3 RID: 41171 RVA: 0x002569AC File Offset: 0x00254BAC
|
|
[Token(Token = "0x600A0D3")]
|
|
[Address(RVA = "0x65B430", Offset = "0x659E30", VA = "0x18065B430")]
|
|
public JPakePrimeOrderGroup(BigInteger p, BigInteger q, BigInteger g, bool skipChecks)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A0D3)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Agreement.JPake.JPakePrimeOrderGroup::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Boolean)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_A1:
|
|
stloc:ArgumentException(var_6_AB, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("p must be prime")))
|
|
}
|
|
|
|
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: 0x17001937 RID: 6455
|
|
// (get) Token: 0x0600A0D4 RID: 41172 RVA: 0x00256A68 File Offset: 0x00254C68
|
|
[Token(Token = "0x17001937")]
|
|
public virtual BigInteger P
|
|
{
|
|
[Token(Token = "0x600A0D4")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
|
get
|
|
{
|
|
return this.p;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001938 RID: 6456
|
|
// (get) Token: 0x0600A0D5 RID: 41173 RVA: 0x00256A7C File Offset: 0x00254C7C
|
|
[Token(Token = "0x17001938")]
|
|
public virtual BigInteger Q
|
|
{
|
|
[Token(Token = "0x600A0D5")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")]
|
|
get
|
|
{
|
|
return this.q;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001939 RID: 6457
|
|
// (get) Token: 0x0600A0D6 RID: 41174 RVA: 0x00256A90 File Offset: 0x00254C90
|
|
[Token(Token = "0x17001939")]
|
|
public virtual BigInteger G
|
|
{
|
|
[Token(Token = "0x600A0D6")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "6")]
|
|
get
|
|
{
|
|
return this.g;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040069EE RID: 27118
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40069EE")]
|
|
private readonly BigInteger p;
|
|
|
|
// Token: 0x040069EF RID: 27119
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40069EF")]
|
|
private readonly BigInteger q;
|
|
|
|
// Token: 0x040069F0 RID: 27120
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40069F0")]
|
|
private readonly BigInteger g;
|
|
}
|
|
}
|