scripts
This commit is contained in:
+256
@@ -0,0 +1,256 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x020015FF RID: 5631
|
||||
[Token(Token = "0x20015FF")]
|
||||
[StructLayout(3)]
|
||||
public class DHParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009674 RID: 38516 RVA: 0x00216764 File Offset: 0x00214964
|
||||
[Token(Token = "0x6009674")]
|
||||
[Address(RVA = "0x1DD1860", Offset = "0x1DD0260", VA = "0x181DD1860")]
|
||||
private static int GetDefaultMParam(int lParam)
|
||||
{
|
||||
if (lParam != 0)
|
||||
{
|
||||
return Math.Min(lParam, 160);
|
||||
}
|
||||
return 160;
|
||||
}
|
||||
|
||||
// Token: 0x06009675 RID: 38517 RVA: 0x00216788 File Offset: 0x00214988
|
||||
[Token(Token = "0x6009675")]
|
||||
[Address(RVA = "0x1DD1E40", Offset = "0x1DD0840", VA = "0x181DD1E40")]
|
||||
public DHParameters(BigInteger p, BigInteger g)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009676 RID: 38518 RVA: 0x0021679C File Offset: 0x0021499C
|
||||
[Token(Token = "0x6009676")]
|
||||
[Address(RVA = "0x1DD1D80", Offset = "0x1DD0780", VA = "0x181DD1D80")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009677 RID: 38519 RVA: 0x002167AC File Offset: 0x002149AC
|
||||
[Token(Token = "0x6009677")]
|
||||
[Address(RVA = "0x1DD1EC0", Offset = "0x1DD08C0", VA = "0x181DD1EC0")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int l)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009678 RID: 38520 RVA: 0x002167BC File Offset: 0x002149BC
|
||||
[Token(Token = "0x6009678")]
|
||||
[Address(RVA = "0x1DD1D40", Offset = "0x1DD0740", VA = "0x181DD1D40")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009679 RID: 38521 RVA: 0x002167CC File Offset: 0x002149CC
|
||||
[Token(Token = "0x6009679")]
|
||||
[Address(RVA = "0x1DD1E00", Offset = "0x1DD0800", VA = "0x181DD1E00")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, BigInteger j, DHValidationParameters validation)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600967A RID: 38522 RVA: 0x002167DC File Offset: 0x002149DC
|
||||
[Token(Token = "0x600967A")]
|
||||
[Address(RVA = "0x1DD1950", Offset = "0x1DD0350", VA = "0x181DD1950")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l, BigInteger j, DHValidationParameters validation)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600967A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DHParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Int32,System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DHValidationParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_B3:
|
||||
stloc:ArgumentException(var_13_C2, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("q too big to be a factor of (p-1)"), ldstr:string("q")))
|
||||
}
|
||||
|
||||
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: 0x170017FD RID: 6141
|
||||
// (get) Token: 0x0600967B RID: 38523 RVA: 0x002168AC File Offset: 0x00214AAC
|
||||
[Token(Token = "0x170017FD")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600967B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170017FE RID: 6142
|
||||
// (get) Token: 0x0600967C RID: 38524 RVA: 0x002168C0 File Offset: 0x00214AC0
|
||||
[Token(Token = "0x170017FE")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600967C")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170017FF RID: 6143
|
||||
// (get) Token: 0x0600967D RID: 38525 RVA: 0x002168D4 File Offset: 0x00214AD4
|
||||
[Token(Token = "0x170017FF")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x600967D")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001800 RID: 6144
|
||||
// (get) Token: 0x0600967E RID: 38526 RVA: 0x002168E8 File Offset: 0x00214AE8
|
||||
[Token(Token = "0x17001800")]
|
||||
public BigInteger J
|
||||
{
|
||||
[Token(Token = "0x600967E")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.j;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001801 RID: 6145
|
||||
// (get) Token: 0x0600967F RID: 38527 RVA: 0x002168FC File Offset: 0x00214AFC
|
||||
[Token(Token = "0x17001801")]
|
||||
public int M
|
||||
{
|
||||
[Token(Token = "0x600967F")]
|
||||
[Address(RVA = "0x3EDF60", Offset = "0x3EC960", VA = "0x1803EDF60")]
|
||||
get
|
||||
{
|
||||
return this.m;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001802 RID: 6146
|
||||
// (get) Token: 0x06009680 RID: 38528 RVA: 0x00216910 File Offset: 0x00214B10
|
||||
[Token(Token = "0x17001802")]
|
||||
public int L
|
||||
{
|
||||
[Token(Token = "0x6009680")]
|
||||
[Address(RVA = "0x621DB0", Offset = "0x6207B0", VA = "0x180621DB0")]
|
||||
get
|
||||
{
|
||||
return this.l;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001803 RID: 6147
|
||||
// (get) Token: 0x06009681 RID: 38529 RVA: 0x00216924 File Offset: 0x00214B24
|
||||
[Token(Token = "0x17001803")]
|
||||
public DHValidationParameters ValidationParameters
|
||||
{
|
||||
[Token(Token = "0x6009681")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.validation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009682 RID: 38530 RVA: 0x00216938 File Offset: 0x00214B38
|
||||
[Token(Token = "0x6009682")]
|
||||
[Address(RVA = "0x1DD17B0", Offset = "0x1DD01B0", VA = "0x181DD17B0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06009683 RID: 38531 RVA: 0x00216958 File Offset: 0x00214B58
|
||||
[Token(Token = "0x6009683")]
|
||||
[Address(RVA = "0x1DD1720", Offset = "0x1DD0120", VA = "0x181DD1720", Slot = "4")]
|
||||
protected virtual bool Equals(DHParameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.g;
|
||||
BigInteger bigInteger3 = other.q;
|
||||
return object.Equals(this.q, bigInteger3);
|
||||
}
|
||||
|
||||
// Token: 0x06009684 RID: 38532 RVA: 0x00216990 File Offset: 0x00214B90
|
||||
[Token(Token = "0x6009684")]
|
||||
[Address(RVA = "0x1DD18D0", Offset = "0x1DD02D0", VA = "0x181DD18D0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.p.Finalize();
|
||||
this.g.Finalize();
|
||||
BigInteger bigInteger = this.q;
|
||||
if (bigInteger != 0)
|
||||
{
|
||||
bigInteger.Finalize();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006359 RID: 25433
|
||||
[Token(Token = "0x4006359")]
|
||||
private const int DefaultMinimumLength = 160;
|
||||
|
||||
// Token: 0x0400635A RID: 25434
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400635A")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x0400635B RID: 25435
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400635B")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x0400635C RID: 25436
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400635C")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x0400635D RID: 25437
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400635D")]
|
||||
private readonly BigInteger j;
|
||||
|
||||
// Token: 0x0400635E RID: 25438
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400635E")]
|
||||
private readonly int m;
|
||||
|
||||
// Token: 0x0400635F RID: 25439
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x400635F")]
|
||||
private readonly int l;
|
||||
|
||||
// Token: 0x04006360 RID: 25440
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006360")]
|
||||
private readonly DHValidationParameters validation;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user