m
This commit is contained in:
+94
@@ -0,0 +1,94 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CB8 RID: 7352
|
||||
[Token(Token = "0x2001CB8")]
|
||||
public class AeadParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B60B RID: 46603 RVA: 0x00276CE8 File Offset: 0x00274EE8
|
||||
[Token(Token = "0x600B60B")]
|
||||
[Address(RVA = "0x22CF2D0", Offset = "0x22CE2D0", VA = "0x1822CF2D0")]
|
||||
public AeadParameters(KeyParameter key, int macSize, byte[] nonce)
|
||||
{
|
||||
this.key = key;
|
||||
this.nonce = nonce;
|
||||
this.macSize = macSize;
|
||||
this.associatedText = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600B60C RID: 46604 RVA: 0x00276D1C File Offset: 0x00274F1C
|
||||
[Token(Token = "0x600B60C")]
|
||||
[Address(RVA = "0x22CF280", Offset = "0x22CE280", VA = "0x1822CF280")]
|
||||
public AeadParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText)
|
||||
{
|
||||
this.key = key;
|
||||
this.macSize = macSize;
|
||||
this.associatedText = 0;
|
||||
this.nonce = nonce;
|
||||
}
|
||||
|
||||
// Token: 0x17001C96 RID: 7318
|
||||
// (get) Token: 0x0600B60D RID: 46605 RVA: 0x00276D4C File Offset: 0x00274F4C
|
||||
[Token(Token = "0x17001C96")]
|
||||
public virtual KeyParameter Key
|
||||
{
|
||||
[Token(Token = "0x600B60D")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.key;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C97 RID: 7319
|
||||
// (get) Token: 0x0600B60E RID: 46606 RVA: 0x00276D60 File Offset: 0x00274F60
|
||||
[Token(Token = "0x17001C97")]
|
||||
public virtual int MacSize
|
||||
{
|
||||
[Token(Token = "0x600B60E")]
|
||||
[Address(RVA = "0x471180", Offset = "0x470180", VA = "0x180471180", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.macSize;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B60F RID: 46607 RVA: 0x00276D74 File Offset: 0x00274F74
|
||||
[Token(Token = "0x600B60F")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
public virtual byte[] GetAssociatedText()
|
||||
{
|
||||
return this.associatedText;
|
||||
}
|
||||
|
||||
// Token: 0x0600B610 RID: 46608 RVA: 0x00276D88 File Offset: 0x00274F88
|
||||
[Token(Token = "0x600B610")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
public virtual byte[] GetNonce()
|
||||
{
|
||||
return this.nonce;
|
||||
}
|
||||
|
||||
// Token: 0x0400734E RID: 29518
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400734E")]
|
||||
private readonly byte[] associatedText;
|
||||
|
||||
// Token: 0x0400734F RID: 29519
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400734F")]
|
||||
private readonly byte[] nonce;
|
||||
|
||||
// Token: 0x04007350 RID: 29520
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007350")]
|
||||
private readonly KeyParameter key;
|
||||
|
||||
// Token: 0x04007351 RID: 29521
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007351")]
|
||||
private readonly int macSize;
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CB9 RID: 7353
|
||||
[Token(Token = "0x2001CB9")]
|
||||
[Obsolete]
|
||||
public class CcmParameters : AeadParameters
|
||||
{
|
||||
// Token: 0x0600B611 RID: 46609 RVA: 0x00276D9C File Offset: 0x00274F9C
|
||||
[Token(Token = "0x600B611")]
|
||||
[Address(RVA = "0x22CF280", Offset = "0x22CE280", VA = "0x1822CF280")]
|
||||
public CcmParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText)
|
||||
{
|
||||
this.key = key;
|
||||
this.macSize = macSize;
|
||||
this.associatedText = 0;
|
||||
this.nonce = nonce;
|
||||
}
|
||||
}
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CBA RID: 7354
|
||||
[Token(Token = "0x2001CBA")]
|
||||
public class DHKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B612 RID: 46610 RVA: 0x00276DCC File Offset: 0x00274FCC
|
||||
[Token(Token = "0x600B612")]
|
||||
[Address(RVA = "0x22D09F0", Offset = "0x22CF9F0", VA = "0x1822D09F0")]
|
||||
public DHKeyGenerationParameters(SecureRandom random, DHParameters parameters)
|
||||
{
|
||||
int l = parameters.l;
|
||||
if (l == 0)
|
||||
{
|
||||
int bitLength = parameters.p.BitLength;
|
||||
}
|
||||
base..ctor(random, l);
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x17001C98 RID: 7320
|
||||
// (get) Token: 0x0600B613 RID: 46611 RVA: 0x00276E08 File Offset: 0x00275008
|
||||
[Token(Token = "0x17001C98")]
|
||||
public DHParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B613")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B614 RID: 46612 RVA: 0x00276E1C File Offset: 0x0027501C
|
||||
[Token(Token = "0x600B614")]
|
||||
[Address(RVA = "0x22D09C0", Offset = "0x22CF9C0", VA = "0x1822D09C0")]
|
||||
internal static int GetStrength(DHParameters parameters)
|
||||
{
|
||||
int l = parameters.l;
|
||||
if (l == 0)
|
||||
{
|
||||
return parameters.p.BitLength;
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
// Token: 0x04007352 RID: 29522
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007352")]
|
||||
private readonly DHParameters parameters;
|
||||
}
|
||||
}
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CBB RID: 7355
|
||||
[Token(Token = "0x2001CBB")]
|
||||
public class DHKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B615 RID: 46613 RVA: 0x00276E48 File Offset: 0x00275048
|
||||
[Token(Token = "0x600B615")]
|
||||
[Address(RVA = "0x22D0BC0", Offset = "0x22CFBC0", VA = "0x1822D0BC0")]
|
||||
protected DHKeyParameters(bool isPrivate, DHParameters parameters)
|
||||
{
|
||||
DerObjectIdentifier dhKeyAgreement = PkcsObjectIdentifiers.DhKeyAgreement;
|
||||
base..ctor(isPrivate);
|
||||
this.parameters = parameters;
|
||||
this.algorithmOid = dhKeyAgreement;
|
||||
}
|
||||
|
||||
// Token: 0x0600B616 RID: 46614 RVA: 0x00276E70 File Offset: 0x00275070
|
||||
[Token(Token = "0x600B616")]
|
||||
[Address(RVA = "0x22D0C60", Offset = "0x22CFC60", VA = "0x1822D0C60")]
|
||||
protected DHKeyParameters(bool isPrivate, DHParameters parameters, DerObjectIdentifier algorithmOid)
|
||||
: base(isPrivate)
|
||||
{
|
||||
this.algorithmOid = algorithmOid;
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x17001C99 RID: 7321
|
||||
// (get) Token: 0x0600B617 RID: 46615 RVA: 0x00276E94 File Offset: 0x00275094
|
||||
[Token(Token = "0x17001C99")]
|
||||
public DHParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B617")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9A RID: 7322
|
||||
// (get) Token: 0x0600B618 RID: 46616 RVA: 0x00276EA8 File Offset: 0x002750A8
|
||||
[Token(Token = "0x17001C9A")]
|
||||
public DerObjectIdentifier AlgorithmOid
|
||||
{
|
||||
[Token(Token = "0x600B618")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.algorithmOid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B619 RID: 46617 RVA: 0x00276EBC File Offset: 0x002750BC
|
||||
[Token(Token = "0x600B619")]
|
||||
[Address(RVA = "0x22D0A50", Offset = "0x22CFA50", VA = "0x1822D0A50", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
DHParameters dhparameters = this.parameters;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B61A RID: 46618 RVA: 0x00276EE8 File Offset: 0x002750E8
|
||||
[Token(Token = "0x600B61A")]
|
||||
[Address(RVA = "0x22D0B20", Offset = "0x22CFB20", VA = "0x1822D0B20")]
|
||||
protected bool Equals(DHKeyParameters other)
|
||||
{
|
||||
DHParameters dhparameters = other.parameters;
|
||||
bool flag = object.Equals(this.parameters, dhparameters);
|
||||
if (!flag)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B61B RID: 46619 RVA: 0x00276F1C File Offset: 0x0027511C
|
||||
[Token(Token = "0x600B61B")]
|
||||
[Address(RVA = "0x22D0B80", Offset = "0x22CFB80", VA = "0x1822D0B80", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
DHParameters dhparameters = this.parameters;
|
||||
if (dhparameters != 0)
|
||||
{
|
||||
dhparameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04007353 RID: 29523
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007353")]
|
||||
private readonly DHParameters parameters;
|
||||
|
||||
// Token: 0x04007354 RID: 29524
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007354")]
|
||||
private readonly DerObjectIdentifier algorithmOid;
|
||||
}
|
||||
}
|
||||
+254
@@ -0,0 +1,254 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CBC RID: 7356
|
||||
[Token(Token = "0x2001CBC")]
|
||||
public class DHParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B61C RID: 46620 RVA: 0x00276F44 File Offset: 0x00275144
|
||||
[Token(Token = "0x600B61C")]
|
||||
[Address(RVA = "0x22D0DE0", Offset = "0x22CFDE0", VA = "0x1822D0DE0")]
|
||||
private static int GetDefaultMParam(int lParam)
|
||||
{
|
||||
if (lParam != 0)
|
||||
{
|
||||
return Math.Min(lParam, 160);
|
||||
}
|
||||
return 160;
|
||||
}
|
||||
|
||||
// Token: 0x0600B61D RID: 46621 RVA: 0x00276F68 File Offset: 0x00275168
|
||||
[Token(Token = "0x600B61D")]
|
||||
[Address(RVA = "0x22D13C0", Offset = "0x22D03C0", VA = "0x1822D13C0")]
|
||||
public DHParameters(BigInteger p, BigInteger g)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B61E RID: 46622 RVA: 0x00276F7C File Offset: 0x0027517C
|
||||
[Token(Token = "0x600B61E")]
|
||||
[Address(RVA = "0x22D1300", Offset = "0x22D0300", VA = "0x1822D1300")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B61F RID: 46623 RVA: 0x00276F8C File Offset: 0x0027518C
|
||||
[Token(Token = "0x600B61F")]
|
||||
[Address(RVA = "0x22D1440", Offset = "0x22D0440", VA = "0x1822D1440")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int l)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B620 RID: 46624 RVA: 0x00276F9C File Offset: 0x0027519C
|
||||
[Token(Token = "0x600B620")]
|
||||
[Address(RVA = "0x22D12C0", Offset = "0x22D02C0", VA = "0x1822D12C0")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B621 RID: 46625 RVA: 0x00276FAC File Offset: 0x002751AC
|
||||
[Token(Token = "0x600B621")]
|
||||
[Address(RVA = "0x22D1380", Offset = "0x22D0380", VA = "0x1822D1380")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, BigInteger j, DHValidationParameters validation)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B622 RID: 46626 RVA: 0x00276FBC File Offset: 0x002751BC
|
||||
[Token(Token = "0x600B622")]
|
||||
[Address(RVA = "0x22D0ED0", Offset = "0x22CFED0", VA = "0x1822D0ED0")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l, BigInteger j, DHValidationParameters validation)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B622)
|
||||
|
||||
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: 0x17001C9B RID: 7323
|
||||
// (get) Token: 0x0600B623 RID: 46627 RVA: 0x0027708C File Offset: 0x0027528C
|
||||
[Token(Token = "0x17001C9B")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600B623")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9C RID: 7324
|
||||
// (get) Token: 0x0600B624 RID: 46628 RVA: 0x002770A0 File Offset: 0x002752A0
|
||||
[Token(Token = "0x17001C9C")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600B624")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9D RID: 7325
|
||||
// (get) Token: 0x0600B625 RID: 46629 RVA: 0x002770B4 File Offset: 0x002752B4
|
||||
[Token(Token = "0x17001C9D")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x600B625")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9E RID: 7326
|
||||
// (get) Token: 0x0600B626 RID: 46630 RVA: 0x002770C8 File Offset: 0x002752C8
|
||||
[Token(Token = "0x17001C9E")]
|
||||
public BigInteger J
|
||||
{
|
||||
[Token(Token = "0x600B626")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.j;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C9F RID: 7327
|
||||
// (get) Token: 0x0600B627 RID: 46631 RVA: 0x002770DC File Offset: 0x002752DC
|
||||
[Token(Token = "0x17001C9F")]
|
||||
public int M
|
||||
{
|
||||
[Token(Token = "0x600B627")]
|
||||
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0")]
|
||||
get
|
||||
{
|
||||
return this.m;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA0 RID: 7328
|
||||
// (get) Token: 0x0600B628 RID: 46632 RVA: 0x002770F0 File Offset: 0x002752F0
|
||||
[Token(Token = "0x17001CA0")]
|
||||
public int L
|
||||
{
|
||||
[Token(Token = "0x600B628")]
|
||||
[Address(RVA = "0x4D9880", Offset = "0x4D8880", VA = "0x1804D9880")]
|
||||
get
|
||||
{
|
||||
return this.l;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA1 RID: 7329
|
||||
// (get) Token: 0x0600B629 RID: 46633 RVA: 0x00277104 File Offset: 0x00275304
|
||||
[Token(Token = "0x17001CA1")]
|
||||
public DHValidationParameters ValidationParameters
|
||||
{
|
||||
[Token(Token = "0x600B629")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.validation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B62A RID: 46634 RVA: 0x00277118 File Offset: 0x00275318
|
||||
[Token(Token = "0x600B62A")]
|
||||
[Address(RVA = "0x22D0D30", Offset = "0x22CFD30", VA = "0x1822D0D30", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B62B RID: 46635 RVA: 0x00277138 File Offset: 0x00275338
|
||||
[Token(Token = "0x600B62B")]
|
||||
[Address(RVA = "0x22D0CA0", Offset = "0x22CFCA0", VA = "0x1822D0CA0", 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: 0x0600B62C RID: 46636 RVA: 0x00277170 File Offset: 0x00275370
|
||||
[Token(Token = "0x600B62C")]
|
||||
[Address(RVA = "0x22D0E50", Offset = "0x22CFE50", VA = "0x1822D0E50", 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: 0x04007355 RID: 29525
|
||||
[Token(Token = "0x4007355")]
|
||||
private const int DefaultMinimumLength = 160;
|
||||
|
||||
// Token: 0x04007356 RID: 29526
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007356")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x04007357 RID: 29527
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007357")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x04007358 RID: 29528
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007358")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x04007359 RID: 29529
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007359")]
|
||||
private readonly BigInteger j;
|
||||
|
||||
// Token: 0x0400735A RID: 29530
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400735A")]
|
||||
private readonly int m;
|
||||
|
||||
// Token: 0x0400735B RID: 29531
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x400735B")]
|
||||
private readonly int l;
|
||||
|
||||
// Token: 0x0400735C RID: 29532
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400735C")]
|
||||
private readonly DHValidationParameters validation;
|
||||
}
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CBD RID: 7357
|
||||
[Token(Token = "0x2001CBD")]
|
||||
public class DHPrivateKeyParameters : DHKeyParameters
|
||||
{
|
||||
// Token: 0x0600B62D RID: 46637 RVA: 0x002771AC File Offset: 0x002753AC
|
||||
[Token(Token = "0x600B62D")]
|
||||
[Address(RVA = "0x22D1750", Offset = "0x22D0750", VA = "0x1822D1750")]
|
||||
public DHPrivateKeyParameters(BigInteger x, DHParameters parameters)
|
||||
: base(true, parameters)
|
||||
{
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
// Token: 0x0600B62E RID: 46638 RVA: 0x002771C8 File Offset: 0x002753C8
|
||||
[Token(Token = "0x600B62E")]
|
||||
[Address(RVA = "0x22D1700", Offset = "0x22D0700", VA = "0x1822D1700")]
|
||||
public DHPrivateKeyParameters(BigInteger x, DHParameters parameters, DerObjectIdentifier algorithmOid)
|
||||
: base(true)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
this.algorithmOid = algorithmOid;
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
// Token: 0x17001CA2 RID: 7330
|
||||
// (get) Token: 0x0600B62F RID: 46639 RVA: 0x002771F4 File Offset: 0x002753F4
|
||||
[Token(Token = "0x17001CA2")]
|
||||
public BigInteger X
|
||||
{
|
||||
[Token(Token = "0x600B62F")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B630 RID: 46640 RVA: 0x00277208 File Offset: 0x00275408
|
||||
[Token(Token = "0x600B630")]
|
||||
[Address(RVA = "0x22D1510", Offset = "0x22D0510", VA = "0x1822D1510", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.x;
|
||||
DHParameters parameters = this.parameters;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B631 RID: 46641 RVA: 0x00277244 File Offset: 0x00275444
|
||||
[Token(Token = "0x600B631")]
|
||||
[Address(RVA = "0x22D1610", Offset = "0x22D0610", VA = "0x1822D1610")]
|
||||
protected bool Equals(DHPrivateKeyParameters other)
|
||||
{
|
||||
DHParameters parameters;
|
||||
do
|
||||
{
|
||||
BigInteger bigInteger = this.x;
|
||||
parameters = other.parameters;
|
||||
}
|
||||
while (!object.Equals(this.parameters, parameters));
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B632 RID: 46642 RVA: 0x00277280 File Offset: 0x00275480
|
||||
[Token(Token = "0x600B632")]
|
||||
[Address(RVA = "0x22D1690", Offset = "0x22D0690", VA = "0x1822D1690", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.x.Finalize();
|
||||
int hashCode = base.GetHashCode();
|
||||
DHParameters parameters = this.parameters;
|
||||
if (parameters != 0)
|
||||
{
|
||||
parameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x0400735D RID: 29533
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400735D")]
|
||||
private readonly BigInteger x;
|
||||
}
|
||||
}
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CBE RID: 7358
|
||||
[Token(Token = "0x2001CBE")]
|
||||
public class DHPublicKeyParameters : DHKeyParameters
|
||||
{
|
||||
// Token: 0x0600B633 RID: 46643 RVA: 0x002772B8 File Offset: 0x002754B8
|
||||
[Token(Token = "0x600B633")]
|
||||
[Address(RVA = "0x22D1880", Offset = "0x22D0880", VA = "0x1822D1880")]
|
||||
private static BigInteger Validate(BigInteger y, DHParameters dhParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B633)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DHPublicKeyParameters::Validate(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DHParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_55:
|
||||
stloc:ArgumentNullException(var_9_5F, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("y")))
|
||||
stloc:ArgumentException(var_10_70, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("y value does not appear to be in correct group"), ldstr:string("y")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B634 RID: 46644 RVA: 0x00277338 File Offset: 0x00275538
|
||||
[Token(Token = "0x600B634")]
|
||||
[Address(RVA = "0x22D1A90", Offset = "0x22D0A90", VA = "0x1822D1A90")]
|
||||
public DHPublicKeyParameters(BigInteger y, DHParameters parameters)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(num != 0, parameters);
|
||||
BigInteger bigInteger = DHPublicKeyParameters.Validate(y, parameters);
|
||||
this.y = bigInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600B635 RID: 46645 RVA: 0x00277360 File Offset: 0x00275560
|
||||
[Token(Token = "0x600B635")]
|
||||
[Address(RVA = "0x22D1AE0", Offset = "0x22D0AE0", VA = "0x1822D1AE0")]
|
||||
public DHPublicKeyParameters(BigInteger y, DHParameters parameters, DerObjectIdentifier algorithmOid)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(num != 0);
|
||||
this.parameters = parameters;
|
||||
this.algorithmOid = algorithmOid;
|
||||
BigInteger bigInteger = DHPublicKeyParameters.Validate(y, parameters);
|
||||
this.y = bigInteger;
|
||||
}
|
||||
|
||||
// Token: 0x17001CA3 RID: 7331
|
||||
// (get) Token: 0x0600B636 RID: 46646 RVA: 0x00277394 File Offset: 0x00275594
|
||||
[Token(Token = "0x17001CA3")]
|
||||
public virtual BigInteger Y
|
||||
{
|
||||
[Token(Token = "0x600B636")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B637 RID: 46647 RVA: 0x002773A8 File Offset: 0x002755A8
|
||||
[Token(Token = "0x600B637")]
|
||||
[Address(RVA = "0x22D1780", Offset = "0x22D0780", VA = "0x1822D1780", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.y;
|
||||
DHParameters parameters = this.parameters;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B638 RID: 46648 RVA: 0x002773E4 File Offset: 0x002755E4
|
||||
[Token(Token = "0x600B638")]
|
||||
[Address(RVA = "0x22D1610", Offset = "0x22D0610", VA = "0x1822D1610")]
|
||||
protected bool Equals(DHPublicKeyParameters other)
|
||||
{
|
||||
DHParameters parameters;
|
||||
do
|
||||
{
|
||||
BigInteger bigInteger = this.y;
|
||||
parameters = other.parameters;
|
||||
}
|
||||
while (!object.Equals(this.parameters, parameters));
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B639 RID: 46649 RVA: 0x00277420 File Offset: 0x00275620
|
||||
[Token(Token = "0x600B639")]
|
||||
[Address(RVA = "0x22D1690", Offset = "0x22D0690", VA = "0x1822D1690", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.y.Finalize();
|
||||
int hashCode = base.GetHashCode();
|
||||
DHParameters parameters = this.parameters;
|
||||
if (parameters != 0)
|
||||
{
|
||||
parameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x0400735E RID: 29534
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400735E")]
|
||||
private readonly BigInteger y;
|
||||
}
|
||||
}
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CBF RID: 7359
|
||||
[Token(Token = "0x2001CBF")]
|
||||
public class DHValidationParameters
|
||||
{
|
||||
// Token: 0x0600B63A RID: 46650 RVA: 0x00277458 File Offset: 0x00275658
|
||||
[Token(Token = "0x600B63A")]
|
||||
[Address(RVA = "0x22D1DE0", Offset = "0x22D0DE0", VA = "0x1822D1DE0")]
|
||||
public DHValidationParameters(byte[] seed, int counter)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B63A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DHValidationParameters::.ctor(System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("seed")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B63B RID: 46651 RVA: 0x00277484 File Offset: 0x00275684
|
||||
[Token(Token = "0x600B63B")]
|
||||
[Address(RVA = "0x22D1D60", Offset = "0x22D0D60", VA = "0x1822D1D60")]
|
||||
public byte[] GetSeed()
|
||||
{
|
||||
byte[] array = this.seed;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001CA4 RID: 7332
|
||||
// (get) Token: 0x0600B63C RID: 46652 RVA: 0x002774A0 File Offset: 0x002756A0
|
||||
[Token(Token = "0x17001CA4")]
|
||||
public int Counter
|
||||
{
|
||||
[Token(Token = "0x600B63C")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
||||
get
|
||||
{
|
||||
return this.counter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B63D RID: 46653 RVA: 0x002774B4 File Offset: 0x002756B4
|
||||
[Token(Token = "0x600B63D")]
|
||||
[Address(RVA = "0x22D1B40", Offset = "0x22D0B40", VA = "0x1822D1B40", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (obj != 0 && this.counter == num)
|
||||
{
|
||||
byte[] array = this.seed;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B63E RID: 46654 RVA: 0x002774E4 File Offset: 0x002756E4
|
||||
[Token(Token = "0x600B63E")]
|
||||
[Address(RVA = "0x22D1C50", Offset = "0x22D0C50", VA = "0x1822D1C50")]
|
||||
protected bool Equals(DHValidationParameters other)
|
||||
{
|
||||
int num = other.counter;
|
||||
if (this.counter != num)
|
||||
{
|
||||
}
|
||||
byte[] array = this.seed;
|
||||
byte[] array2 = other.seed;
|
||||
return Arrays.AreEqual(array, array2);
|
||||
}
|
||||
|
||||
// Token: 0x0600B63F RID: 46655 RVA: 0x00277520 File Offset: 0x00275720
|
||||
[Token(Token = "0x600B63F")]
|
||||
[Address(RVA = "0x22D1CE0", Offset = "0x22D0CE0", VA = "0x1822D1CE0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = this.counter;
|
||||
return Arrays.GetHashCode(this.seed);
|
||||
}
|
||||
|
||||
// Token: 0x0400735F RID: 29535
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400735F")]
|
||||
private readonly byte[] seed;
|
||||
|
||||
// Token: 0x04007360 RID: 29536
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007360")]
|
||||
private readonly int counter;
|
||||
}
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC1 RID: 7361
|
||||
[Token(Token = "0x2001CC1")]
|
||||
public class DesEdeParameters : DesParameters
|
||||
{
|
||||
// Token: 0x0600B647 RID: 46663 RVA: 0x0027760C File Offset: 0x0027580C
|
||||
[Token(Token = "0x600B647")]
|
||||
[Address(RVA = "0x22D2420", Offset = "0x22D1420", VA = "0x1822D2420")]
|
||||
private static byte[] FixKey(byte[] key, int keyOff, int keyLen)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B647)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DesEdeParameters::FixKey(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5C:
|
||||
stloc:ArgumentException(var_9_66, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("attempt to create weak DESede key")))
|
||||
}
|
||||
|
||||
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: 0x0600B648 RID: 46664 RVA: 0x00277680 File Offset: 0x00275880
|
||||
[Token(Token = "0x600B648")]
|
||||
[Address(RVA = "0x22D2950", Offset = "0x22D1950", VA = "0x1822D2950")]
|
||||
public DesEdeParameters(byte[] key)
|
||||
{
|
||||
int length = key.Length;
|
||||
int num = 0;
|
||||
byte[] array = DesEdeParameters.FixKey(key, num, length);
|
||||
base..ctor(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600B649 RID: 46665 RVA: 0x002776AC File Offset: 0x002758AC
|
||||
[Token(Token = "0x600B649")]
|
||||
[Address(RVA = "0x22D29D0", Offset = "0x22D19D0", VA = "0x1822D29D0")]
|
||||
public DesEdeParameters(byte[] key, int keyOff, int keyLen)
|
||||
{
|
||||
byte[] array = DesEdeParameters.FixKey(key, keyOff, keyOff);
|
||||
base..ctor(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600B64A RID: 46666 RVA: 0x002776CC File Offset: 0x002758CC
|
||||
[Token(Token = "0x600B64A")]
|
||||
[Address(RVA = "0x22D2880", Offset = "0x22D1880", VA = "0x1822D2880")]
|
||||
public static bool IsWeakKey(byte[] key, int offset, int length)
|
||||
{
|
||||
while (offset < length && DesParameters.IsWeakKey(key, offset))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B64B RID: 46667 RVA: 0x002776E8 File Offset: 0x002758E8
|
||||
[Token(Token = "0x600B64B")]
|
||||
[Address(RVA = "0x22D2850", Offset = "0x22D1850", VA = "0x1822D2850")]
|
||||
public new static bool IsWeakKey(byte[] key, int offset)
|
||||
{
|
||||
int num = key.Length;
|
||||
num -= offset;
|
||||
return DesEdeParameters.IsWeakKey(key, offset, num);
|
||||
}
|
||||
|
||||
// Token: 0x0600B64C RID: 46668 RVA: 0x00277710 File Offset: 0x00275910
|
||||
[Token(Token = "0x600B64C")]
|
||||
[Address(RVA = "0x22D2920", Offset = "0x22D1920", VA = "0x1822D2920")]
|
||||
public new static bool IsWeakKey(byte[] key)
|
||||
{
|
||||
int length = key.Length;
|
||||
int num = 0;
|
||||
return DesEdeParameters.IsWeakKey(key, num, length);
|
||||
}
|
||||
|
||||
// Token: 0x0600B64D RID: 46669 RVA: 0x00277734 File Offset: 0x00275934
|
||||
[Token(Token = "0x600B64D")]
|
||||
[Address(RVA = "0x22D26E0", Offset = "0x22D16E0", VA = "0x1822D26E0")]
|
||||
public static bool IsRealEdeKey(byte[] key, int offset)
|
||||
{
|
||||
int length = key.Length;
|
||||
if (length == 16)
|
||||
{
|
||||
}
|
||||
byte b = key[offset];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B64E RID: 46670 RVA: 0x00277760 File Offset: 0x00275960
|
||||
[Token(Token = "0x600B64E")]
|
||||
[Address(RVA = "0x22D2580", Offset = "0x22D1580", VA = "0x1822D2580")]
|
||||
public static bool IsReal2Key(byte[] key, int offset)
|
||||
{
|
||||
int length = key.Length;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B64F RID: 46671 RVA: 0x0027777C File Offset: 0x0027597C
|
||||
[Token(Token = "0x600B64F")]
|
||||
[Address(RVA = "0x22D2600", Offset = "0x22D1600", VA = "0x1822D2600")]
|
||||
public static bool IsReal3Key(byte[] key, int offset)
|
||||
{
|
||||
int length = key.Length;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007368 RID: 29544
|
||||
[Token(Token = "0x4007368")]
|
||||
public const int DesEdeKeyLength = 24;
|
||||
}
|
||||
}
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC2 RID: 7362
|
||||
[Token(Token = "0x2001CC2")]
|
||||
public class DesParameters : KeyParameter
|
||||
{
|
||||
// Token: 0x0600B650 RID: 46672 RVA: 0x00277798 File Offset: 0x00275998
|
||||
[Token(Token = "0x600B650")]
|
||||
[Address(RVA = "0x22D2F50", Offset = "0x22D1F50", VA = "0x1822D2F50")]
|
||||
public DesParameters(byte[] key)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B650)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DesParameters::.ctor(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_14:
|
||||
stloc:ArgumentException(var_1_1E, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("attempt to create weak DES key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B651 RID: 46673 RVA: 0x002777C4 File Offset: 0x002759C4
|
||||
[Token(Token = "0x600B651")]
|
||||
[Address(RVA = "0x22D2E80", Offset = "0x22D1E80", VA = "0x1822D2E80")]
|
||||
public DesParameters(byte[] key, int keyOff, int keyLen)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B651)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DesParameters::.ctor(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_14:
|
||||
stloc:ArgumentException(var_1_1E, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("attempt to create weak DES key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B652 RID: 46674 RVA: 0x002777F0 File Offset: 0x002759F0
|
||||
[Token(Token = "0x600B652")]
|
||||
[Address(RVA = "0x22D2AC0", Offset = "0x22D1AC0", VA = "0x1822D2AC0")]
|
||||
public static bool IsWeakKey(byte[] key, int offset)
|
||||
{
|
||||
int num = key.Length;
|
||||
num -= offset;
|
||||
int num2 = 0;
|
||||
num2++;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B653 RID: 46675 RVA: 0x00277814 File Offset: 0x00275A14
|
||||
[Token(Token = "0x600B653")]
|
||||
[Address(RVA = "0x22D2A60", Offset = "0x22D1A60", VA = "0x1822D2A60")]
|
||||
public static bool IsWeakKey(byte[] key)
|
||||
{
|
||||
int num = 0;
|
||||
return DesParameters.IsWeakKey(key, num);
|
||||
}
|
||||
|
||||
// Token: 0x0600B654 RID: 46676 RVA: 0x0027782C File Offset: 0x00275A2C
|
||||
[Token(Token = "0x600B654")]
|
||||
[Address(RVA = "0x22D2C10", Offset = "0x22D1C10", VA = "0x1822D2C10")]
|
||||
public static byte SetOddParity(byte b)
|
||||
{
|
||||
return b;
|
||||
}
|
||||
|
||||
// Token: 0x0600B655 RID: 46677 RVA: 0x0027783C File Offset: 0x00275A3C
|
||||
[Token(Token = "0x600B655")]
|
||||
[Address(RVA = "0x22D2C40", Offset = "0x22D1C40", VA = "0x1822D2C40")]
|
||||
public static void SetOddParity(byte[] bytes)
|
||||
{
|
||||
int num = 0;
|
||||
int length = bytes.Length;
|
||||
if (num < length)
|
||||
{
|
||||
int length2 = bytes.Length;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B656 RID: 46678 RVA: 0x00277868 File Offset: 0x00275A68
|
||||
[Token(Token = "0x600B656")]
|
||||
[Address(RVA = "0x22D2D20", Offset = "0x22D1D20", VA = "0x1822D2D20")]
|
||||
public static void SetOddParity(byte[] bytes, int off, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
int length = bytes.Length;
|
||||
int length2 = bytes.Length;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B657 RID: 46679 RVA: 0x00277890 File Offset: 0x00275A90
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600B657")]
|
||||
[Address(RVA = "0x22D2E20", Offset = "0x22D1E20", VA = "0x1822D2E20")]
|
||||
static DesParameters()
|
||||
{
|
||||
RuntimeHelpers.InitializeArray(new byte[128], fieldof(<PrivateImplementationDetails>.31CDD717843C5C2B207F235634E6726898D4858A).FieldHandle);
|
||||
}
|
||||
|
||||
// Token: 0x04007369 RID: 29545
|
||||
[Token(Token = "0x4007369")]
|
||||
public const int DesKeyLength = 8;
|
||||
|
||||
// Token: 0x0400736A RID: 29546
|
||||
[Token(Token = "0x400736A")]
|
||||
private const int N_DES_WEAK_KEYS = 16;
|
||||
|
||||
// Token: 0x0400736B RID: 29547
|
||||
[Token(Token = "0x400736B")]
|
||||
private static readonly byte[] DES_weak_keys;
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC3 RID: 7363
|
||||
[Token(Token = "0x2001CC3")]
|
||||
public class DsaKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B658 RID: 46680 RVA: 0x002778B4 File Offset: 0x00275AB4
|
||||
[Token(Token = "0x600B658")]
|
||||
[Address(RVA = "0x22D3040", Offset = "0x22D2040", VA = "0x1822D3040")]
|
||||
public DsaKeyGenerationParameters(SecureRandom random, DsaParameters parameters)
|
||||
{
|
||||
int num = parameters.p.BitLength - 1;
|
||||
base..ctor(random, num);
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x17001CAA RID: 7338
|
||||
// (get) Token: 0x0600B659 RID: 46681 RVA: 0x002778E4 File Offset: 0x00275AE4
|
||||
[Token(Token = "0x17001CAA")]
|
||||
public DsaParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B659")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400736C RID: 29548
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400736C")]
|
||||
private readonly DsaParameters parameters;
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC4 RID: 7364
|
||||
[Token(Token = "0x2001CC4")]
|
||||
public abstract class DsaKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B65A RID: 46682 RVA: 0x002778F8 File Offset: 0x00275AF8
|
||||
[Token(Token = "0x600B65A")]
|
||||
[Address(RVA = "0x22D3170", Offset = "0x22D2170", VA = "0x1822D3170")]
|
||||
protected DsaKeyParameters(bool isPrivate, DsaParameters parameters)
|
||||
: base(isPrivate)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x17001CAB RID: 7339
|
||||
// (get) Token: 0x0600B65B RID: 46683 RVA: 0x00277914 File Offset: 0x00275B14
|
||||
[Token(Token = "0x17001CAB")]
|
||||
public DsaParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B65B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B65C RID: 46684 RVA: 0x00277928 File Offset: 0x00275B28
|
||||
[Token(Token = "0x600B65C")]
|
||||
[Address(RVA = "0x22D30A0", Offset = "0x22D20A0", VA = "0x1822D30A0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
DsaParameters dsaParameters = this.parameters;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B65D RID: 46685 RVA: 0x00277954 File Offset: 0x00275B54
|
||||
[Token(Token = "0x600B65D")]
|
||||
[Address(RVA = "0x22D0B20", Offset = "0x22CFB20", VA = "0x1822D0B20")]
|
||||
protected bool Equals(DsaKeyParameters other)
|
||||
{
|
||||
DsaParameters dsaParameters = other.parameters;
|
||||
bool flag = object.Equals(this.parameters, dsaParameters);
|
||||
if (!flag)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B65E RID: 46686 RVA: 0x00277988 File Offset: 0x00275B88
|
||||
[Token(Token = "0x600B65E")]
|
||||
[Address(RVA = "0x22D0B80", Offset = "0x22CFB80", VA = "0x1822D0B80", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
DsaParameters dsaParameters = this.parameters;
|
||||
if (dsaParameters != 0)
|
||||
{
|
||||
dsaParameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x0400736D RID: 29549
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400736D")]
|
||||
private readonly DsaParameters parameters;
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC0 RID: 7360
|
||||
[Token(Token = "0x2001CC0")]
|
||||
public class DsaParameterGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B640 RID: 46656 RVA: 0x00277540 File Offset: 0x00275740
|
||||
[Token(Token = "0x600B640")]
|
||||
[Address(RVA = "0x22D31A0", Offset = "0x22D21A0", VA = "0x1822D31A0")]
|
||||
public DsaParameterGenerationParameters(int L, int N, int certainty, SecureRandom random)
|
||||
{
|
||||
this.l = L;
|
||||
this.certainty = certainty;
|
||||
this.random = 0;
|
||||
this.n = N;
|
||||
}
|
||||
|
||||
// Token: 0x0600B641 RID: 46657 RVA: 0x00277570 File Offset: 0x00275770
|
||||
[Token(Token = "0x600B641")]
|
||||
[Address(RVA = "0x22D3200", Offset = "0x22D2200", VA = "0x1822D3200")]
|
||||
public DsaParameterGenerationParameters(int L, int N, int certainty, SecureRandom random, int usageIndex)
|
||||
{
|
||||
this.random = 0;
|
||||
this.l = L;
|
||||
this.certainty = certainty;
|
||||
this.usageIndex = 0;
|
||||
this.n = N;
|
||||
}
|
||||
|
||||
// Token: 0x17001CA5 RID: 7333
|
||||
// (get) Token: 0x0600B642 RID: 46658 RVA: 0x002775A8 File Offset: 0x002757A8
|
||||
[Token(Token = "0x17001CA5")]
|
||||
public virtual int L
|
||||
{
|
||||
[Token(Token = "0x600B642")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.l;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA6 RID: 7334
|
||||
// (get) Token: 0x0600B643 RID: 46659 RVA: 0x002775BC File Offset: 0x002757BC
|
||||
[Token(Token = "0x17001CA6")]
|
||||
public virtual int N
|
||||
{
|
||||
[Token(Token = "0x600B643")]
|
||||
[Address(RVA = "0x4936D0", Offset = "0x4926D0", VA = "0x1804936D0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.n;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA7 RID: 7335
|
||||
// (get) Token: 0x0600B644 RID: 46660 RVA: 0x002775D0 File Offset: 0x002757D0
|
||||
[Token(Token = "0x17001CA7")]
|
||||
public virtual int UsageIndex
|
||||
{
|
||||
[Token(Token = "0x600B644")]
|
||||
[Address(RVA = "0x471180", Offset = "0x470180", VA = "0x180471180", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.usageIndex;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA8 RID: 7336
|
||||
// (get) Token: 0x0600B645 RID: 46661 RVA: 0x002775E4 File Offset: 0x002757E4
|
||||
[Token(Token = "0x17001CA8")]
|
||||
public virtual int Certainty
|
||||
{
|
||||
[Token(Token = "0x600B645")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certainty;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CA9 RID: 7337
|
||||
// (get) Token: 0x0600B646 RID: 46662 RVA: 0x002775F8 File Offset: 0x002757F8
|
||||
[Token(Token = "0x17001CA9")]
|
||||
public virtual SecureRandom Random
|
||||
{
|
||||
[Token(Token = "0x600B646")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.random;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007361 RID: 29537
|
||||
[Token(Token = "0x4007361")]
|
||||
public const int DigitalSignatureUsage = 1;
|
||||
|
||||
// Token: 0x04007362 RID: 29538
|
||||
[Token(Token = "0x4007362")]
|
||||
public const int KeyEstablishmentUsage = 2;
|
||||
|
||||
// Token: 0x04007363 RID: 29539
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007363")]
|
||||
private readonly int l;
|
||||
|
||||
// Token: 0x04007364 RID: 29540
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4007364")]
|
||||
private readonly int n;
|
||||
|
||||
// Token: 0x04007365 RID: 29541
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007365")]
|
||||
private readonly int certainty;
|
||||
|
||||
// Token: 0x04007366 RID: 29542
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007366")]
|
||||
private readonly SecureRandom random;
|
||||
|
||||
// Token: 0x04007367 RID: 29543
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007367")]
|
||||
private readonly int usageIndex;
|
||||
}
|
||||
}
|
||||
+174
@@ -0,0 +1,174 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC5 RID: 7365
|
||||
[Token(Token = "0x2001CC5")]
|
||||
public class DsaParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B65F RID: 46687 RVA: 0x002779B0 File Offset: 0x00275BB0
|
||||
[Token(Token = "0x600B65F")]
|
||||
[Address(RVA = "0x22D34A0", Offset = "0x22D24A0", VA = "0x1822D34A0")]
|
||||
public DsaParameters(BigInteger p, BigInteger q, BigInteger g)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B65F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3C:
|
||||
stloc:ArgumentNullException(var_1_46, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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: 0x0600B660 RID: 46688 RVA: 0x00277A04 File Offset: 0x00275C04
|
||||
[Token(Token = "0x600B660")]
|
||||
[Address(RVA = "0x22D35C0", Offset = "0x22D25C0", VA = "0x1822D35C0")]
|
||||
public DsaParameters(BigInteger p, BigInteger q, BigInteger g, DsaValidationParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B660)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaValidationParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:ArgumentNullException(var_1_44, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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: 0x17001CAC RID: 7340
|
||||
// (get) Token: 0x0600B661 RID: 46689 RVA: 0x00277A58 File Offset: 0x00275C58
|
||||
[Token(Token = "0x17001CAC")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600B661")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CAD RID: 7341
|
||||
// (get) Token: 0x0600B662 RID: 46690 RVA: 0x00277A6C File Offset: 0x00275C6C
|
||||
[Token(Token = "0x17001CAD")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x600B662")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CAE RID: 7342
|
||||
// (get) Token: 0x0600B663 RID: 46691 RVA: 0x00277A80 File Offset: 0x00275C80
|
||||
[Token(Token = "0x17001CAE")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600B663")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CAF RID: 7343
|
||||
// (get) Token: 0x0600B664 RID: 46692 RVA: 0x00277A94 File Offset: 0x00275C94
|
||||
[Token(Token = "0x17001CAF")]
|
||||
public DsaValidationParameters ValidationParameters
|
||||
{
|
||||
[Token(Token = "0x600B664")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.validation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B665 RID: 46693 RVA: 0x00277AA8 File Offset: 0x00275CA8
|
||||
[Token(Token = "0x600B665")]
|
||||
[Address(RVA = "0x22D3260", Offset = "0x22D2260", VA = "0x1822D3260", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.q;
|
||||
BigInteger bigInteger3 = this.g;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B666 RID: 46694 RVA: 0x00277AE4 File Offset: 0x00275CE4
|
||||
[Token(Token = "0x600B666")]
|
||||
[Address(RVA = "0x22D3380", Offset = "0x22D2380", VA = "0x1822D3380")]
|
||||
protected bool Equals(DsaParameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.q;
|
||||
BigInteger bigInteger3 = this.g;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B667 RID: 46695 RVA: 0x00277B10 File Offset: 0x00275D10
|
||||
[Token(Token = "0x600B667")]
|
||||
[Address(RVA = "0x22D3420", Offset = "0x22D2420", VA = "0x1822D3420", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.p.Finalize();
|
||||
this.q.Finalize();
|
||||
this.g.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400736E RID: 29550
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400736E")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x0400736F RID: 29551
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400736F")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x04007370 RID: 29552
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007370")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x04007371 RID: 29553
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007371")]
|
||||
private readonly DsaValidationParameters validation;
|
||||
}
|
||||
}
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC6 RID: 7366
|
||||
[Token(Token = "0x2001CC6")]
|
||||
public class DsaPrivateKeyParameters : DsaKeyParameters
|
||||
{
|
||||
// Token: 0x0600B668 RID: 46696 RVA: 0x00277B44 File Offset: 0x00275D44
|
||||
[Token(Token = "0x600B668")]
|
||||
[Address(RVA = "0x22D38D0", Offset = "0x22D28D0", VA = "0x1822D38D0")]
|
||||
public DsaPrivateKeyParameters(BigInteger x, DsaParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B668)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaPrivateKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1A:
|
||||
stloc:ArgumentNullException(var_0_24, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("x")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x17001CB0 RID: 7344
|
||||
// (get) Token: 0x0600B669 RID: 46697 RVA: 0x00277B78 File Offset: 0x00275D78
|
||||
[Token(Token = "0x17001CB0")]
|
||||
public BigInteger X
|
||||
{
|
||||
[Token(Token = "0x600B669")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B66A RID: 46698 RVA: 0x00277B8C File Offset: 0x00275D8C
|
||||
[Token(Token = "0x600B66A")]
|
||||
[Address(RVA = "0x22D36E0", Offset = "0x22D26E0", VA = "0x1822D36E0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.x;
|
||||
DsaParameters parameters = this.parameters;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B66B RID: 46699 RVA: 0x00277BC8 File Offset: 0x00275DC8
|
||||
[Token(Token = "0x600B66B")]
|
||||
[Address(RVA = "0x22D37E0", Offset = "0x22D27E0", VA = "0x1822D37E0")]
|
||||
protected bool Equals(DsaPrivateKeyParameters other)
|
||||
{
|
||||
DsaParameters parameters;
|
||||
do
|
||||
{
|
||||
BigInteger bigInteger = this.x;
|
||||
parameters = other.parameters;
|
||||
}
|
||||
while (!object.Equals(this.parameters, parameters));
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B66C RID: 46700 RVA: 0x00277C04 File Offset: 0x00275E04
|
||||
[Token(Token = "0x600B66C")]
|
||||
[Address(RVA = "0x22D3860", Offset = "0x22D2860", VA = "0x1822D3860", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.x.Finalize();
|
||||
int hashCode = base.GetHashCode();
|
||||
DsaParameters parameters = this.parameters;
|
||||
if (parameters != 0)
|
||||
{
|
||||
parameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04007372 RID: 29554
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007372")]
|
||||
private readonly BigInteger x;
|
||||
}
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC7 RID: 7367
|
||||
[Token(Token = "0x2001CC7")]
|
||||
public class DsaPublicKeyParameters : DsaKeyParameters
|
||||
{
|
||||
// Token: 0x0600B66D RID: 46701 RVA: 0x00277C3C File Offset: 0x00275E3C
|
||||
[Token(Token = "0x600B66D")]
|
||||
[Address(RVA = "0x22D3A60", Offset = "0x22D2A60", VA = "0x1822D3A60")]
|
||||
private static BigInteger Validate(BigInteger y, DsaParameters parameters)
|
||||
{
|
||||
if (parameters != 0)
|
||||
{
|
||||
BigInteger two = BigInteger.Two;
|
||||
int num = y.CompareTo(two);
|
||||
BigInteger p = parameters.p;
|
||||
BigInteger two2 = BigInteger.Two;
|
||||
BigInteger bigInteger = p.Subtract(two2);
|
||||
int num2 = y.CompareTo(bigInteger);
|
||||
BigInteger p2 = parameters.p;
|
||||
BigInteger q = parameters.q;
|
||||
BigInteger bigInteger2 = y.ModPow(q, p2);
|
||||
}
|
||||
return y;
|
||||
}
|
||||
|
||||
// Token: 0x0600B66E RID: 46702 RVA: 0x00277CA4 File Offset: 0x00275EA4
|
||||
[Token(Token = "0x600B66E")]
|
||||
[Address(RVA = "0x22D3C00", Offset = "0x22D2C00", VA = "0x1822D3C00")]
|
||||
public DsaPublicKeyParameters(BigInteger y, DsaParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B66E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaPublicKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_6C:
|
||||
stloc:ArgumentNullException(var_10_76, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("y")))
|
||||
stloc:ArgumentException(var_11_82, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("y value does not appear to be in correct group")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x17001CB1 RID: 7345
|
||||
// (get) Token: 0x0600B66F RID: 46703 RVA: 0x00277D34 File Offset: 0x00275F34
|
||||
[Token(Token = "0x17001CB1")]
|
||||
public BigInteger Y
|
||||
{
|
||||
[Token(Token = "0x600B66F")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B670 RID: 46704 RVA: 0x00277D48 File Offset: 0x00275F48
|
||||
[Token(Token = "0x600B670")]
|
||||
[Address(RVA = "0x22D3960", Offset = "0x22D2960", VA = "0x1822D3960", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.y;
|
||||
DsaParameters parameters = this.parameters;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B671 RID: 46705 RVA: 0x00277D84 File Offset: 0x00275F84
|
||||
[Token(Token = "0x600B671")]
|
||||
[Address(RVA = "0x22D37E0", Offset = "0x22D27E0", VA = "0x1822D37E0")]
|
||||
protected bool Equals(DsaPublicKeyParameters other)
|
||||
{
|
||||
DsaParameters parameters;
|
||||
do
|
||||
{
|
||||
BigInteger bigInteger = this.y;
|
||||
parameters = other.parameters;
|
||||
}
|
||||
while (!object.Equals(this.parameters, parameters));
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B672 RID: 46706 RVA: 0x00277DC0 File Offset: 0x00275FC0
|
||||
[Token(Token = "0x600B672")]
|
||||
[Address(RVA = "0x22D3860", Offset = "0x22D2860", VA = "0x1822D3860", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.y.Finalize();
|
||||
int hashCode = base.GetHashCode();
|
||||
DsaParameters parameters = this.parameters;
|
||||
if (parameters != 0)
|
||||
{
|
||||
parameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04007373 RID: 29555
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007373")]
|
||||
private readonly BigInteger y;
|
||||
}
|
||||
}
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC8 RID: 7368
|
||||
[Token(Token = "0x2001CC8")]
|
||||
public class DsaValidationParameters
|
||||
{
|
||||
// Token: 0x0600B673 RID: 46707 RVA: 0x00277DF8 File Offset: 0x00275FF8
|
||||
[Token(Token = "0x600B673")]
|
||||
[Address(RVA = "0x22D4040", Offset = "0x22D3040", VA = "0x1822D4040")]
|
||||
public DsaValidationParameters(byte[] seed, int counter)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B673)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaValidationParameters::.ctor(System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:ArgumentNullException(var_0_2C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("seed")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B674 RID: 46708 RVA: 0x00277E34 File Offset: 0x00276034
|
||||
[Token(Token = "0x600B674")]
|
||||
[Address(RVA = "0x22D4110", Offset = "0x22D3110", VA = "0x1822D4110")]
|
||||
public DsaValidationParameters(byte[] seed, int counter, int usageIndex)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B674)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DsaValidationParameters::.ctor(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_19:
|
||||
stloc:ArgumentNullException(var_0_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("seed")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B675 RID: 46709 RVA: 0x00277E64 File Offset: 0x00276064
|
||||
[Token(Token = "0x600B675")]
|
||||
[Address(RVA = "0x22D3FC0", Offset = "0x22D2FC0", VA = "0x1822D3FC0", Slot = "4")]
|
||||
public virtual byte[] GetSeed()
|
||||
{
|
||||
byte[] array = this.seed;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001CB2 RID: 7346
|
||||
// (get) Token: 0x0600B676 RID: 46710 RVA: 0x00277E80 File Offset: 0x00276080
|
||||
[Token(Token = "0x17001CB2")]
|
||||
public virtual int Counter
|
||||
{
|
||||
[Token(Token = "0x600B676")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.counter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CB3 RID: 7347
|
||||
// (get) Token: 0x0600B677 RID: 46711 RVA: 0x00277E94 File Offset: 0x00276094
|
||||
[Token(Token = "0x17001CB3")]
|
||||
public virtual int UsageIndex
|
||||
{
|
||||
[Token(Token = "0x600B677")]
|
||||
[Address(RVA = "0x497590", Offset = "0x496590", VA = "0x180497590", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.usageIndex;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B678 RID: 46712 RVA: 0x00277EA8 File Offset: 0x002760A8
|
||||
[Token(Token = "0x600B678")]
|
||||
[Address(RVA = "0x22D3E00", Offset = "0x22D2E00", VA = "0x1822D3E00", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B679 RID: 46713 RVA: 0x00277EC8 File Offset: 0x002760C8
|
||||
[Token(Token = "0x600B679")]
|
||||
[Address(RVA = "0x22D3EB0", Offset = "0x22D2EB0", VA = "0x1822D3EB0", Slot = "7")]
|
||||
protected virtual bool Equals(DsaValidationParameters other)
|
||||
{
|
||||
int num = other.counter;
|
||||
if (this.counter != num)
|
||||
{
|
||||
}
|
||||
byte[] array = this.seed;
|
||||
byte[] array2 = other.seed;
|
||||
return Arrays.AreEqual(array, array2);
|
||||
}
|
||||
|
||||
// Token: 0x0600B67A RID: 46714 RVA: 0x00277F04 File Offset: 0x00276104
|
||||
[Token(Token = "0x600B67A")]
|
||||
[Address(RVA = "0x22D3F40", Offset = "0x22D2F40", VA = "0x1822D3F40", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = this.counter;
|
||||
return Arrays.GetHashCode(this.seed);
|
||||
}
|
||||
|
||||
// Token: 0x04007374 RID: 29556
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007374")]
|
||||
private readonly byte[] seed;
|
||||
|
||||
// Token: 0x04007375 RID: 29557
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007375")]
|
||||
private readonly int counter;
|
||||
|
||||
// Token: 0x04007376 RID: 29558
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4007376")]
|
||||
private readonly int usageIndex;
|
||||
}
|
||||
}
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CC9 RID: 7369
|
||||
[Token(Token = "0x2001CC9")]
|
||||
public class ECDomainParameters
|
||||
{
|
||||
// Token: 0x0600B67B RID: 46715 RVA: 0x00277F24 File Offset: 0x00276124
|
||||
[Token(Token = "0x600B67B")]
|
||||
[Address(RVA = "0x22D4760", Offset = "0x22D3760", VA = "0x1822D4760")]
|
||||
public ECDomainParameters(ECCurve curve, ECPoint g, BigInteger n)
|
||||
{
|
||||
BigInteger one = BigInteger.One;
|
||||
}
|
||||
|
||||
// Token: 0x0600B67C RID: 46716 RVA: 0x00277F3C File Offset: 0x0027613C
|
||||
[Token(Token = "0x600B67C")]
|
||||
[Address(RVA = "0x22D45D0", Offset = "0x22D35D0", VA = "0x1822D45D0")]
|
||||
public ECDomainParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B67D RID: 46717 RVA: 0x00277F4C File Offset: 0x0027614C
|
||||
[Token(Token = "0x600B67D")]
|
||||
[Address(RVA = "0x22D4600", Offset = "0x22D3600", VA = "0x1822D4600")]
|
||||
public ECDomainParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h, byte[] seed)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B67D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECDomainParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_49:
|
||||
stloc:ArgumentNullException(var_3_53, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("g")))
|
||||
}
|
||||
|
||||
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: 0x17001CB4 RID: 7348
|
||||
// (get) Token: 0x0600B67E RID: 46718 RVA: 0x00277FAC File Offset: 0x002761AC
|
||||
[Token(Token = "0x17001CB4")]
|
||||
public ECCurve Curve
|
||||
{
|
||||
[Token(Token = "0x600B67E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.curve;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CB5 RID: 7349
|
||||
// (get) Token: 0x0600B67F RID: 46719 RVA: 0x00277FC0 File Offset: 0x002761C0
|
||||
[Token(Token = "0x17001CB5")]
|
||||
public ECPoint G
|
||||
{
|
||||
[Token(Token = "0x600B67F")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CB6 RID: 7350
|
||||
// (get) Token: 0x0600B680 RID: 46720 RVA: 0x00277FD4 File Offset: 0x002761D4
|
||||
[Token(Token = "0x17001CB6")]
|
||||
public BigInteger N
|
||||
{
|
||||
[Token(Token = "0x600B680")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.n;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CB7 RID: 7351
|
||||
// (get) Token: 0x0600B681 RID: 46721 RVA: 0x00277FE8 File Offset: 0x002761E8
|
||||
[Token(Token = "0x17001CB7")]
|
||||
public BigInteger H
|
||||
{
|
||||
[Token(Token = "0x600B681")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.h;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CB8 RID: 7352
|
||||
// (get) Token: 0x0600B682 RID: 46722 RVA: 0x00277FFC File Offset: 0x002761FC
|
||||
[Token(Token = "0x17001CB8")]
|
||||
public BigInteger HInv
|
||||
{
|
||||
[Token(Token = "0x600B682")]
|
||||
[Address(RVA = "0x22D4810", Offset = "0x22D3810", VA = "0x1822D4810")]
|
||||
get
|
||||
{
|
||||
int num = 0;
|
||||
BigInteger bigInteger = this.hInv;
|
||||
if (bigInteger == 0)
|
||||
{
|
||||
BigInteger bigInteger2 = this.h;
|
||||
BigInteger bigInteger3 = this.n;
|
||||
BigInteger bigInteger4 = bigInteger2.ModInverse(bigInteger3);
|
||||
this.hInv = bigInteger4;
|
||||
}
|
||||
Monitor.Exit(this);
|
||||
if (num == 0)
|
||||
{
|
||||
return bigInteger;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B683 RID: 46723 RVA: 0x00278048 File Offset: 0x00276248
|
||||
[Token(Token = "0x600B683")]
|
||||
[Address(RVA = "0x22D4420", Offset = "0x22D3420", VA = "0x1822D4420")]
|
||||
public byte[] GetSeed()
|
||||
{
|
||||
return Arrays.Clone(this.seed);
|
||||
}
|
||||
|
||||
// Token: 0x0600B684 RID: 46724 RVA: 0x00278060 File Offset: 0x00276260
|
||||
[Token(Token = "0x600B684")]
|
||||
[Address(RVA = "0x22D42B0", Offset = "0x22D32B0", VA = "0x1822D42B0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B685 RID: 46725 RVA: 0x00278080 File Offset: 0x00276280
|
||||
[Token(Token = "0x600B685")]
|
||||
[Address(RVA = "0x22D41F0", Offset = "0x22D31F0", VA = "0x1822D41F0", Slot = "4")]
|
||||
protected virtual bool Equals(ECDomainParameters other)
|
||||
{
|
||||
ECCurve eccurve = this.curve;
|
||||
ECPoint ecpoint = this.g;
|
||||
ECPoint ecpoint2;
|
||||
if (ecpoint2 != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.n;
|
||||
BigInteger bigInteger2 = this.h;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B686 RID: 46726 RVA: 0x002780B8 File Offset: 0x002762B8
|
||||
[Token(Token = "0x600B686")]
|
||||
[Address(RVA = "0x22D4360", Offset = "0x22D3360", VA = "0x1822D4360", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.curve.Finalize();
|
||||
this.g.Finalize();
|
||||
this.n.Finalize();
|
||||
this.h.Finalize();
|
||||
long num2;
|
||||
long num = num2 * (long)((uint)37);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B687 RID: 46727 RVA: 0x002780FC File Offset: 0x002762FC
|
||||
[Token(Token = "0x600B687")]
|
||||
[Address(RVA = "0x22D4480", Offset = "0x22D3480", VA = "0x1822D4480")]
|
||||
internal static ECPoint Validate(ECCurve c, ECPoint q)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B687)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECDomainParameters::Validate(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2B:
|
||||
stloc:ArgumentException(var_4_3A, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Point not on curve"), 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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x04007377 RID: 29559
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007377")]
|
||||
internal ECCurve curve;
|
||||
|
||||
// Token: 0x04007378 RID: 29560
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007378")]
|
||||
internal byte[] seed;
|
||||
|
||||
// Token: 0x04007379 RID: 29561
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007379")]
|
||||
internal ECPoint g;
|
||||
|
||||
// Token: 0x0400737A RID: 29562
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400737A")]
|
||||
internal BigInteger n;
|
||||
|
||||
// Token: 0x0400737B RID: 29563
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400737B")]
|
||||
internal BigInteger h;
|
||||
|
||||
// Token: 0x0400737C RID: 29564
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400737C")]
|
||||
internal BigInteger hInv;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CCA RID: 7370
|
||||
[Token(Token = "0x2001CCA")]
|
||||
public class ECKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B688 RID: 46728 RVA: 0x00278144 File Offset: 0x00276344
|
||||
[Token(Token = "0x600B688")]
|
||||
[Address(RVA = "0x22D48D0", Offset = "0x22D38D0", VA = "0x1822D48D0")]
|
||||
public ECKeyGenerationParameters(ECDomainParameters domainParameters, SecureRandom random)
|
||||
{
|
||||
int bitLength = domainParameters.n.BitLength;
|
||||
base..ctor(random, bitLength);
|
||||
this.domainParams = domainParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B689 RID: 46729 RVA: 0x00278174 File Offset: 0x00276374
|
||||
[Token(Token = "0x600B689")]
|
||||
[Address(RVA = "0x22D4930", Offset = "0x22D3930", VA = "0x1822D4930")]
|
||||
public ECKeyGenerationParameters(DerObjectIdentifier publicKeyParamSet, SecureRandom random)
|
||||
{
|
||||
ECDomainParameters ecdomainParameters = ECKeyParameters.LookupParameters(publicKeyParamSet);
|
||||
int bitLength = ecdomainParameters.n.BitLength;
|
||||
base..ctor(random, bitLength);
|
||||
this.domainParams = ecdomainParameters;
|
||||
this.publicKeyParamSet = publicKeyParamSet;
|
||||
}
|
||||
|
||||
// Token: 0x17001CB9 RID: 7353
|
||||
// (get) Token: 0x0600B68A RID: 46730 RVA: 0x002781B0 File Offset: 0x002763B0
|
||||
[Token(Token = "0x17001CB9")]
|
||||
public ECDomainParameters DomainParameters
|
||||
{
|
||||
[Token(Token = "0x600B68A")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.domainParams;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CBA RID: 7354
|
||||
// (get) Token: 0x0600B68B RID: 46731 RVA: 0x002781C4 File Offset: 0x002763C4
|
||||
[Token(Token = "0x17001CBA")]
|
||||
public DerObjectIdentifier PublicKeyParamSet
|
||||
{
|
||||
[Token(Token = "0x600B68B")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400737D RID: 29565
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400737D")]
|
||||
private readonly ECDomainParameters domainParams;
|
||||
|
||||
// Token: 0x0400737E RID: 29566
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400737E")]
|
||||
private readonly DerObjectIdentifier publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
+247
@@ -0,0 +1,247 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CCB RID: 7371
|
||||
[Token(Token = "0x2001CCB")]
|
||||
public abstract class ECKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B68C RID: 46732 RVA: 0x002781D8 File Offset: 0x002763D8
|
||||
[Token(Token = "0x600B68C")]
|
||||
[Address(RVA = "0x22D5280", Offset = "0x22D4280", VA = "0x1822D5280")]
|
||||
protected ECKeyParameters(string algorithm, bool isPrivate, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B68C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECKeyParameters::.ctor(System.String,System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECDomainParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentNullException(var_2_3A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("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: 0x0600B68D RID: 46733 RVA: 0x00278220 File Offset: 0x00276420
|
||||
[Token(Token = "0x600B68D")]
|
||||
[Address(RVA = "0x22D5170", Offset = "0x22D4170", VA = "0x1822D5170")]
|
||||
protected ECKeyParameters(string algorithm, bool isPrivate, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B68D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECKeyParameters::.ctor(System.String,System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3E:
|
||||
stloc:ArgumentNullException(var_3_48, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("publicKeyParamSet")))
|
||||
}
|
||||
|
||||
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: 0x17001CBB RID: 7355
|
||||
// (get) Token: 0x0600B68E RID: 46734 RVA: 0x00278278 File Offset: 0x00276478
|
||||
[Token(Token = "0x17001CBB")]
|
||||
public string AlgorithmName
|
||||
{
|
||||
[Token(Token = "0x600B68E")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.algorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CBC RID: 7356
|
||||
// (get) Token: 0x0600B68F RID: 46735 RVA: 0x0027828C File Offset: 0x0027648C
|
||||
[Token(Token = "0x17001CBC")]
|
||||
public ECDomainParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B68F")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CBD RID: 7357
|
||||
// (get) Token: 0x0600B690 RID: 46736 RVA: 0x002782A0 File Offset: 0x002764A0
|
||||
[Token(Token = "0x17001CBD")]
|
||||
public DerObjectIdentifier PublicKeyParamSet
|
||||
{
|
||||
[Token(Token = "0x600B690")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B691 RID: 46737 RVA: 0x002782B4 File Offset: 0x002764B4
|
||||
[Token(Token = "0x600B691")]
|
||||
[Address(RVA = "0x22D4B70", Offset = "0x22D3B70", VA = "0x1822D4B70", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B692 RID: 46738 RVA: 0x002782D4 File Offset: 0x002764D4
|
||||
[Token(Token = "0x600B692")]
|
||||
[Address(RVA = "0x22D4B10", Offset = "0x22D3B10", VA = "0x1822D4B10")]
|
||||
protected bool Equals(ECKeyParameters other)
|
||||
{
|
||||
ECDomainParameters ecdomainParameters = this.parameters;
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B693 RID: 46739 RVA: 0x002782F8 File Offset: 0x002764F8
|
||||
[Token(Token = "0x600B693")]
|
||||
[Address(RVA = "0x22D4C20", Offset = "0x22D3C20", VA = "0x1822D4C20", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.parameters.Finalize();
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x0600B694 RID: 46740 RVA: 0x0027831C File Offset: 0x0027651C
|
||||
[Token(Token = "0x600B694")]
|
||||
[Address(RVA = "0x22D49E0", Offset = "0x22D39E0", VA = "0x1822D49E0")]
|
||||
internal ECKeyGenerationParameters CreateKeyGenerationParameters(SecureRandom random)
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = this.publicKeyParamSet;
|
||||
if (derObjectIdentifier == 0)
|
||||
{
|
||||
ECDomainParameters ecdomainParameters = this.parameters;
|
||||
int bitLength = ecdomainParameters.n.BitLength;
|
||||
ECKeyGenerationParameters eckeyGenerationParameters;
|
||||
eckeyGenerationParameters.domainParams = ecdomainParameters;
|
||||
return eckeyGenerationParameters;
|
||||
}
|
||||
ECDomainParameters ecdomainParameters2 = ECKeyParameters.LookupParameters(derObjectIdentifier);
|
||||
int bitLength2 = ecdomainParameters2.n.BitLength;
|
||||
ECKeyGenerationParameters eckeyGenerationParameters2;
|
||||
eckeyGenerationParameters2.domainParams = ecdomainParameters2;
|
||||
eckeyGenerationParameters2.publicKeyParamSet = derObjectIdentifier;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B695 RID: 46741 RVA: 0x0027837C File Offset: 0x0027657C
|
||||
[Token(Token = "0x600B695")]
|
||||
[Address(RVA = "0x22D4DE0", Offset = "0x22D3DE0", VA = "0x1822D4DE0")]
|
||||
internal static string VerifyAlgorithmName(string algorithm)
|
||||
{
|
||||
string text = Platform.ToUpperInvariant(algorithm);
|
||||
string[] array = ECKeyParameters.algorithms;
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0600B696 RID: 46742 RVA: 0x002783A0 File Offset: 0x002765A0
|
||||
[Token(Token = "0x600B696")]
|
||||
[Address(RVA = "0x22D4C70", Offset = "0x22D3C70", VA = "0x1822D4C70")]
|
||||
internal static ECDomainParameters LookupParameters(DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B696)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECDomainParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECKeyParameters::LookupParameters(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5D:
|
||||
stloc:ArgumentException(var_10_6C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("OID is not a valid public key parameter set"), ldstr:string("publicKeyParamSet")))
|
||||
}
|
||||
|
||||
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: 0x0600B697 RID: 46743 RVA: 0x0027841C File Offset: 0x0027661C
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600B697")]
|
||||
[Address(RVA = "0x22D4EF0", Offset = "0x22D3EF0", VA = "0x1822D4EF0")]
|
||||
static ECKeyParameters()
|
||||
{
|
||||
string[] array = new string[6];
|
||||
if ("EC" != 0)
|
||||
{
|
||||
}
|
||||
array[0] = "EC";
|
||||
if ("ECDSA" != 0)
|
||||
{
|
||||
}
|
||||
array[1] = "ECDSA";
|
||||
if ("ECDH" != 0)
|
||||
{
|
||||
}
|
||||
array[2] = "ECDH";
|
||||
if ("ECDHC" != 0)
|
||||
{
|
||||
}
|
||||
array[3] = "ECDHC";
|
||||
if ("ECGOST3410" != 0)
|
||||
{
|
||||
}
|
||||
array[4] = "ECGOST3410";
|
||||
if ("ECMQV" != 0)
|
||||
{
|
||||
}
|
||||
array[5] = "ECMQV";
|
||||
ECKeyParameters.algorithms = array;
|
||||
}
|
||||
|
||||
// Token: 0x0400737F RID: 29567
|
||||
[Token(Token = "0x400737F")]
|
||||
private static readonly string[] algorithms;
|
||||
|
||||
// Token: 0x04007380 RID: 29568
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007380")]
|
||||
private readonly string algorithm;
|
||||
|
||||
// Token: 0x04007381 RID: 29569
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007381")]
|
||||
private readonly ECDomainParameters parameters;
|
||||
|
||||
// Token: 0x04007382 RID: 29570
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007382")]
|
||||
private readonly DerObjectIdentifier publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CCC RID: 7372
|
||||
[Token(Token = "0x2001CCC")]
|
||||
public class ECPrivateKeyParameters : ECKeyParameters
|
||||
{
|
||||
// Token: 0x0600B698 RID: 46744 RVA: 0x002784B4 File Offset: 0x002766B4
|
||||
[Token(Token = "0x600B698")]
|
||||
[Address(RVA = "0x22D5590", Offset = "0x22D4590", VA = "0x1822D5590")]
|
||||
public ECPrivateKeyParameters(BigInteger d, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B698)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECDomainParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_19:
|
||||
stloc:ArgumentNullException(var_1_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("d")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B699 RID: 46745 RVA: 0x002784E4 File Offset: 0x002766E4
|
||||
[Token(Token = "0x600B699")]
|
||||
[Address(RVA = "0x22D5820", Offset = "0x22D4820", VA = "0x1822D5820")]
|
||||
[Obsolete]
|
||||
public ECPrivateKeyParameters(BigInteger d, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B699)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_19:
|
||||
stloc:ArgumentNullException(var_1_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("d")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B69A RID: 46746 RVA: 0x00278514 File Offset: 0x00276714
|
||||
[Token(Token = "0x600B69A")]
|
||||
[Address(RVA = "0x22D5680", Offset = "0x22D4680", VA = "0x1822D5680")]
|
||||
public ECPrivateKeyParameters(string algorithm, BigInteger d, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B69A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECDomainParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_15:
|
||||
stloc:ArgumentNullException(var_1_1F, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("d")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B69B RID: 46747 RVA: 0x00278540 File Offset: 0x00276740
|
||||
[Token(Token = "0x600B69B")]
|
||||
[Address(RVA = "0x22D5750", Offset = "0x22D4750", VA = "0x1822D5750")]
|
||||
public ECPrivateKeyParameters(string algorithm, BigInteger d, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B69B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_15:
|
||||
stloc:ArgumentNullException(var_1_1F, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("d")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x17001CBE RID: 7358
|
||||
// (get) Token: 0x0600B69C RID: 46748 RVA: 0x0027856C File Offset: 0x0027676C
|
||||
[Token(Token = "0x17001CBE")]
|
||||
public BigInteger D
|
||||
{
|
||||
[Token(Token = "0x600B69C")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.d;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B69D RID: 46749 RVA: 0x00278580 File Offset: 0x00276780
|
||||
[Token(Token = "0x600B69D")]
|
||||
[Address(RVA = "0x22D5410", Offset = "0x22D4410", VA = "0x1822D5410", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.d;
|
||||
ECDomainParameters parameters = this.parameters;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B69E RID: 46750 RVA: 0x002785B8 File Offset: 0x002767B8
|
||||
[Token(Token = "0x600B69E")]
|
||||
[Address(RVA = "0x22D5380", Offset = "0x22D4380", VA = "0x1822D5380")]
|
||||
protected bool Equals(ECPrivateKeyParameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.d;
|
||||
ECDomainParameters parameters = this.parameters;
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B69F RID: 46751 RVA: 0x002785E4 File Offset: 0x002767E4
|
||||
[Token(Token = "0x600B69F")]
|
||||
[Address(RVA = "0x22D5520", Offset = "0x22D4520", VA = "0x1822D5520", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.d.Finalize();
|
||||
this.parameters.Finalize();
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x04007383 RID: 29571
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007383")]
|
||||
private readonly BigInteger d;
|
||||
}
|
||||
}
|
||||
+193
@@ -0,0 +1,193 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CCD RID: 7373
|
||||
[Token(Token = "0x2001CCD")]
|
||||
public class ECPublicKeyParameters : ECKeyParameters
|
||||
{
|
||||
// Token: 0x0600B6A0 RID: 46752 RVA: 0x00278614 File Offset: 0x00276814
|
||||
[Token(Token = "0x600B6A0")]
|
||||
[Address(RVA = "0x22D5C80", Offset = "0x22D4C80", VA = "0x1822D5C80")]
|
||||
public ECPublicKeyParameters(ECPoint q, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6A0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECDomainParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2C:
|
||||
stloc:ArgumentNullException(var_5_36, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B6A1 RID: 46753 RVA: 0x00278658 File Offset: 0x00276858
|
||||
[Token(Token = "0x600B6A1")]
|
||||
[Address(RVA = "0x22D5A80", Offset = "0x22D4A80", VA = "0x1822D5A80")]
|
||||
[Obsolete]
|
||||
public ECPublicKeyParameters(ECPoint q, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6A1)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2D:
|
||||
stloc:ArgumentNullException(var_3_37, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B6A2 RID: 46754 RVA: 0x0027869C File Offset: 0x0027689C
|
||||
[Token(Token = "0x600B6A2")]
|
||||
[Address(RVA = "0x22D5DA0", Offset = "0x22D4DA0", VA = "0x1822D5DA0")]
|
||||
public ECPublicKeyParameters(string algorithm, ECPoint q, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6A2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECDomainParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_28:
|
||||
stloc:ArgumentNullException(var_5_32, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B6A3 RID: 46755 RVA: 0x002786DC File Offset: 0x002768DC
|
||||
[Token(Token = "0x600B6A3")]
|
||||
[Address(RVA = "0x22D5B80", Offset = "0x22D4B80", VA = "0x1822D5B80")]
|
||||
public ECPublicKeyParameters(string algorithm, ECPoint q, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6A3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECPoint,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:ArgumentNullException(var_3_33, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x17001CBF RID: 7359
|
||||
// (get) Token: 0x0600B6A4 RID: 46756 RVA: 0x0027871C File Offset: 0x0027691C
|
||||
[Token(Token = "0x17001CBF")]
|
||||
public ECPoint Q
|
||||
{
|
||||
[Token(Token = "0x600B6A4")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6A5 RID: 46757 RVA: 0x00278730 File Offset: 0x00276930
|
||||
[Token(Token = "0x600B6A5")]
|
||||
[Address(RVA = "0x22D58E0", Offset = "0x22D48E0", VA = "0x1822D58E0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
ECPoint ecpoint = this.q;
|
||||
ECPoint ecpoint2;
|
||||
if (ecpoint2 != 0)
|
||||
{
|
||||
ECDomainParameters parameters = this.parameters;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6A6 RID: 46758 RVA: 0x0027876C File Offset: 0x0027696C
|
||||
[Token(Token = "0x600B6A6")]
|
||||
[Address(RVA = "0x22D59F0", Offset = "0x22D49F0", VA = "0x1822D59F0")]
|
||||
protected bool Equals(ECPublicKeyParameters other)
|
||||
{
|
||||
ECPoint ecpoint = this.q;
|
||||
ECPoint ecpoint2;
|
||||
if (ecpoint2 == 0)
|
||||
{
|
||||
}
|
||||
ECDomainParameters parameters = this.parameters;
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6A7 RID: 46759 RVA: 0x0027879C File Offset: 0x0027699C
|
||||
[Token(Token = "0x600B6A7")]
|
||||
[Address(RVA = "0x22D5520", Offset = "0x22D4520", VA = "0x1822D5520", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.q.Finalize();
|
||||
this.parameters.Finalize();
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x04007384 RID: 29572
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007384")]
|
||||
private readonly ECPoint q;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CCE RID: 7374
|
||||
[Token(Token = "0x2001CCE")]
|
||||
public class Ed25519KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B6A8 RID: 46760 RVA: 0x002787CC File Offset: 0x002769CC
|
||||
[Token(Token = "0x600B6A8")]
|
||||
[Address(RVA = "0x22D5EA0", Offset = "0x22D4EA0", VA = "0x1822D5EA0")]
|
||||
public Ed25519KeyGenerationParameters(SecureRandom random)
|
||||
: base(random, 256)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CCF RID: 7375
|
||||
[Token(Token = "0x2001CCF")]
|
||||
public sealed class Ed25519PrivateKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B6A9 RID: 46761 RVA: 0x002787E8 File Offset: 0x002769E8
|
||||
[Token(Token = "0x600B6A9")]
|
||||
[Address(RVA = "0x22D66D0", Offset = "0x22D56D0", VA = "0x1822D66D0")]
|
||||
public Ed25519PrivateKeyParameters(SecureRandom random)
|
||||
{
|
||||
byte[] array = new byte[Ed25519PrivateKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
base..ctor(true);
|
||||
byte[] array2 = this.data;
|
||||
Ed25519.GeneratePrivateKey(random, array2);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6AA RID: 46762 RVA: 0x0027881C File Offset: 0x00276A1C
|
||||
[Token(Token = "0x600B6AA")]
|
||||
[Address(RVA = "0x22D6610", Offset = "0x22D5610", VA = "0x1822D6610")]
|
||||
public Ed25519PrivateKeyParameters(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = new byte[Ed25519PrivateKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
base..ctor(true);
|
||||
int num = 0;
|
||||
byte[] array2 = this.data;
|
||||
int keySize = Ed25519PrivateKeyParameters.KeySize;
|
||||
Array.Copy(buf, off, array2, num, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6AB RID: 46763 RVA: 0x00278860 File Offset: 0x00276A60
|
||||
[Token(Token = "0x600B6AB")]
|
||||
[Address(RVA = "0x22D6520", Offset = "0x22D5520", VA = "0x1822D6520")]
|
||||
public Ed25519PrivateKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6AB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Ed25519PrivateKeyParameters::.ctor(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:EndOfStreamException(var_4_3D, newobj:EndOfStreamException(EndOfStreamException::.ctor, ldstr:string("EOF encountered in middle of Ed25519 private key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B6AC RID: 46764 RVA: 0x002788AC File Offset: 0x00276AAC
|
||||
[Token(Token = "0x600B6AC")]
|
||||
[Address(RVA = "0x22D5EB0", Offset = "0x22D4EB0", VA = "0x1822D5EB0")]
|
||||
public void Encode(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = this.data;
|
||||
int num = 0;
|
||||
int keySize = Ed25519PrivateKeyParameters.KeySize;
|
||||
Array.Copy(array, num, buf, off, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6AD RID: 46765 RVA: 0x002788D4 File Offset: 0x00276AD4
|
||||
[Token(Token = "0x600B6AD")]
|
||||
[Address(RVA = "0x22D6090", Offset = "0x22D5090", VA = "0x1822D6090")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6AE RID: 46766 RVA: 0x002788EC File Offset: 0x00276AEC
|
||||
[Token(Token = "0x600B6AE")]
|
||||
[Address(RVA = "0x22D5F50", Offset = "0x22D4F50", VA = "0x1822D5F50")]
|
||||
public Ed25519PublicKeyParameters GeneratePublicKey()
|
||||
{
|
||||
byte[] array = new byte[Ed25519.PublicKeySize];
|
||||
byte[] array2 = this.data;
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
Ed25519.GeneratePublicKey(array2, num2, array, num);
|
||||
int num3;
|
||||
Ed25519PublicKeyParameters ed25519PublicKeyParameters = new Ed25519PublicKeyParameters(num3);
|
||||
byte[] array3 = new byte[Ed25519PublicKeyParameters.KeySize];
|
||||
ed25519PublicKeyParameters.data = array3;
|
||||
num3 = 0;
|
||||
int num4 = 0;
|
||||
byte[] array4 = ed25519PublicKeyParameters.data;
|
||||
int num5 = 0;
|
||||
int keySize = Ed25519PublicKeyParameters.KeySize;
|
||||
Array.Copy(array, num5, array4, num4, keySize);
|
||||
return ed25519PublicKeyParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6AF RID: 46767 RVA: 0x00278964 File Offset: 0x00276B64
|
||||
[Token(Token = "0x600B6AF")]
|
||||
[Address(RVA = "0x22D60F0", Offset = "0x22D50F0", VA = "0x1822D60F0")]
|
||||
public void Sign(Ed25519.Algorithm algorithm, Ed25519PublicKeyParameters publicKey, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6AF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Ed25519PrivateKeyParameters::Sign(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032.Ed25519/Algorithm,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Ed25519PublicKeyParameters,System.Byte[],System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_86:
|
||||
stloc:ArgumentException(var_15_90, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("algorithm")))
|
||||
}
|
||||
|
||||
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: 0x04007385 RID: 29573
|
||||
[Token(Token = "0x4007385")]
|
||||
public static readonly int KeySize = Ed25519.SecretKeySize;
|
||||
|
||||
// Token: 0x04007386 RID: 29574
|
||||
[Token(Token = "0x4007386")]
|
||||
public static readonly int SignatureSize = Ed25519.SignatureSize;
|
||||
|
||||
// Token: 0x04007387 RID: 29575
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007387")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD0 RID: 7376
|
||||
[Token(Token = "0x2001CD0")]
|
||||
public sealed class Ed25519PublicKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B6B1 RID: 46769 RVA: 0x00278A28 File Offset: 0x00276C28
|
||||
[Token(Token = "0x600B6B1")]
|
||||
[Address(RVA = "0x22D69F0", Offset = "0x22D59F0", VA = "0x1822D69F0")]
|
||||
public Ed25519PublicKeyParameters(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = new byte[Ed25519PublicKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
int num = 0;
|
||||
base..ctor(num != 0);
|
||||
int num2 = 0;
|
||||
byte[] array2 = this.data;
|
||||
int keySize = Ed25519PublicKeyParameters.KeySize;
|
||||
Array.Copy(buf, off, array2, num2, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6B2 RID: 46770 RVA: 0x00278A6C File Offset: 0x00276C6C
|
||||
[Token(Token = "0x600B6B2")]
|
||||
[Address(RVA = "0x22D6900", Offset = "0x22D5900", VA = "0x1822D6900")]
|
||||
public Ed25519PublicKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6B2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Ed25519PublicKeyParameters::.ctor(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_37:
|
||||
stloc:EndOfStreamException(var_5_41, newobj:EndOfStreamException(EndOfStreamException::.ctor, ldstr:string("EOF encountered in middle of Ed25519 public key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B6B3 RID: 46771 RVA: 0x00278ABC File Offset: 0x00276CBC
|
||||
[Token(Token = "0x600B6B3")]
|
||||
[Address(RVA = "0x22D6790", Offset = "0x22D5790", VA = "0x1822D6790")]
|
||||
public void Encode(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = this.data;
|
||||
int num = 0;
|
||||
int keySize = Ed25519PublicKeyParameters.KeySize;
|
||||
Array.Copy(array, num, buf, off, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6B4 RID: 46772 RVA: 0x00278AE4 File Offset: 0x00276CE4
|
||||
[Token(Token = "0x600B6B4")]
|
||||
[Address(RVA = "0x22D6830", Offset = "0x22D5830", VA = "0x1822D6830")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x04007388 RID: 29576
|
||||
[Token(Token = "0x4007388")]
|
||||
public static readonly int KeySize = Ed25519.PublicKeySize;
|
||||
|
||||
// Token: 0x04007389 RID: 29577
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007389")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD1 RID: 7377
|
||||
[Token(Token = "0x2001CD1")]
|
||||
public class Ed448KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B6B6 RID: 46774 RVA: 0x00278B14 File Offset: 0x00276D14
|
||||
[Token(Token = "0x600B6B6")]
|
||||
[Address(RVA = "0x22D6AB0", Offset = "0x22D5AB0", VA = "0x1822D6AB0")]
|
||||
public Ed448KeyGenerationParameters(SecureRandom random)
|
||||
: base(random, 448)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD2 RID: 7378
|
||||
[Token(Token = "0x2001CD2")]
|
||||
public sealed class Ed448PrivateKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B6B7 RID: 46775 RVA: 0x00278B30 File Offset: 0x00276D30
|
||||
[Token(Token = "0x600B6B7")]
|
||||
[Address(RVA = "0x22D7160", Offset = "0x22D6160", VA = "0x1822D7160")]
|
||||
public Ed448PrivateKeyParameters(SecureRandom random)
|
||||
{
|
||||
byte[] array = new byte[Ed448PrivateKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
base..ctor(true);
|
||||
byte[] array2 = this.data;
|
||||
Ed25519.GeneratePrivateKey(random, array2);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6B8 RID: 46776 RVA: 0x00278B64 File Offset: 0x00276D64
|
||||
[Token(Token = "0x600B6B8")]
|
||||
[Address(RVA = "0x22D7220", Offset = "0x22D6220", VA = "0x1822D7220")]
|
||||
public Ed448PrivateKeyParameters(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = new byte[Ed448PrivateKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
base..ctor(true);
|
||||
int num = 0;
|
||||
byte[] array2 = this.data;
|
||||
int keySize = Ed448PrivateKeyParameters.KeySize;
|
||||
Array.Copy(buf, off, array2, num, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6B9 RID: 46777 RVA: 0x00278BA8 File Offset: 0x00276DA8
|
||||
[Token(Token = "0x600B6B9")]
|
||||
[Address(RVA = "0x22D7070", Offset = "0x22D6070", VA = "0x1822D7070")]
|
||||
public Ed448PrivateKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6B9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Ed448PrivateKeyParameters::.ctor(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:EndOfStreamException(var_4_3D, newobj:EndOfStreamException(EndOfStreamException::.ctor, ldstr:string("EOF encountered in middle of Ed448 private key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B6BA RID: 46778 RVA: 0x00278BF4 File Offset: 0x00276DF4
|
||||
[Token(Token = "0x600B6BA")]
|
||||
[Address(RVA = "0x22D6AC0", Offset = "0x22D5AC0", VA = "0x1822D6AC0")]
|
||||
public void Encode(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = this.data;
|
||||
int num = 0;
|
||||
int keySize = Ed448PrivateKeyParameters.KeySize;
|
||||
Array.Copy(array, num, buf, off, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6BB RID: 46779 RVA: 0x00278C1C File Offset: 0x00276E1C
|
||||
[Token(Token = "0x600B6BB")]
|
||||
[Address(RVA = "0x22D6CA0", Offset = "0x22D5CA0", VA = "0x1822D6CA0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6BC RID: 46780 RVA: 0x00278C34 File Offset: 0x00276E34
|
||||
[Token(Token = "0x600B6BC")]
|
||||
[Address(RVA = "0x22D6B60", Offset = "0x22D5B60", VA = "0x1822D6B60")]
|
||||
public Ed448PublicKeyParameters GeneratePublicKey()
|
||||
{
|
||||
byte[] array = new byte[Ed448.PublicKeySize];
|
||||
byte[] array2 = this.data;
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
Ed448.GeneratePublicKey(array2, num2, array, num);
|
||||
int num3;
|
||||
Ed448PublicKeyParameters ed448PublicKeyParameters = new Ed448PublicKeyParameters(num3);
|
||||
byte[] array3 = new byte[Ed448PublicKeyParameters.KeySize];
|
||||
ed448PublicKeyParameters.data = array3;
|
||||
num3 = 0;
|
||||
int num4 = 0;
|
||||
byte[] array4 = ed448PublicKeyParameters.data;
|
||||
int num5 = 0;
|
||||
int keySize = Ed448PublicKeyParameters.KeySize;
|
||||
Array.Copy(array, num5, array4, num4, keySize);
|
||||
return ed448PublicKeyParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6BD RID: 46781 RVA: 0x00278CAC File Offset: 0x00276EAC
|
||||
[Token(Token = "0x600B6BD")]
|
||||
[Address(RVA = "0x22D6D00", Offset = "0x22D5D00", VA = "0x1822D6D00")]
|
||||
public void Sign(Ed448.Algorithm algorithm, Ed448PublicKeyParameters publicKey, byte[] ctx, byte[] msg, int msgOff, int msgLen, byte[] sig, int sigOff)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6BD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Ed448PrivateKeyParameters::Sign(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032.Ed448/Algorithm,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Ed448PublicKeyParameters,System.Byte[],System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_6B:
|
||||
stloc:ArgumentException(var_13_75, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("algorithm")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0400738A RID: 29578
|
||||
[Token(Token = "0x400738A")]
|
||||
public static readonly int KeySize = Ed448.SecretKeySize;
|
||||
|
||||
// Token: 0x0400738B RID: 29579
|
||||
[Token(Token = "0x400738B")]
|
||||
public static readonly int SignatureSize = Ed448.SignatureSize;
|
||||
|
||||
// Token: 0x0400738C RID: 29580
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400738C")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD3 RID: 7379
|
||||
[Token(Token = "0x2001CD3")]
|
||||
public sealed class Ed448PublicKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B6BF RID: 46783 RVA: 0x00278D54 File Offset: 0x00276F54
|
||||
[Token(Token = "0x600B6BF")]
|
||||
[Address(RVA = "0x22D7450", Offset = "0x22D6450", VA = "0x1822D7450")]
|
||||
public Ed448PublicKeyParameters(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = new byte[Ed448PublicKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
int num = 0;
|
||||
base..ctor(num != 0);
|
||||
int num2 = 0;
|
||||
byte[] array2 = this.data;
|
||||
int keySize = Ed448PublicKeyParameters.KeySize;
|
||||
Array.Copy(buf, off, array2, num2, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6C0 RID: 46784 RVA: 0x00278D98 File Offset: 0x00276F98
|
||||
[Token(Token = "0x600B6C0")]
|
||||
[Address(RVA = "0x22D7510", Offset = "0x22D6510", VA = "0x1822D7510")]
|
||||
public Ed448PublicKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6C0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Ed448PublicKeyParameters::.ctor(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_37:
|
||||
stloc:EndOfStreamException(var_5_41, newobj:EndOfStreamException(EndOfStreamException::.ctor, ldstr:string("EOF encountered in middle of Ed448 public key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B6C1 RID: 46785 RVA: 0x00278DE8 File Offset: 0x00276FE8
|
||||
[Token(Token = "0x600B6C1")]
|
||||
[Address(RVA = "0x22D72E0", Offset = "0x22D62E0", VA = "0x1822D72E0")]
|
||||
public void Encode(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = this.data;
|
||||
int num = 0;
|
||||
int keySize = Ed448PublicKeyParameters.KeySize;
|
||||
Array.Copy(array, num, buf, off, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6C2 RID: 46786 RVA: 0x00278E10 File Offset: 0x00277010
|
||||
[Token(Token = "0x600B6C2")]
|
||||
[Address(RVA = "0x22D7380", Offset = "0x22D6380", VA = "0x1822D7380")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x0400738D RID: 29581
|
||||
[Token(Token = "0x400738D")]
|
||||
public static readonly int KeySize = Ed448.PublicKeySize;
|
||||
|
||||
// Token: 0x0400738E RID: 29582
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400738E")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD4 RID: 7380
|
||||
[Token(Token = "0x2001CD4")]
|
||||
public class ElGamalKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B6C4 RID: 46788 RVA: 0x00278E40 File Offset: 0x00277040
|
||||
[Token(Token = "0x600B6C4")]
|
||||
[Address(RVA = "0x22D7630", Offset = "0x22D6630", VA = "0x1822D7630")]
|
||||
public ElGamalKeyGenerationParameters(SecureRandom random, ElGamalParameters parameters)
|
||||
{
|
||||
int l = parameters.l;
|
||||
if (l == 0)
|
||||
{
|
||||
int bitLength = parameters.p.BitLength;
|
||||
}
|
||||
base..ctor(random, l);
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x17001CC0 RID: 7360
|
||||
// (get) Token: 0x0600B6C5 RID: 46789 RVA: 0x00278E7C File Offset: 0x0027707C
|
||||
[Token(Token = "0x17001CC0")]
|
||||
public ElGamalParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B6C5")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6C6 RID: 46790 RVA: 0x00278E90 File Offset: 0x00277090
|
||||
[Token(Token = "0x600B6C6")]
|
||||
[Address(RVA = "0x22D7600", Offset = "0x22D6600", VA = "0x1822D7600")]
|
||||
internal static int GetStrength(ElGamalParameters parameters)
|
||||
{
|
||||
int l = parameters.l;
|
||||
if (l == 0)
|
||||
{
|
||||
return parameters.p.BitLength;
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
// Token: 0x0400738F RID: 29583
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400738F")]
|
||||
private readonly ElGamalParameters parameters;
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD5 RID: 7381
|
||||
[Token(Token = "0x2001CD5")]
|
||||
public class ElGamalKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B6C7 RID: 46791 RVA: 0x00278EBC File Offset: 0x002770BC
|
||||
[Token(Token = "0x600B6C7")]
|
||||
[Address(RVA = "0x22D3170", Offset = "0x22D2170", VA = "0x1822D3170")]
|
||||
protected ElGamalKeyParameters(bool isPrivate, ElGamalParameters parameters)
|
||||
: base(isPrivate)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x17001CC1 RID: 7361
|
||||
// (get) Token: 0x0600B6C8 RID: 46792 RVA: 0x00278ED8 File Offset: 0x002770D8
|
||||
[Token(Token = "0x17001CC1")]
|
||||
public ElGamalParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B6C8")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6C9 RID: 46793 RVA: 0x00278EEC File Offset: 0x002770EC
|
||||
[Token(Token = "0x600B6C9")]
|
||||
[Address(RVA = "0x22D7690", Offset = "0x22D6690", VA = "0x1822D7690", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
ElGamalParameters elGamalParameters = this.parameters;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6CA RID: 46794 RVA: 0x00278F18 File Offset: 0x00277118
|
||||
[Token(Token = "0x600B6CA")]
|
||||
[Address(RVA = "0x22D0B20", Offset = "0x22CFB20", VA = "0x1822D0B20")]
|
||||
protected bool Equals(ElGamalKeyParameters other)
|
||||
{
|
||||
ElGamalParameters elGamalParameters = other.parameters;
|
||||
bool flag = object.Equals(this.parameters, elGamalParameters);
|
||||
if (!flag)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6CB RID: 46795 RVA: 0x00278F4C File Offset: 0x0027714C
|
||||
[Token(Token = "0x600B6CB")]
|
||||
[Address(RVA = "0x22D0B80", Offset = "0x22CFB80", VA = "0x1822D0B80", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
ElGamalParameters elGamalParameters = this.parameters;
|
||||
if (elGamalParameters != 0)
|
||||
{
|
||||
elGamalParameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04007390 RID: 29584
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007390")]
|
||||
private readonly ElGamalParameters parameters;
|
||||
}
|
||||
}
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD6 RID: 7382
|
||||
[Token(Token = "0x2001CD6")]
|
||||
public class ElGamalParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B6CC RID: 46796 RVA: 0x00278F74 File Offset: 0x00277174
|
||||
[Token(Token = "0x600B6CC")]
|
||||
[Address(RVA = "0x22D7940", Offset = "0x22D6940", VA = "0x1822D7940")]
|
||||
public ElGamalParameters(BigInteger p, BigInteger g)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6CC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ElGamalParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_31:
|
||||
stloc:ArgumentNullException(var_1_3B, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("g")))
|
||||
}
|
||||
|
||||
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: 0x0600B6CD RID: 46797 RVA: 0x00278FBC File Offset: 0x002771BC
|
||||
[Token(Token = "0x600B6CD")]
|
||||
[Address(RVA = "0x22D7A10", Offset = "0x22D6A10", VA = "0x1822D7A10")]
|
||||
public ElGamalParameters(BigInteger p, BigInteger g, int l)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6CD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ElGamalParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2F:
|
||||
stloc:ArgumentNullException(var_1_39, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("g")))
|
||||
}
|
||||
|
||||
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: 0x17001CC2 RID: 7362
|
||||
// (get) Token: 0x0600B6CE RID: 46798 RVA: 0x00279004 File Offset: 0x00277204
|
||||
[Token(Token = "0x17001CC2")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600B6CE")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CC3 RID: 7363
|
||||
// (get) Token: 0x0600B6CF RID: 46799 RVA: 0x00279018 File Offset: 0x00277218
|
||||
[Token(Token = "0x17001CC3")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600B6CF")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CC4 RID: 7364
|
||||
// (get) Token: 0x0600B6D0 RID: 46800 RVA: 0x0027902C File Offset: 0x0027722C
|
||||
[Token(Token = "0x17001CC4")]
|
||||
public int L
|
||||
{
|
||||
[Token(Token = "0x600B6D0")]
|
||||
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70")]
|
||||
get
|
||||
{
|
||||
return this.l;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6D1 RID: 46801 RVA: 0x00279040 File Offset: 0x00277240
|
||||
[Token(Token = "0x600B6D1")]
|
||||
[Address(RVA = "0x22D7760", Offset = "0x22D6760", VA = "0x1822D7760", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.g;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6D2 RID: 46802 RVA: 0x00279078 File Offset: 0x00277278
|
||||
[Token(Token = "0x600B6D2")]
|
||||
[Address(RVA = "0x22D7860", Offset = "0x22D6860", VA = "0x1822D7860")]
|
||||
protected bool Equals(ElGamalParameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.g;
|
||||
int num = other.l;
|
||||
return this.l == num;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6D3 RID: 46803 RVA: 0x002790AC File Offset: 0x002772AC
|
||||
[Token(Token = "0x600B6D3")]
|
||||
[Address(RVA = "0x22D78E0", Offset = "0x22D68E0", VA = "0x1822D78E0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.p.Finalize();
|
||||
this.g.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007391 RID: 29585
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007391")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x04007392 RID: 29586
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007392")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x04007393 RID: 29587
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007393")]
|
||||
private readonly int l;
|
||||
}
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD7 RID: 7383
|
||||
[Token(Token = "0x2001CD7")]
|
||||
public class ElGamalPrivateKeyParameters : ElGamalKeyParameters
|
||||
{
|
||||
// Token: 0x0600B6D4 RID: 46804 RVA: 0x002790D4 File Offset: 0x002772D4
|
||||
[Token(Token = "0x600B6D4")]
|
||||
[Address(RVA = "0x22D7C70", Offset = "0x22D6C70", VA = "0x1822D7C70")]
|
||||
public ElGamalPrivateKeyParameters(BigInteger x, ElGamalParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6D4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ElGamalPrivateKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ElGamalParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1A:
|
||||
stloc:ArgumentNullException(var_0_24, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("x")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x17001CC5 RID: 7365
|
||||
// (get) Token: 0x0600B6D5 RID: 46805 RVA: 0x00279108 File Offset: 0x00277308
|
||||
[Token(Token = "0x17001CC5")]
|
||||
public BigInteger X
|
||||
{
|
||||
[Token(Token = "0x600B6D5")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6D6 RID: 46806 RVA: 0x0027911C File Offset: 0x0027731C
|
||||
[Token(Token = "0x600B6D6")]
|
||||
[Address(RVA = "0x22D7AF0", Offset = "0x22D6AF0", VA = "0x1822D7AF0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.x;
|
||||
if (num != 0 && object.Equals(this.parameters, bigInteger))
|
||||
{
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6D7 RID: 46807 RVA: 0x0027915C File Offset: 0x0027735C
|
||||
[Token(Token = "0x600B6D7")]
|
||||
[Address(RVA = "0x22D7BF0", Offset = "0x22D6BF0", VA = "0x1822D7BF0")]
|
||||
protected bool Equals(ElGamalPrivateKeyParameters other)
|
||||
{
|
||||
ElGamalParameters parameters;
|
||||
do
|
||||
{
|
||||
BigInteger bigInteger = other.x;
|
||||
parameters = other.parameters;
|
||||
}
|
||||
while (!object.Equals(this.parameters, parameters));
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6D8 RID: 46808 RVA: 0x00279198 File Offset: 0x00277398
|
||||
[Token(Token = "0x600B6D8")]
|
||||
[Address(RVA = "0x22D3860", Offset = "0x22D2860", VA = "0x1822D3860", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.x.Finalize();
|
||||
int hashCode = base.GetHashCode();
|
||||
ElGamalParameters parameters = this.parameters;
|
||||
if (parameters != 0)
|
||||
{
|
||||
parameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04007394 RID: 29588
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007394")]
|
||||
private readonly BigInteger x;
|
||||
}
|
||||
}
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD8 RID: 7384
|
||||
[Token(Token = "0x2001CD8")]
|
||||
public class ElGamalPublicKeyParameters : ElGamalKeyParameters
|
||||
{
|
||||
// Token: 0x0600B6D9 RID: 46809 RVA: 0x002791D0 File Offset: 0x002773D0
|
||||
[Token(Token = "0x600B6D9")]
|
||||
[Address(RVA = "0x22D7E00", Offset = "0x22D6E00", VA = "0x1822D7E00")]
|
||||
public ElGamalPublicKeyParameters(BigInteger y, ElGamalParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6D9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ElGamalPublicKeyParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ElGamalParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1C:
|
||||
stloc:ArgumentNullException(var_1_26, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("y")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x17001CC6 RID: 7366
|
||||
// (get) Token: 0x0600B6DA RID: 46810 RVA: 0x00279204 File Offset: 0x00277404
|
||||
[Token(Token = "0x17001CC6")]
|
||||
public BigInteger Y
|
||||
{
|
||||
[Token(Token = "0x600B6DA")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6DB RID: 46811 RVA: 0x00279218 File Offset: 0x00277418
|
||||
[Token(Token = "0x600B6DB")]
|
||||
[Address(RVA = "0x22D7D00", Offset = "0x22D6D00", VA = "0x1822D7D00", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.y;
|
||||
ElGamalParameters parameters = this.parameters;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6DC RID: 46812 RVA: 0x00279254 File Offset: 0x00277454
|
||||
[Token(Token = "0x600B6DC")]
|
||||
[Address(RVA = "0x22D37E0", Offset = "0x22D27E0", VA = "0x1822D37E0")]
|
||||
protected bool Equals(ElGamalPublicKeyParameters other)
|
||||
{
|
||||
ElGamalParameters parameters;
|
||||
do
|
||||
{
|
||||
BigInteger bigInteger = this.y;
|
||||
parameters = other.parameters;
|
||||
}
|
||||
while (!object.Equals(this.parameters, parameters));
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600B6DD RID: 46813 RVA: 0x00279290 File Offset: 0x00277490
|
||||
[Token(Token = "0x600B6DD")]
|
||||
[Address(RVA = "0x22D3860", Offset = "0x22D2860", VA = "0x1822D3860", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.y.Finalize();
|
||||
int hashCode = base.GetHashCode();
|
||||
ElGamalParameters parameters = this.parameters;
|
||||
if (parameters != 0)
|
||||
{
|
||||
parameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04007395 RID: 29589
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007395")]
|
||||
private readonly BigInteger y;
|
||||
}
|
||||
}
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CD9 RID: 7385
|
||||
[Token(Token = "0x2001CD9")]
|
||||
public class Gost3410KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B6DE RID: 46814 RVA: 0x002792C8 File Offset: 0x002774C8
|
||||
[Token(Token = "0x600B6DE")]
|
||||
[Address(RVA = "0x22D3040", Offset = "0x22D2040", VA = "0x1822D3040")]
|
||||
public Gost3410KeyGenerationParameters(SecureRandom random, Gost3410Parameters parameters)
|
||||
{
|
||||
int num = parameters.p.BitLength - 1;
|
||||
base..ctor(random, num);
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6DF RID: 46815 RVA: 0x002792F8 File Offset: 0x002774F8
|
||||
[Token(Token = "0x600B6DF")]
|
||||
[Address(RVA = "0x22DA040", Offset = "0x22D9040", VA = "0x1822DA040")]
|
||||
public Gost3410KeyGenerationParameters(SecureRandom random, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6DF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410KeyGenerationParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_63:
|
||||
stloc:ArgumentException(var_8_72, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("OID is not a valid CryptoPro public key parameter set"), ldstr:string("publicKeyParamSet")))
|
||||
}
|
||||
|
||||
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: 0x17001CC7 RID: 7367
|
||||
// (get) Token: 0x0600B6E0 RID: 46816 RVA: 0x00279378 File Offset: 0x00277578
|
||||
[Token(Token = "0x17001CC7")]
|
||||
public Gost3410Parameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B6E0")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CC8 RID: 7368
|
||||
// (get) Token: 0x0600B6E1 RID: 46817 RVA: 0x0027938C File Offset: 0x0027758C
|
||||
[Token(Token = "0x17001CC8")]
|
||||
public DerObjectIdentifier PublicKeyParamSet
|
||||
{
|
||||
[Token(Token = "0x600B6E1")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6E2 RID: 46818 RVA: 0x002793A0 File Offset: 0x002775A0
|
||||
[Token(Token = "0x600B6E2")]
|
||||
[Address(RVA = "0x22D9EF0", Offset = "0x22D8EF0", VA = "0x1822D9EF0")]
|
||||
private static Gost3410Parameters LookupParameters(DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6E2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410Parameters BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410KeyGenerationParameters::LookupParameters(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:ArgumentException(var_6_48, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("OID is not a valid CryptoPro public key parameter set"), ldstr:string("publicKeyParamSet")))
|
||||
}
|
||||
|
||||
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: 0x04007396 RID: 29590
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007396")]
|
||||
private readonly Gost3410Parameters parameters;
|
||||
|
||||
// Token: 0x04007397 RID: 29591
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007397")]
|
||||
private readonly DerObjectIdentifier publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CDA RID: 7386
|
||||
[Token(Token = "0x2001CDA")]
|
||||
public abstract class Gost3410KeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B6E3 RID: 46819 RVA: 0x002793F8 File Offset: 0x002775F8
|
||||
[Token(Token = "0x600B6E3")]
|
||||
[Address(RVA = "0x22D3170", Offset = "0x22D2170", VA = "0x1822D3170")]
|
||||
protected Gost3410KeyParameters(bool isPrivate, Gost3410Parameters parameters)
|
||||
: base(isPrivate)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6E4 RID: 46820 RVA: 0x00279414 File Offset: 0x00277614
|
||||
[Token(Token = "0x600B6E4")]
|
||||
[Address(RVA = "0x22DA320", Offset = "0x22D9320", VA = "0x1822DA320")]
|
||||
protected Gost3410KeyParameters(bool isPrivate, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6E4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410KeyParameters::.ctor(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_51:
|
||||
stloc:ArgumentException(var_7_60, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("OID is not a valid CryptoPro public key parameter set"), ldstr:string("publicKeyParamSet")))
|
||||
}
|
||||
|
||||
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: 0x17001CC9 RID: 7369
|
||||
// (get) Token: 0x0600B6E5 RID: 46821 RVA: 0x00279484 File Offset: 0x00277684
|
||||
[Token(Token = "0x17001CC9")]
|
||||
public Gost3410Parameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B6E5")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CCA RID: 7370
|
||||
// (get) Token: 0x0600B6E6 RID: 46822 RVA: 0x00279498 File Offset: 0x00277698
|
||||
[Token(Token = "0x17001CCA")]
|
||||
public DerObjectIdentifier PublicKeyParamSet
|
||||
{
|
||||
[Token(Token = "0x600B6E6")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6E7 RID: 46823 RVA: 0x002794AC File Offset: 0x002776AC
|
||||
[Token(Token = "0x600B6E7")]
|
||||
[Address(RVA = "0x22DA1D0", Offset = "0x22D91D0", VA = "0x1822DA1D0")]
|
||||
private static Gost3410Parameters LookupParameters(DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6E7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410Parameters BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410KeyParameters::LookupParameters(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:ArgumentException(var_6_48, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("OID is not a valid CryptoPro public key parameter set"), ldstr:string("publicKeyParamSet")))
|
||||
}
|
||||
|
||||
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: 0x04007398 RID: 29592
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007398")]
|
||||
private readonly Gost3410Parameters parameters;
|
||||
|
||||
// Token: 0x04007399 RID: 29593
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007399")]
|
||||
private readonly DerObjectIdentifier publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
+174
@@ -0,0 +1,174 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CDB RID: 7387
|
||||
[Token(Token = "0x2001CDB")]
|
||||
public class Gost3410Parameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B6E8 RID: 46824 RVA: 0x00279504 File Offset: 0x00277704
|
||||
[Token(Token = "0x600B6E8")]
|
||||
[Address(RVA = "0x22DA5A0", Offset = "0x22D95A0", VA = "0x1822DA5A0")]
|
||||
public Gost3410Parameters(BigInteger p, BigInteger q, BigInteger a)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6E8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410Parameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3C:
|
||||
stloc:ArgumentNullException(var_1_46, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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: 0x0600B6E9 RID: 46825 RVA: 0x00279558 File Offset: 0x00277758
|
||||
[Token(Token = "0x600B6E9")]
|
||||
[Address(RVA = "0x22DA6C0", Offset = "0x22D96C0", VA = "0x1822DA6C0")]
|
||||
public Gost3410Parameters(BigInteger p, BigInteger q, BigInteger a, Gost3410ValidationParameters validation)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6E9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410Parameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.Gost3410ValidationParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:ArgumentNullException(var_1_44, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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: 0x17001CCB RID: 7371
|
||||
// (get) Token: 0x0600B6EA RID: 46826 RVA: 0x002795AC File Offset: 0x002777AC
|
||||
[Token(Token = "0x17001CCB")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600B6EA")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CCC RID: 7372
|
||||
// (get) Token: 0x0600B6EB RID: 46827 RVA: 0x002795C0 File Offset: 0x002777C0
|
||||
[Token(Token = "0x17001CCC")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x600B6EB")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CCD RID: 7373
|
||||
// (get) Token: 0x0600B6EC RID: 46828 RVA: 0x002795D4 File Offset: 0x002777D4
|
||||
[Token(Token = "0x17001CCD")]
|
||||
public BigInteger A
|
||||
{
|
||||
[Token(Token = "0x600B6EC")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.a;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CCE RID: 7374
|
||||
// (get) Token: 0x0600B6ED RID: 46829 RVA: 0x002795E8 File Offset: 0x002777E8
|
||||
[Token(Token = "0x17001CCE")]
|
||||
public Gost3410ValidationParameters ValidationParameters
|
||||
{
|
||||
[Token(Token = "0x600B6ED")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.validation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6EE RID: 46830 RVA: 0x002795FC File Offset: 0x002777FC
|
||||
[Token(Token = "0x600B6EE")]
|
||||
[Address(RVA = "0x22DA480", Offset = "0x22D9480", VA = "0x1822DA480", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.q;
|
||||
BigInteger bigInteger3 = this.a;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6EF RID: 46831 RVA: 0x00279638 File Offset: 0x00277838
|
||||
[Token(Token = "0x600B6EF")]
|
||||
[Address(RVA = "0x22D3380", Offset = "0x22D2380", VA = "0x1822D3380")]
|
||||
protected bool Equals(Gost3410Parameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.q;
|
||||
BigInteger bigInteger3 = this.a;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B6F0 RID: 46832 RVA: 0x00279664 File Offset: 0x00277864
|
||||
[Token(Token = "0x600B6F0")]
|
||||
[Address(RVA = "0x22D3420", Offset = "0x22D2420", VA = "0x1822D3420", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.p.Finalize();
|
||||
this.q.Finalize();
|
||||
this.a.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400739A RID: 29594
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400739A")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x0400739B RID: 29595
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400739B")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x0400739C RID: 29596
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400739C")]
|
||||
private readonly BigInteger a;
|
||||
|
||||
// Token: 0x0400739D RID: 29597
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400739D")]
|
||||
private readonly Gost3410ValidationParameters validation;
|
||||
}
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CDC RID: 7388
|
||||
[Token(Token = "0x2001CDC")]
|
||||
public class Gost3410PrivateKeyParameters : Gost3410KeyParameters
|
||||
{
|
||||
// Token: 0x0600B6F1 RID: 46833 RVA: 0x00279698 File Offset: 0x00277898
|
||||
[Token(Token = "0x600B6F1")]
|
||||
[Address(RVA = "0x22DA8B0", Offset = "0x22D98B0", VA = "0x1822DA8B0")]
|
||||
public Gost3410PrivateKeyParameters(BigInteger x, Gost3410Parameters parameters)
|
||||
: base(true)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
int bitLength = x.BitLength;
|
||||
Gost3410Parameters parameters2 = this.parameters;
|
||||
BigInteger bigInteger;
|
||||
int num = x.CompareTo(bigInteger);
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6F2 RID: 46834 RVA: 0x002796D8 File Offset: 0x002778D8
|
||||
[Token(Token = "0x600B6F2")]
|
||||
[Address(RVA = "0x22DA7E0", Offset = "0x22D97E0", VA = "0x1822DA7E0")]
|
||||
public Gost3410PrivateKeyParameters(BigInteger x, DerObjectIdentifier publicKeyParamSet)
|
||||
: base(true, publicKeyParamSet)
|
||||
{
|
||||
int bitLength = x.BitLength;
|
||||
BigInteger q = this.parameters.q;
|
||||
int num = x.CompareTo(q);
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
// Token: 0x17001CCF RID: 7375
|
||||
// (get) Token: 0x0600B6F3 RID: 46835 RVA: 0x00279718 File Offset: 0x00277918
|
||||
[Token(Token = "0x17001CCF")]
|
||||
public BigInteger X
|
||||
{
|
||||
[Token(Token = "0x600B6F3")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400739E RID: 29598
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400739E")]
|
||||
private readonly BigInteger x;
|
||||
}
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CDD RID: 7389
|
||||
[Token(Token = "0x2001CDD")]
|
||||
public class Gost3410PublicKeyParameters : Gost3410KeyParameters
|
||||
{
|
||||
// Token: 0x0600B6F4 RID: 46836 RVA: 0x0027972C File Offset: 0x0027792C
|
||||
[Token(Token = "0x600B6F4")]
|
||||
[Address(RVA = "0x22DA980", Offset = "0x22D9980", VA = "0x1822DA980")]
|
||||
public Gost3410PublicKeyParameters(BigInteger y, Gost3410Parameters parameters)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(num != 0);
|
||||
this.parameters = parameters;
|
||||
BigInteger p = parameters.p;
|
||||
int num2 = y.CompareTo(p);
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6F5 RID: 46837 RVA: 0x00279768 File Offset: 0x00277968
|
||||
[Token(Token = "0x600B6F5")]
|
||||
[Address(RVA = "0x22DAA40", Offset = "0x22D9A40", VA = "0x1822DAA40")]
|
||||
public Gost3410PublicKeyParameters(BigInteger y, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(num != 0, publicKeyParamSet);
|
||||
BigInteger p = this.parameters.p;
|
||||
int num2 = y.CompareTo(p);
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
// Token: 0x17001CD0 RID: 7376
|
||||
// (get) Token: 0x0600B6F6 RID: 46838 RVA: 0x002797A0 File Offset: 0x002779A0
|
||||
[Token(Token = "0x17001CD0")]
|
||||
public BigInteger Y
|
||||
{
|
||||
[Token(Token = "0x600B6F6")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400739F RID: 29599
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400739F")]
|
||||
private readonly BigInteger y;
|
||||
}
|
||||
}
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CDE RID: 7390
|
||||
[Token(Token = "0x2001CDE")]
|
||||
public class Gost3410ValidationParameters
|
||||
{
|
||||
// Token: 0x0600B6F7 RID: 46839 RVA: 0x002797B4 File Offset: 0x002779B4
|
||||
[Token(Token = "0x600B6F7")]
|
||||
[Address(RVA = "0x73F000", Offset = "0x73E000", VA = "0x18073F000")]
|
||||
public Gost3410ValidationParameters(int x0, int c)
|
||||
{
|
||||
this.x0 = x0;
|
||||
this.c = c;
|
||||
}
|
||||
|
||||
// Token: 0x0600B6F8 RID: 46840 RVA: 0x002797D8 File Offset: 0x002779D8
|
||||
[Token(Token = "0x600B6F8")]
|
||||
[Address(RVA = "0x22DAC20", Offset = "0x22D9C20", VA = "0x1822DAC20")]
|
||||
public Gost3410ValidationParameters(long x0L, long cL)
|
||||
{
|
||||
this.x0L = x0L;
|
||||
this.cL = cL;
|
||||
}
|
||||
|
||||
// Token: 0x17001CD1 RID: 7377
|
||||
// (get) Token: 0x0600B6F9 RID: 46841 RVA: 0x002797FC File Offset: 0x002779FC
|
||||
[Token(Token = "0x17001CD1")]
|
||||
public int C
|
||||
{
|
||||
[Token(Token = "0x600B6F9")]
|
||||
[Address(RVA = "0x4936D0", Offset = "0x4926D0", VA = "0x1804936D0")]
|
||||
get
|
||||
{
|
||||
return this.c;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CD2 RID: 7378
|
||||
// (get) Token: 0x0600B6FA RID: 46842 RVA: 0x00279810 File Offset: 0x00277A10
|
||||
[Token(Token = "0x17001CD2")]
|
||||
public int X0
|
||||
{
|
||||
[Token(Token = "0x600B6FA")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
||||
get
|
||||
{
|
||||
return this.x0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CD3 RID: 7379
|
||||
// (get) Token: 0x0600B6FB RID: 46843 RVA: 0x00279824 File Offset: 0x00277A24
|
||||
[Token(Token = "0x17001CD3")]
|
||||
public long CL
|
||||
{
|
||||
[Token(Token = "0x600B6FB")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.cL;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CD4 RID: 7380
|
||||
// (get) Token: 0x0600B6FC RID: 46844 RVA: 0x00279838 File Offset: 0x00277A38
|
||||
[Token(Token = "0x17001CD4")]
|
||||
public long X0L
|
||||
{
|
||||
[Token(Token = "0x600B6FC")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.x0L;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6FD RID: 46845 RVA: 0x0027984C File Offset: 0x00277A4C
|
||||
[Token(Token = "0x600B6FD")]
|
||||
[Address(RVA = "0x22DAB00", Offset = "0x22D9B00", VA = "0x1822DAB00", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
int num = this.c;
|
||||
int num2 = this.x0;
|
||||
long num3 = this.cL;
|
||||
long num4 = this.x0L;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B6FE RID: 46846 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600B6FE")]
|
||||
[Address(RVA = "0x22DABB0", Offset = "0x22D9BB0", VA = "0x1822DABB0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x040073A0 RID: 29600
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073A0")]
|
||||
private int x0;
|
||||
|
||||
// Token: 0x040073A1 RID: 29601
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x40073A1")]
|
||||
private int c;
|
||||
|
||||
// Token: 0x040073A2 RID: 29602
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073A2")]
|
||||
private long x0L;
|
||||
|
||||
// Token: 0x040073A3 RID: 29603
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073A3")]
|
||||
private long cL;
|
||||
}
|
||||
}
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CDF RID: 7391
|
||||
[Token(Token = "0x2001CDF")]
|
||||
public class HkdfParameters : IDerivationParameters
|
||||
{
|
||||
// Token: 0x0600B6FF RID: 46847 RVA: 0x00279888 File Offset: 0x00277A88
|
||||
[Token(Token = "0x600B6FF")]
|
||||
[Address(RVA = "0x22DAEF0", Offset = "0x22D9EF0", VA = "0x1822DAEF0")]
|
||||
private HkdfParameters(byte[] ikm, bool skip, byte[] salt, byte[] info)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B6FF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.HkdfParameters::.ctor(System.Byte[],System.Boolean,System.Byte[],System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4C:
|
||||
stloc:ArgumentNullException(var_5_56, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("ikm")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B700 RID: 46848 RVA: 0x002798EC File Offset: 0x00277AEC
|
||||
[Token(Token = "0x600B700")]
|
||||
[Address(RVA = "0x22DB040", Offset = "0x22DA040", VA = "0x1822DB040")]
|
||||
public HkdfParameters(byte[] ikm, byte[] salt, byte[] info)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B701 RID: 46849 RVA: 0x002798FC File Offset: 0x00277AFC
|
||||
[Token(Token = "0x600B701")]
|
||||
[Address(RVA = "0x22DAE70", Offset = "0x22D9E70", VA = "0x1822DAE70")]
|
||||
public static HkdfParameters SkipExtractParameters(byte[] ikm, byte[] info)
|
||||
{
|
||||
HkdfParameters hkdfParameters;
|
||||
return hkdfParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B702 RID: 46850 RVA: 0x0027990C File Offset: 0x00277B0C
|
||||
[Token(Token = "0x600B702")]
|
||||
[Address(RVA = "0x22DAC60", Offset = "0x22D9C60", VA = "0x1822DAC60")]
|
||||
public static HkdfParameters DefaultParameters(byte[] ikm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B702)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.HkdfParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.HkdfParameters::DefaultParameters(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_32:
|
||||
stloc:ArgumentNullException(var_3_3C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("ikm")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B703 RID: 46851 RVA: 0x00279958 File Offset: 0x00277B58
|
||||
[Token(Token = "0x600B703")]
|
||||
[Address(RVA = "0x22DAD50", Offset = "0x22D9D50", VA = "0x1822DAD50", Slot = "4")]
|
||||
public virtual byte[] GetIkm()
|
||||
{
|
||||
return Arrays.Clone(this.ikm);
|
||||
}
|
||||
|
||||
// Token: 0x17001CD5 RID: 7381
|
||||
// (get) Token: 0x0600B704 RID: 46852 RVA: 0x00279970 File Offset: 0x00277B70
|
||||
[Token(Token = "0x17001CD5")]
|
||||
public virtual bool SkipExtract
|
||||
{
|
||||
[Token(Token = "0x600B704")]
|
||||
[Address(RVA = "0x497570", Offset = "0x496570", VA = "0x180497570", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.skipExpand;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B705 RID: 46853 RVA: 0x00279984 File Offset: 0x00277B84
|
||||
[Token(Token = "0x600B705")]
|
||||
[Address(RVA = "0x22DAE10", Offset = "0x22D9E10", VA = "0x1822DAE10", Slot = "6")]
|
||||
public virtual byte[] GetSalt()
|
||||
{
|
||||
return Arrays.Clone(this.salt);
|
||||
}
|
||||
|
||||
// Token: 0x0600B706 RID: 46854 RVA: 0x0027999C File Offset: 0x00277B9C
|
||||
[Token(Token = "0x600B706")]
|
||||
[Address(RVA = "0x22DADB0", Offset = "0x22D9DB0", VA = "0x1822DADB0", Slot = "7")]
|
||||
public virtual byte[] GetInfo()
|
||||
{
|
||||
return Arrays.Clone(this.info);
|
||||
}
|
||||
|
||||
// Token: 0x040073A4 RID: 29604
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073A4")]
|
||||
private readonly byte[] ikm;
|
||||
|
||||
// Token: 0x040073A5 RID: 29605
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073A5")]
|
||||
private readonly bool skipExpand;
|
||||
|
||||
// Token: 0x040073A6 RID: 29606
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073A6")]
|
||||
private readonly byte[] salt;
|
||||
|
||||
// Token: 0x040073A7 RID: 29607
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40073A7")]
|
||||
private readonly byte[] info;
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE1 RID: 7393
|
||||
[Token(Token = "0x2001CE1")]
|
||||
public class IesParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B709 RID: 46857 RVA: 0x002799E4 File Offset: 0x00277BE4
|
||||
[Token(Token = "0x600B709")]
|
||||
[Address(RVA = "0x6E7930", Offset = "0x6E6930", VA = "0x1806E7930")]
|
||||
public IesParameters(byte[] derivation, byte[] encoding, int macKeySize)
|
||||
{
|
||||
this.derivation = derivation;
|
||||
this.encoding = encoding;
|
||||
this.macKeySize = macKeySize;
|
||||
}
|
||||
|
||||
// Token: 0x0600B70A RID: 46858 RVA: 0x00279A0C File Offset: 0x00277C0C
|
||||
[Token(Token = "0x600B70A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
public byte[] GetDerivationV()
|
||||
{
|
||||
return this.derivation;
|
||||
}
|
||||
|
||||
// Token: 0x0600B70B RID: 46859 RVA: 0x00279A20 File Offset: 0x00277C20
|
||||
[Token(Token = "0x600B70B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
public byte[] GetEncodingV()
|
||||
{
|
||||
return this.encoding;
|
||||
}
|
||||
|
||||
// Token: 0x17001CD6 RID: 7382
|
||||
// (get) Token: 0x0600B70C RID: 46860 RVA: 0x00279A34 File Offset: 0x00277C34
|
||||
[Token(Token = "0x17001CD6")]
|
||||
public int MacKeySize
|
||||
{
|
||||
[Token(Token = "0x600B70C")]
|
||||
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70")]
|
||||
get
|
||||
{
|
||||
return this.macKeySize;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073A9 RID: 29609
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073A9")]
|
||||
private byte[] derivation;
|
||||
|
||||
// Token: 0x040073AA RID: 29610
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073AA")]
|
||||
private byte[] encoding;
|
||||
|
||||
// Token: 0x040073AB RID: 29611
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073AB")]
|
||||
private int macKeySize;
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE2 RID: 7394
|
||||
[Token(Token = "0x2001CE2")]
|
||||
public class IesWithCipherParameters : IesParameters
|
||||
{
|
||||
// Token: 0x0600B70D RID: 46861 RVA: 0x00279A48 File Offset: 0x00277C48
|
||||
[Token(Token = "0x600B70D")]
|
||||
[Address(RVA = "0x22DB3A0", Offset = "0x22DA3A0", VA = "0x1822DB3A0")]
|
||||
public IesWithCipherParameters(byte[] derivation, byte[] encoding, int macKeySize, int cipherKeySize)
|
||||
{
|
||||
this.derivation = derivation;
|
||||
this.macKeySize = macKeySize;
|
||||
this.cipherKeySize = 0;
|
||||
this.encoding = encoding;
|
||||
}
|
||||
|
||||
// Token: 0x17001CD7 RID: 7383
|
||||
// (get) Token: 0x0600B70E RID: 46862 RVA: 0x00279A78 File Offset: 0x00277C78
|
||||
[Token(Token = "0x17001CD7")]
|
||||
public int CipherKeySize
|
||||
{
|
||||
[Token(Token = "0x600B70E")]
|
||||
[Address(RVA = "0x471180", Offset = "0x470180", VA = "0x180471180")]
|
||||
get
|
||||
{
|
||||
return this.cipherKeySize;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073AC RID: 29612
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40073AC")]
|
||||
private int cipherKeySize;
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE0 RID: 7392
|
||||
[Token(Token = "0x2001CE0")]
|
||||
public class Iso18033KdfParameters : IDerivationParameters
|
||||
{
|
||||
// Token: 0x0600B707 RID: 46855 RVA: 0x002799B4 File Offset: 0x00277BB4
|
||||
[Token(Token = "0x600B707")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
public Iso18033KdfParameters(byte[] seed)
|
||||
{
|
||||
this.seed = seed;
|
||||
}
|
||||
|
||||
// Token: 0x0600B708 RID: 46856 RVA: 0x002799D0 File Offset: 0x00277BD0
|
||||
[Token(Token = "0x600B708")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
public byte[] GetSeed()
|
||||
{
|
||||
return this.seed;
|
||||
}
|
||||
|
||||
// Token: 0x040073A8 RID: 29608
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073A8")]
|
||||
private byte[] seed;
|
||||
}
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE3 RID: 7395
|
||||
[Token(Token = "0x2001CE3")]
|
||||
public class KdfParameters : IDerivationParameters
|
||||
{
|
||||
// Token: 0x0600B70F RID: 46863 RVA: 0x00279A8C File Offset: 0x00277C8C
|
||||
[Token(Token = "0x600B70F")]
|
||||
[Address(RVA = "0xE5DFE0", Offset = "0xE5CFE0", VA = "0x180E5DFE0")]
|
||||
public KdfParameters(byte[] shared, byte[] iv)
|
||||
{
|
||||
this.shared = shared;
|
||||
this.iv = iv;
|
||||
}
|
||||
|
||||
// Token: 0x0600B710 RID: 46864 RVA: 0x00279AB0 File Offset: 0x00277CB0
|
||||
[Token(Token = "0x600B710")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
public byte[] GetSharedSecret()
|
||||
{
|
||||
return this.shared;
|
||||
}
|
||||
|
||||
// Token: 0x0600B711 RID: 46865 RVA: 0x00279AC4 File Offset: 0x00277CC4
|
||||
[Token(Token = "0x600B711")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
public byte[] GetIV()
|
||||
{
|
||||
return this.iv;
|
||||
}
|
||||
|
||||
// Token: 0x040073AD RID: 29613
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073AD")]
|
||||
private byte[] iv;
|
||||
|
||||
// Token: 0x040073AE RID: 29614
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073AE")]
|
||||
private byte[] shared;
|
||||
}
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE4 RID: 7396
|
||||
[Token(Token = "0x2001CE4")]
|
||||
public class KeyParameter : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B712 RID: 46866 RVA: 0x00279AD8 File Offset: 0x00277CD8
|
||||
[Token(Token = "0x600B712")]
|
||||
[Address(RVA = "0x22DE2B0", Offset = "0x22DD2B0", VA = "0x1822DE2B0")]
|
||||
public KeyParameter(byte[] key)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B712)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.KeyParameter::.ctor(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0B:
|
||||
stloc:ArgumentNullException(var_0_15, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B713 RID: 46867 RVA: 0x00279AFC File Offset: 0x00277CFC
|
||||
[Token(Token = "0x600B713")]
|
||||
[Address(RVA = "0x22DE370", Offset = "0x22DD370", VA = "0x1822DE370")]
|
||||
public KeyParameter(byte[] key, int keyOff, int keyLen)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B713)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.KeyParameter::.ctor(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentNullException(var_4_3A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B714 RID: 46868 RVA: 0x00279B44 File Offset: 0x00277D44
|
||||
[Token(Token = "0x600B714")]
|
||||
[Address(RVA = "0x22DE230", Offset = "0x22DD230", VA = "0x1822DE230")]
|
||||
public byte[] GetKey()
|
||||
{
|
||||
byte[] array = this.key;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040073AF RID: 29615
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073AF")]
|
||||
private readonly byte[] key;
|
||||
}
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE5 RID: 7397
|
||||
[Token(Token = "0x2001CE5")]
|
||||
public class MgfParameters : IDerivationParameters
|
||||
{
|
||||
// Token: 0x0600B715 RID: 46869 RVA: 0x00279B60 File Offset: 0x00277D60
|
||||
[Token(Token = "0x600B715")]
|
||||
[Address(RVA = "0x22DE5C0", Offset = "0x22DD5C0", VA = "0x1822DE5C0")]
|
||||
public MgfParameters(byte[] seed)
|
||||
{
|
||||
int length = seed.Length;
|
||||
base..ctor();
|
||||
byte[] array = new byte[length];
|
||||
int num = 0;
|
||||
this.seed = array;
|
||||
int num2 = 0;
|
||||
Array.Copy(seed, num2, array, num, length);
|
||||
}
|
||||
|
||||
// Token: 0x0600B716 RID: 46870 RVA: 0x00279BA0 File Offset: 0x00277DA0
|
||||
[Token(Token = "0x600B716")]
|
||||
[Address(RVA = "0x22DE530", Offset = "0x22DD530", VA = "0x1822DE530")]
|
||||
public MgfParameters(byte[] seed, int off, int len)
|
||||
{
|
||||
byte[] array = new byte[len];
|
||||
int num = 0;
|
||||
this.seed = array;
|
||||
Array.Copy(seed, len, array, num, len);
|
||||
}
|
||||
|
||||
// Token: 0x0600B717 RID: 46871 RVA: 0x00279BD0 File Offset: 0x00277DD0
|
||||
[Token(Token = "0x600B717")]
|
||||
[Address(RVA = "0x22DE4B0", Offset = "0x22DD4B0", VA = "0x1822DE4B0")]
|
||||
public byte[] GetSeed()
|
||||
{
|
||||
byte[] array = this.seed;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040073B0 RID: 29616
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073B0")]
|
||||
private readonly byte[] seed;
|
||||
}
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE6 RID: 7398
|
||||
[Token(Token = "0x2001CE6")]
|
||||
public class MqvPrivateParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B718 RID: 46872 RVA: 0x00279BEC File Offset: 0x00277DEC
|
||||
[Token(Token = "0x600B718")]
|
||||
[Address(RVA = "0x22DE650", Offset = "0x22DD650", VA = "0x1822DE650")]
|
||||
public MqvPrivateParameters(ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600B719 RID: 46873 RVA: 0x00279BFC File Offset: 0x00277DFC
|
||||
[Token(Token = "0x600B719")]
|
||||
[Address(RVA = "0x22DE670", Offset = "0x22DD670", VA = "0x1822DE670")]
|
||||
public MqvPrivateParameters(ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey, ECPublicKeyParameters ephemeralPublicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B719)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.MqvPrivateParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPublicKeyParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_83:
|
||||
stloc:ArgumentNullException(var_8_8D, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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: 0x17001CD8 RID: 7384
|
||||
// (get) Token: 0x0600B71A RID: 46874 RVA: 0x00279C98 File Offset: 0x00277E98
|
||||
[Token(Token = "0x17001CD8")]
|
||||
public virtual ECPrivateKeyParameters StaticPrivateKey
|
||||
{
|
||||
[Token(Token = "0x600B71A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.staticPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CD9 RID: 7385
|
||||
// (get) Token: 0x0600B71B RID: 46875 RVA: 0x00279CAC File Offset: 0x00277EAC
|
||||
[Token(Token = "0x17001CD9")]
|
||||
public virtual ECPrivateKeyParameters EphemeralPrivateKey
|
||||
{
|
||||
[Token(Token = "0x600B71B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CDA RID: 7386
|
||||
// (get) Token: 0x0600B71C RID: 46876 RVA: 0x00279CC0 File Offset: 0x00277EC0
|
||||
[Token(Token = "0x17001CDA")]
|
||||
public virtual ECPublicKeyParameters EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600B71C")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073B1 RID: 29617
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073B1")]
|
||||
private readonly ECPrivateKeyParameters staticPrivateKey;
|
||||
|
||||
// Token: 0x040073B2 RID: 29618
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073B2")]
|
||||
private readonly ECPrivateKeyParameters ephemeralPrivateKey;
|
||||
|
||||
// Token: 0x040073B3 RID: 29619
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073B3")]
|
||||
private readonly ECPublicKeyParameters ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE7 RID: 7399
|
||||
[Token(Token = "0x2001CE7")]
|
||||
public class MqvPublicParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B71D RID: 46877 RVA: 0x00279CD4 File Offset: 0x00277ED4
|
||||
[Token(Token = "0x600B71D")]
|
||||
[Address(RVA = "0x22DE940", Offset = "0x22DD940", VA = "0x1822DE940")]
|
||||
public MqvPublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B71D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.MqvPublicParameters::.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: 0x17001CDB RID: 7387
|
||||
// (get) Token: 0x0600B71E RID: 46878 RVA: 0x00279D1C File Offset: 0x00277F1C
|
||||
[Token(Token = "0x17001CDB")]
|
||||
public virtual ECPublicKeyParameters StaticPublicKey
|
||||
{
|
||||
[Token(Token = "0x600B71E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.staticPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CDC RID: 7388
|
||||
// (get) Token: 0x0600B71F RID: 46879 RVA: 0x00279D30 File Offset: 0x00277F30
|
||||
[Token(Token = "0x17001CDC")]
|
||||
public virtual ECPublicKeyParameters EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600B71F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073B4 RID: 29620
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073B4")]
|
||||
private readonly ECPublicKeyParameters staticPublicKey;
|
||||
|
||||
// Token: 0x040073B5 RID: 29621
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073B5")]
|
||||
private readonly ECPublicKeyParameters ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE8 RID: 7400
|
||||
[Token(Token = "0x2001CE8")]
|
||||
public class NaccacheSternKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B720 RID: 46880 RVA: 0x00279D44 File Offset: 0x00277F44
|
||||
[Token(Token = "0x600B720")]
|
||||
[Address(RVA = "0x22DEA70", Offset = "0x22DDA70", VA = "0x1822DEA70")]
|
||||
public NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int countSmallPrimes)
|
||||
: base(random, strength)
|
||||
{
|
||||
this.certainty = certainty;
|
||||
this.countSmallPrimes = 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600B721 RID: 46881 RVA: 0x00279D74 File Offset: 0x00277F74
|
||||
[Token(Token = "0x600B721")]
|
||||
[Address(RVA = "0x22DEA70", Offset = "0x22DDA70", VA = "0x1822DEA70")]
|
||||
[Obsolete]
|
||||
public NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int countSmallPrimes, bool debug)
|
||||
: base(random, strength)
|
||||
{
|
||||
this.certainty = certainty;
|
||||
this.countSmallPrimes = 0;
|
||||
}
|
||||
|
||||
// Token: 0x17001CDD RID: 7389
|
||||
// (get) Token: 0x0600B722 RID: 46882 RVA: 0x00279DA4 File Offset: 0x00277FA4
|
||||
[Token(Token = "0x17001CDD")]
|
||||
public int Certainty
|
||||
{
|
||||
[Token(Token = "0x600B722")]
|
||||
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70")]
|
||||
get
|
||||
{
|
||||
return this.certainty;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CDE RID: 7390
|
||||
// (get) Token: 0x0600B723 RID: 46883 RVA: 0x00279DB8 File Offset: 0x00277FB8
|
||||
[Token(Token = "0x17001CDE")]
|
||||
public int CountSmallPrimes
|
||||
{
|
||||
[Token(Token = "0x600B723")]
|
||||
[Address(RVA = "0x470B60", Offset = "0x46FB60", VA = "0x180470B60")]
|
||||
get
|
||||
{
|
||||
return this.countSmallPrimes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CDF RID: 7391
|
||||
// (get) Token: 0x0600B724 RID: 46884 RVA: 0x00279DCC File Offset: 0x00277FCC
|
||||
[Token(Token = "0x17001CDF")]
|
||||
[Obsolete]
|
||||
public bool IsDebug
|
||||
{
|
||||
[Token(Token = "0x600B724")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073B6 RID: 29622
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073B6")]
|
||||
private readonly int certainty;
|
||||
|
||||
// Token: 0x040073B7 RID: 29623
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x40073B7")]
|
||||
private readonly int countSmallPrimes;
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CE9 RID: 7401
|
||||
[Token(Token = "0x2001CE9")]
|
||||
public class NaccacheSternKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B725 RID: 46885 RVA: 0x00279DDC File Offset: 0x00277FDC
|
||||
[Token(Token = "0x600B725")]
|
||||
[Address(RVA = "0x22DEB60", Offset = "0x22DDB60", VA = "0x1822DEB60")]
|
||||
public NaccacheSternKeyParameters(bool privateKey, BigInteger g, BigInteger n, int lowerSigmaBound)
|
||||
: base(privateKey)
|
||||
{
|
||||
this.g = g;
|
||||
this.n = n;
|
||||
this.lowerSigmaBound = 0;
|
||||
}
|
||||
|
||||
// Token: 0x17001CE0 RID: 7392
|
||||
// (get) Token: 0x0600B726 RID: 46886 RVA: 0x00279E08 File Offset: 0x00278008
|
||||
[Token(Token = "0x17001CE0")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600B726")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CE1 RID: 7393
|
||||
// (get) Token: 0x0600B727 RID: 46887 RVA: 0x00279E1C File Offset: 0x0027801C
|
||||
[Token(Token = "0x17001CE1")]
|
||||
public int LowerSigmaBound
|
||||
{
|
||||
[Token(Token = "0x600B727")]
|
||||
[Address(RVA = "0x471180", Offset = "0x470180", VA = "0x180471180")]
|
||||
get
|
||||
{
|
||||
return this.lowerSigmaBound;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CE2 RID: 7394
|
||||
// (get) Token: 0x0600B728 RID: 46888 RVA: 0x00279E30 File Offset: 0x00278030
|
||||
[Token(Token = "0x17001CE2")]
|
||||
public BigInteger Modulus
|
||||
{
|
||||
[Token(Token = "0x600B728")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.n;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073B8 RID: 29624
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073B8")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x040073B9 RID: 29625
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073B9")]
|
||||
private readonly BigInteger n;
|
||||
|
||||
// Token: 0x040073BA RID: 29626
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40073BA")]
|
||||
private readonly int lowerSigmaBound;
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CEA RID: 7402
|
||||
[Token(Token = "0x2001CEA")]
|
||||
public class NaccacheSternPrivateKeyParameters : NaccacheSternKeyParameters
|
||||
{
|
||||
// Token: 0x0600B729 RID: 46889 RVA: 0x00279E44 File Offset: 0x00278044
|
||||
[Token(Token = "0x600B729")]
|
||||
[Address(RVA = "0x22DEBA0", Offset = "0x22DDBA0", VA = "0x1822DEBA0")]
|
||||
[Obsolete]
|
||||
public NaccacheSternPrivateKeyParameters(BigInteger g, BigInteger n, int lowerSigmaBound, ArrayList smallPrimes, BigInteger phiN)
|
||||
: base(true)
|
||||
{
|
||||
this.smallPrimes = 0;
|
||||
this.g = g;
|
||||
this.lowerSigmaBound = lowerSigmaBound;
|
||||
this.phiN = 0;
|
||||
this.n = n;
|
||||
}
|
||||
|
||||
// Token: 0x0600B72A RID: 46890 RVA: 0x00279E7C File Offset: 0x0027807C
|
||||
[Token(Token = "0x600B72A")]
|
||||
[Address(RVA = "0x22DEBA0", Offset = "0x22DDBA0", VA = "0x1822DEBA0")]
|
||||
public NaccacheSternPrivateKeyParameters(BigInteger g, BigInteger n, int lowerSigmaBound, IList smallPrimes, BigInteger phiN)
|
||||
: base(true)
|
||||
{
|
||||
this.smallPrimes = 0;
|
||||
this.g = g;
|
||||
this.lowerSigmaBound = lowerSigmaBound;
|
||||
this.phiN = 0;
|
||||
this.n = n;
|
||||
}
|
||||
|
||||
// Token: 0x17001CE3 RID: 7395
|
||||
// (get) Token: 0x0600B72B RID: 46891 RVA: 0x00279EB4 File Offset: 0x002780B4
|
||||
[Token(Token = "0x17001CE3")]
|
||||
public BigInteger PhiN
|
||||
{
|
||||
[Token(Token = "0x600B72B")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.phiN;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CE4 RID: 7396
|
||||
// (get) Token: 0x0600B72C RID: 46892 RVA: 0x00279EC8 File Offset: 0x002780C8
|
||||
[Token(Token = "0x17001CE4")]
|
||||
[Obsolete]
|
||||
public ArrayList SmallPrimes
|
||||
{
|
||||
[Token(Token = "0x600B72C")]
|
||||
[Address(RVA = "0x22DEC00", Offset = "0x22DDC00", VA = "0x1822DEC00")]
|
||||
get
|
||||
{
|
||||
return new ArrayList(this.smallPrimes);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CE5 RID: 7397
|
||||
// (get) Token: 0x0600B72D RID: 46893 RVA: 0x00279EE0 File Offset: 0x002780E0
|
||||
[Token(Token = "0x17001CE5")]
|
||||
public IList SmallPrimesList
|
||||
{
|
||||
[Token(Token = "0x600B72D")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.smallPrimes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073BB RID: 29627
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40073BB")]
|
||||
private readonly BigInteger phiN;
|
||||
|
||||
// Token: 0x040073BC RID: 29628
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40073BC")]
|
||||
private readonly IList smallPrimes;
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CEB RID: 7403
|
||||
[Token(Token = "0x2001CEB")]
|
||||
public class ParametersWithID : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B72E RID: 46894 RVA: 0x00279EF4 File Offset: 0x002780F4
|
||||
[Token(Token = "0x600B72E")]
|
||||
[Address(RVA = "0x22E2FE0", Offset = "0x22E1FE0", VA = "0x1822E2FE0")]
|
||||
public ParametersWithID(ICipherParameters parameters, byte[] id)
|
||||
{
|
||||
int length = id.Length;
|
||||
base..ctor();
|
||||
this.parameters = parameters;
|
||||
int num = 0;
|
||||
byte[] array = Arrays.CopyOfRange(id, num, length);
|
||||
this.id = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600B72F RID: 46895 RVA: 0x00279F30 File Offset: 0x00278130
|
||||
[Token(Token = "0x600B72F")]
|
||||
[Address(RVA = "0x22E2F40", Offset = "0x22E1F40", VA = "0x1822E2F40")]
|
||||
public ParametersWithID(ICipherParameters parameters, byte[] id, int idOff, int idLen)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
byte[] array;
|
||||
this.id = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600B730 RID: 46896 RVA: 0x00279F54 File Offset: 0x00278154
|
||||
[Token(Token = "0x600B730")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
public byte[] GetID()
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
|
||||
// Token: 0x17001CE6 RID: 7398
|
||||
// (get) Token: 0x0600B731 RID: 46897 RVA: 0x00279F68 File Offset: 0x00278168
|
||||
[Token(Token = "0x17001CE6")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B731")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073BD RID: 29629
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073BD")]
|
||||
private readonly ICipherParameters parameters;
|
||||
|
||||
// Token: 0x040073BE RID: 29630
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073BE")]
|
||||
private readonly byte[] id;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CEC RID: 7404
|
||||
[Token(Token = "0x2001CEC")]
|
||||
public class ParametersWithIV : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B732 RID: 46898 RVA: 0x00279F7C File Offset: 0x0027817C
|
||||
[Token(Token = "0x600B732")]
|
||||
[Address(RVA = "0x22E31D0", Offset = "0x22E21D0", VA = "0x1822E31D0")]
|
||||
public ParametersWithIV(ICipherParameters parameters, byte[] iv)
|
||||
{
|
||||
int length = iv.Length;
|
||||
base..ctor();
|
||||
this.parameters = parameters;
|
||||
int num = 0;
|
||||
byte[] array = Arrays.CopyOfRange(iv, num, length);
|
||||
this.iv = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600B733 RID: 46899 RVA: 0x00279FB8 File Offset: 0x002781B8
|
||||
[Token(Token = "0x600B733")]
|
||||
[Address(RVA = "0x22E3100", Offset = "0x22E2100", VA = "0x1822E3100")]
|
||||
public ParametersWithIV(ICipherParameters parameters, byte[] iv, int ivOff, int ivLen)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B733)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ParametersWithIV::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters,System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_19:
|
||||
stloc:ArgumentNullException(var_1_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("iv")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B734 RID: 46900 RVA: 0x00279FE8 File Offset: 0x002781E8
|
||||
[Token(Token = "0x600B734")]
|
||||
[Address(RVA = "0x22E3080", Offset = "0x22E2080", VA = "0x1822E3080")]
|
||||
public byte[] GetIV()
|
||||
{
|
||||
byte[] array = this.iv;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001CE7 RID: 7399
|
||||
// (get) Token: 0x0600B735 RID: 46901 RVA: 0x0027A004 File Offset: 0x00278204
|
||||
[Token(Token = "0x17001CE7")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B735")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073BF RID: 29631
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073BF")]
|
||||
private readonly ICipherParameters parameters;
|
||||
|
||||
// Token: 0x040073C0 RID: 29632
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073C0")]
|
||||
private readonly byte[] iv;
|
||||
}
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CED RID: 7405
|
||||
[Token(Token = "0x2001CED")]
|
||||
public class ParametersWithRandom : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B736 RID: 46902 RVA: 0x0027A018 File Offset: 0x00278218
|
||||
[Token(Token = "0x600B736")]
|
||||
[Address(RVA = "0x22E3370", Offset = "0x22E2370", VA = "0x1822E3370")]
|
||||
public ParametersWithRandom(ICipherParameters parameters, SecureRandom random)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B736)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ParametersWithRandom::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_28:
|
||||
stloc:ArgumentNullException(var_1_32, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("random")))
|
||||
}
|
||||
|
||||
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: 0x0600B737 RID: 46903 RVA: 0x0027A058 File Offset: 0x00278258
|
||||
[Token(Token = "0x600B737")]
|
||||
[Address(RVA = "0x22E3270", Offset = "0x22E2270", VA = "0x1822E3270")]
|
||||
public ParametersWithRandom(ICipherParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B737)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ParametersWithRandom::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2E:
|
||||
stloc:ArgumentNullException(var_2_38, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("random")))
|
||||
}
|
||||
|
||||
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: 0x0600B738 RID: 46904 RVA: 0x0027A0A0 File Offset: 0x002782A0
|
||||
[Token(Token = "0x600B738")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
[Obsolete]
|
||||
public SecureRandom GetRandom()
|
||||
{
|
||||
return this.random;
|
||||
}
|
||||
|
||||
// Token: 0x17001CE8 RID: 7400
|
||||
// (get) Token: 0x0600B739 RID: 46905 RVA: 0x0027A0B4 File Offset: 0x002782B4
|
||||
[Token(Token = "0x17001CE8")]
|
||||
public SecureRandom Random
|
||||
{
|
||||
[Token(Token = "0x600B739")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.random;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CE9 RID: 7401
|
||||
// (get) Token: 0x0600B73A RID: 46906 RVA: 0x0027A0C8 File Offset: 0x002782C8
|
||||
[Token(Token = "0x17001CE9")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B73A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073C1 RID: 29633
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073C1")]
|
||||
private readonly ICipherParameters parameters;
|
||||
|
||||
// Token: 0x040073C2 RID: 29634
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073C2")]
|
||||
private readonly SecureRandom random;
|
||||
}
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CEE RID: 7406
|
||||
[Token(Token = "0x2001CEE")]
|
||||
public class ParametersWithSBox : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B73B RID: 46907 RVA: 0x0027A0DC File Offset: 0x002782DC
|
||||
[Token(Token = "0x600B73B")]
|
||||
[Address(RVA = "0x417DD0", Offset = "0x416DD0", VA = "0x180417DD0")]
|
||||
public ParametersWithSBox(ICipherParameters parameters, byte[] sBox)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
this.sBox = sBox;
|
||||
}
|
||||
|
||||
// Token: 0x0600B73C RID: 46908 RVA: 0x0027A100 File Offset: 0x00278300
|
||||
[Token(Token = "0x600B73C")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
public byte[] GetSBox()
|
||||
{
|
||||
return this.sBox;
|
||||
}
|
||||
|
||||
// Token: 0x17001CEA RID: 7402
|
||||
// (get) Token: 0x0600B73D RID: 46909 RVA: 0x0027A114 File Offset: 0x00278314
|
||||
[Token(Token = "0x17001CEA")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B73D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073C3 RID: 29635
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073C3")]
|
||||
private ICipherParameters parameters;
|
||||
|
||||
// Token: 0x040073C4 RID: 29636
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073C4")]
|
||||
private byte[] sBox;
|
||||
}
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CEF RID: 7407
|
||||
[Token(Token = "0x2001CEF")]
|
||||
public class ParametersWithSalt : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B73E RID: 46910 RVA: 0x0027A128 File Offset: 0x00278328
|
||||
[Token(Token = "0x600B73E")]
|
||||
[Address(RVA = "0x22E34E0", Offset = "0x22E24E0", VA = "0x1822E34E0")]
|
||||
public ParametersWithSalt(ICipherParameters parameters, byte[] salt)
|
||||
{
|
||||
int length = salt.Length;
|
||||
base..ctor();
|
||||
byte[] array = new byte[length];
|
||||
int num = 0;
|
||||
this.salt = array;
|
||||
int num2 = 0;
|
||||
this.parameters = parameters;
|
||||
Array.Copy(salt, num2, array, num, length);
|
||||
}
|
||||
|
||||
// Token: 0x0600B73F RID: 46911 RVA: 0x0027A170 File Offset: 0x00278370
|
||||
[Token(Token = "0x600B73F")]
|
||||
[Address(RVA = "0x22E3440", Offset = "0x22E2440", VA = "0x1822E3440")]
|
||||
public ParametersWithSalt(ICipherParameters parameters, byte[] salt, int saltOff, int saltLen)
|
||||
{
|
||||
byte[] array = new byte[0];
|
||||
this.salt = array;
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B740 RID: 46912 RVA: 0x0027A198 File Offset: 0x00278398
|
||||
[Token(Token = "0x600B740")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
public byte[] GetSalt()
|
||||
{
|
||||
return this.salt;
|
||||
}
|
||||
|
||||
// Token: 0x17001CEB RID: 7403
|
||||
// (get) Token: 0x0600B741 RID: 46913 RVA: 0x0027A1AC File Offset: 0x002783AC
|
||||
[Token(Token = "0x17001CEB")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600B741")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073C5 RID: 29637
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073C5")]
|
||||
private byte[] salt;
|
||||
|
||||
// Token: 0x040073C6 RID: 29638
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073C6")]
|
||||
private ICipherParameters parameters;
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF0 RID: 7408
|
||||
[Token(Token = "0x2001CF0")]
|
||||
public class RC2Parameters : KeyParameter
|
||||
{
|
||||
// Token: 0x0600B742 RID: 46914 RVA: 0x0027A1C0 File Offset: 0x002783C0
|
||||
[Token(Token = "0x600B742")]
|
||||
[Address(RVA = "0x22E3740", Offset = "0x22E2740", VA = "0x1822E3740")]
|
||||
public RC2Parameters(byte[] key)
|
||||
{
|
||||
int length = key.Length;
|
||||
base..ctor(key);
|
||||
this.bits = (int)((uint)1024);
|
||||
}
|
||||
|
||||
// Token: 0x0600B743 RID: 46915 RVA: 0x0027A1F0 File Offset: 0x002783F0
|
||||
[Token(Token = "0x600B743")]
|
||||
[Address(RVA = "0x22E3790", Offset = "0x22E2790", VA = "0x1822E3790")]
|
||||
public RC2Parameters(byte[] key, int keyOff, int keyLen)
|
||||
: base(key, keyOff, keyLen)
|
||||
{
|
||||
this.bits = (int)((uint)1024);
|
||||
}
|
||||
|
||||
// Token: 0x0600B744 RID: 46916 RVA: 0x0027A218 File Offset: 0x00278418
|
||||
[Token(Token = "0x600B744")]
|
||||
[Address(RVA = "0x22E37E0", Offset = "0x22E27E0", VA = "0x1822E37E0")]
|
||||
public RC2Parameters(byte[] key, int bits)
|
||||
: base(key)
|
||||
{
|
||||
this.bits = bits;
|
||||
}
|
||||
|
||||
// Token: 0x0600B745 RID: 46917 RVA: 0x0027A234 File Offset: 0x00278434
|
||||
[Token(Token = "0x600B745")]
|
||||
[Address(RVA = "0x22E3710", Offset = "0x22E2710", VA = "0x1822E3710")]
|
||||
public RC2Parameters(byte[] key, int keyOff, int keyLen, int bits)
|
||||
: base(key, keyOff, keyLen)
|
||||
{
|
||||
this.bits = 0;
|
||||
}
|
||||
|
||||
// Token: 0x17001CEC RID: 7404
|
||||
// (get) Token: 0x0600B746 RID: 46918 RVA: 0x0027A254 File Offset: 0x00278454
|
||||
[Token(Token = "0x17001CEC")]
|
||||
public int EffectiveKeyBits
|
||||
{
|
||||
[Token(Token = "0x600B746")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
||||
get
|
||||
{
|
||||
return this.bits;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073C7 RID: 29639
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073C7")]
|
||||
private readonly int bits;
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF1 RID: 7409
|
||||
[Token(Token = "0x2001CF1")]
|
||||
public class RC5Parameters : KeyParameter
|
||||
{
|
||||
// Token: 0x0600B747 RID: 46919 RVA: 0x0027A268 File Offset: 0x00278468
|
||||
[Token(Token = "0x600B747")]
|
||||
[Address(RVA = "0x22E3810", Offset = "0x22E2810", VA = "0x1822E3810")]
|
||||
public RC5Parameters(byte[] key, int rounds)
|
||||
: base(key)
|
||||
{
|
||||
this.rounds = rounds;
|
||||
}
|
||||
|
||||
// Token: 0x17001CED RID: 7405
|
||||
// (get) Token: 0x0600B748 RID: 46920 RVA: 0x0027A28C File Offset: 0x0027848C
|
||||
[Token(Token = "0x17001CED")]
|
||||
public int Rounds
|
||||
{
|
||||
[Token(Token = "0x600B748")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
||||
get
|
||||
{
|
||||
return this.rounds;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073C8 RID: 29640
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073C8")]
|
||||
private readonly int rounds;
|
||||
}
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF2 RID: 7410
|
||||
[Token(Token = "0x2001CF2")]
|
||||
public class RsaBlindingParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B749 RID: 46921 RVA: 0x0027A2A0 File Offset: 0x002784A0
|
||||
[Token(Token = "0x600B749")]
|
||||
[Address(RVA = "0x22E38B0", Offset = "0x22E28B0", VA = "0x1822E38B0")]
|
||||
public RsaBlindingParameters(RsaKeyParameters publicKey, BigInteger blindingFactor)
|
||||
{
|
||||
this.publicKey = publicKey;
|
||||
this.blindingFactor = blindingFactor;
|
||||
}
|
||||
|
||||
// Token: 0x17001CEE RID: 7406
|
||||
// (get) Token: 0x0600B74A RID: 46922 RVA: 0x0027A2D4 File Offset: 0x002784D4
|
||||
[Token(Token = "0x17001CEE")]
|
||||
public RsaKeyParameters PublicKey
|
||||
{
|
||||
[Token(Token = "0x600B74A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.publicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CEF RID: 7407
|
||||
// (get) Token: 0x0600B74B RID: 46923 RVA: 0x0027A2E8 File Offset: 0x002784E8
|
||||
[Token(Token = "0x17001CEF")]
|
||||
public BigInteger BlindingFactor
|
||||
{
|
||||
[Token(Token = "0x600B74B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.blindingFactor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073C9 RID: 29641
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073C9")]
|
||||
private readonly RsaKeyParameters publicKey;
|
||||
|
||||
// Token: 0x040073CA RID: 29642
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073CA")]
|
||||
private readonly BigInteger blindingFactor;
|
||||
}
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF3 RID: 7411
|
||||
[Token(Token = "0x2001CF3")]
|
||||
public class RsaKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B74C RID: 46924 RVA: 0x0027A2FC File Offset: 0x002784FC
|
||||
[Token(Token = "0x600B74C")]
|
||||
[Address(RVA = "0x22E3A50", Offset = "0x22E2A50", VA = "0x1822E3A50")]
|
||||
public RsaKeyGenerationParameters(BigInteger publicExponent, SecureRandom random, int strength, int certainty)
|
||||
: base(random, strength)
|
||||
{
|
||||
this.publicExponent = publicExponent;
|
||||
this.certainty = 0;
|
||||
}
|
||||
|
||||
// Token: 0x17001CF0 RID: 7408
|
||||
// (get) Token: 0x0600B74D RID: 46925 RVA: 0x0027A320 File Offset: 0x00278520
|
||||
[Token(Token = "0x17001CF0")]
|
||||
public BigInteger PublicExponent
|
||||
{
|
||||
[Token(Token = "0x600B74D")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.publicExponent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CF1 RID: 7409
|
||||
// (get) Token: 0x0600B74E RID: 46926 RVA: 0x0027A334 File Offset: 0x00278534
|
||||
[Token(Token = "0x17001CF1")]
|
||||
public int Certainty
|
||||
{
|
||||
[Token(Token = "0x600B74E")]
|
||||
[Address(RVA = "0x471180", Offset = "0x470180", VA = "0x180471180")]
|
||||
get
|
||||
{
|
||||
return this.certainty;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B74F RID: 46927 RVA: 0x0027A348 File Offset: 0x00278548
|
||||
[Token(Token = "0x600B74F")]
|
||||
[Address(RVA = "0x22E3950", Offset = "0x22E2950", VA = "0x1822E3950", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (obj != 0 && this.certainty == num)
|
||||
{
|
||||
BigInteger bigInteger = this.publicExponent;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B750 RID: 46928 RVA: 0x0027A378 File Offset: 0x00278578
|
||||
[Token(Token = "0x600B750")]
|
||||
[Address(RVA = "0x22E3A00", Offset = "0x22E2A00", VA = "0x1822E3A00", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = this.certainty;
|
||||
this.publicExponent.Finalize();
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x040073CB RID: 29643
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073CB")]
|
||||
private readonly BigInteger publicExponent;
|
||||
|
||||
// Token: 0x040073CC RID: 29644
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40073CC")]
|
||||
private readonly int certainty;
|
||||
}
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF4 RID: 7412
|
||||
[Token(Token = "0x2001CF4")]
|
||||
public class RsaKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B751 RID: 46929 RVA: 0x0027A3A0 File Offset: 0x002785A0
|
||||
[Token(Token = "0x600B751")]
|
||||
[Address(RVA = "0x22E3C00", Offset = "0x22E2C00", VA = "0x1822E3C00")]
|
||||
private static BigInteger Validate(BigInteger modulus)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B751)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.RsaKeyParameters::Validate(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1F:
|
||||
stloc:ArgumentException(var_2_2E, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("RSA modulus is even"), ldstr:string("modulus")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B752 RID: 46930 RVA: 0x0027A3DC File Offset: 0x002785DC
|
||||
[Token(Token = "0x600B752")]
|
||||
[Address(RVA = "0x22E3DB0", Offset = "0x22E2DB0", VA = "0x1822E3DB0")]
|
||||
public RsaKeyParameters(bool isPrivate, BigInteger modulus, BigInteger exponent)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B752)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.RsaKeyParameters::.ctor(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5F:
|
||||
stloc:ArgumentException(var_3_6E, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("RSA publicExponent is even"), ldstr:string("exponent")))
|
||||
stloc:ArgumentException(var_4_79, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("RSA modulus has a small prime factor")))
|
||||
}
|
||||
|
||||
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: 0x17001CF2 RID: 7410
|
||||
// (get) Token: 0x0600B753 RID: 46931 RVA: 0x0027A464 File Offset: 0x00278664
|
||||
[Token(Token = "0x17001CF2")]
|
||||
public BigInteger Modulus
|
||||
{
|
||||
[Token(Token = "0x600B753")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.modulus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CF3 RID: 7411
|
||||
// (get) Token: 0x0600B754 RID: 46932 RVA: 0x0027A478 File Offset: 0x00278678
|
||||
[Token(Token = "0x17001CF3")]
|
||||
public BigInteger Exponent
|
||||
{
|
||||
[Token(Token = "0x600B754")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.exponent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B755 RID: 46933 RVA: 0x0027A48C File Offset: 0x0027868C
|
||||
[Token(Token = "0x600B755")]
|
||||
[Address(RVA = "0x22E3A90", Offset = "0x22E2A90", VA = "0x1822E3A90", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
bool privateKey = this.privateKey;
|
||||
if (privateKey)
|
||||
{
|
||||
return privateKey;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B756 RID: 46934 RVA: 0x0027A4B8 File Offset: 0x002786B8
|
||||
[Token(Token = "0x600B756")]
|
||||
[Address(RVA = "0x22E3B80", Offset = "0x22E2B80", VA = "0x1822E3B80", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.modulus.Finalize();
|
||||
this.exponent.Finalize();
|
||||
bool privateKey = this.privateKey;
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x040073CD RID: 29645
|
||||
[Token(Token = "0x40073CD")]
|
||||
private static BigInteger SmallPrimesProduct = new BigInteger("8138E8A0FCF3A4E84A771D40FD305D7F4AA59306D7251DE54D98AF8FE95729A1F73D893FA424CD2EDC8636A6C3285E022B0E3866A565AE8108EED8591CD4FE8D2CE86165A978D719EBF647F362D33FCA29CD179FB42401CBAF3DF0C614056F9C8F3CFD51E474AFB6BC6974F78DB8ABA8E9E517FDED658591AB7502BD41849462F", 16);
|
||||
|
||||
// Token: 0x040073CE RID: 29646
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073CE")]
|
||||
private readonly BigInteger modulus;
|
||||
|
||||
// Token: 0x040073CF RID: 29647
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073CF")]
|
||||
private readonly BigInteger exponent;
|
||||
}
|
||||
}
|
||||
+223
@@ -0,0 +1,223 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF5 RID: 7413
|
||||
[Token(Token = "0x2001CF5")]
|
||||
public class RsaPrivateCrtKeyParameters : RsaKeyParameters
|
||||
{
|
||||
// Token: 0x0600B758 RID: 46936 RVA: 0x0027A50C File Offset: 0x0027870C
|
||||
[Token(Token = "0x600B758")]
|
||||
[Address(RVA = "0x22E44C0", Offset = "0x22E34C0", VA = "0x1822E44C0")]
|
||||
public RsaPrivateCrtKeyParameters(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv)
|
||||
: base(true, modulus, privateExponent)
|
||||
{
|
||||
RsaPrivateCrtKeyParameters.ValidateValue(publicExponent, "publicExponent", "exponent");
|
||||
this.q = 0;
|
||||
this.dP = 0;
|
||||
this.dQ = 0;
|
||||
this.qInv = 0;
|
||||
this.e = publicExponent;
|
||||
this.p = 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600B759 RID: 46937 RVA: 0x0027A55C File Offset: 0x0027875C
|
||||
[Token(Token = "0x600B759")]
|
||||
[Address(RVA = "0x22E4630", Offset = "0x22E3630", VA = "0x1822E4630")]
|
||||
public RsaPrivateCrtKeyParameters(RsaPrivateKeyStructure rsaPrivateKey)
|
||||
{
|
||||
BigInteger prime = rsaPrivateKey.prime2;
|
||||
BigInteger prime2 = rsaPrivateKey.prime1;
|
||||
BigInteger publicExponent = rsaPrivateKey.publicExponent;
|
||||
BigInteger coefficient = rsaPrivateKey.coefficient;
|
||||
BigInteger modulus = rsaPrivateKey.modulus;
|
||||
BigInteger exponent = rsaPrivateKey.exponent1;
|
||||
BigInteger privateExponent = rsaPrivateKey.privateExponent;
|
||||
BigInteger exponent2 = rsaPrivateKey.exponent2;
|
||||
base..ctor(true, modulus, privateExponent);
|
||||
RsaPrivateCrtKeyParameters.ValidateValue(publicExponent, "publicExponent", "exponent");
|
||||
RsaPrivateCrtKeyParameters.ValidateValue(prime2, "p", "P value");
|
||||
RsaPrivateCrtKeyParameters.ValidateValue(prime, "q", "Q value");
|
||||
RsaPrivateCrtKeyParameters.ValidateValue(exponent, "dP", "DP value");
|
||||
RsaPrivateCrtKeyParameters.ValidateValue(exponent2, "dQ", "DQ value");
|
||||
RsaPrivateCrtKeyParameters.ValidateValue(coefficient, "qInv", "InverseQ value");
|
||||
this.e = publicExponent;
|
||||
this.p = prime2;
|
||||
this.q = prime;
|
||||
this.dP = exponent;
|
||||
this.dQ = exponent2;
|
||||
this.qInv = coefficient;
|
||||
}
|
||||
|
||||
// Token: 0x17001CF4 RID: 7412
|
||||
// (get) Token: 0x0600B75A RID: 46938 RVA: 0x0027A644 File Offset: 0x00278844
|
||||
[Token(Token = "0x17001CF4")]
|
||||
public BigInteger PublicExponent
|
||||
{
|
||||
[Token(Token = "0x600B75A")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.e;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CF5 RID: 7413
|
||||
// (get) Token: 0x0600B75B RID: 46939 RVA: 0x0027A658 File Offset: 0x00278858
|
||||
[Token(Token = "0x17001CF5")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600B75B")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CF6 RID: 7414
|
||||
// (get) Token: 0x0600B75C RID: 46940 RVA: 0x0027A66C File Offset: 0x0027886C
|
||||
[Token(Token = "0x17001CF6")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x600B75C")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CF7 RID: 7415
|
||||
// (get) Token: 0x0600B75D RID: 46941 RVA: 0x0027A680 File Offset: 0x00278880
|
||||
[Token(Token = "0x17001CF7")]
|
||||
public BigInteger DP
|
||||
{
|
||||
[Token(Token = "0x600B75D")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.dP;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CF8 RID: 7416
|
||||
// (get) Token: 0x0600B75E RID: 46942 RVA: 0x0027A694 File Offset: 0x00278894
|
||||
[Token(Token = "0x17001CF8")]
|
||||
public BigInteger DQ
|
||||
{
|
||||
[Token(Token = "0x600B75E")]
|
||||
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0")]
|
||||
get
|
||||
{
|
||||
return this.dQ;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CF9 RID: 7417
|
||||
// (get) Token: 0x0600B75F RID: 46943 RVA: 0x0027A6A8 File Offset: 0x002788A8
|
||||
[Token(Token = "0x17001CF9")]
|
||||
public BigInteger QInv
|
||||
{
|
||||
[Token(Token = "0x600B75F")]
|
||||
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0")]
|
||||
get
|
||||
{
|
||||
return this.qInv;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B760 RID: 46944 RVA: 0x0027A6BC File Offset: 0x002788BC
|
||||
[Token(Token = "0x600B760")]
|
||||
[Address(RVA = "0x22E40C0", Offset = "0x22E30C0", VA = "0x1822E40C0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (obj == 0 || num == 0 || num == 0 || num == 0 || num == 0 || num == 0 || num == 0 || num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600B761 RID: 46945 RVA: 0x0027A6FC File Offset: 0x002788FC
|
||||
[Token(Token = "0x600B761")]
|
||||
[Address(RVA = "0x22E42B0", Offset = "0x22E32B0", VA = "0x1822E42B0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.dP.Finalize();
|
||||
this.dQ.Finalize();
|
||||
this.exponent.Finalize();
|
||||
this.modulus.Finalize();
|
||||
this.p.Finalize();
|
||||
this.q.Finalize();
|
||||
this.e.Finalize();
|
||||
this.qInv.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B762 RID: 46946 RVA: 0x0027A768 File Offset: 0x00278968
|
||||
[Token(Token = "0x600B762")]
|
||||
[Address(RVA = "0x22E4400", Offset = "0x22E3400", VA = "0x1822E4400")]
|
||||
private static void ValidateValue(BigInteger x, string name, string desc)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B762)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.RsaPrivateCrtKeyParameters::ValidateValue(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.String,System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:ArgumentNullException(var_1_26, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldloc:string(name)))
|
||||
}
|
||||
|
||||
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: 0x040073D0 RID: 29648
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40073D0")]
|
||||
private readonly BigInteger e;
|
||||
|
||||
// Token: 0x040073D1 RID: 29649
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40073D1")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x040073D2 RID: 29650
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40073D2")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x040073D3 RID: 29651
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40073D3")]
|
||||
private readonly BigInteger dP;
|
||||
|
||||
// Token: 0x040073D4 RID: 29652
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40073D4")]
|
||||
private readonly BigInteger dQ;
|
||||
|
||||
// Token: 0x040073D5 RID: 29653
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40073D5")]
|
||||
private readonly BigInteger qInv;
|
||||
}
|
||||
}
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF6 RID: 7414
|
||||
[Token(Token = "0x2001CF6")]
|
||||
public class SM2KeyExchangePrivateParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B763 RID: 46947 RVA: 0x0027A79C File Offset: 0x0027899C
|
||||
[Token(Token = "0x600B763")]
|
||||
[Address(RVA = "0x22E47C0", Offset = "0x22E37C0", VA = "0x1822E47C0")]
|
||||
public SM2KeyExchangePrivateParameters(bool initiator, ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B763)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SM2KeyExchangePrivateParameters::.ctor(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.ECPrivateKeyParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5B:
|
||||
stloc:ArgumentNullException(var_3_65, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("staticPrivateKey")))
|
||||
stloc:ArgumentException(var_4_70, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Static and ephemeral private 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: 0x17001CFA RID: 7418
|
||||
// (get) Token: 0x0600B764 RID: 46948 RVA: 0x0027A81C File Offset: 0x00278A1C
|
||||
[Token(Token = "0x17001CFA")]
|
||||
public virtual bool IsInitiator
|
||||
{
|
||||
[Token(Token = "0x600B764")]
|
||||
[Address(RVA = "0x4944B0", Offset = "0x4934B0", VA = "0x1804944B0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.mInitiator;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CFB RID: 7419
|
||||
// (get) Token: 0x0600B765 RID: 46949 RVA: 0x0027A830 File Offset: 0x00278A30
|
||||
[Token(Token = "0x17001CFB")]
|
||||
public virtual ECPrivateKeyParameters StaticPrivateKey
|
||||
{
|
||||
[Token(Token = "0x600B765")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.mStaticPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CFC RID: 7420
|
||||
// (get) Token: 0x0600B766 RID: 46950 RVA: 0x0027A844 File Offset: 0x00278A44
|
||||
[Token(Token = "0x17001CFC")]
|
||||
public virtual ECPoint StaticPublicPoint
|
||||
{
|
||||
[Token(Token = "0x600B766")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.mStaticPublicPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CFD RID: 7421
|
||||
// (get) Token: 0x0600B767 RID: 46951 RVA: 0x0027A858 File Offset: 0x00278A58
|
||||
[Token(Token = "0x17001CFD")]
|
||||
public virtual ECPrivateKeyParameters EphemeralPrivateKey
|
||||
{
|
||||
[Token(Token = "0x600B767")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.mEphemeralPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001CFE RID: 7422
|
||||
// (get) Token: 0x0600B768 RID: 46952 RVA: 0x0027A86C File Offset: 0x00278A6C
|
||||
[Token(Token = "0x17001CFE")]
|
||||
public virtual ECPoint EphemeralPublicPoint
|
||||
{
|
||||
[Token(Token = "0x600B768")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.mEphemeralPublicPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073D6 RID: 29654
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073D6")]
|
||||
private readonly bool mInitiator;
|
||||
|
||||
// Token: 0x040073D7 RID: 29655
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073D7")]
|
||||
private readonly ECPrivateKeyParameters mStaticPrivateKey;
|
||||
|
||||
// Token: 0x040073D8 RID: 29656
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40073D8")]
|
||||
private readonly ECPoint mStaticPublicPoint;
|
||||
|
||||
// Token: 0x040073D9 RID: 29657
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40073D9")]
|
||||
private readonly ECPrivateKeyParameters mEphemeralPrivateKey;
|
||||
|
||||
// Token: 0x040073DA RID: 29658
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40073DA")]
|
||||
private readonly ECPoint mEphemeralPublicPoint;
|
||||
}
|
||||
}
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF7 RID: 7415
|
||||
[Token(Token = "0x2001CF7")]
|
||||
public class SM2KeyExchangePublicParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B769 RID: 46953 RVA: 0x0027A880 File Offset: 0x00278A80
|
||||
[Token(Token = "0x600B769")]
|
||||
[Address(RVA = "0x22E4990", Offset = "0x22E3990", VA = "0x1822E4990")]
|
||||
public SM2KeyExchangePublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B769)
|
||||
|
||||
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: 0x17001CFF RID: 7423
|
||||
// (get) Token: 0x0600B76A RID: 46954 RVA: 0x0027A8C8 File Offset: 0x00278AC8
|
||||
[Token(Token = "0x17001CFF")]
|
||||
public virtual ECPublicKeyParameters StaticPublicKey
|
||||
{
|
||||
[Token(Token = "0x600B76A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.mStaticPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001D00 RID: 7424
|
||||
// (get) Token: 0x0600B76B RID: 46955 RVA: 0x0027A8DC File Offset: 0x00278ADC
|
||||
[Token(Token = "0x17001D00")]
|
||||
public virtual ECPublicKeyParameters EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600B76B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.mEphemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073DB RID: 29659
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073DB")]
|
||||
private readonly ECPublicKeyParameters mStaticPublicKey;
|
||||
|
||||
// Token: 0x040073DC RID: 29660
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073DC")]
|
||||
private readonly ECPublicKeyParameters mEphemeralPublicKey;
|
||||
}
|
||||
}
|
||||
+464
@@ -0,0 +1,464 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CF8 RID: 7416
|
||||
[Token(Token = "0x2001CF8")]
|
||||
public class SkeinParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B76C RID: 46956 RVA: 0x0027A8F0 File Offset: 0x00278AF0
|
||||
[Token(Token = "0x600B76C")]
|
||||
[Address(RVA = "0x22E5410", Offset = "0x22E4410", VA = "0x1822E5410")]
|
||||
public SkeinParameters()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
base..ctor();
|
||||
this.parameters = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600B76D RID: 46957 RVA: 0x0027A914 File Offset: 0x00278B14
|
||||
[Token(Token = "0x600B76D")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
private SkeinParameters(IDictionary parameters)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B76E RID: 46958 RVA: 0x0027A930 File Offset: 0x00278B30
|
||||
[Token(Token = "0x600B76E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
public IDictionary GetParameters()
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B76F RID: 46959 RVA: 0x0027A944 File Offset: 0x00278B44
|
||||
[Token(Token = "0x600B76F")]
|
||||
[Address(RVA = "0x22E5180", Offset = "0x22E4180", VA = "0x1822E5180")]
|
||||
public byte[] GetKey()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
}
|
||||
while (num != 0 && num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B770 RID: 46960 RVA: 0x0027A968 File Offset: 0x00278B68
|
||||
[Token(Token = "0x600B770")]
|
||||
[Address(RVA = "0x22E52D0", Offset = "0x22E42D0", VA = "0x1822E52D0")]
|
||||
public byte[] GetPersonalisation()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B771 RID: 46961 RVA: 0x0027A98C File Offset: 0x00278B8C
|
||||
[Token(Token = "0x600B771")]
|
||||
[Address(RVA = "0x22E5370", Offset = "0x22E4370", VA = "0x1822E5370")]
|
||||
public byte[] GetPublicKey()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B772 RID: 46962 RVA: 0x0027A9B0 File Offset: 0x00278BB0
|
||||
[Token(Token = "0x600B772")]
|
||||
[Address(RVA = "0x22E50E0", Offset = "0x22E40E0", VA = "0x1822E50E0")]
|
||||
public byte[] GetKeyIdentifier()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600B773 RID: 46963 RVA: 0x0027A9D4 File Offset: 0x00278BD4
|
||||
[Token(Token = "0x600B773")]
|
||||
[Address(RVA = "0x22E5230", Offset = "0x22E4230", VA = "0x1822E5230")]
|
||||
public byte[] GetNonce()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040073DD RID: 29661
|
||||
[Token(Token = "0x40073DD")]
|
||||
public const int PARAM_TYPE_KEY = 0;
|
||||
|
||||
// Token: 0x040073DE RID: 29662
|
||||
[Token(Token = "0x40073DE")]
|
||||
public const int PARAM_TYPE_CONFIG = 4;
|
||||
|
||||
// Token: 0x040073DF RID: 29663
|
||||
[Token(Token = "0x40073DF")]
|
||||
public const int PARAM_TYPE_PERSONALISATION = 8;
|
||||
|
||||
// Token: 0x040073E0 RID: 29664
|
||||
[Token(Token = "0x40073E0")]
|
||||
public const int PARAM_TYPE_PUBLIC_KEY = 12;
|
||||
|
||||
// Token: 0x040073E1 RID: 29665
|
||||
[Token(Token = "0x40073E1")]
|
||||
public const int PARAM_TYPE_KEY_IDENTIFIER = 16;
|
||||
|
||||
// Token: 0x040073E2 RID: 29666
|
||||
[Token(Token = "0x40073E2")]
|
||||
public const int PARAM_TYPE_NONCE = 20;
|
||||
|
||||
// Token: 0x040073E3 RID: 29667
|
||||
[Token(Token = "0x40073E3")]
|
||||
public const int PARAM_TYPE_MESSAGE = 48;
|
||||
|
||||
// Token: 0x040073E4 RID: 29668
|
||||
[Token(Token = "0x40073E4")]
|
||||
public const int PARAM_TYPE_OUTPUT = 63;
|
||||
|
||||
// Token: 0x040073E5 RID: 29669
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073E5")]
|
||||
private IDictionary parameters;
|
||||
|
||||
// Token: 0x02001CF9 RID: 7417
|
||||
[Token(Token = "0x2001CF9")]
|
||||
public class Builder
|
||||
{
|
||||
// Token: 0x0600B774 RID: 46964 RVA: 0x0027A9F8 File Offset: 0x00278BF8
|
||||
[Token(Token = "0x600B774")]
|
||||
[Address(RVA = "0x22D0960", Offset = "0x22CF960", VA = "0x1822D0960")]
|
||||
public Builder()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.parameters = dictionary;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600B775 RID: 46965 RVA: 0x0027AA1C File Offset: 0x00278C1C
|
||||
[Token(Token = "0x600B775")]
|
||||
[Address(RVA = "0x22D02A0", Offset = "0x22CF2A0", VA = "0x1822D02A0")]
|
||||
public Builder(IDictionary paramsMap)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.parameters = dictionary;
|
||||
base..ctor();
|
||||
int num = 0;
|
||||
if (num < dictionary)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
int num2 = 0;
|
||||
if (dictionary != 0)
|
||||
{
|
||||
if (num < num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
IDictionary dictionary2 = this.parameters;
|
||||
if (num < typeof(IEnumerator).TypeHandle)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
int num3 = 0;
|
||||
if (num < num3)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num += 19;
|
||||
num++;
|
||||
num += 19;
|
||||
num += 19;
|
||||
num += 5;
|
||||
num += 19;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B776 RID: 46966 RVA: 0x0027AAA8 File Offset: 0x00278CA8
|
||||
[Token(Token = "0x600B776")]
|
||||
[Address(RVA = "0x22D05F0", Offset = "0x22CF5F0", VA = "0x1822D05F0")]
|
||||
public Builder(SkeinParameters parameters)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.parameters = dictionary;
|
||||
base..ctor();
|
||||
IDictionary dictionary2 = parameters.parameters;
|
||||
int num = 0;
|
||||
if (num < dictionary)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
int num2 = 0;
|
||||
if (dictionary != 0)
|
||||
{
|
||||
if (num < num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
IDictionary dictionary3 = this.parameters;
|
||||
IDictionary dictionary4 = parameters.parameters;
|
||||
if (num < typeof(int).TypeHandle)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
int num3 = 0;
|
||||
if (num < num3)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num += 19;
|
||||
num++;
|
||||
num += 19;
|
||||
num += 19;
|
||||
num += 5;
|
||||
num += 19;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B777 RID: 46967 RVA: 0x0027AB44 File Offset: 0x00278D44
|
||||
[Token(Token = "0x600B777")]
|
||||
[Address(RVA = "0x22D0120", Offset = "0x22CF120", VA = "0x1822D0120")]
|
||||
public SkeinParameters.Builder Set(int type, byte[] value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B777)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder::Set(System.Int32,System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentException(var_4_45, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("Parameter type "), ldloc:ArgumentException[exp:object](var_2), ldstr:string[exp:object](" is reserved for internal use."))))
|
||||
}
|
||||
|
||||
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: 0x0600B778 RID: 46968 RVA: 0x0027AB98 File Offset: 0x00278D98
|
||||
[Token(Token = "0x600B778")]
|
||||
[Address(RVA = "0x22CFB90", Offset = "0x22CEB90", VA = "0x1822CFB90")]
|
||||
public SkeinParameters.Builder SetKey(byte[] key)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B778)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder::SetKey(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:ArgumentException(var_2_17, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Parameter value must not be null.")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B779 RID: 46969 RVA: 0x0027ABBC File Offset: 0x00278DBC
|
||||
[Token(Token = "0x600B779")]
|
||||
[Address(RVA = "0x22CFFA0", Offset = "0x22CEFA0", VA = "0x1822CFFA0")]
|
||||
public SkeinParameters.Builder SetPersonalisation(byte[] personalisation)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B779)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder::SetPersonalisation(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:ArgumentException(var_2_17, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Parameter value must not be null.")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B77A RID: 46970 RVA: 0x0027ABE0 File Offset: 0x00278DE0
|
||||
[Token(Token = "0x600B77A")]
|
||||
[Address(RVA = "0x22CFD10", Offset = "0x22CED10", VA = "0x1822CFD10")]
|
||||
public SkeinParameters.Builder SetPersonalisation(DateTime date, string emailAddress, string distinguisher)
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
Encoding utf = Encoding.UTF8;
|
||||
StreamWriter streamWriter = new StreamWriter(memoryStream, utf);
|
||||
CultureInfo invariantCulture = CultureInfo.InvariantCulture;
|
||||
IDictionary dictionary = this.parameters;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600B77B RID: 46971 RVA: 0x0027AC34 File Offset: 0x00278E34
|
||||
[Token(Token = "0x600B77B")]
|
||||
[Address(RVA = "0x22D0060", Offset = "0x22CF060", VA = "0x1822D0060")]
|
||||
public SkeinParameters.Builder SetPublicKey(byte[] publicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B77B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder::SetPublicKey(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:ArgumentException(var_2_17, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Parameter value must not be null.")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B77C RID: 46972 RVA: 0x0027AC58 File Offset: 0x00278E58
|
||||
[Token(Token = "0x600B77C")]
|
||||
[Address(RVA = "0x22CFAD0", Offset = "0x22CEAD0", VA = "0x1822CFAD0")]
|
||||
public SkeinParameters.Builder SetKeyIdentifier(byte[] keyIdentifier)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B77C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder::SetKeyIdentifier(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:ArgumentException(var_2_17, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Parameter value must not be null.")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B77D RID: 46973 RVA: 0x0027AC7C File Offset: 0x00278E7C
|
||||
[Token(Token = "0x600B77D")]
|
||||
[Address(RVA = "0x22CFC50", Offset = "0x22CEC50", VA = "0x1822CFC50")]
|
||||
public SkeinParameters.Builder SetNonce(byte[] nonce)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B77D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.SkeinParameters/Builder::SetNonce(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:ArgumentException(var_2_17, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Parameter value must not be null.")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B77E RID: 46974 RVA: 0x0027ACA0 File Offset: 0x00278EA0
|
||||
[Token(Token = "0x600B77E")]
|
||||
[Address(RVA = "0x22CFA70", Offset = "0x22CEA70", VA = "0x1822CFA70")]
|
||||
public SkeinParameters Build()
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
return new SkeinParameters
|
||||
{
|
||||
parameters = dictionary
|
||||
};
|
||||
}
|
||||
|
||||
// Token: 0x040073E6 RID: 29670
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073E6")]
|
||||
private IDictionary parameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CFA RID: 7418
|
||||
[Token(Token = "0x2001CFA")]
|
||||
public sealed class Srp6GroupParameters
|
||||
{
|
||||
// Token: 0x0600B77F RID: 46975 RVA: 0x0027ACC4 File Offset: 0x00278EC4
|
||||
[Token(Token = "0x600B77F")]
|
||||
[Address(RVA = "0x417DD0", Offset = "0x416DD0", VA = "0x180417DD0")]
|
||||
public Srp6GroupParameters(BigInteger N, BigInteger g)
|
||||
{
|
||||
this.n = N;
|
||||
this.g = g;
|
||||
}
|
||||
|
||||
// Token: 0x17001D01 RID: 7425
|
||||
// (get) Token: 0x0600B780 RID: 46976 RVA: 0x0027ACE8 File Offset: 0x00278EE8
|
||||
[Token(Token = "0x17001D01")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600B780")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001D02 RID: 7426
|
||||
// (get) Token: 0x0600B781 RID: 46977 RVA: 0x0027ACFC File Offset: 0x00278EFC
|
||||
[Token(Token = "0x17001D02")]
|
||||
public BigInteger N
|
||||
{
|
||||
[Token(Token = "0x600B781")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.n;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073E7 RID: 29671
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073E7")]
|
||||
private readonly BigInteger n;
|
||||
|
||||
// Token: 0x040073E8 RID: 29672
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073E8")]
|
||||
private readonly BigInteger g;
|
||||
}
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CFB RID: 7419
|
||||
[Token(Token = "0x2001CFB")]
|
||||
public class TweakableBlockCipherParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600B782 RID: 46978 RVA: 0x0027AD10 File Offset: 0x00278F10
|
||||
[Token(Token = "0x600B782")]
|
||||
[Address(RVA = "0x2368020", Offset = "0x2367020", VA = "0x182368020")]
|
||||
public TweakableBlockCipherParameters(KeyParameter key, byte[] tweak)
|
||||
{
|
||||
this.key = key;
|
||||
byte[] array = Arrays.Clone(tweak);
|
||||
this.tweak = array;
|
||||
}
|
||||
|
||||
// Token: 0x17001D03 RID: 7427
|
||||
// (get) Token: 0x0600B783 RID: 46979 RVA: 0x0027AD38 File Offset: 0x00278F38
|
||||
[Token(Token = "0x17001D03")]
|
||||
public KeyParameter Key
|
||||
{
|
||||
[Token(Token = "0x600B783")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.key;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001D04 RID: 7428
|
||||
// (get) Token: 0x0600B784 RID: 46980 RVA: 0x0027AD4C File Offset: 0x00278F4C
|
||||
[Token(Token = "0x17001D04")]
|
||||
public byte[] Tweak
|
||||
{
|
||||
[Token(Token = "0x600B784")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.tweak;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040073E9 RID: 29673
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40073E9")]
|
||||
private readonly byte[] tweak;
|
||||
|
||||
// Token: 0x040073EA RID: 29674
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073EA")]
|
||||
private readonly KeyParameter key;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CFC RID: 7420
|
||||
[Token(Token = "0x2001CFC")]
|
||||
public class X25519KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B785 RID: 46981 RVA: 0x0027AD60 File Offset: 0x00278F60
|
||||
[Token(Token = "0x600B785")]
|
||||
[Address(RVA = "0x23685B0", Offset = "0x23675B0", VA = "0x1823685B0")]
|
||||
public X25519KeyGenerationParameters(SecureRandom random)
|
||||
: base(random, 255)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc7748;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CFD RID: 7421
|
||||
[Token(Token = "0x2001CFD")]
|
||||
public sealed class X25519PrivateKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B786 RID: 46982 RVA: 0x0027AD7C File Offset: 0x00278F7C
|
||||
[Token(Token = "0x600B786")]
|
||||
[Address(RVA = "0x2368B20", Offset = "0x2367B20", VA = "0x182368B20")]
|
||||
public X25519PrivateKeyParameters(SecureRandom random)
|
||||
{
|
||||
byte[] array = new byte[X25519PrivateKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
base..ctor(true);
|
||||
byte[] array2 = this.data;
|
||||
X25519.GeneratePrivateKey(random, array2);
|
||||
}
|
||||
|
||||
// Token: 0x0600B787 RID: 46983 RVA: 0x0027ADB0 File Offset: 0x00278FB0
|
||||
[Token(Token = "0x600B787")]
|
||||
[Address(RVA = "0x2368A60", Offset = "0x2367A60", VA = "0x182368A60")]
|
||||
public X25519PrivateKeyParameters(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = new byte[X25519PrivateKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
base..ctor(true);
|
||||
int num = 0;
|
||||
byte[] array2 = this.data;
|
||||
int keySize = X25519PrivateKeyParameters.KeySize;
|
||||
Array.Copy(buf, off, array2, num, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B788 RID: 46984 RVA: 0x0027ADF4 File Offset: 0x00278FF4
|
||||
[Token(Token = "0x600B788")]
|
||||
[Address(RVA = "0x2368970", Offset = "0x2367970", VA = "0x182368970")]
|
||||
public X25519PrivateKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B788)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.X25519PrivateKeyParameters::.ctor(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:EndOfStreamException(var_4_3D, newobj:EndOfStreamException(EndOfStreamException::.ctor, ldstr:string("EOF encountered in middle of X25519 private key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B789 RID: 46985 RVA: 0x0027AE40 File Offset: 0x00279040
|
||||
[Token(Token = "0x600B789")]
|
||||
[Address(RVA = "0x23685C0", Offset = "0x23675C0", VA = "0x1823685C0")]
|
||||
public void Encode(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = this.data;
|
||||
int num = 0;
|
||||
int keySize = X25519PrivateKeyParameters.KeySize;
|
||||
Array.Copy(array, num, buf, off, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B78A RID: 46986 RVA: 0x0027AE68 File Offset: 0x00279068
|
||||
[Token(Token = "0x600B78A")]
|
||||
[Address(RVA = "0x23688C0", Offset = "0x23678C0", VA = "0x1823688C0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x0600B78B RID: 46987 RVA: 0x0027AE80 File Offset: 0x00279080
|
||||
[Token(Token = "0x600B78B")]
|
||||
[Address(RVA = "0x2368660", Offset = "0x2367660", VA = "0x182368660")]
|
||||
public X25519PublicKeyParameters GeneratePublicKey()
|
||||
{
|
||||
byte[] array = new byte[32];
|
||||
byte[] array2 = this.data;
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
X25519.GeneratePublicKey(array2, num2, array, num);
|
||||
int num3;
|
||||
X25519PublicKeyParameters x25519PublicKeyParameters = new X25519PublicKeyParameters(num3);
|
||||
byte[] array3 = new byte[X25519PublicKeyParameters.KeySize];
|
||||
x25519PublicKeyParameters.data = array3;
|
||||
num3 = 0;
|
||||
int num4 = 0;
|
||||
byte[] array4 = x25519PublicKeyParameters.data;
|
||||
int num5 = 0;
|
||||
int keySize = X25519PublicKeyParameters.KeySize;
|
||||
Array.Copy(array, num5, array4, num4, keySize);
|
||||
return x25519PublicKeyParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B78C RID: 46988 RVA: 0x0027AEF4 File Offset: 0x002790F4
|
||||
[Token(Token = "0x600B78C")]
|
||||
[Address(RVA = "0x2368770", Offset = "0x2367770", VA = "0x182368770")]
|
||||
public void GenerateSecret(X25519PublicKeyParameters publicKey, byte[] buf, int off)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B78C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.X25519PrivateKeyParameters::GenerateSecret(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.X25519PublicKeyParameters,System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_47:
|
||||
stloc:InvalidOperationException(var_10_51, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("X25519 agreement failed")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x040073EB RID: 29675
|
||||
[Token(Token = "0x40073EB")]
|
||||
public static readonly int KeySize;
|
||||
|
||||
// Token: 0x040073EC RID: 29676
|
||||
[Token(Token = "0x40073EC")]
|
||||
public static readonly int SecretSize;
|
||||
|
||||
// Token: 0x040073ED RID: 29677
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073ED")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CFE RID: 7422
|
||||
[Token(Token = "0x2001CFE")]
|
||||
public sealed class X25519PublicKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B78E RID: 46990 RVA: 0x0027AF64 File Offset: 0x00279164
|
||||
[Token(Token = "0x600B78E")]
|
||||
[Address(RVA = "0x2368D00", Offset = "0x2367D00", VA = "0x182368D00")]
|
||||
public X25519PublicKeyParameters(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = new byte[X25519PublicKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
int num = 0;
|
||||
base..ctor(num != 0);
|
||||
int num2 = 0;
|
||||
byte[] array2 = this.data;
|
||||
int keySize = X25519PublicKeyParameters.KeySize;
|
||||
Array.Copy(buf, off, array2, num2, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B78F RID: 46991 RVA: 0x0027AFA8 File Offset: 0x002791A8
|
||||
[Token(Token = "0x600B78F")]
|
||||
[Address(RVA = "0x2368DC0", Offset = "0x2367DC0", VA = "0x182368DC0")]
|
||||
public X25519PublicKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B78F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.X25519PublicKeyParameters::.ctor(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_37:
|
||||
stloc:EndOfStreamException(var_5_41, newobj:EndOfStreamException(EndOfStreamException::.ctor, ldstr:string("EOF encountered in middle of X25519 public key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B790 RID: 46992 RVA: 0x0027AFF8 File Offset: 0x002791F8
|
||||
[Token(Token = "0x600B790")]
|
||||
[Address(RVA = "0x2368BC0", Offset = "0x2367BC0", VA = "0x182368BC0")]
|
||||
public void Encode(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = this.data;
|
||||
int num = 0;
|
||||
int keySize = X25519PublicKeyParameters.KeySize;
|
||||
Array.Copy(array, num, buf, off, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B791 RID: 46993 RVA: 0x0027B020 File Offset: 0x00279220
|
||||
[Token(Token = "0x600B791")]
|
||||
[Address(RVA = "0x2368C60", Offset = "0x2367C60", VA = "0x182368C60")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x040073EE RID: 29678
|
||||
[Token(Token = "0x40073EE")]
|
||||
public static readonly int KeySize;
|
||||
|
||||
// Token: 0x040073EF RID: 29679
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073EF")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001CFF RID: 7423
|
||||
[Token(Token = "0x2001CFF")]
|
||||
public class X448KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600B793 RID: 46995 RVA: 0x0027B048 File Offset: 0x00279248
|
||||
[Token(Token = "0x600B793")]
|
||||
[Address(RVA = "0x22D6AB0", Offset = "0x22D5AB0", VA = "0x1822D6AB0")]
|
||||
public X448KeyGenerationParameters(SecureRandom random)
|
||||
: base(random, 448)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc7748;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001D00 RID: 7424
|
||||
[Token(Token = "0x2001D00")]
|
||||
public sealed class X448PrivateKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B794 RID: 46996 RVA: 0x0027B064 File Offset: 0x00279264
|
||||
[Token(Token = "0x600B794")]
|
||||
[Address(RVA = "0x2369260", Offset = "0x2368260", VA = "0x182369260")]
|
||||
public X448PrivateKeyParameters(SecureRandom random)
|
||||
{
|
||||
byte[] array = new byte[X448PrivateKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
base..ctor(true);
|
||||
byte[] array2 = this.data;
|
||||
X448.GeneratePrivateKey(random, array2);
|
||||
}
|
||||
|
||||
// Token: 0x0600B795 RID: 46997 RVA: 0x0027B098 File Offset: 0x00279298
|
||||
[Token(Token = "0x600B795")]
|
||||
[Address(RVA = "0x2369300", Offset = "0x2368300", VA = "0x182369300")]
|
||||
public X448PrivateKeyParameters(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = new byte[X448PrivateKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
base..ctor(true);
|
||||
int num = 0;
|
||||
byte[] array2 = this.data;
|
||||
int keySize = X448PrivateKeyParameters.KeySize;
|
||||
Array.Copy(buf, off, array2, num, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B796 RID: 46998 RVA: 0x0027B0DC File Offset: 0x002792DC
|
||||
[Token(Token = "0x600B796")]
|
||||
[Address(RVA = "0x23693C0", Offset = "0x23683C0", VA = "0x1823693C0")]
|
||||
public X448PrivateKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B796)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.X448PrivateKeyParameters::.ctor(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:EndOfStreamException(var_4_3D, newobj:EndOfStreamException(EndOfStreamException::.ctor, ldstr:string("EOF encountered in middle of X448 private key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B797 RID: 46999 RVA: 0x0027B128 File Offset: 0x00279328
|
||||
[Token(Token = "0x600B797")]
|
||||
[Address(RVA = "0x2368EB0", Offset = "0x2367EB0", VA = "0x182368EB0")]
|
||||
public void Encode(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = this.data;
|
||||
int num = 0;
|
||||
int keySize = X448PrivateKeyParameters.KeySize;
|
||||
Array.Copy(array, num, buf, off, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B798 RID: 47000 RVA: 0x0027B150 File Offset: 0x00279350
|
||||
[Token(Token = "0x600B798")]
|
||||
[Address(RVA = "0x23691B0", Offset = "0x23681B0", VA = "0x1823691B0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x0600B799 RID: 47001 RVA: 0x0027B168 File Offset: 0x00279368
|
||||
[Token(Token = "0x600B799")]
|
||||
[Address(RVA = "0x2368F50", Offset = "0x2367F50", VA = "0x182368F50")]
|
||||
public X448PublicKeyParameters GeneratePublicKey()
|
||||
{
|
||||
byte[] array = new byte[56];
|
||||
byte[] array2 = this.data;
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
X448.GeneratePublicKey(array2, num2, array, num);
|
||||
int num3;
|
||||
X448PublicKeyParameters x448PublicKeyParameters = new X448PublicKeyParameters(num3);
|
||||
byte[] array3 = new byte[X448PublicKeyParameters.KeySize];
|
||||
x448PublicKeyParameters.data = array3;
|
||||
num3 = 0;
|
||||
int num4 = 0;
|
||||
byte[] array4 = x448PublicKeyParameters.data;
|
||||
int num5 = 0;
|
||||
int keySize = X448PublicKeyParameters.KeySize;
|
||||
Array.Copy(array, num5, array4, num4, keySize);
|
||||
return x448PublicKeyParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600B79A RID: 47002 RVA: 0x0027B1DC File Offset: 0x002793DC
|
||||
[Token(Token = "0x600B79A")]
|
||||
[Address(RVA = "0x2369060", Offset = "0x2368060", VA = "0x182369060")]
|
||||
public void GenerateSecret(X448PublicKeyParameters publicKey, byte[] buf, int off)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B79A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.X448PrivateKeyParameters::GenerateSecret(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.X448PublicKeyParameters,System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_47:
|
||||
stloc:InvalidOperationException(var_10_51, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("X448 agreement failed")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x040073F0 RID: 29680
|
||||
[Token(Token = "0x40073F0")]
|
||||
public static readonly int KeySize;
|
||||
|
||||
// Token: 0x040073F1 RID: 29681
|
||||
[Token(Token = "0x40073F1")]
|
||||
public static readonly int SecretSize;
|
||||
|
||||
// Token: 0x040073F2 RID: 29682
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073F2")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001D01 RID: 7425
|
||||
[Token(Token = "0x2001D01")]
|
||||
public sealed class X448PublicKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600B79C RID: 47004 RVA: 0x0027B24C File Offset: 0x0027944C
|
||||
[Token(Token = "0x600B79C")]
|
||||
[Address(RVA = "0x23696E0", Offset = "0x23686E0", VA = "0x1823696E0")]
|
||||
public X448PublicKeyParameters(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = new byte[X448PublicKeyParameters.KeySize];
|
||||
this.data = array;
|
||||
int num = 0;
|
||||
base..ctor(num != 0);
|
||||
int num2 = 0;
|
||||
byte[] array2 = this.data;
|
||||
int keySize = X448PublicKeyParameters.KeySize;
|
||||
Array.Copy(buf, off, array2, num2, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B79D RID: 47005 RVA: 0x0027B290 File Offset: 0x00279490
|
||||
[Token(Token = "0x600B79D")]
|
||||
[Address(RVA = "0x23695F0", Offset = "0x23685F0", VA = "0x1823695F0")]
|
||||
public X448PublicKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B79D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.X448PublicKeyParameters::.ctor(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_37:
|
||||
stloc:EndOfStreamException(var_5_41, newobj:EndOfStreamException(EndOfStreamException::.ctor, ldstr:string("EOF encountered in middle of X448 public key")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600B79E RID: 47006 RVA: 0x0027B2E0 File Offset: 0x002794E0
|
||||
[Token(Token = "0x600B79E")]
|
||||
[Address(RVA = "0x23694B0", Offset = "0x23684B0", VA = "0x1823694B0")]
|
||||
public void Encode(byte[] buf, int off)
|
||||
{
|
||||
byte[] array = this.data;
|
||||
int num = 0;
|
||||
int keySize = X448PublicKeyParameters.KeySize;
|
||||
Array.Copy(array, num, buf, off, keySize);
|
||||
}
|
||||
|
||||
// Token: 0x0600B79F RID: 47007 RVA: 0x0027B308 File Offset: 0x00279508
|
||||
[Token(Token = "0x600B79F")]
|
||||
[Address(RVA = "0x2369550", Offset = "0x2368550", VA = "0x182369550")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x040073F3 RID: 29683
|
||||
[Token(Token = "0x40073F3")]
|
||||
public static readonly int KeySize;
|
||||
|
||||
// Token: 0x040073F4 RID: 29684
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40073F4")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user