scripts
This commit is contained in:
+96
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x020015FB RID: 5627
|
||||
[Token(Token = "0x20015FB")]
|
||||
[StructLayout(3)]
|
||||
public class AeadParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009663 RID: 38499 RVA: 0x00216508 File Offset: 0x00214708
|
||||
[Token(Token = "0x6009663")]
|
||||
[Address(RVA = "0x1DCD990", Offset = "0x1DCC390", VA = "0x181DCD990")]
|
||||
public AeadParameters(KeyParameter key, int macSize, byte[] nonce)
|
||||
{
|
||||
this.key = key;
|
||||
this.nonce = nonce;
|
||||
this.macSize = macSize;
|
||||
this.associatedText = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x06009664 RID: 38500 RVA: 0x0021653C File Offset: 0x0021473C
|
||||
[Token(Token = "0x6009664")]
|
||||
[Address(RVA = "0x1DCD940", Offset = "0x1DCC340", VA = "0x181DCD940")]
|
||||
public AeadParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText)
|
||||
{
|
||||
this.key = key;
|
||||
this.macSize = macSize;
|
||||
this.associatedText = 0;
|
||||
this.nonce = nonce;
|
||||
}
|
||||
|
||||
// Token: 0x170017F8 RID: 6136
|
||||
// (get) Token: 0x06009665 RID: 38501 RVA: 0x0021656C File Offset: 0x0021476C
|
||||
[Token(Token = "0x170017F8")]
|
||||
public virtual KeyParameter Key
|
||||
{
|
||||
[Token(Token = "0x6009665")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.key;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170017F9 RID: 6137
|
||||
// (get) Token: 0x06009666 RID: 38502 RVA: 0x00216580 File Offset: 0x00214780
|
||||
[Token(Token = "0x170017F9")]
|
||||
public virtual int MacSize
|
||||
{
|
||||
[Token(Token = "0x6009666")]
|
||||
[Address(RVA = "0x4D24F0", Offset = "0x4D0EF0", VA = "0x1804D24F0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.macSize;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009667 RID: 38503 RVA: 0x00216594 File Offset: 0x00214794
|
||||
[Token(Token = "0x6009667")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
public virtual byte[] GetAssociatedText()
|
||||
{
|
||||
return this.associatedText;
|
||||
}
|
||||
|
||||
// Token: 0x06009668 RID: 38504 RVA: 0x002165A8 File Offset: 0x002147A8
|
||||
[Token(Token = "0x6009668")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
public virtual byte[] GetNonce()
|
||||
{
|
||||
return this.nonce;
|
||||
}
|
||||
|
||||
// Token: 0x04006352 RID: 25426
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006352")]
|
||||
private readonly byte[] associatedText;
|
||||
|
||||
// Token: 0x04006353 RID: 25427
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006353")]
|
||||
private readonly byte[] nonce;
|
||||
|
||||
// Token: 0x04006354 RID: 25428
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006354")]
|
||||
private readonly KeyParameter key;
|
||||
|
||||
// Token: 0x04006355 RID: 25429
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006355")]
|
||||
private readonly int macSize;
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x020015FC RID: 5628
|
||||
[Token(Token = "0x20015FC")]
|
||||
[Obsolete]
|
||||
[StructLayout(3)]
|
||||
public class CcmParameters : AeadParameters
|
||||
{
|
||||
// Token: 0x06009669 RID: 38505 RVA: 0x002165BC File Offset: 0x002147BC
|
||||
[Token(Token = "0x6009669")]
|
||||
[Address(RVA = "0x1DCD940", Offset = "0x1DCC340", VA = "0x181DCD940")]
|
||||
public CcmParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText)
|
||||
{
|
||||
this.key = key;
|
||||
this.macSize = macSize;
|
||||
this.associatedText = 0;
|
||||
this.nonce = nonce;
|
||||
}
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x020015FD RID: 5629
|
||||
[Token(Token = "0x20015FD")]
|
||||
[StructLayout(3)]
|
||||
public class DHKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600966A RID: 38506 RVA: 0x002165EC File Offset: 0x002147EC
|
||||
[Token(Token = "0x600966A")]
|
||||
[Address(RVA = "0x1DD1470", Offset = "0x1DCFE70", VA = "0x181DD1470")]
|
||||
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: 0x170017FA RID: 6138
|
||||
// (get) Token: 0x0600966B RID: 38507 RVA: 0x00216628 File Offset: 0x00214828
|
||||
[Token(Token = "0x170017FA")]
|
||||
public DHParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600966B")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600966C RID: 38508 RVA: 0x0021663C File Offset: 0x0021483C
|
||||
[Token(Token = "0x600966C")]
|
||||
[Address(RVA = "0x1DD1440", Offset = "0x1DCFE40", VA = "0x181DD1440")]
|
||||
internal static int GetStrength(DHParameters parameters)
|
||||
{
|
||||
int l = parameters.l;
|
||||
if (l == 0)
|
||||
{
|
||||
return parameters.p.BitLength;
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
// Token: 0x04006356 RID: 25430
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006356")]
|
||||
private readonly DHParameters parameters;
|
||||
}
|
||||
}
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x020015FE RID: 5630
|
||||
[Token(Token = "0x20015FE")]
|
||||
[StructLayout(3)]
|
||||
public class DHKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600966D RID: 38509 RVA: 0x00216668 File Offset: 0x00214868
|
||||
[Token(Token = "0x600966D")]
|
||||
[Address(RVA = "0x1DD1640", Offset = "0x1DD0040", VA = "0x181DD1640")]
|
||||
protected DHKeyParameters(bool isPrivate, DHParameters parameters)
|
||||
{
|
||||
DerObjectIdentifier dhKeyAgreement = PkcsObjectIdentifiers.DhKeyAgreement;
|
||||
base..ctor(isPrivate);
|
||||
this.parameters = parameters;
|
||||
this.algorithmOid = dhKeyAgreement;
|
||||
}
|
||||
|
||||
// Token: 0x0600966E RID: 38510 RVA: 0x00216690 File Offset: 0x00214890
|
||||
[Token(Token = "0x600966E")]
|
||||
[Address(RVA = "0x1DD16E0", Offset = "0x1DD00E0", VA = "0x181DD16E0")]
|
||||
protected DHKeyParameters(bool isPrivate, DHParameters parameters, DerObjectIdentifier algorithmOid)
|
||||
: base(isPrivate)
|
||||
{
|
||||
this.algorithmOid = algorithmOid;
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x170017FB RID: 6139
|
||||
// (get) Token: 0x0600966F RID: 38511 RVA: 0x002166B4 File Offset: 0x002148B4
|
||||
[Token(Token = "0x170017FB")]
|
||||
public DHParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600966F")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170017FC RID: 6140
|
||||
// (get) Token: 0x06009670 RID: 38512 RVA: 0x002166C8 File Offset: 0x002148C8
|
||||
[Token(Token = "0x170017FC")]
|
||||
public DerObjectIdentifier AlgorithmOid
|
||||
{
|
||||
[Token(Token = "0x6009670")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.algorithmOid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009671 RID: 38513 RVA: 0x002166DC File Offset: 0x002148DC
|
||||
[Token(Token = "0x6009671")]
|
||||
[Address(RVA = "0x1DD14D0", Offset = "0x1DCFED0", VA = "0x181DD14D0", 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: 0x06009672 RID: 38514 RVA: 0x00216708 File Offset: 0x00214908
|
||||
[Token(Token = "0x6009672")]
|
||||
[Address(RVA = "0x1DD15A0", Offset = "0x1DCFFA0", VA = "0x181DD15A0")]
|
||||
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: 0x06009673 RID: 38515 RVA: 0x0021673C File Offset: 0x0021493C
|
||||
[Token(Token = "0x6009673")]
|
||||
[Address(RVA = "0x1DD1600", Offset = "0x1DD0000", VA = "0x181DD1600", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
DHParameters dhparameters = this.parameters;
|
||||
if (dhparameters != 0)
|
||||
{
|
||||
dhparameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04006357 RID: 25431
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006357")]
|
||||
private readonly DHParameters parameters;
|
||||
|
||||
// Token: 0x04006358 RID: 25432
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006358")]
|
||||
private readonly DerObjectIdentifier algorithmOid;
|
||||
}
|
||||
}
|
||||
+256
@@ -0,0 +1,256 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x020015FF RID: 5631
|
||||
[Token(Token = "0x20015FF")]
|
||||
[StructLayout(3)]
|
||||
public class DHParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009674 RID: 38516 RVA: 0x00216764 File Offset: 0x00214964
|
||||
[Token(Token = "0x6009674")]
|
||||
[Address(RVA = "0x1DD1860", Offset = "0x1DD0260", VA = "0x181DD1860")]
|
||||
private static int GetDefaultMParam(int lParam)
|
||||
{
|
||||
if (lParam != 0)
|
||||
{
|
||||
return Math.Min(lParam, 160);
|
||||
}
|
||||
return 160;
|
||||
}
|
||||
|
||||
// Token: 0x06009675 RID: 38517 RVA: 0x00216788 File Offset: 0x00214988
|
||||
[Token(Token = "0x6009675")]
|
||||
[Address(RVA = "0x1DD1E40", Offset = "0x1DD0840", VA = "0x181DD1E40")]
|
||||
public DHParameters(BigInteger p, BigInteger g)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009676 RID: 38518 RVA: 0x0021679C File Offset: 0x0021499C
|
||||
[Token(Token = "0x6009676")]
|
||||
[Address(RVA = "0x1DD1D80", Offset = "0x1DD0780", VA = "0x181DD1D80")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009677 RID: 38519 RVA: 0x002167AC File Offset: 0x002149AC
|
||||
[Token(Token = "0x6009677")]
|
||||
[Address(RVA = "0x1DD1EC0", Offset = "0x1DD08C0", VA = "0x181DD1EC0")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int l)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009678 RID: 38520 RVA: 0x002167BC File Offset: 0x002149BC
|
||||
[Token(Token = "0x6009678")]
|
||||
[Address(RVA = "0x1DD1D40", Offset = "0x1DD0740", VA = "0x181DD1D40")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009679 RID: 38521 RVA: 0x002167CC File Offset: 0x002149CC
|
||||
[Token(Token = "0x6009679")]
|
||||
[Address(RVA = "0x1DD1E00", Offset = "0x1DD0800", VA = "0x181DD1E00")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, BigInteger j, DHValidationParameters validation)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600967A RID: 38522 RVA: 0x002167DC File Offset: 0x002149DC
|
||||
[Token(Token = "0x600967A")]
|
||||
[Address(RVA = "0x1DD1950", Offset = "0x1DD0350", VA = "0x181DD1950")]
|
||||
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l, BigInteger j, DHValidationParameters validation)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600967A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DHParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Int32,System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.DHValidationParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_B3:
|
||||
stloc:ArgumentException(var_13_C2, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("q too big to be a factor of (p-1)"), ldstr:string("q")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x170017FD RID: 6141
|
||||
// (get) Token: 0x0600967B RID: 38523 RVA: 0x002168AC File Offset: 0x00214AAC
|
||||
[Token(Token = "0x170017FD")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600967B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170017FE RID: 6142
|
||||
// (get) Token: 0x0600967C RID: 38524 RVA: 0x002168C0 File Offset: 0x00214AC0
|
||||
[Token(Token = "0x170017FE")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600967C")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170017FF RID: 6143
|
||||
// (get) Token: 0x0600967D RID: 38525 RVA: 0x002168D4 File Offset: 0x00214AD4
|
||||
[Token(Token = "0x170017FF")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x600967D")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001800 RID: 6144
|
||||
// (get) Token: 0x0600967E RID: 38526 RVA: 0x002168E8 File Offset: 0x00214AE8
|
||||
[Token(Token = "0x17001800")]
|
||||
public BigInteger J
|
||||
{
|
||||
[Token(Token = "0x600967E")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.j;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001801 RID: 6145
|
||||
// (get) Token: 0x0600967F RID: 38527 RVA: 0x002168FC File Offset: 0x00214AFC
|
||||
[Token(Token = "0x17001801")]
|
||||
public int M
|
||||
{
|
||||
[Token(Token = "0x600967F")]
|
||||
[Address(RVA = "0x3EDF60", Offset = "0x3EC960", VA = "0x1803EDF60")]
|
||||
get
|
||||
{
|
||||
return this.m;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001802 RID: 6146
|
||||
// (get) Token: 0x06009680 RID: 38528 RVA: 0x00216910 File Offset: 0x00214B10
|
||||
[Token(Token = "0x17001802")]
|
||||
public int L
|
||||
{
|
||||
[Token(Token = "0x6009680")]
|
||||
[Address(RVA = "0x621DB0", Offset = "0x6207B0", VA = "0x180621DB0")]
|
||||
get
|
||||
{
|
||||
return this.l;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001803 RID: 6147
|
||||
// (get) Token: 0x06009681 RID: 38529 RVA: 0x00216924 File Offset: 0x00214B24
|
||||
[Token(Token = "0x17001803")]
|
||||
public DHValidationParameters ValidationParameters
|
||||
{
|
||||
[Token(Token = "0x6009681")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.validation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009682 RID: 38530 RVA: 0x00216938 File Offset: 0x00214B38
|
||||
[Token(Token = "0x6009682")]
|
||||
[Address(RVA = "0x1DD17B0", Offset = "0x1DD01B0", VA = "0x181DD17B0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06009683 RID: 38531 RVA: 0x00216958 File Offset: 0x00214B58
|
||||
[Token(Token = "0x6009683")]
|
||||
[Address(RVA = "0x1DD1720", Offset = "0x1DD0120", VA = "0x181DD1720", Slot = "4")]
|
||||
protected virtual bool Equals(DHParameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.g;
|
||||
BigInteger bigInteger3 = other.q;
|
||||
return object.Equals(this.q, bigInteger3);
|
||||
}
|
||||
|
||||
// Token: 0x06009684 RID: 38532 RVA: 0x00216990 File Offset: 0x00214B90
|
||||
[Token(Token = "0x6009684")]
|
||||
[Address(RVA = "0x1DD18D0", Offset = "0x1DD02D0", VA = "0x181DD18D0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.p.Finalize();
|
||||
this.g.Finalize();
|
||||
BigInteger bigInteger = this.q;
|
||||
if (bigInteger != 0)
|
||||
{
|
||||
bigInteger.Finalize();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006359 RID: 25433
|
||||
[Token(Token = "0x4006359")]
|
||||
private const int DefaultMinimumLength = 160;
|
||||
|
||||
// Token: 0x0400635A RID: 25434
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400635A")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x0400635B RID: 25435
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400635B")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x0400635C RID: 25436
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400635C")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x0400635D RID: 25437
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400635D")]
|
||||
private readonly BigInteger j;
|
||||
|
||||
// Token: 0x0400635E RID: 25438
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400635E")]
|
||||
private readonly int m;
|
||||
|
||||
// Token: 0x0400635F RID: 25439
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x400635F")]
|
||||
private readonly int l;
|
||||
|
||||
// Token: 0x04006360 RID: 25440
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006360")]
|
||||
private readonly DHValidationParameters validation;
|
||||
}
|
||||
}
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001600 RID: 5632
|
||||
[Token(Token = "0x2001600")]
|
||||
[StructLayout(3)]
|
||||
public class DHPrivateKeyParameters : DHKeyParameters
|
||||
{
|
||||
// Token: 0x06009685 RID: 38533 RVA: 0x002169CC File Offset: 0x00214BCC
|
||||
[Token(Token = "0x6009685")]
|
||||
[Address(RVA = "0x1DD21D0", Offset = "0x1DD0BD0", VA = "0x181DD21D0")]
|
||||
public DHPrivateKeyParameters(BigInteger x, DHParameters parameters)
|
||||
: base(true, parameters)
|
||||
{
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
// Token: 0x06009686 RID: 38534 RVA: 0x002169E8 File Offset: 0x00214BE8
|
||||
[Token(Token = "0x6009686")]
|
||||
[Address(RVA = "0x1DD2180", Offset = "0x1DD0B80", VA = "0x181DD2180")]
|
||||
public DHPrivateKeyParameters(BigInteger x, DHParameters parameters, DerObjectIdentifier algorithmOid)
|
||||
: base(true)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
this.algorithmOid = algorithmOid;
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
// Token: 0x17001804 RID: 6148
|
||||
// (get) Token: 0x06009687 RID: 38535 RVA: 0x00216A14 File Offset: 0x00214C14
|
||||
[Token(Token = "0x17001804")]
|
||||
public BigInteger X
|
||||
{
|
||||
[Token(Token = "0x6009687")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009688 RID: 38536 RVA: 0x00216A28 File Offset: 0x00214C28
|
||||
[Token(Token = "0x6009688")]
|
||||
[Address(RVA = "0x1DD1F90", Offset = "0x1DD0990", VA = "0x181DD1F90", 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: 0x06009689 RID: 38537 RVA: 0x00216A64 File Offset: 0x00214C64
|
||||
[Token(Token = "0x6009689")]
|
||||
[Address(RVA = "0x1DD2090", Offset = "0x1DD0A90", VA = "0x181DD2090")]
|
||||
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: 0x0600968A RID: 38538 RVA: 0x00216AA0 File Offset: 0x00214CA0
|
||||
[Token(Token = "0x600968A")]
|
||||
[Address(RVA = "0x1DD2110", Offset = "0x1DD0B10", VA = "0x181DD2110", 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: 0x04006361 RID: 25441
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006361")]
|
||||
private readonly BigInteger x;
|
||||
}
|
||||
}
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001601 RID: 5633
|
||||
[Token(Token = "0x2001601")]
|
||||
[StructLayout(3)]
|
||||
public class DHPublicKeyParameters : DHKeyParameters
|
||||
{
|
||||
// Token: 0x0600968B RID: 38539 RVA: 0x00216AD8 File Offset: 0x00214CD8
|
||||
[Token(Token = "0x600968B")]
|
||||
[Address(RVA = "0x1DD2300", Offset = "0x1DD0D00", VA = "0x181DD2300")]
|
||||
private static BigInteger Validate(BigInteger y, DHParameters dhParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600968B)
|
||||
|
||||
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: 0x0600968C RID: 38540 RVA: 0x00216B58 File Offset: 0x00214D58
|
||||
[Token(Token = "0x600968C")]
|
||||
[Address(RVA = "0x1DD2510", Offset = "0x1DD0F10", VA = "0x181DD2510")]
|
||||
public DHPublicKeyParameters(BigInteger y, DHParameters parameters)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(num != 0, parameters);
|
||||
BigInteger bigInteger = DHPublicKeyParameters.Validate(y, parameters);
|
||||
this.y = bigInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600968D RID: 38541 RVA: 0x00216B80 File Offset: 0x00214D80
|
||||
[Token(Token = "0x600968D")]
|
||||
[Address(RVA = "0x1DD2560", Offset = "0x1DD0F60", VA = "0x181DD2560")]
|
||||
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: 0x17001805 RID: 6149
|
||||
// (get) Token: 0x0600968E RID: 38542 RVA: 0x00216BB4 File Offset: 0x00214DB4
|
||||
[Token(Token = "0x17001805")]
|
||||
public virtual BigInteger Y
|
||||
{
|
||||
[Token(Token = "0x600968E")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600968F RID: 38543 RVA: 0x00216BC8 File Offset: 0x00214DC8
|
||||
[Token(Token = "0x600968F")]
|
||||
[Address(RVA = "0x1DD2200", Offset = "0x1DD0C00", VA = "0x181DD2200", 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: 0x06009690 RID: 38544 RVA: 0x00216C04 File Offset: 0x00214E04
|
||||
[Token(Token = "0x6009690")]
|
||||
[Address(RVA = "0x1DD2090", Offset = "0x1DD0A90", VA = "0x181DD2090")]
|
||||
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: 0x06009691 RID: 38545 RVA: 0x00216C40 File Offset: 0x00214E40
|
||||
[Token(Token = "0x6009691")]
|
||||
[Address(RVA = "0x1DD2110", Offset = "0x1DD0B10", VA = "0x181DD2110", 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: 0x04006362 RID: 25442
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006362")]
|
||||
private readonly BigInteger y;
|
||||
}
|
||||
}
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001602 RID: 5634
|
||||
[Token(Token = "0x2001602")]
|
||||
[StructLayout(3)]
|
||||
public class DHValidationParameters
|
||||
{
|
||||
// Token: 0x06009692 RID: 38546 RVA: 0x00216C78 File Offset: 0x00214E78
|
||||
[Token(Token = "0x6009692")]
|
||||
[Address(RVA = "0x1DD2860", Offset = "0x1DD1260", VA = "0x181DD2860")]
|
||||
public DHValidationParameters(byte[] seed, int counter)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009692)
|
||||
|
||||
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: 0x06009693 RID: 38547 RVA: 0x00216CA4 File Offset: 0x00214EA4
|
||||
[Token(Token = "0x6009693")]
|
||||
[Address(RVA = "0x1DD27E0", Offset = "0x1DD11E0", VA = "0x181DD27E0")]
|
||||
public byte[] GetSeed()
|
||||
{
|
||||
byte[] array = this.seed;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001806 RID: 6150
|
||||
// (get) Token: 0x06009694 RID: 38548 RVA: 0x00216CC0 File Offset: 0x00214EC0
|
||||
[Token(Token = "0x17001806")]
|
||||
public int Counter
|
||||
{
|
||||
[Token(Token = "0x6009694")]
|
||||
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0")]
|
||||
get
|
||||
{
|
||||
return this.counter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009695 RID: 38549 RVA: 0x00216CD4 File Offset: 0x00214ED4
|
||||
[Token(Token = "0x6009695")]
|
||||
[Address(RVA = "0x1DD25C0", Offset = "0x1DD0FC0", VA = "0x181DD25C0", 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: 0x06009696 RID: 38550 RVA: 0x00216D04 File Offset: 0x00214F04
|
||||
[Token(Token = "0x6009696")]
|
||||
[Address(RVA = "0x1DD26D0", Offset = "0x1DD10D0", VA = "0x181DD26D0")]
|
||||
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: 0x06009697 RID: 38551 RVA: 0x00216D40 File Offset: 0x00214F40
|
||||
[Token(Token = "0x6009697")]
|
||||
[Address(RVA = "0x1DD2760", Offset = "0x1DD1160", VA = "0x181DD2760", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = this.counter;
|
||||
return Arrays.GetHashCode(this.seed);
|
||||
}
|
||||
|
||||
// Token: 0x04006363 RID: 25443
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006363")]
|
||||
private readonly byte[] seed;
|
||||
|
||||
// Token: 0x04006364 RID: 25444
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006364")]
|
||||
private readonly int counter;
|
||||
}
|
||||
}
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001604 RID: 5636
|
||||
[Token(Token = "0x2001604")]
|
||||
[StructLayout(3)]
|
||||
public class DesEdeParameters : DesParameters
|
||||
{
|
||||
// Token: 0x0600969F RID: 38559 RVA: 0x00216E2C File Offset: 0x0021502C
|
||||
[Token(Token = "0x600969F")]
|
||||
[Address(RVA = "0x1DD2DD0", Offset = "0x1DD17D0", VA = "0x181DD2DD0")]
|
||||
private static byte[] FixKey(byte[] key, int keyOff, int keyLen)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600969F)
|
||||
|
||||
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: 0x060096A0 RID: 38560 RVA: 0x00216EA0 File Offset: 0x002150A0
|
||||
[Token(Token = "0x60096A0")]
|
||||
[Address(RVA = "0x1DD3300", Offset = "0x1DD1D00", VA = "0x181DD3300")]
|
||||
public DesEdeParameters(byte[] key)
|
||||
{
|
||||
int length = key.Length;
|
||||
int num = 0;
|
||||
byte[] array = DesEdeParameters.FixKey(key, num, length);
|
||||
base..ctor(array);
|
||||
}
|
||||
|
||||
// Token: 0x060096A1 RID: 38561 RVA: 0x00216ECC File Offset: 0x002150CC
|
||||
[Token(Token = "0x60096A1")]
|
||||
[Address(RVA = "0x1DD3380", Offset = "0x1DD1D80", VA = "0x181DD3380")]
|
||||
public DesEdeParameters(byte[] key, int keyOff, int keyLen)
|
||||
{
|
||||
byte[] array = DesEdeParameters.FixKey(key, keyOff, keyOff);
|
||||
base..ctor(array);
|
||||
}
|
||||
|
||||
// Token: 0x060096A2 RID: 38562 RVA: 0x00216EEC File Offset: 0x002150EC
|
||||
[Token(Token = "0x60096A2")]
|
||||
[Address(RVA = "0x1DD3230", Offset = "0x1DD1C30", VA = "0x181DD3230")]
|
||||
public static bool IsWeakKey(byte[] key, int offset, int length)
|
||||
{
|
||||
while (offset < length && DesParameters.IsWeakKey(key, offset))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096A3 RID: 38563 RVA: 0x00216F08 File Offset: 0x00215108
|
||||
[Token(Token = "0x60096A3")]
|
||||
[Address(RVA = "0x1DD3200", Offset = "0x1DD1C00", VA = "0x181DD3200")]
|
||||
public new static bool IsWeakKey(byte[] key, int offset)
|
||||
{
|
||||
int num = key.Length;
|
||||
num -= offset;
|
||||
return DesEdeParameters.IsWeakKey(key, offset, num);
|
||||
}
|
||||
|
||||
// Token: 0x060096A4 RID: 38564 RVA: 0x00216F30 File Offset: 0x00215130
|
||||
[Token(Token = "0x60096A4")]
|
||||
[Address(RVA = "0x1DD32D0", Offset = "0x1DD1CD0", VA = "0x181DD32D0")]
|
||||
public new static bool IsWeakKey(byte[] key)
|
||||
{
|
||||
int length = key.Length;
|
||||
int num = 0;
|
||||
return DesEdeParameters.IsWeakKey(key, num, length);
|
||||
}
|
||||
|
||||
// Token: 0x060096A5 RID: 38565 RVA: 0x00216F54 File Offset: 0x00215154
|
||||
[Token(Token = "0x60096A5")]
|
||||
[Address(RVA = "0x1DD3090", Offset = "0x1DD1A90", VA = "0x181DD3090")]
|
||||
public static bool IsRealEdeKey(byte[] key, int offset)
|
||||
{
|
||||
int length = key.Length;
|
||||
if (length == 16)
|
||||
{
|
||||
}
|
||||
byte b = key[offset];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060096A6 RID: 38566 RVA: 0x00216F80 File Offset: 0x00215180
|
||||
[Token(Token = "0x60096A6")]
|
||||
[Address(RVA = "0x1DD2F30", Offset = "0x1DD1930", VA = "0x181DD2F30")]
|
||||
public static bool IsReal2Key(byte[] key, int offset)
|
||||
{
|
||||
int length = key.Length;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060096A7 RID: 38567 RVA: 0x00216F9C File Offset: 0x0021519C
|
||||
[Token(Token = "0x60096A7")]
|
||||
[Address(RVA = "0x1DD2FB0", Offset = "0x1DD19B0", VA = "0x181DD2FB0")]
|
||||
public static bool IsReal3Key(byte[] key, int offset)
|
||||
{
|
||||
int length = key.Length;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400636C RID: 25452
|
||||
[Token(Token = "0x400636C")]
|
||||
public const int DesEdeKeyLength = 24;
|
||||
}
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001605 RID: 5637
|
||||
[Token(Token = "0x2001605")]
|
||||
[StructLayout(3)]
|
||||
public class DesParameters : KeyParameter
|
||||
{
|
||||
// Token: 0x060096A8 RID: 38568 RVA: 0x00216FB8 File Offset: 0x002151B8
|
||||
[Token(Token = "0x60096A8")]
|
||||
[Address(RVA = "0x1DD3900", Offset = "0x1DD2300", VA = "0x181DD3900")]
|
||||
public DesParameters(byte[] key)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096A8)
|
||||
|
||||
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: 0x060096A9 RID: 38569 RVA: 0x00216FE4 File Offset: 0x002151E4
|
||||
[Token(Token = "0x60096A9")]
|
||||
[Address(RVA = "0x1DD3830", Offset = "0x1DD2230", VA = "0x181DD3830")]
|
||||
public DesParameters(byte[] key, int keyOff, int keyLen)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096A9)
|
||||
|
||||
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: 0x060096AA RID: 38570 RVA: 0x00217010 File Offset: 0x00215210
|
||||
[Token(Token = "0x60096AA")]
|
||||
[Address(RVA = "0x1DD3470", Offset = "0x1DD1E70", VA = "0x181DD3470")]
|
||||
public static bool IsWeakKey(byte[] key, int offset)
|
||||
{
|
||||
int num = key.Length;
|
||||
num -= offset;
|
||||
int num2 = 0;
|
||||
num2++;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060096AB RID: 38571 RVA: 0x00217034 File Offset: 0x00215234
|
||||
[Token(Token = "0x60096AB")]
|
||||
[Address(RVA = "0x1DD3410", Offset = "0x1DD1E10", VA = "0x181DD3410")]
|
||||
public static bool IsWeakKey(byte[] key)
|
||||
{
|
||||
int num = 0;
|
||||
return DesParameters.IsWeakKey(key, num);
|
||||
}
|
||||
|
||||
// Token: 0x060096AC RID: 38572 RVA: 0x0021704C File Offset: 0x0021524C
|
||||
[Token(Token = "0x60096AC")]
|
||||
[Address(RVA = "0x1DD35C0", Offset = "0x1DD1FC0", VA = "0x181DD35C0")]
|
||||
public static byte SetOddParity(byte b)
|
||||
{
|
||||
return b;
|
||||
}
|
||||
|
||||
// Token: 0x060096AD RID: 38573 RVA: 0x0021705C File Offset: 0x0021525C
|
||||
[Token(Token = "0x60096AD")]
|
||||
[Address(RVA = "0x1DD35F0", Offset = "0x1DD1FF0", VA = "0x181DD35F0")]
|
||||
public static void SetOddParity(byte[] bytes)
|
||||
{
|
||||
int num = 0;
|
||||
int length = bytes.Length;
|
||||
if (num < length)
|
||||
{
|
||||
int length2 = bytes.Length;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096AE RID: 38574 RVA: 0x00217088 File Offset: 0x00215288
|
||||
[Token(Token = "0x60096AE")]
|
||||
[Address(RVA = "0x1DD36D0", Offset = "0x1DD20D0", VA = "0x181DD36D0")]
|
||||
public static void SetOddParity(byte[] bytes, int off, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
{
|
||||
int length = bytes.Length;
|
||||
int length2 = bytes.Length;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096AF RID: 38575 RVA: 0x002170B0 File Offset: 0x002152B0
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x60096AF")]
|
||||
[Address(RVA = "0x1DD37D0", Offset = "0x1DD21D0", VA = "0x181DD37D0")]
|
||||
static DesParameters()
|
||||
{
|
||||
RuntimeHelpers.InitializeArray(new byte[128], fieldof(<PrivateImplementationDetails>.31CDD717843C5C2B207F235634E6726898D4858A).FieldHandle);
|
||||
}
|
||||
|
||||
// Token: 0x0400636D RID: 25453
|
||||
[Token(Token = "0x400636D")]
|
||||
public const int DesKeyLength = 8;
|
||||
|
||||
// Token: 0x0400636E RID: 25454
|
||||
[Token(Token = "0x400636E")]
|
||||
private const int N_DES_WEAK_KEYS = 16;
|
||||
|
||||
// Token: 0x0400636F RID: 25455
|
||||
[Token(Token = "0x400636F")]
|
||||
private static readonly byte[] DES_weak_keys;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001606 RID: 5638
|
||||
[Token(Token = "0x2001606")]
|
||||
[StructLayout(3)]
|
||||
public class DsaKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x060096B0 RID: 38576 RVA: 0x002170D4 File Offset: 0x002152D4
|
||||
[Token(Token = "0x60096B0")]
|
||||
[Address(RVA = "0x1DD43C0", Offset = "0x1DD2DC0", VA = "0x181DD43C0")]
|
||||
public DsaKeyGenerationParameters(SecureRandom random, DsaParameters parameters)
|
||||
{
|
||||
int num = parameters.p.BitLength - 1;
|
||||
base..ctor(random, num);
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x1700180C RID: 6156
|
||||
// (get) Token: 0x060096B1 RID: 38577 RVA: 0x00217104 File Offset: 0x00215304
|
||||
[Token(Token = "0x1700180C")]
|
||||
public DsaParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x60096B1")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006370 RID: 25456
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006370")]
|
||||
private readonly DsaParameters parameters;
|
||||
}
|
||||
}
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001607 RID: 5639
|
||||
[Token(Token = "0x2001607")]
|
||||
[StructLayout(3)]
|
||||
public abstract class DsaKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x060096B2 RID: 38578 RVA: 0x00217118 File Offset: 0x00215318
|
||||
[Token(Token = "0x60096B2")]
|
||||
[Address(RVA = "0x1DD44F0", Offset = "0x1DD2EF0", VA = "0x181DD44F0")]
|
||||
protected DsaKeyParameters(bool isPrivate, DsaParameters parameters)
|
||||
: base(isPrivate)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x1700180D RID: 6157
|
||||
// (get) Token: 0x060096B3 RID: 38579 RVA: 0x00217134 File Offset: 0x00215334
|
||||
[Token(Token = "0x1700180D")]
|
||||
public DsaParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x60096B3")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096B4 RID: 38580 RVA: 0x00217148 File Offset: 0x00215348
|
||||
[Token(Token = "0x60096B4")]
|
||||
[Address(RVA = "0x1DD4420", Offset = "0x1DD2E20", VA = "0x181DD4420", 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: 0x060096B5 RID: 38581 RVA: 0x00217174 File Offset: 0x00215374
|
||||
[Token(Token = "0x60096B5")]
|
||||
[Address(RVA = "0x1DD15A0", Offset = "0x1DCFFA0", VA = "0x181DD15A0")]
|
||||
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: 0x060096B6 RID: 38582 RVA: 0x002171A8 File Offset: 0x002153A8
|
||||
[Token(Token = "0x60096B6")]
|
||||
[Address(RVA = "0x1DD1600", Offset = "0x1DD0000", VA = "0x181DD1600", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
DsaParameters dsaParameters = this.parameters;
|
||||
if (dsaParameters != 0)
|
||||
{
|
||||
dsaParameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04006371 RID: 25457
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006371")]
|
||||
private readonly DsaParameters parameters;
|
||||
}
|
||||
}
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001603 RID: 5635
|
||||
[Token(Token = "0x2001603")]
|
||||
[StructLayout(3)]
|
||||
public class DsaParameterGenerationParameters
|
||||
{
|
||||
// Token: 0x06009698 RID: 38552 RVA: 0x00216D60 File Offset: 0x00214F60
|
||||
[Token(Token = "0x6009698")]
|
||||
[Address(RVA = "0x1DD4520", Offset = "0x1DD2F20", VA = "0x181DD4520")]
|
||||
public DsaParameterGenerationParameters(int L, int N, int certainty, SecureRandom random)
|
||||
{
|
||||
this.l = L;
|
||||
this.certainty = certainty;
|
||||
this.random = 0;
|
||||
this.n = N;
|
||||
}
|
||||
|
||||
// Token: 0x06009699 RID: 38553 RVA: 0x00216D90 File Offset: 0x00214F90
|
||||
[Token(Token = "0x6009699")]
|
||||
[Address(RVA = "0x1DD4580", Offset = "0x1DD2F80", VA = "0x181DD4580")]
|
||||
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: 0x17001807 RID: 6151
|
||||
// (get) Token: 0x0600969A RID: 38554 RVA: 0x00216DC8 File Offset: 0x00214FC8
|
||||
[Token(Token = "0x17001807")]
|
||||
public virtual int L
|
||||
{
|
||||
[Token(Token = "0x600969A")]
|
||||
[Address(RVA = "0x3C1C50", Offset = "0x3C0650", VA = "0x1803C1C50", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.l;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001808 RID: 6152
|
||||
// (get) Token: 0x0600969B RID: 38555 RVA: 0x00216DDC File Offset: 0x00214FDC
|
||||
[Token(Token = "0x17001808")]
|
||||
public virtual int N
|
||||
{
|
||||
[Token(Token = "0x600969B")]
|
||||
[Address(RVA = "0x55D550", Offset = "0x55BF50", VA = "0x18055D550", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.n;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001809 RID: 6153
|
||||
// (get) Token: 0x0600969C RID: 38556 RVA: 0x00216DF0 File Offset: 0x00214FF0
|
||||
[Token(Token = "0x17001809")]
|
||||
public virtual int UsageIndex
|
||||
{
|
||||
[Token(Token = "0x600969C")]
|
||||
[Address(RVA = "0x4D24F0", Offset = "0x4D0EF0", VA = "0x1804D24F0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.usageIndex;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700180A RID: 6154
|
||||
// (get) Token: 0x0600969D RID: 38557 RVA: 0x00216E04 File Offset: 0x00215004
|
||||
[Token(Token = "0x1700180A")]
|
||||
public virtual int Certainty
|
||||
{
|
||||
[Token(Token = "0x600969D")]
|
||||
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certainty;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700180B RID: 6155
|
||||
// (get) Token: 0x0600969E RID: 38558 RVA: 0x00216E18 File Offset: 0x00215018
|
||||
[Token(Token = "0x1700180B")]
|
||||
public virtual SecureRandom Random
|
||||
{
|
||||
[Token(Token = "0x600969E")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.random;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006365 RID: 25445
|
||||
[Token(Token = "0x4006365")]
|
||||
public const int DigitalSignatureUsage = 1;
|
||||
|
||||
// Token: 0x04006366 RID: 25446
|
||||
[Token(Token = "0x4006366")]
|
||||
public const int KeyEstablishmentUsage = 2;
|
||||
|
||||
// Token: 0x04006367 RID: 25447
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006367")]
|
||||
private readonly int l;
|
||||
|
||||
// Token: 0x04006368 RID: 25448
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4006368")]
|
||||
private readonly int n;
|
||||
|
||||
// Token: 0x04006369 RID: 25449
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006369")]
|
||||
private readonly int certainty;
|
||||
|
||||
// Token: 0x0400636A RID: 25450
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400636A")]
|
||||
private readonly SecureRandom random;
|
||||
|
||||
// Token: 0x0400636B RID: 25451
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400636B")]
|
||||
private readonly int usageIndex;
|
||||
}
|
||||
}
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001608 RID: 5640
|
||||
[Token(Token = "0x2001608")]
|
||||
[StructLayout(3)]
|
||||
public class DsaParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x060096B7 RID: 38583 RVA: 0x002171D0 File Offset: 0x002153D0
|
||||
[Token(Token = "0x60096B7")]
|
||||
[Address(RVA = "0x1DD4820", Offset = "0x1DD3220", VA = "0x181DD4820")]
|
||||
public DsaParameters(BigInteger p, BigInteger q, BigInteger g)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096B7)
|
||||
|
||||
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: 0x060096B8 RID: 38584 RVA: 0x00217224 File Offset: 0x00215424
|
||||
[Token(Token = "0x60096B8")]
|
||||
[Address(RVA = "0x1DD4940", Offset = "0x1DD3340", VA = "0x181DD4940")]
|
||||
public DsaParameters(BigInteger p, BigInteger q, BigInteger g, DsaValidationParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096B8)
|
||||
|
||||
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: 0x1700180E RID: 6158
|
||||
// (get) Token: 0x060096B9 RID: 38585 RVA: 0x00217278 File Offset: 0x00215478
|
||||
[Token(Token = "0x1700180E")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x60096B9")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700180F RID: 6159
|
||||
// (get) Token: 0x060096BA RID: 38586 RVA: 0x0021728C File Offset: 0x0021548C
|
||||
[Token(Token = "0x1700180F")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x60096BA")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001810 RID: 6160
|
||||
// (get) Token: 0x060096BB RID: 38587 RVA: 0x002172A0 File Offset: 0x002154A0
|
||||
[Token(Token = "0x17001810")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x60096BB")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001811 RID: 6161
|
||||
// (get) Token: 0x060096BC RID: 38588 RVA: 0x002172B4 File Offset: 0x002154B4
|
||||
[Token(Token = "0x17001811")]
|
||||
public DsaValidationParameters ValidationParameters
|
||||
{
|
||||
[Token(Token = "0x60096BC")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.validation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096BD RID: 38589 RVA: 0x002172C8 File Offset: 0x002154C8
|
||||
[Token(Token = "0x60096BD")]
|
||||
[Address(RVA = "0x1DD45E0", Offset = "0x1DD2FE0", VA = "0x181DD45E0", 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: 0x060096BE RID: 38590 RVA: 0x00217304 File Offset: 0x00215504
|
||||
[Token(Token = "0x60096BE")]
|
||||
[Address(RVA = "0x1DD4700", Offset = "0x1DD3100", VA = "0x181DD4700")]
|
||||
protected bool Equals(DsaParameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.q;
|
||||
BigInteger bigInteger3 = this.g;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060096BF RID: 38591 RVA: 0x00217330 File Offset: 0x00215530
|
||||
[Token(Token = "0x60096BF")]
|
||||
[Address(RVA = "0x1DD47A0", Offset = "0x1DD31A0", VA = "0x181DD47A0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.p.Finalize();
|
||||
this.q.Finalize();
|
||||
this.g.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006372 RID: 25458
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006372")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x04006373 RID: 25459
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006373")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x04006374 RID: 25460
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006374")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x04006375 RID: 25461
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006375")]
|
||||
private readonly DsaValidationParameters validation;
|
||||
}
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001609 RID: 5641
|
||||
[Token(Token = "0x2001609")]
|
||||
[StructLayout(3)]
|
||||
public class DsaPrivateKeyParameters : DsaKeyParameters
|
||||
{
|
||||
// Token: 0x060096C0 RID: 38592 RVA: 0x00217364 File Offset: 0x00215564
|
||||
[Token(Token = "0x60096C0")]
|
||||
[Address(RVA = "0x1DD4C50", Offset = "0x1DD3650", VA = "0x181DD4C50")]
|
||||
public DsaPrivateKeyParameters(BigInteger x, DsaParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096C0)
|
||||
|
||||
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: 0x17001812 RID: 6162
|
||||
// (get) Token: 0x060096C1 RID: 38593 RVA: 0x00217398 File Offset: 0x00215598
|
||||
[Token(Token = "0x17001812")]
|
||||
public BigInteger X
|
||||
{
|
||||
[Token(Token = "0x60096C1")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096C2 RID: 38594 RVA: 0x002173AC File Offset: 0x002155AC
|
||||
[Token(Token = "0x60096C2")]
|
||||
[Address(RVA = "0x1DD4A60", Offset = "0x1DD3460", VA = "0x181DD4A60", 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: 0x060096C3 RID: 38595 RVA: 0x002173E8 File Offset: 0x002155E8
|
||||
[Token(Token = "0x60096C3")]
|
||||
[Address(RVA = "0x1DD4B60", Offset = "0x1DD3560", VA = "0x181DD4B60")]
|
||||
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: 0x060096C4 RID: 38596 RVA: 0x00217424 File Offset: 0x00215624
|
||||
[Token(Token = "0x60096C4")]
|
||||
[Address(RVA = "0x1DD4BE0", Offset = "0x1DD35E0", VA = "0x181DD4BE0", 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: 0x04006376 RID: 25462
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006376")]
|
||||
private readonly BigInteger x;
|
||||
}
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200160A RID: 5642
|
||||
[Token(Token = "0x200160A")]
|
||||
[StructLayout(3)]
|
||||
public class DsaPublicKeyParameters : DsaKeyParameters
|
||||
{
|
||||
// Token: 0x060096C5 RID: 38597 RVA: 0x0021745C File Offset: 0x0021565C
|
||||
[Token(Token = "0x60096C5")]
|
||||
[Address(RVA = "0x1DD4DE0", Offset = "0x1DD37E0", VA = "0x181DD4DE0")]
|
||||
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: 0x060096C6 RID: 38598 RVA: 0x002174C4 File Offset: 0x002156C4
|
||||
[Token(Token = "0x60096C6")]
|
||||
[Address(RVA = "0x1DD4F80", Offset = "0x1DD3980", VA = "0x181DD4F80")]
|
||||
public DsaPublicKeyParameters(BigInteger y, DsaParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096C6)
|
||||
|
||||
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: 0x17001813 RID: 6163
|
||||
// (get) Token: 0x060096C7 RID: 38599 RVA: 0x00217554 File Offset: 0x00215754
|
||||
[Token(Token = "0x17001813")]
|
||||
public BigInteger Y
|
||||
{
|
||||
[Token(Token = "0x60096C7")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096C8 RID: 38600 RVA: 0x00217568 File Offset: 0x00215768
|
||||
[Token(Token = "0x60096C8")]
|
||||
[Address(RVA = "0x1DD4CE0", Offset = "0x1DD36E0", VA = "0x181DD4CE0", 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: 0x060096C9 RID: 38601 RVA: 0x002175A4 File Offset: 0x002157A4
|
||||
[Token(Token = "0x60096C9")]
|
||||
[Address(RVA = "0x1DD4B60", Offset = "0x1DD3560", VA = "0x181DD4B60")]
|
||||
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: 0x060096CA RID: 38602 RVA: 0x002175E0 File Offset: 0x002157E0
|
||||
[Token(Token = "0x60096CA")]
|
||||
[Address(RVA = "0x1DD4BE0", Offset = "0x1DD35E0", VA = "0x181DD4BE0", 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: 0x04006377 RID: 25463
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006377")]
|
||||
private readonly BigInteger y;
|
||||
}
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200160B RID: 5643
|
||||
[Token(Token = "0x200160B")]
|
||||
[StructLayout(3)]
|
||||
public class DsaValidationParameters
|
||||
{
|
||||
// Token: 0x060096CB RID: 38603 RVA: 0x00217618 File Offset: 0x00215818
|
||||
[Token(Token = "0x60096CB")]
|
||||
[Address(RVA = "0x1DD53C0", Offset = "0x1DD3DC0", VA = "0x181DD53C0")]
|
||||
public DsaValidationParameters(byte[] seed, int counter)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096CB)
|
||||
|
||||
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: 0x060096CC RID: 38604 RVA: 0x00217654 File Offset: 0x00215854
|
||||
[Token(Token = "0x60096CC")]
|
||||
[Address(RVA = "0x1DD5490", Offset = "0x1DD3E90", VA = "0x181DD5490")]
|
||||
public DsaValidationParameters(byte[] seed, int counter, int usageIndex)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096CC)
|
||||
|
||||
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: 0x060096CD RID: 38605 RVA: 0x00217684 File Offset: 0x00215884
|
||||
[Token(Token = "0x60096CD")]
|
||||
[Address(RVA = "0x1DD5340", Offset = "0x1DD3D40", VA = "0x181DD5340", Slot = "4")]
|
||||
public virtual byte[] GetSeed()
|
||||
{
|
||||
byte[] array = this.seed;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001814 RID: 6164
|
||||
// (get) Token: 0x060096CE RID: 38606 RVA: 0x002176A0 File Offset: 0x002158A0
|
||||
[Token(Token = "0x17001814")]
|
||||
public virtual int Counter
|
||||
{
|
||||
[Token(Token = "0x60096CE")]
|
||||
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.counter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001815 RID: 6165
|
||||
// (get) Token: 0x060096CF RID: 38607 RVA: 0x002176B4 File Offset: 0x002158B4
|
||||
[Token(Token = "0x17001815")]
|
||||
public virtual int UsageIndex
|
||||
{
|
||||
[Token(Token = "0x60096CF")]
|
||||
[Address(RVA = "0x4F8C10", Offset = "0x4F7610", VA = "0x1804F8C10", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.usageIndex;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096D0 RID: 38608 RVA: 0x002176C8 File Offset: 0x002158C8
|
||||
[Token(Token = "0x60096D0")]
|
||||
[Address(RVA = "0x1DD5180", Offset = "0x1DD3B80", VA = "0x181DD5180", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060096D1 RID: 38609 RVA: 0x002176E8 File Offset: 0x002158E8
|
||||
[Token(Token = "0x60096D1")]
|
||||
[Address(RVA = "0x1DD5230", Offset = "0x1DD3C30", VA = "0x181DD5230", 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: 0x060096D2 RID: 38610 RVA: 0x00217724 File Offset: 0x00215924
|
||||
[Token(Token = "0x60096D2")]
|
||||
[Address(RVA = "0x1DD52C0", Offset = "0x1DD3CC0", VA = "0x181DD52C0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = this.counter;
|
||||
return Arrays.GetHashCode(this.seed);
|
||||
}
|
||||
|
||||
// Token: 0x04006378 RID: 25464
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006378")]
|
||||
private readonly byte[] seed;
|
||||
|
||||
// Token: 0x04006379 RID: 25465
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006379")]
|
||||
private readonly int counter;
|
||||
|
||||
// Token: 0x0400637A RID: 25466
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x400637A")]
|
||||
private readonly int usageIndex;
|
||||
}
|
||||
}
|
||||
+256
@@ -0,0 +1,256 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x0200160C RID: 5644
|
||||
[Token(Token = "0x200160C")]
|
||||
[StructLayout(3)]
|
||||
public class ECDomainParameters
|
||||
{
|
||||
// Token: 0x060096D3 RID: 38611 RVA: 0x00217744 File Offset: 0x00215944
|
||||
[Token(Token = "0x60096D3")]
|
||||
[Address(RVA = "0x1DD5AE0", Offset = "0x1DD44E0", VA = "0x181DD5AE0")]
|
||||
public ECDomainParameters(ECCurve curve, ECPoint g, BigInteger n)
|
||||
{
|
||||
BigInteger one = BigInteger.One;
|
||||
}
|
||||
|
||||
// Token: 0x060096D4 RID: 38612 RVA: 0x0021775C File Offset: 0x0021595C
|
||||
[Token(Token = "0x60096D4")]
|
||||
[Address(RVA = "0x1DD5950", Offset = "0x1DD4350", VA = "0x181DD5950")]
|
||||
public ECDomainParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060096D5 RID: 38613 RVA: 0x0021776C File Offset: 0x0021596C
|
||||
[Token(Token = "0x60096D5")]
|
||||
[Address(RVA = "0x1DD5980", Offset = "0x1DD4380", VA = "0x181DD5980")]
|
||||
public ECDomainParameters(ECCurve curve, ECPoint g, BigInteger n, BigInteger h, byte[] seed)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096D5)
|
||||
|
||||
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: 0x17001816 RID: 6166
|
||||
// (get) Token: 0x060096D6 RID: 38614 RVA: 0x002177CC File Offset: 0x002159CC
|
||||
[Token(Token = "0x17001816")]
|
||||
public ECCurve Curve
|
||||
{
|
||||
[Token(Token = "0x60096D6")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.curve;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001817 RID: 6167
|
||||
// (get) Token: 0x060096D7 RID: 38615 RVA: 0x002177E0 File Offset: 0x002159E0
|
||||
[Token(Token = "0x17001817")]
|
||||
public ECPoint G
|
||||
{
|
||||
[Token(Token = "0x60096D7")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001818 RID: 6168
|
||||
// (get) Token: 0x060096D8 RID: 38616 RVA: 0x002177F4 File Offset: 0x002159F4
|
||||
[Token(Token = "0x17001818")]
|
||||
public BigInteger N
|
||||
{
|
||||
[Token(Token = "0x60096D8")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.n;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001819 RID: 6169
|
||||
// (get) Token: 0x060096D9 RID: 38617 RVA: 0x00217808 File Offset: 0x00215A08
|
||||
[Token(Token = "0x17001819")]
|
||||
public BigInteger H
|
||||
{
|
||||
[Token(Token = "0x60096D9")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.h;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700181A RID: 6170
|
||||
// (get) Token: 0x060096DA RID: 38618 RVA: 0x0021781C File Offset: 0x00215A1C
|
||||
[Token(Token = "0x1700181A")]
|
||||
public BigInteger HInv
|
||||
{
|
||||
[Token(Token = "0x60096DA")]
|
||||
[Address(RVA = "0x1DD5B90", Offset = "0x1DD4590", VA = "0x181DD5B90")]
|
||||
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 != -1)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
return bigInteger;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096DB RID: 38619 RVA: 0x0021786C File Offset: 0x00215A6C
|
||||
[Token(Token = "0x60096DB")]
|
||||
[Address(RVA = "0x1DD57A0", Offset = "0x1DD41A0", VA = "0x181DD57A0")]
|
||||
public byte[] GetSeed()
|
||||
{
|
||||
return Arrays.Clone(this.seed);
|
||||
}
|
||||
|
||||
// Token: 0x060096DC RID: 38620 RVA: 0x00217884 File Offset: 0x00215A84
|
||||
[Token(Token = "0x60096DC")]
|
||||
[Address(RVA = "0x1DD5630", Offset = "0x1DD4030", VA = "0x181DD5630", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060096DD RID: 38621 RVA: 0x002178A4 File Offset: 0x00215AA4
|
||||
[Token(Token = "0x60096DD")]
|
||||
[Address(RVA = "0x1DD5570", Offset = "0x1DD3F70", VA = "0x181DD5570", 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: 0x060096DE RID: 38622 RVA: 0x002178DC File Offset: 0x00215ADC
|
||||
[Token(Token = "0x60096DE")]
|
||||
[Address(RVA = "0x1DD56E0", Offset = "0x1DD40E0", VA = "0x181DD56E0", 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: 0x060096DF RID: 38623 RVA: 0x00217920 File Offset: 0x00215B20
|
||||
[Token(Token = "0x60096DF")]
|
||||
[Address(RVA = "0x1DD5800", Offset = "0x1DD4200", VA = "0x181DD5800")]
|
||||
internal static ECPoint Validate(ECCurve c, ECPoint q)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096DF)
|
||||
|
||||
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: 0x0400637B RID: 25467
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400637B")]
|
||||
internal ECCurve curve;
|
||||
|
||||
// Token: 0x0400637C RID: 25468
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400637C")]
|
||||
internal byte[] seed;
|
||||
|
||||
// Token: 0x0400637D RID: 25469
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400637D")]
|
||||
internal ECPoint g;
|
||||
|
||||
// Token: 0x0400637E RID: 25470
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400637E")]
|
||||
internal BigInteger n;
|
||||
|
||||
// Token: 0x0400637F RID: 25471
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400637F")]
|
||||
internal BigInteger h;
|
||||
|
||||
// Token: 0x04006380 RID: 25472
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006380")]
|
||||
internal BigInteger hInv;
|
||||
}
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200160D RID: 5645
|
||||
[Token(Token = "0x200160D")]
|
||||
[StructLayout(3)]
|
||||
public class ECKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x060096E0 RID: 38624 RVA: 0x00217968 File Offset: 0x00215B68
|
||||
[Token(Token = "0x60096E0")]
|
||||
[Address(RVA = "0x1DD5C80", Offset = "0x1DD4680", VA = "0x181DD5C80")]
|
||||
public ECKeyGenerationParameters(ECDomainParameters domainParameters, SecureRandom random)
|
||||
{
|
||||
int bitLength = domainParameters.n.BitLength;
|
||||
base..ctor(random, bitLength);
|
||||
this.domainParams = domainParameters;
|
||||
}
|
||||
|
||||
// Token: 0x060096E1 RID: 38625 RVA: 0x00217998 File Offset: 0x00215B98
|
||||
[Token(Token = "0x60096E1")]
|
||||
[Address(RVA = "0x1DD5CE0", Offset = "0x1DD46E0", VA = "0x181DD5CE0")]
|
||||
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: 0x1700181B RID: 6171
|
||||
// (get) Token: 0x060096E2 RID: 38626 RVA: 0x002179D4 File Offset: 0x00215BD4
|
||||
[Token(Token = "0x1700181B")]
|
||||
public ECDomainParameters DomainParameters
|
||||
{
|
||||
[Token(Token = "0x60096E2")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.domainParams;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700181C RID: 6172
|
||||
// (get) Token: 0x060096E3 RID: 38627 RVA: 0x002179E8 File Offset: 0x00215BE8
|
||||
[Token(Token = "0x1700181C")]
|
||||
public DerObjectIdentifier PublicKeyParamSet
|
||||
{
|
||||
[Token(Token = "0x60096E3")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006381 RID: 25473
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006381")]
|
||||
private readonly ECDomainParameters domainParams;
|
||||
|
||||
// Token: 0x04006382 RID: 25474
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006382")]
|
||||
private readonly DerObjectIdentifier publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
+249
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x0200160E RID: 5646
|
||||
[Token(Token = "0x200160E")]
|
||||
[StructLayout(3)]
|
||||
public abstract class ECKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x060096E4 RID: 38628 RVA: 0x002179FC File Offset: 0x00215BFC
|
||||
[Token(Token = "0x60096E4")]
|
||||
[Address(RVA = "0x1DD6630", Offset = "0x1DD5030", VA = "0x181DD6630")]
|
||||
protected ECKeyParameters(string algorithm, bool isPrivate, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096E4)
|
||||
|
||||
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: 0x060096E5 RID: 38629 RVA: 0x00217A44 File Offset: 0x00215C44
|
||||
[Token(Token = "0x60096E5")]
|
||||
[Address(RVA = "0x1DD6520", Offset = "0x1DD4F20", VA = "0x181DD6520")]
|
||||
protected ECKeyParameters(string algorithm, bool isPrivate, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096E5)
|
||||
|
||||
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: 0x1700181D RID: 6173
|
||||
// (get) Token: 0x060096E6 RID: 38630 RVA: 0x00217A9C File Offset: 0x00215C9C
|
||||
[Token(Token = "0x1700181D")]
|
||||
public string AlgorithmName
|
||||
{
|
||||
[Token(Token = "0x60096E6")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.algorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700181E RID: 6174
|
||||
// (get) Token: 0x060096E7 RID: 38631 RVA: 0x00217AB0 File Offset: 0x00215CB0
|
||||
[Token(Token = "0x1700181E")]
|
||||
public ECDomainParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x60096E7")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700181F RID: 6175
|
||||
// (get) Token: 0x060096E8 RID: 38632 RVA: 0x00217AC4 File Offset: 0x00215CC4
|
||||
[Token(Token = "0x1700181F")]
|
||||
public DerObjectIdentifier PublicKeyParamSet
|
||||
{
|
||||
[Token(Token = "0x60096E8")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096E9 RID: 38633 RVA: 0x00217AD8 File Offset: 0x00215CD8
|
||||
[Token(Token = "0x60096E9")]
|
||||
[Address(RVA = "0x1DD5F20", Offset = "0x1DD4920", VA = "0x181DD5F20", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060096EA RID: 38634 RVA: 0x00217AF8 File Offset: 0x00215CF8
|
||||
[Token(Token = "0x60096EA")]
|
||||
[Address(RVA = "0x1DD5EC0", Offset = "0x1DD48C0", VA = "0x181DD5EC0")]
|
||||
protected bool Equals(ECKeyParameters other)
|
||||
{
|
||||
ECDomainParameters ecdomainParameters = this.parameters;
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x060096EB RID: 38635 RVA: 0x00217B1C File Offset: 0x00215D1C
|
||||
[Token(Token = "0x60096EB")]
|
||||
[Address(RVA = "0x1DD5FD0", Offset = "0x1DD49D0", VA = "0x181DD5FD0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.parameters.Finalize();
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060096EC RID: 38636 RVA: 0x00217B40 File Offset: 0x00215D40
|
||||
[Token(Token = "0x60096EC")]
|
||||
[Address(RVA = "0x1DD5D90", Offset = "0x1DD4790", VA = "0x181DD5D90")]
|
||||
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: 0x060096ED RID: 38637 RVA: 0x00217BA0 File Offset: 0x00215DA0
|
||||
[Token(Token = "0x60096ED")]
|
||||
[Address(RVA = "0x1DD6190", Offset = "0x1DD4B90", VA = "0x181DD6190")]
|
||||
internal static string VerifyAlgorithmName(string algorithm)
|
||||
{
|
||||
string text = Platform.ToUpperInvariant(algorithm);
|
||||
string[] array = ECKeyParameters.algorithms;
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x060096EE RID: 38638 RVA: 0x00217BC4 File Offset: 0x00215DC4
|
||||
[Token(Token = "0x60096EE")]
|
||||
[Address(RVA = "0x1DD6020", Offset = "0x1DD4A20", VA = "0x181DD6020")]
|
||||
internal static ECDomainParameters LookupParameters(DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096EE)
|
||||
|
||||
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: 0x060096EF RID: 38639 RVA: 0x00217C40 File Offset: 0x00215E40
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x60096EF")]
|
||||
[Address(RVA = "0x1DD62A0", Offset = "0x1DD4CA0", VA = "0x181DD62A0")]
|
||||
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: 0x04006383 RID: 25475
|
||||
[Token(Token = "0x4006383")]
|
||||
private static readonly string[] algorithms;
|
||||
|
||||
// Token: 0x04006384 RID: 25476
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006384")]
|
||||
private readonly string algorithm;
|
||||
|
||||
// Token: 0x04006385 RID: 25477
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006385")]
|
||||
private readonly ECDomainParameters parameters;
|
||||
|
||||
// Token: 0x04006386 RID: 25478
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006386")]
|
||||
private readonly DerObjectIdentifier publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
+187
@@ -0,0 +1,187 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200160F RID: 5647
|
||||
[Token(Token = "0x200160F")]
|
||||
[StructLayout(3)]
|
||||
public class ECPrivateKeyParameters : ECKeyParameters
|
||||
{
|
||||
// Token: 0x060096F0 RID: 38640 RVA: 0x00217CD8 File Offset: 0x00215ED8
|
||||
[Token(Token = "0x60096F0")]
|
||||
[Address(RVA = "0x1DD6940", Offset = "0x1DD5340", VA = "0x181DD6940")]
|
||||
public ECPrivateKeyParameters(BigInteger d, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096F0)
|
||||
|
||||
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: 0x060096F1 RID: 38641 RVA: 0x00217D08 File Offset: 0x00215F08
|
||||
[Token(Token = "0x60096F1")]
|
||||
[Address(RVA = "0x1DD6BD0", Offset = "0x1DD55D0", VA = "0x181DD6BD0")]
|
||||
[Obsolete]
|
||||
public ECPrivateKeyParameters(BigInteger d, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096F1)
|
||||
|
||||
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: 0x060096F2 RID: 38642 RVA: 0x00217D38 File Offset: 0x00215F38
|
||||
[Token(Token = "0x60096F2")]
|
||||
[Address(RVA = "0x1DD6A30", Offset = "0x1DD5430", VA = "0x181DD6A30")]
|
||||
public ECPrivateKeyParameters(string algorithm, BigInteger d, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096F2)
|
||||
|
||||
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: 0x060096F3 RID: 38643 RVA: 0x00217D64 File Offset: 0x00215F64
|
||||
[Token(Token = "0x60096F3")]
|
||||
[Address(RVA = "0x1DD6B00", Offset = "0x1DD5500", VA = "0x181DD6B00")]
|
||||
public ECPrivateKeyParameters(string algorithm, BigInteger d, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096F3)
|
||||
|
||||
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: 0x17001820 RID: 6176
|
||||
// (get) Token: 0x060096F4 RID: 38644 RVA: 0x00217D90 File Offset: 0x00215F90
|
||||
[Token(Token = "0x17001820")]
|
||||
public BigInteger D
|
||||
{
|
||||
[Token(Token = "0x60096F4")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.d;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096F5 RID: 38645 RVA: 0x00217DA4 File Offset: 0x00215FA4
|
||||
[Token(Token = "0x60096F5")]
|
||||
[Address(RVA = "0x1DD67C0", Offset = "0x1DD51C0", VA = "0x181DD67C0", 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: 0x060096F6 RID: 38646 RVA: 0x00217DDC File Offset: 0x00215FDC
|
||||
[Token(Token = "0x60096F6")]
|
||||
[Address(RVA = "0x1DD6730", Offset = "0x1DD5130", VA = "0x181DD6730")]
|
||||
protected bool Equals(ECPrivateKeyParameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.d;
|
||||
ECDomainParameters parameters = this.parameters;
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x060096F7 RID: 38647 RVA: 0x00217E08 File Offset: 0x00216008
|
||||
[Token(Token = "0x60096F7")]
|
||||
[Address(RVA = "0x1DD68D0", Offset = "0x1DD52D0", VA = "0x181DD68D0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.d.Finalize();
|
||||
this.parameters.Finalize();
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x04006387 RID: 25479
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006387")]
|
||||
private readonly BigInteger d;
|
||||
}
|
||||
}
|
||||
+195
@@ -0,0 +1,195 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001610 RID: 5648
|
||||
[Token(Token = "0x2001610")]
|
||||
[StructLayout(3)]
|
||||
public class ECPublicKeyParameters : ECKeyParameters
|
||||
{
|
||||
// Token: 0x060096F8 RID: 38648 RVA: 0x00217E38 File Offset: 0x00216038
|
||||
[Token(Token = "0x60096F8")]
|
||||
[Address(RVA = "0x1DD7030", Offset = "0x1DD5A30", VA = "0x181DD7030")]
|
||||
public ECPublicKeyParameters(ECPoint q, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096F8)
|
||||
|
||||
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: 0x060096F9 RID: 38649 RVA: 0x00217E7C File Offset: 0x0021607C
|
||||
[Token(Token = "0x60096F9")]
|
||||
[Address(RVA = "0x1DD6E30", Offset = "0x1DD5830", VA = "0x181DD6E30")]
|
||||
[Obsolete]
|
||||
public ECPublicKeyParameters(ECPoint q, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096F9)
|
||||
|
||||
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: 0x060096FA RID: 38650 RVA: 0x00217EC0 File Offset: 0x002160C0
|
||||
[Token(Token = "0x60096FA")]
|
||||
[Address(RVA = "0x1DD7150", Offset = "0x1DD5B50", VA = "0x181DD7150")]
|
||||
public ECPublicKeyParameters(string algorithm, ECPoint q, ECDomainParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096FA)
|
||||
|
||||
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: 0x060096FB RID: 38651 RVA: 0x00217F00 File Offset: 0x00216100
|
||||
[Token(Token = "0x60096FB")]
|
||||
[Address(RVA = "0x1DD6F30", Offset = "0x1DD5930", VA = "0x181DD6F30")]
|
||||
public ECPublicKeyParameters(string algorithm, ECPoint q, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060096FB)
|
||||
|
||||
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: 0x17001821 RID: 6177
|
||||
// (get) Token: 0x060096FC RID: 38652 RVA: 0x00217F40 File Offset: 0x00216140
|
||||
[Token(Token = "0x17001821")]
|
||||
public ECPoint Q
|
||||
{
|
||||
[Token(Token = "0x60096FC")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060096FD RID: 38653 RVA: 0x00217F54 File Offset: 0x00216154
|
||||
[Token(Token = "0x60096FD")]
|
||||
[Address(RVA = "0x1DD6C90", Offset = "0x1DD5690", VA = "0x181DD6C90", 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: 0x060096FE RID: 38654 RVA: 0x00217F90 File Offset: 0x00216190
|
||||
[Token(Token = "0x60096FE")]
|
||||
[Address(RVA = "0x1DD6DA0", Offset = "0x1DD57A0", VA = "0x181DD6DA0")]
|
||||
protected bool Equals(ECPublicKeyParameters other)
|
||||
{
|
||||
ECPoint ecpoint = this.q;
|
||||
ECPoint ecpoint2;
|
||||
if (ecpoint2 == 0)
|
||||
{
|
||||
}
|
||||
ECDomainParameters parameters = this.parameters;
|
||||
return base.Equals(other);
|
||||
}
|
||||
|
||||
// Token: 0x060096FF RID: 38655 RVA: 0x00217FC0 File Offset: 0x002161C0
|
||||
[Token(Token = "0x60096FF")]
|
||||
[Address(RVA = "0x1DD68D0", Offset = "0x1DD52D0", VA = "0x181DD68D0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.q.Finalize();
|
||||
this.parameters.Finalize();
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x04006388 RID: 25480
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006388")]
|
||||
private readonly ECPoint q;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001611 RID: 5649
|
||||
[Token(Token = "0x2001611")]
|
||||
[StructLayout(3)]
|
||||
public class Ed25519KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x06009700 RID: 38656 RVA: 0x00217FF0 File Offset: 0x002161F0
|
||||
[Token(Token = "0x6009700")]
|
||||
[Address(RVA = "0x1DD7250", Offset = "0x1DD5C50", VA = "0x181DD7250")]
|
||||
public Ed25519KeyGenerationParameters(SecureRandom random)
|
||||
: base(random, 256)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x02001612 RID: 5650
|
||||
[Token(Token = "0x2001612")]
|
||||
[StructLayout(3)]
|
||||
public sealed class Ed25519PrivateKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x06009701 RID: 38657 RVA: 0x0021800C File Offset: 0x0021620C
|
||||
[Token(Token = "0x6009701")]
|
||||
[Address(RVA = "0x1DD7A80", Offset = "0x1DD6480", VA = "0x181DD7A80")]
|
||||
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: 0x06009702 RID: 38658 RVA: 0x00218040 File Offset: 0x00216240
|
||||
[Token(Token = "0x6009702")]
|
||||
[Address(RVA = "0x1DD79C0", Offset = "0x1DD63C0", VA = "0x181DD79C0")]
|
||||
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: 0x06009703 RID: 38659 RVA: 0x00218084 File Offset: 0x00216284
|
||||
[Token(Token = "0x6009703")]
|
||||
[Address(RVA = "0x1DD78D0", Offset = "0x1DD62D0", VA = "0x181DD78D0")]
|
||||
public Ed25519PrivateKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009703)
|
||||
|
||||
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: 0x06009704 RID: 38660 RVA: 0x002180D0 File Offset: 0x002162D0
|
||||
[Token(Token = "0x6009704")]
|
||||
[Address(RVA = "0x1DD7260", Offset = "0x1DD5C60", VA = "0x181DD7260")]
|
||||
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: 0x06009705 RID: 38661 RVA: 0x002180F8 File Offset: 0x002162F8
|
||||
[Token(Token = "0x6009705")]
|
||||
[Address(RVA = "0x1DD7440", Offset = "0x1DD5E40", VA = "0x181DD7440")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x06009706 RID: 38662 RVA: 0x00218110 File Offset: 0x00216310
|
||||
[Token(Token = "0x6009706")]
|
||||
[Address(RVA = "0x1DD7300", Offset = "0x1DD5D00", VA = "0x181DD7300")]
|
||||
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: 0x06009707 RID: 38663 RVA: 0x00218188 File Offset: 0x00216388
|
||||
[Token(Token = "0x6009707")]
|
||||
[Address(RVA = "0x1DD74A0", Offset = "0x1DD5EA0", VA = "0x181DD74A0")]
|
||||
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 (06009707)
|
||||
|
||||
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: 0x04006389 RID: 25481
|
||||
[Token(Token = "0x4006389")]
|
||||
public static readonly int KeySize = Ed25519.SecretKeySize;
|
||||
|
||||
// Token: 0x0400638A RID: 25482
|
||||
[Token(Token = "0x400638A")]
|
||||
public static readonly int SignatureSize = Ed25519.SignatureSize;
|
||||
|
||||
// Token: 0x0400638B RID: 25483
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400638B")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001613 RID: 5651
|
||||
[Token(Token = "0x2001613")]
|
||||
[StructLayout(3)]
|
||||
public sealed class Ed25519PublicKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x06009709 RID: 38665 RVA: 0x0021824C File Offset: 0x0021644C
|
||||
[Token(Token = "0x6009709")]
|
||||
[Address(RVA = "0x1DD7DA0", Offset = "0x1DD67A0", VA = "0x181DD7DA0")]
|
||||
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: 0x0600970A RID: 38666 RVA: 0x00218290 File Offset: 0x00216490
|
||||
[Token(Token = "0x600970A")]
|
||||
[Address(RVA = "0x1DD7CB0", Offset = "0x1DD66B0", VA = "0x181DD7CB0")]
|
||||
public Ed25519PublicKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600970A)
|
||||
|
||||
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: 0x0600970B RID: 38667 RVA: 0x002182E0 File Offset: 0x002164E0
|
||||
[Token(Token = "0x600970B")]
|
||||
[Address(RVA = "0x1DD7B40", Offset = "0x1DD6540", VA = "0x181DD7B40")]
|
||||
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: 0x0600970C RID: 38668 RVA: 0x00218308 File Offset: 0x00216508
|
||||
[Token(Token = "0x600970C")]
|
||||
[Address(RVA = "0x1DD7BE0", Offset = "0x1DD65E0", VA = "0x181DD7BE0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x0400638C RID: 25484
|
||||
[Token(Token = "0x400638C")]
|
||||
public static readonly int KeySize = Ed25519.PublicKeySize;
|
||||
|
||||
// Token: 0x0400638D RID: 25485
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400638D")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001614 RID: 5652
|
||||
[Token(Token = "0x2001614")]
|
||||
[StructLayout(3)]
|
||||
public class Ed448KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600970E RID: 38670 RVA: 0x00218338 File Offset: 0x00216538
|
||||
[Token(Token = "0x600970E")]
|
||||
[Address(RVA = "0x1DD7E60", Offset = "0x1DD6860", VA = "0x181DD7E60")]
|
||||
public Ed448KeyGenerationParameters(SecureRandom random)
|
||||
: base(random, 448)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x02001615 RID: 5653
|
||||
[Token(Token = "0x2001615")]
|
||||
[StructLayout(3)]
|
||||
public sealed class Ed448PrivateKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600970F RID: 38671 RVA: 0x00218354 File Offset: 0x00216554
|
||||
[Token(Token = "0x600970F")]
|
||||
[Address(RVA = "0x1DD8510", Offset = "0x1DD6F10", VA = "0x181DD8510")]
|
||||
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: 0x06009710 RID: 38672 RVA: 0x00218388 File Offset: 0x00216588
|
||||
[Token(Token = "0x6009710")]
|
||||
[Address(RVA = "0x1DD85D0", Offset = "0x1DD6FD0", VA = "0x181DD85D0")]
|
||||
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: 0x06009711 RID: 38673 RVA: 0x002183CC File Offset: 0x002165CC
|
||||
[Token(Token = "0x6009711")]
|
||||
[Address(RVA = "0x1DD8420", Offset = "0x1DD6E20", VA = "0x181DD8420")]
|
||||
public Ed448PrivateKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009711)
|
||||
|
||||
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: 0x06009712 RID: 38674 RVA: 0x00218418 File Offset: 0x00216618
|
||||
[Token(Token = "0x6009712")]
|
||||
[Address(RVA = "0x1DD7E70", Offset = "0x1DD6870", VA = "0x181DD7E70")]
|
||||
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: 0x06009713 RID: 38675 RVA: 0x00218440 File Offset: 0x00216640
|
||||
[Token(Token = "0x6009713")]
|
||||
[Address(RVA = "0x1DD8050", Offset = "0x1DD6A50", VA = "0x181DD8050")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x06009714 RID: 38676 RVA: 0x00218458 File Offset: 0x00216658
|
||||
[Token(Token = "0x6009714")]
|
||||
[Address(RVA = "0x1DD7F10", Offset = "0x1DD6910", VA = "0x181DD7F10")]
|
||||
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: 0x06009715 RID: 38677 RVA: 0x002184D0 File Offset: 0x002166D0
|
||||
[Token(Token = "0x6009715")]
|
||||
[Address(RVA = "0x1DD80B0", Offset = "0x1DD6AB0", VA = "0x181DD80B0")]
|
||||
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 (06009715)
|
||||
|
||||
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: 0x0400638E RID: 25486
|
||||
[Token(Token = "0x400638E")]
|
||||
public static readonly int KeySize = Ed448.SecretKeySize;
|
||||
|
||||
// Token: 0x0400638F RID: 25487
|
||||
[Token(Token = "0x400638F")]
|
||||
public static readonly int SignatureSize = Ed448.SignatureSize;
|
||||
|
||||
// Token: 0x04006390 RID: 25488
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006390")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.Rfc8032;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001616 RID: 5654
|
||||
[Token(Token = "0x2001616")]
|
||||
[StructLayout(3)]
|
||||
public sealed class Ed448PublicKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x06009717 RID: 38679 RVA: 0x00218578 File Offset: 0x00216778
|
||||
[Token(Token = "0x6009717")]
|
||||
[Address(RVA = "0x1DD8800", Offset = "0x1DD7200", VA = "0x181DD8800")]
|
||||
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: 0x06009718 RID: 38680 RVA: 0x002185BC File Offset: 0x002167BC
|
||||
[Token(Token = "0x6009718")]
|
||||
[Address(RVA = "0x1DD88C0", Offset = "0x1DD72C0", VA = "0x181DD88C0")]
|
||||
public Ed448PublicKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009718)
|
||||
|
||||
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: 0x06009719 RID: 38681 RVA: 0x0021860C File Offset: 0x0021680C
|
||||
[Token(Token = "0x6009719")]
|
||||
[Address(RVA = "0x1DD8690", Offset = "0x1DD7090", VA = "0x181DD8690")]
|
||||
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: 0x0600971A RID: 38682 RVA: 0x00218634 File Offset: 0x00216834
|
||||
[Token(Token = "0x600971A")]
|
||||
[Address(RVA = "0x1DD8730", Offset = "0x1DD7130", VA = "0x181DD8730")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x04006391 RID: 25489
|
||||
[Token(Token = "0x4006391")]
|
||||
public static readonly int KeySize = Ed448.PublicKeySize;
|
||||
|
||||
// Token: 0x04006392 RID: 25490
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006392")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001617 RID: 5655
|
||||
[Token(Token = "0x2001617")]
|
||||
[StructLayout(3)]
|
||||
public class ElGamalKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x0600971C RID: 38684 RVA: 0x00218664 File Offset: 0x00216864
|
||||
[Token(Token = "0x600971C")]
|
||||
[Address(RVA = "0x1DD89E0", Offset = "0x1DD73E0", VA = "0x181DD89E0")]
|
||||
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: 0x17001822 RID: 6178
|
||||
// (get) Token: 0x0600971D RID: 38685 RVA: 0x002186A0 File Offset: 0x002168A0
|
||||
[Token(Token = "0x17001822")]
|
||||
public ElGamalParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600971D")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600971E RID: 38686 RVA: 0x002186B4 File Offset: 0x002168B4
|
||||
[Token(Token = "0x600971E")]
|
||||
[Address(RVA = "0x1DD89B0", Offset = "0x1DD73B0", VA = "0x181DD89B0")]
|
||||
internal static int GetStrength(ElGamalParameters parameters)
|
||||
{
|
||||
int l = parameters.l;
|
||||
if (l == 0)
|
||||
{
|
||||
return parameters.p.BitLength;
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
// Token: 0x04006393 RID: 25491
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006393")]
|
||||
private readonly ElGamalParameters parameters;
|
||||
}
|
||||
}
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001618 RID: 5656
|
||||
[Token(Token = "0x2001618")]
|
||||
[StructLayout(3)]
|
||||
public class ElGamalKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600971F RID: 38687 RVA: 0x002186E0 File Offset: 0x002168E0
|
||||
[Token(Token = "0x600971F")]
|
||||
[Address(RVA = "0x1DD44F0", Offset = "0x1DD2EF0", VA = "0x181DD44F0")]
|
||||
protected ElGamalKeyParameters(bool isPrivate, ElGamalParameters parameters)
|
||||
: base(isPrivate)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x17001823 RID: 6179
|
||||
// (get) Token: 0x06009720 RID: 38688 RVA: 0x002186FC File Offset: 0x002168FC
|
||||
[Token(Token = "0x17001823")]
|
||||
public ElGamalParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x6009720")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009721 RID: 38689 RVA: 0x00218710 File Offset: 0x00216910
|
||||
[Token(Token = "0x6009721")]
|
||||
[Address(RVA = "0x1DD8A40", Offset = "0x1DD7440", VA = "0x181DD8A40", 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: 0x06009722 RID: 38690 RVA: 0x0021873C File Offset: 0x0021693C
|
||||
[Token(Token = "0x6009722")]
|
||||
[Address(RVA = "0x1DD15A0", Offset = "0x1DCFFA0", VA = "0x181DD15A0")]
|
||||
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: 0x06009723 RID: 38691 RVA: 0x00218770 File Offset: 0x00216970
|
||||
[Token(Token = "0x6009723")]
|
||||
[Address(RVA = "0x1DD1600", Offset = "0x1DD0000", VA = "0x181DD1600", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
ElGamalParameters elGamalParameters = this.parameters;
|
||||
if (elGamalParameters != 0)
|
||||
{
|
||||
elGamalParameters.Finalize();
|
||||
}
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
// Token: 0x04006394 RID: 25492
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006394")]
|
||||
private readonly ElGamalParameters parameters;
|
||||
}
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001619 RID: 5657
|
||||
[Token(Token = "0x2001619")]
|
||||
[StructLayout(3)]
|
||||
public class ElGamalParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009724 RID: 38692 RVA: 0x00218798 File Offset: 0x00216998
|
||||
[Token(Token = "0x6009724")]
|
||||
[Address(RVA = "0x1DD8CF0", Offset = "0x1DD76F0", VA = "0x181DD8CF0")]
|
||||
public ElGamalParameters(BigInteger p, BigInteger g)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009724)
|
||||
|
||||
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: 0x06009725 RID: 38693 RVA: 0x002187E0 File Offset: 0x002169E0
|
||||
[Token(Token = "0x6009725")]
|
||||
[Address(RVA = "0x1DD8DC0", Offset = "0x1DD77C0", VA = "0x181DD8DC0")]
|
||||
public ElGamalParameters(BigInteger p, BigInteger g, int l)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009725)
|
||||
|
||||
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: 0x17001824 RID: 6180
|
||||
// (get) Token: 0x06009726 RID: 38694 RVA: 0x00218828 File Offset: 0x00216A28
|
||||
[Token(Token = "0x17001824")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x6009726")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001825 RID: 6181
|
||||
// (get) Token: 0x06009727 RID: 38695 RVA: 0x0021883C File Offset: 0x00216A3C
|
||||
[Token(Token = "0x17001825")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x6009727")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001826 RID: 6182
|
||||
// (get) Token: 0x06009728 RID: 38696 RVA: 0x00218850 File Offset: 0x00216A50
|
||||
[Token(Token = "0x17001826")]
|
||||
public int L
|
||||
{
|
||||
[Token(Token = "0x6009728")]
|
||||
[Address(RVA = "0x4FBD40", Offset = "0x4FA740", VA = "0x1804FBD40")]
|
||||
get
|
||||
{
|
||||
return this.l;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009729 RID: 38697 RVA: 0x00218864 File Offset: 0x00216A64
|
||||
[Token(Token = "0x6009729")]
|
||||
[Address(RVA = "0x1DD8B10", Offset = "0x1DD7510", VA = "0x181DD8B10", 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: 0x0600972A RID: 38698 RVA: 0x0021889C File Offset: 0x00216A9C
|
||||
[Token(Token = "0x600972A")]
|
||||
[Address(RVA = "0x1DD8C10", Offset = "0x1DD7610", VA = "0x181DD8C10")]
|
||||
protected bool Equals(ElGamalParameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.g;
|
||||
int num = other.l;
|
||||
return this.l == num;
|
||||
}
|
||||
|
||||
// Token: 0x0600972B RID: 38699 RVA: 0x002188D0 File Offset: 0x00216AD0
|
||||
[Token(Token = "0x600972B")]
|
||||
[Address(RVA = "0x1DD8C90", Offset = "0x1DD7690", VA = "0x181DD8C90", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.p.Finalize();
|
||||
this.g.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006395 RID: 25493
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006395")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x04006396 RID: 25494
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006396")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x04006397 RID: 25495
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006397")]
|
||||
private readonly int l;
|
||||
}
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200161A RID: 5658
|
||||
[Token(Token = "0x200161A")]
|
||||
[StructLayout(3)]
|
||||
public class ElGamalPrivateKeyParameters : ElGamalKeyParameters
|
||||
{
|
||||
// Token: 0x0600972C RID: 38700 RVA: 0x002188F8 File Offset: 0x00216AF8
|
||||
[Token(Token = "0x600972C")]
|
||||
[Address(RVA = "0x1DD9020", Offset = "0x1DD7A20", VA = "0x181DD9020")]
|
||||
public ElGamalPrivateKeyParameters(BigInteger x, ElGamalParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600972C)
|
||||
|
||||
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: 0x17001827 RID: 6183
|
||||
// (get) Token: 0x0600972D RID: 38701 RVA: 0x0021892C File Offset: 0x00216B2C
|
||||
[Token(Token = "0x17001827")]
|
||||
public BigInteger X
|
||||
{
|
||||
[Token(Token = "0x600972D")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600972E RID: 38702 RVA: 0x00218940 File Offset: 0x00216B40
|
||||
[Token(Token = "0x600972E")]
|
||||
[Address(RVA = "0x1DD8EA0", Offset = "0x1DD78A0", VA = "0x181DD8EA0", 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: 0x0600972F RID: 38703 RVA: 0x00218980 File Offset: 0x00216B80
|
||||
[Token(Token = "0x600972F")]
|
||||
[Address(RVA = "0x1DD8FA0", Offset = "0x1DD79A0", VA = "0x181DD8FA0")]
|
||||
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: 0x06009730 RID: 38704 RVA: 0x002189BC File Offset: 0x00216BBC
|
||||
[Token(Token = "0x6009730")]
|
||||
[Address(RVA = "0x1DD4BE0", Offset = "0x1DD35E0", VA = "0x181DD4BE0", 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: 0x04006398 RID: 25496
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006398")]
|
||||
private readonly BigInteger x;
|
||||
}
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200161B RID: 5659
|
||||
[Token(Token = "0x200161B")]
|
||||
[StructLayout(3)]
|
||||
public class ElGamalPublicKeyParameters : ElGamalKeyParameters
|
||||
{
|
||||
// Token: 0x06009731 RID: 38705 RVA: 0x002189F4 File Offset: 0x00216BF4
|
||||
[Token(Token = "0x6009731")]
|
||||
[Address(RVA = "0x1DD91B0", Offset = "0x1DD7BB0", VA = "0x181DD91B0")]
|
||||
public ElGamalPublicKeyParameters(BigInteger y, ElGamalParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009731)
|
||||
|
||||
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: 0x17001828 RID: 6184
|
||||
// (get) Token: 0x06009732 RID: 38706 RVA: 0x00218A28 File Offset: 0x00216C28
|
||||
[Token(Token = "0x17001828")]
|
||||
public BigInteger Y
|
||||
{
|
||||
[Token(Token = "0x6009732")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009733 RID: 38707 RVA: 0x00218A3C File Offset: 0x00216C3C
|
||||
[Token(Token = "0x6009733")]
|
||||
[Address(RVA = "0x1DD90B0", Offset = "0x1DD7AB0", VA = "0x181DD90B0", 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: 0x06009734 RID: 38708 RVA: 0x00218A78 File Offset: 0x00216C78
|
||||
[Token(Token = "0x6009734")]
|
||||
[Address(RVA = "0x1DD4B60", Offset = "0x1DD3560", VA = "0x181DD4B60")]
|
||||
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: 0x06009735 RID: 38709 RVA: 0x00218AB4 File Offset: 0x00216CB4
|
||||
[Token(Token = "0x6009735")]
|
||||
[Address(RVA = "0x1DD4BE0", Offset = "0x1DD35E0", VA = "0x181DD4BE0", 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: 0x04006399 RID: 25497
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006399")]
|
||||
private readonly BigInteger y;
|
||||
}
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200161C RID: 5660
|
||||
[Token(Token = "0x200161C")]
|
||||
[StructLayout(3)]
|
||||
public class Gost3410KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x06009736 RID: 38710 RVA: 0x00218AEC File Offset: 0x00216CEC
|
||||
[Token(Token = "0x6009736")]
|
||||
[Address(RVA = "0x1DD43C0", Offset = "0x1DD2DC0", VA = "0x181DD43C0")]
|
||||
public Gost3410KeyGenerationParameters(SecureRandom random, Gost3410Parameters parameters)
|
||||
{
|
||||
int num = parameters.p.BitLength - 1;
|
||||
base..ctor(random, num);
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x06009737 RID: 38711 RVA: 0x00218B1C File Offset: 0x00216D1C
|
||||
[Token(Token = "0x6009737")]
|
||||
[Address(RVA = "0x1DD9390", Offset = "0x1DD7D90", VA = "0x181DD9390")]
|
||||
public Gost3410KeyGenerationParameters(SecureRandom random, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009737)
|
||||
|
||||
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: 0x17001829 RID: 6185
|
||||
// (get) Token: 0x06009738 RID: 38712 RVA: 0x00218B9C File Offset: 0x00216D9C
|
||||
[Token(Token = "0x17001829")]
|
||||
public Gost3410Parameters Parameters
|
||||
{
|
||||
[Token(Token = "0x6009738")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700182A RID: 6186
|
||||
// (get) Token: 0x06009739 RID: 38713 RVA: 0x00218BB0 File Offset: 0x00216DB0
|
||||
[Token(Token = "0x1700182A")]
|
||||
public DerObjectIdentifier PublicKeyParamSet
|
||||
{
|
||||
[Token(Token = "0x6009739")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600973A RID: 38714 RVA: 0x00218BC4 File Offset: 0x00216DC4
|
||||
[Token(Token = "0x600973A")]
|
||||
[Address(RVA = "0x1DD9240", Offset = "0x1DD7C40", VA = "0x181DD9240")]
|
||||
private static Gost3410Parameters LookupParameters(DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600973A)
|
||||
|
||||
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: 0x0400639A RID: 25498
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400639A")]
|
||||
private readonly Gost3410Parameters parameters;
|
||||
|
||||
// Token: 0x0400639B RID: 25499
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400639B")]
|
||||
private readonly DerObjectIdentifier publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200161D RID: 5661
|
||||
[Token(Token = "0x200161D")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Gost3410KeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600973B RID: 38715 RVA: 0x00218C1C File Offset: 0x00216E1C
|
||||
[Token(Token = "0x600973B")]
|
||||
[Address(RVA = "0x1DD44F0", Offset = "0x1DD2EF0", VA = "0x181DD44F0")]
|
||||
protected Gost3410KeyParameters(bool isPrivate, Gost3410Parameters parameters)
|
||||
: base(isPrivate)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600973C RID: 38716 RVA: 0x00218C38 File Offset: 0x00216E38
|
||||
[Token(Token = "0x600973C")]
|
||||
[Address(RVA = "0x1DD9670", Offset = "0x1DD8070", VA = "0x181DD9670")]
|
||||
protected Gost3410KeyParameters(bool isPrivate, DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600973C)
|
||||
|
||||
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: 0x1700182B RID: 6187
|
||||
// (get) Token: 0x0600973D RID: 38717 RVA: 0x00218CA8 File Offset: 0x00216EA8
|
||||
[Token(Token = "0x1700182B")]
|
||||
public Gost3410Parameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600973D")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700182C RID: 6188
|
||||
// (get) Token: 0x0600973E RID: 38718 RVA: 0x00218CBC File Offset: 0x00216EBC
|
||||
[Token(Token = "0x1700182C")]
|
||||
public DerObjectIdentifier PublicKeyParamSet
|
||||
{
|
||||
[Token(Token = "0x600973E")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600973F RID: 38719 RVA: 0x00218CD0 File Offset: 0x00216ED0
|
||||
[Token(Token = "0x600973F")]
|
||||
[Address(RVA = "0x1DD9520", Offset = "0x1DD7F20", VA = "0x181DD9520")]
|
||||
private static Gost3410Parameters LookupParameters(DerObjectIdentifier publicKeyParamSet)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600973F)
|
||||
|
||||
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: 0x0400639C RID: 25500
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400639C")]
|
||||
private readonly Gost3410Parameters parameters;
|
||||
|
||||
// Token: 0x0400639D RID: 25501
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400639D")]
|
||||
private readonly DerObjectIdentifier publicKeyParamSet;
|
||||
}
|
||||
}
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200161E RID: 5662
|
||||
[Token(Token = "0x200161E")]
|
||||
[StructLayout(3)]
|
||||
public class Gost3410Parameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009740 RID: 38720 RVA: 0x00218D28 File Offset: 0x00216F28
|
||||
[Token(Token = "0x6009740")]
|
||||
[Address(RVA = "0x1DD98F0", Offset = "0x1DD82F0", VA = "0x181DD98F0")]
|
||||
public Gost3410Parameters(BigInteger p, BigInteger q, BigInteger a)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009740)
|
||||
|
||||
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: 0x06009741 RID: 38721 RVA: 0x00218D7C File Offset: 0x00216F7C
|
||||
[Token(Token = "0x6009741")]
|
||||
[Address(RVA = "0x1DD9A10", Offset = "0x1DD8410", VA = "0x181DD9A10")]
|
||||
public Gost3410Parameters(BigInteger p, BigInteger q, BigInteger a, Gost3410ValidationParameters validation)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009741)
|
||||
|
||||
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: 0x1700182D RID: 6189
|
||||
// (get) Token: 0x06009742 RID: 38722 RVA: 0x00218DD0 File Offset: 0x00216FD0
|
||||
[Token(Token = "0x1700182D")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x6009742")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700182E RID: 6190
|
||||
// (get) Token: 0x06009743 RID: 38723 RVA: 0x00218DE4 File Offset: 0x00216FE4
|
||||
[Token(Token = "0x1700182E")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x6009743")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700182F RID: 6191
|
||||
// (get) Token: 0x06009744 RID: 38724 RVA: 0x00218DF8 File Offset: 0x00216FF8
|
||||
[Token(Token = "0x1700182F")]
|
||||
public BigInteger A
|
||||
{
|
||||
[Token(Token = "0x6009744")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.a;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001830 RID: 6192
|
||||
// (get) Token: 0x06009745 RID: 38725 RVA: 0x00218E0C File Offset: 0x0021700C
|
||||
[Token(Token = "0x17001830")]
|
||||
public Gost3410ValidationParameters ValidationParameters
|
||||
{
|
||||
[Token(Token = "0x6009745")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.validation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009746 RID: 38726 RVA: 0x00218E20 File Offset: 0x00217020
|
||||
[Token(Token = "0x6009746")]
|
||||
[Address(RVA = "0x1DD97D0", Offset = "0x1DD81D0", VA = "0x181DD97D0", 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: 0x06009747 RID: 38727 RVA: 0x00218E5C File Offset: 0x0021705C
|
||||
[Token(Token = "0x6009747")]
|
||||
[Address(RVA = "0x1DD4700", Offset = "0x1DD3100", VA = "0x181DD4700")]
|
||||
protected bool Equals(Gost3410Parameters other)
|
||||
{
|
||||
BigInteger bigInteger = this.p;
|
||||
BigInteger bigInteger2 = this.q;
|
||||
BigInteger bigInteger3 = this.a;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009748 RID: 38728 RVA: 0x00218E88 File Offset: 0x00217088
|
||||
[Token(Token = "0x6009748")]
|
||||
[Address(RVA = "0x1DD47A0", Offset = "0x1DD31A0", VA = "0x181DD47A0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.p.Finalize();
|
||||
this.q.Finalize();
|
||||
this.a.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400639E RID: 25502
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400639E")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x0400639F RID: 25503
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400639F")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x040063A0 RID: 25504
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063A0")]
|
||||
private readonly BigInteger a;
|
||||
|
||||
// Token: 0x040063A1 RID: 25505
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063A1")]
|
||||
private readonly Gost3410ValidationParameters validation;
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200161F RID: 5663
|
||||
[Token(Token = "0x200161F")]
|
||||
[StructLayout(3)]
|
||||
public class Gost3410PrivateKeyParameters : Gost3410KeyParameters
|
||||
{
|
||||
// Token: 0x06009749 RID: 38729 RVA: 0x00218EBC File Offset: 0x002170BC
|
||||
[Token(Token = "0x6009749")]
|
||||
[Address(RVA = "0x1DD9C00", Offset = "0x1DD8600", VA = "0x181DD9C00")]
|
||||
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: 0x0600974A RID: 38730 RVA: 0x00218EFC File Offset: 0x002170FC
|
||||
[Token(Token = "0x600974A")]
|
||||
[Address(RVA = "0x1DD9B30", Offset = "0x1DD8530", VA = "0x181DD9B30")]
|
||||
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: 0x17001831 RID: 6193
|
||||
// (get) Token: 0x0600974B RID: 38731 RVA: 0x00218F3C File Offset: 0x0021713C
|
||||
[Token(Token = "0x17001831")]
|
||||
public BigInteger X
|
||||
{
|
||||
[Token(Token = "0x600974B")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063A2 RID: 25506
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063A2")]
|
||||
private readonly BigInteger x;
|
||||
}
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001620 RID: 5664
|
||||
[Token(Token = "0x2001620")]
|
||||
[StructLayout(3)]
|
||||
public class Gost3410PublicKeyParameters : Gost3410KeyParameters
|
||||
{
|
||||
// Token: 0x0600974C RID: 38732 RVA: 0x00218F50 File Offset: 0x00217150
|
||||
[Token(Token = "0x600974C")]
|
||||
[Address(RVA = "0x1DD9CD0", Offset = "0x1DD86D0", VA = "0x181DD9CD0")]
|
||||
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: 0x0600974D RID: 38733 RVA: 0x00218F8C File Offset: 0x0021718C
|
||||
[Token(Token = "0x600974D")]
|
||||
[Address(RVA = "0x1DD9D90", Offset = "0x1DD8790", VA = "0x181DD9D90")]
|
||||
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: 0x17001832 RID: 6194
|
||||
// (get) Token: 0x0600974E RID: 38734 RVA: 0x00218FC4 File Offset: 0x002171C4
|
||||
[Token(Token = "0x17001832")]
|
||||
public BigInteger Y
|
||||
{
|
||||
[Token(Token = "0x600974E")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063A3 RID: 25507
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063A3")]
|
||||
private readonly BigInteger y;
|
||||
}
|
||||
}
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001621 RID: 5665
|
||||
[Token(Token = "0x2001621")]
|
||||
[StructLayout(3)]
|
||||
public class Gost3410ValidationParameters
|
||||
{
|
||||
// Token: 0x0600974F RID: 38735 RVA: 0x00218FD8 File Offset: 0x002171D8
|
||||
[Token(Token = "0x600974F")]
|
||||
[Address(RVA = "0x823C30", Offset = "0x822630", VA = "0x180823C30")]
|
||||
public Gost3410ValidationParameters(int x0, int c)
|
||||
{
|
||||
this.x0 = x0;
|
||||
this.c = c;
|
||||
}
|
||||
|
||||
// Token: 0x06009750 RID: 38736 RVA: 0x00218FFC File Offset: 0x002171FC
|
||||
[Token(Token = "0x6009750")]
|
||||
[Address(RVA = "0x1DD9F70", Offset = "0x1DD8970", VA = "0x181DD9F70")]
|
||||
public Gost3410ValidationParameters(long x0L, long cL)
|
||||
{
|
||||
this.x0L = x0L;
|
||||
this.cL = cL;
|
||||
}
|
||||
|
||||
// Token: 0x17001833 RID: 6195
|
||||
// (get) Token: 0x06009751 RID: 38737 RVA: 0x00219020 File Offset: 0x00217220
|
||||
[Token(Token = "0x17001833")]
|
||||
public int C
|
||||
{
|
||||
[Token(Token = "0x6009751")]
|
||||
[Address(RVA = "0x55D550", Offset = "0x55BF50", VA = "0x18055D550")]
|
||||
get
|
||||
{
|
||||
return this.c;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001834 RID: 6196
|
||||
// (get) Token: 0x06009752 RID: 38738 RVA: 0x00219034 File Offset: 0x00217234
|
||||
[Token(Token = "0x17001834")]
|
||||
public int X0
|
||||
{
|
||||
[Token(Token = "0x6009752")]
|
||||
[Address(RVA = "0x3C1C50", Offset = "0x3C0650", VA = "0x1803C1C50")]
|
||||
get
|
||||
{
|
||||
return this.x0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001835 RID: 6197
|
||||
// (get) Token: 0x06009753 RID: 38739 RVA: 0x00219048 File Offset: 0x00217248
|
||||
[Token(Token = "0x17001835")]
|
||||
public long CL
|
||||
{
|
||||
[Token(Token = "0x6009753")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.cL;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001836 RID: 6198
|
||||
// (get) Token: 0x06009754 RID: 38740 RVA: 0x0021905C File Offset: 0x0021725C
|
||||
[Token(Token = "0x17001836")]
|
||||
public long X0L
|
||||
{
|
||||
[Token(Token = "0x6009754")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.x0L;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009755 RID: 38741 RVA: 0x00219070 File Offset: 0x00217270
|
||||
[Token(Token = "0x6009755")]
|
||||
[Address(RVA = "0x1DD9E50", Offset = "0x1DD8850", VA = "0x181DD9E50", 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: 0x06009756 RID: 38742 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009756")]
|
||||
[Address(RVA = "0x1DD9F00", Offset = "0x1DD8900", VA = "0x181DD9F00", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x040063A4 RID: 25508
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063A4")]
|
||||
private int x0;
|
||||
|
||||
// Token: 0x040063A5 RID: 25509
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x40063A5")]
|
||||
private int c;
|
||||
|
||||
// Token: 0x040063A6 RID: 25510
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063A6")]
|
||||
private long x0L;
|
||||
|
||||
// Token: 0x040063A7 RID: 25511
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063A7")]
|
||||
private long cL;
|
||||
}
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001622 RID: 5666
|
||||
[Token(Token = "0x2001622")]
|
||||
[StructLayout(3)]
|
||||
public class HkdfParameters : IDerivationParameters
|
||||
{
|
||||
// Token: 0x06009757 RID: 38743 RVA: 0x002190AC File Offset: 0x002172AC
|
||||
[Token(Token = "0x6009757")]
|
||||
[Address(RVA = "0x1DDA240", Offset = "0x1DD8C40", VA = "0x181DDA240")]
|
||||
private HkdfParameters(byte[] ikm, bool skip, byte[] salt, byte[] info)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009757)
|
||||
|
||||
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: 0x06009758 RID: 38744 RVA: 0x00219110 File Offset: 0x00217310
|
||||
[Token(Token = "0x6009758")]
|
||||
[Address(RVA = "0x1DDA390", Offset = "0x1DD8D90", VA = "0x181DDA390")]
|
||||
public HkdfParameters(byte[] ikm, byte[] salt, byte[] info)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009759 RID: 38745 RVA: 0x00219120 File Offset: 0x00217320
|
||||
[Token(Token = "0x6009759")]
|
||||
[Address(RVA = "0x1DDA1C0", Offset = "0x1DD8BC0", VA = "0x181DDA1C0")]
|
||||
public static HkdfParameters SkipExtractParameters(byte[] ikm, byte[] info)
|
||||
{
|
||||
HkdfParameters hkdfParameters;
|
||||
return hkdfParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600975A RID: 38746 RVA: 0x00219130 File Offset: 0x00217330
|
||||
[Token(Token = "0x600975A")]
|
||||
[Address(RVA = "0x1DD9FB0", Offset = "0x1DD89B0", VA = "0x181DD9FB0")]
|
||||
public static HkdfParameters DefaultParameters(byte[] ikm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600975A)
|
||||
|
||||
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: 0x0600975B RID: 38747 RVA: 0x0021917C File Offset: 0x0021737C
|
||||
[Token(Token = "0x600975B")]
|
||||
[Address(RVA = "0x1DDA0A0", Offset = "0x1DD8AA0", VA = "0x181DDA0A0", Slot = "4")]
|
||||
public virtual byte[] GetIkm()
|
||||
{
|
||||
return Arrays.Clone(this.ikm);
|
||||
}
|
||||
|
||||
// Token: 0x17001837 RID: 6199
|
||||
// (get) Token: 0x0600975C RID: 38748 RVA: 0x00219194 File Offset: 0x00217394
|
||||
[Token(Token = "0x17001837")]
|
||||
public virtual bool SkipExtract
|
||||
{
|
||||
[Token(Token = "0x600975C")]
|
||||
[Address(RVA = "0x4FBF40", Offset = "0x4FA940", VA = "0x1804FBF40", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.skipExpand;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600975D RID: 38749 RVA: 0x002191A8 File Offset: 0x002173A8
|
||||
[Token(Token = "0x600975D")]
|
||||
[Address(RVA = "0x1DDA160", Offset = "0x1DD8B60", VA = "0x181DDA160", Slot = "6")]
|
||||
public virtual byte[] GetSalt()
|
||||
{
|
||||
return Arrays.Clone(this.salt);
|
||||
}
|
||||
|
||||
// Token: 0x0600975E RID: 38750 RVA: 0x002191C0 File Offset: 0x002173C0
|
||||
[Token(Token = "0x600975E")]
|
||||
[Address(RVA = "0x1DDA100", Offset = "0x1DD8B00", VA = "0x181DDA100", Slot = "7")]
|
||||
public virtual byte[] GetInfo()
|
||||
{
|
||||
return Arrays.Clone(this.info);
|
||||
}
|
||||
|
||||
// Token: 0x040063A8 RID: 25512
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063A8")]
|
||||
private readonly byte[] ikm;
|
||||
|
||||
// Token: 0x040063A9 RID: 25513
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063A9")]
|
||||
private readonly bool skipExpand;
|
||||
|
||||
// Token: 0x040063AA RID: 25514
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063AA")]
|
||||
private readonly byte[] salt;
|
||||
|
||||
// Token: 0x040063AB RID: 25515
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063AB")]
|
||||
private readonly byte[] info;
|
||||
}
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001624 RID: 5668
|
||||
[Token(Token = "0x2001624")]
|
||||
[StructLayout(3)]
|
||||
public class IesParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009761 RID: 38753 RVA: 0x00219208 File Offset: 0x00217408
|
||||
[Token(Token = "0x6009761")]
|
||||
[Address(RVA = "0x602F40", Offset = "0x601940", VA = "0x180602F40")]
|
||||
public IesParameters(byte[] derivation, byte[] encoding, int macKeySize)
|
||||
{
|
||||
this.derivation = derivation;
|
||||
this.encoding = encoding;
|
||||
this.macKeySize = macKeySize;
|
||||
}
|
||||
|
||||
// Token: 0x06009762 RID: 38754 RVA: 0x00219230 File Offset: 0x00217430
|
||||
[Token(Token = "0x6009762")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
public byte[] GetDerivationV()
|
||||
{
|
||||
return this.derivation;
|
||||
}
|
||||
|
||||
// Token: 0x06009763 RID: 38755 RVA: 0x00219244 File Offset: 0x00217444
|
||||
[Token(Token = "0x6009763")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
public byte[] GetEncodingV()
|
||||
{
|
||||
return this.encoding;
|
||||
}
|
||||
|
||||
// Token: 0x17001838 RID: 6200
|
||||
// (get) Token: 0x06009764 RID: 38756 RVA: 0x00219258 File Offset: 0x00217458
|
||||
[Token(Token = "0x17001838")]
|
||||
public int MacKeySize
|
||||
{
|
||||
[Token(Token = "0x6009764")]
|
||||
[Address(RVA = "0x4FBD40", Offset = "0x4FA740", VA = "0x1804FBD40")]
|
||||
get
|
||||
{
|
||||
return this.macKeySize;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063AD RID: 25517
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063AD")]
|
||||
private byte[] derivation;
|
||||
|
||||
// Token: 0x040063AE RID: 25518
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063AE")]
|
||||
private byte[] encoding;
|
||||
|
||||
// Token: 0x040063AF RID: 25519
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063AF")]
|
||||
private int macKeySize;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001625 RID: 5669
|
||||
[Token(Token = "0x2001625")]
|
||||
[StructLayout(3)]
|
||||
public class IesWithCipherParameters : IesParameters
|
||||
{
|
||||
// Token: 0x06009765 RID: 38757 RVA: 0x0021926C File Offset: 0x0021746C
|
||||
[Token(Token = "0x6009765")]
|
||||
[Address(RVA = "0x1DDA6F0", Offset = "0x1DD90F0", VA = "0x181DDA6F0")]
|
||||
public IesWithCipherParameters(byte[] derivation, byte[] encoding, int macKeySize, int cipherKeySize)
|
||||
{
|
||||
this.derivation = derivation;
|
||||
this.macKeySize = macKeySize;
|
||||
this.cipherKeySize = 0;
|
||||
this.encoding = encoding;
|
||||
}
|
||||
|
||||
// Token: 0x17001839 RID: 6201
|
||||
// (get) Token: 0x06009766 RID: 38758 RVA: 0x0021929C File Offset: 0x0021749C
|
||||
[Token(Token = "0x17001839")]
|
||||
public int CipherKeySize
|
||||
{
|
||||
[Token(Token = "0x6009766")]
|
||||
[Address(RVA = "0x4D24F0", Offset = "0x4D0EF0", VA = "0x1804D24F0")]
|
||||
get
|
||||
{
|
||||
return this.cipherKeySize;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063B0 RID: 25520
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063B0")]
|
||||
private int cipherKeySize;
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001623 RID: 5667
|
||||
[Token(Token = "0x2001623")]
|
||||
[StructLayout(3)]
|
||||
public class Iso18033KdfParameters : IDerivationParameters
|
||||
{
|
||||
// Token: 0x0600975F RID: 38751 RVA: 0x002191D8 File Offset: 0x002173D8
|
||||
[Token(Token = "0x600975F")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public Iso18033KdfParameters(byte[] seed)
|
||||
{
|
||||
this.seed = seed;
|
||||
}
|
||||
|
||||
// Token: 0x06009760 RID: 38752 RVA: 0x002191F4 File Offset: 0x002173F4
|
||||
[Token(Token = "0x6009760")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
public byte[] GetSeed()
|
||||
{
|
||||
return this.seed;
|
||||
}
|
||||
|
||||
// Token: 0x040063AC RID: 25516
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063AC")]
|
||||
private byte[] seed;
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001626 RID: 5670
|
||||
[Token(Token = "0x2001626")]
|
||||
[StructLayout(3)]
|
||||
public class KdfParameters : IDerivationParameters
|
||||
{
|
||||
// Token: 0x06009767 RID: 38759 RVA: 0x002192B0 File Offset: 0x002174B0
|
||||
[Token(Token = "0x6009767")]
|
||||
[Address(RVA = "0x641430", Offset = "0x63FE30", VA = "0x180641430")]
|
||||
public KdfParameters(byte[] shared, byte[] iv)
|
||||
{
|
||||
this.shared = shared;
|
||||
this.iv = iv;
|
||||
}
|
||||
|
||||
// Token: 0x06009768 RID: 38760 RVA: 0x002192D4 File Offset: 0x002174D4
|
||||
[Token(Token = "0x6009768")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
public byte[] GetSharedSecret()
|
||||
{
|
||||
return this.shared;
|
||||
}
|
||||
|
||||
// Token: 0x06009769 RID: 38761 RVA: 0x002192E8 File Offset: 0x002174E8
|
||||
[Token(Token = "0x6009769")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
public byte[] GetIV()
|
||||
{
|
||||
return this.iv;
|
||||
}
|
||||
|
||||
// Token: 0x040063B1 RID: 25521
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063B1")]
|
||||
private byte[] iv;
|
||||
|
||||
// Token: 0x040063B2 RID: 25522
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063B2")]
|
||||
private byte[] shared;
|
||||
}
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001627 RID: 5671
|
||||
[Token(Token = "0x2001627")]
|
||||
[StructLayout(3)]
|
||||
public class KeyParameter : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600976A RID: 38762 RVA: 0x002192FC File Offset: 0x002174FC
|
||||
[Token(Token = "0x600976A")]
|
||||
[Address(RVA = "0x1DDA7C0", Offset = "0x1DD91C0", VA = "0x181DDA7C0")]
|
||||
public KeyParameter(byte[] key)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600976A)
|
||||
|
||||
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: 0x0600976B RID: 38763 RVA: 0x00219320 File Offset: 0x00217520
|
||||
[Token(Token = "0x600976B")]
|
||||
[Address(RVA = "0x1DDA880", Offset = "0x1DD9280", VA = "0x181DDA880")]
|
||||
public KeyParameter(byte[] key, int keyOff, int keyLen)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600976B)
|
||||
|
||||
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: 0x0600976C RID: 38764 RVA: 0x00219368 File Offset: 0x00217568
|
||||
[Token(Token = "0x600976C")]
|
||||
[Address(RVA = "0x1DDA740", Offset = "0x1DD9140", VA = "0x181DDA740")]
|
||||
public byte[] GetKey()
|
||||
{
|
||||
byte[] array = this.key;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040063B3 RID: 25523
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063B3")]
|
||||
private readonly byte[] key;
|
||||
}
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001628 RID: 5672
|
||||
[Token(Token = "0x2001628")]
|
||||
[StructLayout(3)]
|
||||
public class MgfParameters : IDerivationParameters
|
||||
{
|
||||
// Token: 0x0600976D RID: 38765 RVA: 0x00219384 File Offset: 0x00217584
|
||||
[Token(Token = "0x600976D")]
|
||||
[Address(RVA = "0x1DDAAD0", Offset = "0x1DD94D0", VA = "0x181DDAAD0")]
|
||||
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: 0x0600976E RID: 38766 RVA: 0x002193C4 File Offset: 0x002175C4
|
||||
[Token(Token = "0x600976E")]
|
||||
[Address(RVA = "0x1DDAA40", Offset = "0x1DD9440", VA = "0x181DDAA40")]
|
||||
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: 0x0600976F RID: 38767 RVA: 0x002193F4 File Offset: 0x002175F4
|
||||
[Token(Token = "0x600976F")]
|
||||
[Address(RVA = "0x1DDA9C0", Offset = "0x1DD93C0", VA = "0x181DDA9C0")]
|
||||
public byte[] GetSeed()
|
||||
{
|
||||
byte[] array = this.seed;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040063B4 RID: 25524
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063B4")]
|
||||
private readonly byte[] seed;
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001629 RID: 5673
|
||||
[Token(Token = "0x2001629")]
|
||||
[StructLayout(3)]
|
||||
public class MqvPrivateParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009770 RID: 38768 RVA: 0x00219410 File Offset: 0x00217610
|
||||
[Token(Token = "0x6009770")]
|
||||
[Address(RVA = "0x1DDAB60", Offset = "0x1DD9560", VA = "0x181DDAB60")]
|
||||
public MqvPrivateParameters(ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009771 RID: 38769 RVA: 0x00219420 File Offset: 0x00217620
|
||||
[Token(Token = "0x6009771")]
|
||||
[Address(RVA = "0x1DDAB80", Offset = "0x1DD9580", VA = "0x181DDAB80")]
|
||||
public MqvPrivateParameters(ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey, ECPublicKeyParameters ephemeralPublicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009771)
|
||||
|
||||
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: 0x1700183A RID: 6202
|
||||
// (get) Token: 0x06009772 RID: 38770 RVA: 0x002194BC File Offset: 0x002176BC
|
||||
[Token(Token = "0x1700183A")]
|
||||
public virtual ECPrivateKeyParameters StaticPrivateKey
|
||||
{
|
||||
[Token(Token = "0x6009772")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.staticPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700183B RID: 6203
|
||||
// (get) Token: 0x06009773 RID: 38771 RVA: 0x002194D0 File Offset: 0x002176D0
|
||||
[Token(Token = "0x1700183B")]
|
||||
public virtual ECPrivateKeyParameters EphemeralPrivateKey
|
||||
{
|
||||
[Token(Token = "0x6009773")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700183C RID: 6204
|
||||
// (get) Token: 0x06009774 RID: 38772 RVA: 0x002194E4 File Offset: 0x002176E4
|
||||
[Token(Token = "0x1700183C")]
|
||||
public virtual ECPublicKeyParameters EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x6009774")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063B5 RID: 25525
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063B5")]
|
||||
private readonly ECPrivateKeyParameters staticPrivateKey;
|
||||
|
||||
// Token: 0x040063B6 RID: 25526
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063B6")]
|
||||
private readonly ECPrivateKeyParameters ephemeralPrivateKey;
|
||||
|
||||
// Token: 0x040063B7 RID: 25527
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063B7")]
|
||||
private readonly ECPublicKeyParameters ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200162A RID: 5674
|
||||
[Token(Token = "0x200162A")]
|
||||
[StructLayout(3)]
|
||||
public class MqvPublicParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009775 RID: 38773 RVA: 0x002194F8 File Offset: 0x002176F8
|
||||
[Token(Token = "0x6009775")]
|
||||
[Address(RVA = "0x1DDAE50", Offset = "0x1DD9850", VA = "0x181DDAE50")]
|
||||
public MqvPublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009775)
|
||||
|
||||
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: 0x1700183D RID: 6205
|
||||
// (get) Token: 0x06009776 RID: 38774 RVA: 0x00219540 File Offset: 0x00217740
|
||||
[Token(Token = "0x1700183D")]
|
||||
public virtual ECPublicKeyParameters StaticPublicKey
|
||||
{
|
||||
[Token(Token = "0x6009776")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.staticPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700183E RID: 6206
|
||||
// (get) Token: 0x06009777 RID: 38775 RVA: 0x00219554 File Offset: 0x00217754
|
||||
[Token(Token = "0x1700183E")]
|
||||
public virtual ECPublicKeyParameters EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x6009777")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063B8 RID: 25528
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063B8")]
|
||||
private readonly ECPublicKeyParameters staticPublicKey;
|
||||
|
||||
// Token: 0x040063B9 RID: 25529
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063B9")]
|
||||
private readonly ECPublicKeyParameters ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200162B RID: 5675
|
||||
[Token(Token = "0x200162B")]
|
||||
[StructLayout(3)]
|
||||
public class NaccacheSternKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x06009778 RID: 38776 RVA: 0x00219568 File Offset: 0x00217768
|
||||
[Token(Token = "0x6009778")]
|
||||
[Address(RVA = "0x1DDAF80", Offset = "0x1DD9980", VA = "0x181DDAF80")]
|
||||
public NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int countSmallPrimes)
|
||||
: base(random, strength)
|
||||
{
|
||||
this.certainty = certainty;
|
||||
this.countSmallPrimes = 0;
|
||||
}
|
||||
|
||||
// Token: 0x06009779 RID: 38777 RVA: 0x00219598 File Offset: 0x00217798
|
||||
[Token(Token = "0x6009779")]
|
||||
[Address(RVA = "0x1DDAF80", Offset = "0x1DD9980", VA = "0x181DDAF80")]
|
||||
[Obsolete]
|
||||
public NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int countSmallPrimes, bool debug)
|
||||
: base(random, strength)
|
||||
{
|
||||
this.certainty = certainty;
|
||||
this.countSmallPrimes = 0;
|
||||
}
|
||||
|
||||
// Token: 0x1700183F RID: 6207
|
||||
// (get) Token: 0x0600977A RID: 38778 RVA: 0x002195C8 File Offset: 0x002177C8
|
||||
[Token(Token = "0x1700183F")]
|
||||
public int Certainty
|
||||
{
|
||||
[Token(Token = "0x600977A")]
|
||||
[Address(RVA = "0x4FBD40", Offset = "0x4FA740", VA = "0x1804FBD40")]
|
||||
get
|
||||
{
|
||||
return this.certainty;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001840 RID: 6208
|
||||
// (get) Token: 0x0600977B RID: 38779 RVA: 0x002195DC File Offset: 0x002177DC
|
||||
[Token(Token = "0x17001840")]
|
||||
public int CountSmallPrimes
|
||||
{
|
||||
[Token(Token = "0x600977B")]
|
||||
[Address(RVA = "0x3C1C80", Offset = "0x3C0680", VA = "0x1803C1C80")]
|
||||
get
|
||||
{
|
||||
return this.countSmallPrimes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001841 RID: 6209
|
||||
// (get) Token: 0x0600977C RID: 38780 RVA: 0x002195F0 File Offset: 0x002177F0
|
||||
[Token(Token = "0x17001841")]
|
||||
[Obsolete]
|
||||
public bool IsDebug
|
||||
{
|
||||
[Token(Token = "0x600977C")]
|
||||
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063BA RID: 25530
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063BA")]
|
||||
private readonly int certainty;
|
||||
|
||||
// Token: 0x040063BB RID: 25531
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x40063BB")]
|
||||
private readonly int countSmallPrimes;
|
||||
}
|
||||
}
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200162C RID: 5676
|
||||
[Token(Token = "0x200162C")]
|
||||
[StructLayout(3)]
|
||||
public class NaccacheSternKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x0600977D RID: 38781 RVA: 0x00219600 File Offset: 0x00217800
|
||||
[Token(Token = "0x600977D")]
|
||||
[Address(RVA = "0x1DDB070", Offset = "0x1DD9A70", VA = "0x181DDB070")]
|
||||
public NaccacheSternKeyParameters(bool privateKey, BigInteger g, BigInteger n, int lowerSigmaBound)
|
||||
: base(privateKey)
|
||||
{
|
||||
this.g = g;
|
||||
this.n = n;
|
||||
this.lowerSigmaBound = 0;
|
||||
}
|
||||
|
||||
// Token: 0x17001842 RID: 6210
|
||||
// (get) Token: 0x0600977E RID: 38782 RVA: 0x0021962C File Offset: 0x0021782C
|
||||
[Token(Token = "0x17001842")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600977E")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001843 RID: 6211
|
||||
// (get) Token: 0x0600977F RID: 38783 RVA: 0x00219640 File Offset: 0x00217840
|
||||
[Token(Token = "0x17001843")]
|
||||
public int LowerSigmaBound
|
||||
{
|
||||
[Token(Token = "0x600977F")]
|
||||
[Address(RVA = "0x4D24F0", Offset = "0x4D0EF0", VA = "0x1804D24F0")]
|
||||
get
|
||||
{
|
||||
return this.lowerSigmaBound;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001844 RID: 6212
|
||||
// (get) Token: 0x06009780 RID: 38784 RVA: 0x00219654 File Offset: 0x00217854
|
||||
[Token(Token = "0x17001844")]
|
||||
public BigInteger Modulus
|
||||
{
|
||||
[Token(Token = "0x6009780")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.n;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063BC RID: 25532
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063BC")]
|
||||
private readonly BigInteger g;
|
||||
|
||||
// Token: 0x040063BD RID: 25533
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063BD")]
|
||||
private readonly BigInteger n;
|
||||
|
||||
// Token: 0x040063BE RID: 25534
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063BE")]
|
||||
private readonly int lowerSigmaBound;
|
||||
}
|
||||
}
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200162D RID: 5677
|
||||
[Token(Token = "0x200162D")]
|
||||
[StructLayout(3)]
|
||||
public class NaccacheSternPrivateKeyParameters : NaccacheSternKeyParameters
|
||||
{
|
||||
// Token: 0x06009781 RID: 38785 RVA: 0x00219668 File Offset: 0x00217868
|
||||
[Token(Token = "0x6009781")]
|
||||
[Address(RVA = "0x1DDB0B0", Offset = "0x1DD9AB0", VA = "0x181DDB0B0")]
|
||||
[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: 0x06009782 RID: 38786 RVA: 0x002196A0 File Offset: 0x002178A0
|
||||
[Token(Token = "0x6009782")]
|
||||
[Address(RVA = "0x1DDB0B0", Offset = "0x1DD9AB0", VA = "0x181DDB0B0")]
|
||||
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: 0x17001845 RID: 6213
|
||||
// (get) Token: 0x06009783 RID: 38787 RVA: 0x002196D8 File Offset: 0x002178D8
|
||||
[Token(Token = "0x17001845")]
|
||||
public BigInteger PhiN
|
||||
{
|
||||
[Token(Token = "0x6009783")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.phiN;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001846 RID: 6214
|
||||
// (get) Token: 0x06009784 RID: 38788 RVA: 0x002196EC File Offset: 0x002178EC
|
||||
[Token(Token = "0x17001846")]
|
||||
[Obsolete]
|
||||
public ArrayList SmallPrimes
|
||||
{
|
||||
[Token(Token = "0x6009784")]
|
||||
[Address(RVA = "0x1DDB110", Offset = "0x1DD9B10", VA = "0x181DDB110")]
|
||||
get
|
||||
{
|
||||
return new ArrayList(this.smallPrimes);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001847 RID: 6215
|
||||
// (get) Token: 0x06009785 RID: 38789 RVA: 0x00219704 File Offset: 0x00217904
|
||||
[Token(Token = "0x17001847")]
|
||||
public IList SmallPrimesList
|
||||
{
|
||||
[Token(Token = "0x6009785")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.smallPrimes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063BF RID: 25535
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40063BF")]
|
||||
private readonly BigInteger phiN;
|
||||
|
||||
// Token: 0x040063C0 RID: 25536
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40063C0")]
|
||||
private readonly IList smallPrimes;
|
||||
}
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200162E RID: 5678
|
||||
[Token(Token = "0x200162E")]
|
||||
[StructLayout(3)]
|
||||
public class ParametersWithID : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009786 RID: 38790 RVA: 0x00219718 File Offset: 0x00217918
|
||||
[Token(Token = "0x6009786")]
|
||||
[Address(RVA = "0x1DDD4F0", Offset = "0x1DDBEF0", VA = "0x181DDD4F0")]
|
||||
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: 0x06009787 RID: 38791 RVA: 0x00219754 File Offset: 0x00217954
|
||||
[Token(Token = "0x6009787")]
|
||||
[Address(RVA = "0x1DDD450", Offset = "0x1DDBE50", VA = "0x181DDD450")]
|
||||
public ParametersWithID(ICipherParameters parameters, byte[] id, int idOff, int idLen)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
byte[] array;
|
||||
this.id = array;
|
||||
}
|
||||
|
||||
// Token: 0x06009788 RID: 38792 RVA: 0x00219778 File Offset: 0x00217978
|
||||
[Token(Token = "0x6009788")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
public byte[] GetID()
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
|
||||
// Token: 0x17001848 RID: 6216
|
||||
// (get) Token: 0x06009789 RID: 38793 RVA: 0x0021978C File Offset: 0x0021798C
|
||||
[Token(Token = "0x17001848")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x6009789")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063C1 RID: 25537
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063C1")]
|
||||
private readonly ICipherParameters parameters;
|
||||
|
||||
// Token: 0x040063C2 RID: 25538
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063C2")]
|
||||
private readonly byte[] id;
|
||||
}
|
||||
}
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200162F RID: 5679
|
||||
[Token(Token = "0x200162F")]
|
||||
[StructLayout(3)]
|
||||
public class ParametersWithIV : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600978A RID: 38794 RVA: 0x002197A0 File Offset: 0x002179A0
|
||||
[Token(Token = "0x600978A")]
|
||||
[Address(RVA = "0x1DDD6E0", Offset = "0x1DDC0E0", VA = "0x181DDD6E0")]
|
||||
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: 0x0600978B RID: 38795 RVA: 0x002197DC File Offset: 0x002179DC
|
||||
[Token(Token = "0x600978B")]
|
||||
[Address(RVA = "0x1DDD610", Offset = "0x1DDC010", VA = "0x181DDD610")]
|
||||
public ParametersWithIV(ICipherParameters parameters, byte[] iv, int ivOff, int ivLen)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600978B)
|
||||
|
||||
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: 0x0600978C RID: 38796 RVA: 0x0021980C File Offset: 0x00217A0C
|
||||
[Token(Token = "0x600978C")]
|
||||
[Address(RVA = "0x1DDD590", Offset = "0x1DDBF90", VA = "0x181DDD590")]
|
||||
public byte[] GetIV()
|
||||
{
|
||||
byte[] array = this.iv;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001849 RID: 6217
|
||||
// (get) Token: 0x0600978D RID: 38797 RVA: 0x00219828 File Offset: 0x00217A28
|
||||
[Token(Token = "0x17001849")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x600978D")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063C3 RID: 25539
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063C3")]
|
||||
private readonly ICipherParameters parameters;
|
||||
|
||||
// Token: 0x040063C4 RID: 25540
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063C4")]
|
||||
private readonly byte[] iv;
|
||||
}
|
||||
}
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001630 RID: 5680
|
||||
[Token(Token = "0x2001630")]
|
||||
[StructLayout(3)]
|
||||
public class ParametersWithRandom : ICipherParameters
|
||||
{
|
||||
// Token: 0x0600978E RID: 38798 RVA: 0x0021983C File Offset: 0x00217A3C
|
||||
[Token(Token = "0x600978E")]
|
||||
[Address(RVA = "0x1DDD880", Offset = "0x1DDC280", VA = "0x181DDD880")]
|
||||
public ParametersWithRandom(ICipherParameters parameters, SecureRandom random)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600978E)
|
||||
|
||||
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: 0x0600978F RID: 38799 RVA: 0x0021987C File Offset: 0x00217A7C
|
||||
[Token(Token = "0x600978F")]
|
||||
[Address(RVA = "0x1DDD780", Offset = "0x1DDC180", VA = "0x181DDD780")]
|
||||
public ParametersWithRandom(ICipherParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600978F)
|
||||
|
||||
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: 0x06009790 RID: 38800 RVA: 0x002198C4 File Offset: 0x00217AC4
|
||||
[Token(Token = "0x6009790")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
[Obsolete]
|
||||
public SecureRandom GetRandom()
|
||||
{
|
||||
return this.random;
|
||||
}
|
||||
|
||||
// Token: 0x1700184A RID: 6218
|
||||
// (get) Token: 0x06009791 RID: 38801 RVA: 0x002198D8 File Offset: 0x00217AD8
|
||||
[Token(Token = "0x1700184A")]
|
||||
public SecureRandom Random
|
||||
{
|
||||
[Token(Token = "0x6009791")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.random;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700184B RID: 6219
|
||||
// (get) Token: 0x06009792 RID: 38802 RVA: 0x002198EC File Offset: 0x00217AEC
|
||||
[Token(Token = "0x1700184B")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x6009792")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063C5 RID: 25541
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063C5")]
|
||||
private readonly ICipherParameters parameters;
|
||||
|
||||
// Token: 0x040063C6 RID: 25542
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063C6")]
|
||||
private readonly SecureRandom random;
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001631 RID: 5681
|
||||
[Token(Token = "0x2001631")]
|
||||
[StructLayout(3)]
|
||||
public class ParametersWithSBox : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009793 RID: 38803 RVA: 0x00219900 File Offset: 0x00217B00
|
||||
[Token(Token = "0x6009793")]
|
||||
[Address(RVA = "0x3C39C0", Offset = "0x3C23C0", VA = "0x1803C39C0")]
|
||||
public ParametersWithSBox(ICipherParameters parameters, byte[] sBox)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
this.sBox = sBox;
|
||||
}
|
||||
|
||||
// Token: 0x06009794 RID: 38804 RVA: 0x00219924 File Offset: 0x00217B24
|
||||
[Token(Token = "0x6009794")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
public byte[] GetSBox()
|
||||
{
|
||||
return this.sBox;
|
||||
}
|
||||
|
||||
// Token: 0x1700184C RID: 6220
|
||||
// (get) Token: 0x06009795 RID: 38805 RVA: 0x00219938 File Offset: 0x00217B38
|
||||
[Token(Token = "0x1700184C")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x6009795")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063C7 RID: 25543
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063C7")]
|
||||
private ICipherParameters parameters;
|
||||
|
||||
// Token: 0x040063C8 RID: 25544
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063C8")]
|
||||
private byte[] sBox;
|
||||
}
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001632 RID: 5682
|
||||
[Token(Token = "0x2001632")]
|
||||
[StructLayout(3)]
|
||||
public class ParametersWithSalt : ICipherParameters
|
||||
{
|
||||
// Token: 0x06009796 RID: 38806 RVA: 0x0021994C File Offset: 0x00217B4C
|
||||
[Token(Token = "0x6009796")]
|
||||
[Address(RVA = "0x1DDD9F0", Offset = "0x1DDC3F0", VA = "0x181DDD9F0")]
|
||||
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: 0x06009797 RID: 38807 RVA: 0x00219994 File Offset: 0x00217B94
|
||||
[Token(Token = "0x6009797")]
|
||||
[Address(RVA = "0x1DDD950", Offset = "0x1DDC350", VA = "0x181DDD950")]
|
||||
public ParametersWithSalt(ICipherParameters parameters, byte[] salt, int saltOff, int saltLen)
|
||||
{
|
||||
byte[] array = new byte[0];
|
||||
this.salt = array;
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x06009798 RID: 38808 RVA: 0x002199BC File Offset: 0x00217BBC
|
||||
[Token(Token = "0x6009798")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
public byte[] GetSalt()
|
||||
{
|
||||
return this.salt;
|
||||
}
|
||||
|
||||
// Token: 0x1700184D RID: 6221
|
||||
// (get) Token: 0x06009799 RID: 38809 RVA: 0x002199D0 File Offset: 0x00217BD0
|
||||
[Token(Token = "0x1700184D")]
|
||||
public ICipherParameters Parameters
|
||||
{
|
||||
[Token(Token = "0x6009799")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063C9 RID: 25545
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063C9")]
|
||||
private byte[] salt;
|
||||
|
||||
// Token: 0x040063CA RID: 25546
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063CA")]
|
||||
private ICipherParameters parameters;
|
||||
}
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001633 RID: 5683
|
||||
[Token(Token = "0x2001633")]
|
||||
[StructLayout(3)]
|
||||
public class RC2Parameters : KeyParameter
|
||||
{
|
||||
// Token: 0x0600979A RID: 38810 RVA: 0x002199E4 File Offset: 0x00217BE4
|
||||
[Token(Token = "0x600979A")]
|
||||
[Address(RVA = "0x1DDE110", Offset = "0x1DDCB10", VA = "0x181DDE110")]
|
||||
public RC2Parameters(byte[] key)
|
||||
{
|
||||
int length = key.Length;
|
||||
base..ctor(key);
|
||||
this.bits = (int)((uint)1024);
|
||||
}
|
||||
|
||||
// Token: 0x0600979B RID: 38811 RVA: 0x00219A14 File Offset: 0x00217C14
|
||||
[Token(Token = "0x600979B")]
|
||||
[Address(RVA = "0x1DDE160", Offset = "0x1DDCB60", VA = "0x181DDE160")]
|
||||
public RC2Parameters(byte[] key, int keyOff, int keyLen)
|
||||
: base(key, keyOff, keyLen)
|
||||
{
|
||||
this.bits = (int)((uint)1024);
|
||||
}
|
||||
|
||||
// Token: 0x0600979C RID: 38812 RVA: 0x00219A3C File Offset: 0x00217C3C
|
||||
[Token(Token = "0x600979C")]
|
||||
[Address(RVA = "0x1DDE1B0", Offset = "0x1DDCBB0", VA = "0x181DDE1B0")]
|
||||
public RC2Parameters(byte[] key, int bits)
|
||||
: base(key)
|
||||
{
|
||||
this.bits = bits;
|
||||
}
|
||||
|
||||
// Token: 0x0600979D RID: 38813 RVA: 0x00219A58 File Offset: 0x00217C58
|
||||
[Token(Token = "0x600979D")]
|
||||
[Address(RVA = "0x1DDE0E0", Offset = "0x1DDCAE0", VA = "0x181DDE0E0")]
|
||||
public RC2Parameters(byte[] key, int keyOff, int keyLen, int bits)
|
||||
: base(key, keyOff, keyLen)
|
||||
{
|
||||
this.bits = 0;
|
||||
}
|
||||
|
||||
// Token: 0x1700184E RID: 6222
|
||||
// (get) Token: 0x0600979E RID: 38814 RVA: 0x00219A78 File Offset: 0x00217C78
|
||||
[Token(Token = "0x1700184E")]
|
||||
public int EffectiveKeyBits
|
||||
{
|
||||
[Token(Token = "0x600979E")]
|
||||
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0")]
|
||||
get
|
||||
{
|
||||
return this.bits;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063CB RID: 25547
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063CB")]
|
||||
private readonly int bits;
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001634 RID: 5684
|
||||
[Token(Token = "0x2001634")]
|
||||
[StructLayout(3)]
|
||||
public class RC5Parameters : KeyParameter
|
||||
{
|
||||
// Token: 0x0600979F RID: 38815 RVA: 0x00219A8C File Offset: 0x00217C8C
|
||||
[Token(Token = "0x600979F")]
|
||||
[Address(RVA = "0x1DDE1E0", Offset = "0x1DDCBE0", VA = "0x181DDE1E0")]
|
||||
public RC5Parameters(byte[] key, int rounds)
|
||||
: base(key)
|
||||
{
|
||||
this.rounds = rounds;
|
||||
}
|
||||
|
||||
// Token: 0x1700184F RID: 6223
|
||||
// (get) Token: 0x060097A0 RID: 38816 RVA: 0x00219AB0 File Offset: 0x00217CB0
|
||||
[Token(Token = "0x1700184F")]
|
||||
public int Rounds
|
||||
{
|
||||
[Token(Token = "0x60097A0")]
|
||||
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0")]
|
||||
get
|
||||
{
|
||||
return this.rounds;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063CC RID: 25548
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063CC")]
|
||||
private readonly int rounds;
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001635 RID: 5685
|
||||
[Token(Token = "0x2001635")]
|
||||
[StructLayout(3)]
|
||||
public class RsaBlindingParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x060097A1 RID: 38817 RVA: 0x00219AC4 File Offset: 0x00217CC4
|
||||
[Token(Token = "0x60097A1")]
|
||||
[Address(RVA = "0x1DDE280", Offset = "0x1DDCC80", VA = "0x181DDE280")]
|
||||
public RsaBlindingParameters(RsaKeyParameters publicKey, BigInteger blindingFactor)
|
||||
{
|
||||
this.publicKey = publicKey;
|
||||
this.blindingFactor = blindingFactor;
|
||||
}
|
||||
|
||||
// Token: 0x17001850 RID: 6224
|
||||
// (get) Token: 0x060097A2 RID: 38818 RVA: 0x00219AF8 File Offset: 0x00217CF8
|
||||
[Token(Token = "0x17001850")]
|
||||
public RsaKeyParameters PublicKey
|
||||
{
|
||||
[Token(Token = "0x60097A2")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.publicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001851 RID: 6225
|
||||
// (get) Token: 0x060097A3 RID: 38819 RVA: 0x00219B0C File Offset: 0x00217D0C
|
||||
[Token(Token = "0x17001851")]
|
||||
public BigInteger BlindingFactor
|
||||
{
|
||||
[Token(Token = "0x60097A3")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.blindingFactor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063CD RID: 25549
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063CD")]
|
||||
private readonly RsaKeyParameters publicKey;
|
||||
|
||||
// Token: 0x040063CE RID: 25550
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063CE")]
|
||||
private readonly BigInteger blindingFactor;
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001636 RID: 5686
|
||||
[Token(Token = "0x2001636")]
|
||||
[StructLayout(3)]
|
||||
public class RsaKeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x060097A4 RID: 38820 RVA: 0x00219B20 File Offset: 0x00217D20
|
||||
[Token(Token = "0x60097A4")]
|
||||
[Address(RVA = "0x1DDE420", Offset = "0x1DDCE20", VA = "0x181DDE420")]
|
||||
public RsaKeyGenerationParameters(BigInteger publicExponent, SecureRandom random, int strength, int certainty)
|
||||
: base(random, strength)
|
||||
{
|
||||
this.publicExponent = publicExponent;
|
||||
this.certainty = 0;
|
||||
}
|
||||
|
||||
// Token: 0x17001852 RID: 6226
|
||||
// (get) Token: 0x060097A5 RID: 38821 RVA: 0x00219B44 File Offset: 0x00217D44
|
||||
[Token(Token = "0x17001852")]
|
||||
public BigInteger PublicExponent
|
||||
{
|
||||
[Token(Token = "0x60097A5")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.publicExponent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001853 RID: 6227
|
||||
// (get) Token: 0x060097A6 RID: 38822 RVA: 0x00219B58 File Offset: 0x00217D58
|
||||
[Token(Token = "0x17001853")]
|
||||
public int Certainty
|
||||
{
|
||||
[Token(Token = "0x60097A6")]
|
||||
[Address(RVA = "0x4D24F0", Offset = "0x4D0EF0", VA = "0x1804D24F0")]
|
||||
get
|
||||
{
|
||||
return this.certainty;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060097A7 RID: 38823 RVA: 0x00219B6C File Offset: 0x00217D6C
|
||||
[Token(Token = "0x60097A7")]
|
||||
[Address(RVA = "0x1DDE320", Offset = "0x1DDCD20", VA = "0x181DDE320", 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: 0x060097A8 RID: 38824 RVA: 0x00219B9C File Offset: 0x00217D9C
|
||||
[Token(Token = "0x60097A8")]
|
||||
[Address(RVA = "0x1DDE3D0", Offset = "0x1DDCDD0", VA = "0x181DDE3D0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num = this.certainty;
|
||||
this.publicExponent.Finalize();
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x040063CF RID: 25551
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063CF")]
|
||||
private readonly BigInteger publicExponent;
|
||||
|
||||
// Token: 0x040063D0 RID: 25552
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063D0")]
|
||||
private readonly int certainty;
|
||||
}
|
||||
}
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001637 RID: 5687
|
||||
[Token(Token = "0x2001637")]
|
||||
[StructLayout(3)]
|
||||
public class RsaKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x060097A9 RID: 38825 RVA: 0x00219BC4 File Offset: 0x00217DC4
|
||||
[Token(Token = "0x60097A9")]
|
||||
[Address(RVA = "0x1DDE5D0", Offset = "0x1DDCFD0", VA = "0x181DDE5D0")]
|
||||
private static BigInteger Validate(BigInteger modulus)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097A9)
|
||||
|
||||
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: 0x060097AA RID: 38826 RVA: 0x00219C00 File Offset: 0x00217E00
|
||||
[Token(Token = "0x60097AA")]
|
||||
[Address(RVA = "0x1DDE780", Offset = "0x1DDD180", VA = "0x181DDE780")]
|
||||
public RsaKeyParameters(bool isPrivate, BigInteger modulus, BigInteger exponent)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097AA)
|
||||
|
||||
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: 0x17001854 RID: 6228
|
||||
// (get) Token: 0x060097AB RID: 38827 RVA: 0x00219C88 File Offset: 0x00217E88
|
||||
[Token(Token = "0x17001854")]
|
||||
public BigInteger Modulus
|
||||
{
|
||||
[Token(Token = "0x60097AB")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.modulus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001855 RID: 6229
|
||||
// (get) Token: 0x060097AC RID: 38828 RVA: 0x00219C9C File Offset: 0x00217E9C
|
||||
[Token(Token = "0x17001855")]
|
||||
public BigInteger Exponent
|
||||
{
|
||||
[Token(Token = "0x60097AC")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.exponent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060097AD RID: 38829 RVA: 0x00219CB0 File Offset: 0x00217EB0
|
||||
[Token(Token = "0x60097AD")]
|
||||
[Address(RVA = "0x1DDE460", Offset = "0x1DDCE60", VA = "0x181DDE460", 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: 0x060097AE RID: 38830 RVA: 0x00219CDC File Offset: 0x00217EDC
|
||||
[Token(Token = "0x60097AE")]
|
||||
[Address(RVA = "0x1DDE550", Offset = "0x1DDCF50", VA = "0x181DDE550", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.modulus.Finalize();
|
||||
this.exponent.Finalize();
|
||||
bool privateKey = this.privateKey;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040063D1 RID: 25553
|
||||
[Token(Token = "0x40063D1")]
|
||||
private static BigInteger SmallPrimesProduct = new BigInteger("8138E8A0FCF3A4E84A771D40FD305D7F4AA59306D7251DE54D98AF8FE95729A1F73D893FA424CD2EDC8636A6C3285E022B0E3866A565AE8108EED8591CD4FE8D2CE86165A978D719EBF647F362D33FCA29CD179FB42401CBAF3DF0C614056F9C8F3CFD51E474AFB6BC6974F78DB8ABA8E9E517FDED658591AB7502BD41849462F", 16);
|
||||
|
||||
// Token: 0x040063D2 RID: 25554
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063D2")]
|
||||
private readonly BigInteger modulus;
|
||||
|
||||
// Token: 0x040063D3 RID: 25555
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063D3")]
|
||||
private readonly BigInteger exponent;
|
||||
}
|
||||
}
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001638 RID: 5688
|
||||
[Token(Token = "0x2001638")]
|
||||
[StructLayout(3)]
|
||||
public class RsaPrivateCrtKeyParameters : RsaKeyParameters
|
||||
{
|
||||
// Token: 0x060097B0 RID: 38832 RVA: 0x00219D2C File Offset: 0x00217F2C
|
||||
[Token(Token = "0x60097B0")]
|
||||
[Address(RVA = "0x1DDEE90", Offset = "0x1DDD890", VA = "0x181DDEE90")]
|
||||
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: 0x060097B1 RID: 38833 RVA: 0x00219D7C File Offset: 0x00217F7C
|
||||
[Token(Token = "0x60097B1")]
|
||||
[Address(RVA = "0x1DDF000", Offset = "0x1DDDA00", VA = "0x181DDF000")]
|
||||
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: 0x17001856 RID: 6230
|
||||
// (get) Token: 0x060097B2 RID: 38834 RVA: 0x00219E64 File Offset: 0x00218064
|
||||
[Token(Token = "0x17001856")]
|
||||
public BigInteger PublicExponent
|
||||
{
|
||||
[Token(Token = "0x60097B2")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.e;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001857 RID: 6231
|
||||
// (get) Token: 0x060097B3 RID: 38835 RVA: 0x00219E78 File Offset: 0x00218078
|
||||
[Token(Token = "0x17001857")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x60097B3")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.p;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001858 RID: 6232
|
||||
// (get) Token: 0x060097B4 RID: 38836 RVA: 0x00219E8C File Offset: 0x0021808C
|
||||
[Token(Token = "0x17001858")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x60097B4")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.q;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001859 RID: 6233
|
||||
// (get) Token: 0x060097B5 RID: 38837 RVA: 0x00219EA0 File Offset: 0x002180A0
|
||||
[Token(Token = "0x17001859")]
|
||||
public BigInteger DP
|
||||
{
|
||||
[Token(Token = "0x60097B5")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.dP;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700185A RID: 6234
|
||||
// (get) Token: 0x060097B6 RID: 38838 RVA: 0x00219EB4 File Offset: 0x002180B4
|
||||
[Token(Token = "0x1700185A")]
|
||||
public BigInteger DQ
|
||||
{
|
||||
[Token(Token = "0x60097B6")]
|
||||
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")]
|
||||
get
|
||||
{
|
||||
return this.dQ;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700185B RID: 6235
|
||||
// (get) Token: 0x060097B7 RID: 38839 RVA: 0x00219EC8 File Offset: 0x002180C8
|
||||
[Token(Token = "0x1700185B")]
|
||||
public BigInteger QInv
|
||||
{
|
||||
[Token(Token = "0x60097B7")]
|
||||
[Address(RVA = "0x462740", Offset = "0x461140", VA = "0x180462740")]
|
||||
get
|
||||
{
|
||||
return this.qInv;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060097B8 RID: 38840 RVA: 0x00219EDC File Offset: 0x002180DC
|
||||
[Token(Token = "0x60097B8")]
|
||||
[Address(RVA = "0x1DDEA90", Offset = "0x1DDD490", VA = "0x181DDEA90", 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: 0x060097B9 RID: 38841 RVA: 0x00219F1C File Offset: 0x0021811C
|
||||
[Token(Token = "0x60097B9")]
|
||||
[Address(RVA = "0x1DDEC80", Offset = "0x1DDD680", VA = "0x181DDEC80", 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: 0x060097BA RID: 38842 RVA: 0x00219F88 File Offset: 0x00218188
|
||||
[Token(Token = "0x60097BA")]
|
||||
[Address(RVA = "0x1DDEDD0", Offset = "0x1DDD7D0", VA = "0x181DDEDD0")]
|
||||
private static void ValidateValue(BigInteger x, string name, string desc)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097BA)
|
||||
|
||||
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: 0x040063D4 RID: 25556
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063D4")]
|
||||
private readonly BigInteger e;
|
||||
|
||||
// Token: 0x040063D5 RID: 25557
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40063D5")]
|
||||
private readonly BigInteger p;
|
||||
|
||||
// Token: 0x040063D6 RID: 25558
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40063D6")]
|
||||
private readonly BigInteger q;
|
||||
|
||||
// Token: 0x040063D7 RID: 25559
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40063D7")]
|
||||
private readonly BigInteger dP;
|
||||
|
||||
// Token: 0x040063D8 RID: 25560
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40063D8")]
|
||||
private readonly BigInteger dQ;
|
||||
|
||||
// Token: 0x040063D9 RID: 25561
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40063D9")]
|
||||
private readonly BigInteger qInv;
|
||||
}
|
||||
}
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001639 RID: 5689
|
||||
[Token(Token = "0x2001639")]
|
||||
[StructLayout(3)]
|
||||
public class SM2KeyExchangePrivateParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x060097BB RID: 38843 RVA: 0x00219FBC File Offset: 0x002181BC
|
||||
[Token(Token = "0x60097BB")]
|
||||
[Address(RVA = "0x1DDF190", Offset = "0x1DDDB90", VA = "0x181DDF190")]
|
||||
public SM2KeyExchangePrivateParameters(bool initiator, ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097BB)
|
||||
|
||||
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: 0x1700185C RID: 6236
|
||||
// (get) Token: 0x060097BC RID: 38844 RVA: 0x0021A03C File Offset: 0x0021823C
|
||||
[Token(Token = "0x1700185C")]
|
||||
public virtual bool IsInitiator
|
||||
{
|
||||
[Token(Token = "0x60097BC")]
|
||||
[Address(RVA = "0x559440", Offset = "0x557E40", VA = "0x180559440", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.mInitiator;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700185D RID: 6237
|
||||
// (get) Token: 0x060097BD RID: 38845 RVA: 0x0021A050 File Offset: 0x00218250
|
||||
[Token(Token = "0x1700185D")]
|
||||
public virtual ECPrivateKeyParameters StaticPrivateKey
|
||||
{
|
||||
[Token(Token = "0x60097BD")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.mStaticPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700185E RID: 6238
|
||||
// (get) Token: 0x060097BE RID: 38846 RVA: 0x0021A064 File Offset: 0x00218264
|
||||
[Token(Token = "0x1700185E")]
|
||||
public virtual ECPoint StaticPublicPoint
|
||||
{
|
||||
[Token(Token = "0x60097BE")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.mStaticPublicPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700185F RID: 6239
|
||||
// (get) Token: 0x060097BF RID: 38847 RVA: 0x0021A078 File Offset: 0x00218278
|
||||
[Token(Token = "0x1700185F")]
|
||||
public virtual ECPrivateKeyParameters EphemeralPrivateKey
|
||||
{
|
||||
[Token(Token = "0x60097BF")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.mEphemeralPrivateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001860 RID: 6240
|
||||
// (get) Token: 0x060097C0 RID: 38848 RVA: 0x0021A08C File Offset: 0x0021828C
|
||||
[Token(Token = "0x17001860")]
|
||||
public virtual ECPoint EphemeralPublicPoint
|
||||
{
|
||||
[Token(Token = "0x60097C0")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.mEphemeralPublicPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063DA RID: 25562
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063DA")]
|
||||
private readonly bool mInitiator;
|
||||
|
||||
// Token: 0x040063DB RID: 25563
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063DB")]
|
||||
private readonly ECPrivateKeyParameters mStaticPrivateKey;
|
||||
|
||||
// Token: 0x040063DC RID: 25564
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40063DC")]
|
||||
private readonly ECPoint mStaticPublicPoint;
|
||||
|
||||
// Token: 0x040063DD RID: 25565
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40063DD")]
|
||||
private readonly ECPrivateKeyParameters mEphemeralPrivateKey;
|
||||
|
||||
// Token: 0x040063DE RID: 25566
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40063DE")]
|
||||
private readonly ECPoint mEphemeralPublicPoint;
|
||||
}
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200163A RID: 5690
|
||||
[Token(Token = "0x200163A")]
|
||||
[StructLayout(3)]
|
||||
public class SM2KeyExchangePublicParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x060097C1 RID: 38849 RVA: 0x0021A0A0 File Offset: 0x002182A0
|
||||
[Token(Token = "0x60097C1")]
|
||||
[Address(RVA = "0x1DDF360", Offset = "0x1DDDD60", VA = "0x181DDF360")]
|
||||
public SM2KeyExchangePublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097C1)
|
||||
|
||||
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: 0x17001861 RID: 6241
|
||||
// (get) Token: 0x060097C2 RID: 38850 RVA: 0x0021A0E8 File Offset: 0x002182E8
|
||||
[Token(Token = "0x17001861")]
|
||||
public virtual ECPublicKeyParameters StaticPublicKey
|
||||
{
|
||||
[Token(Token = "0x60097C2")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.mStaticPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001862 RID: 6242
|
||||
// (get) Token: 0x060097C3 RID: 38851 RVA: 0x0021A0FC File Offset: 0x002182FC
|
||||
[Token(Token = "0x17001862")]
|
||||
public virtual ECPublicKeyParameters EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x60097C3")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.mEphemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063DF RID: 25567
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063DF")]
|
||||
private readonly ECPublicKeyParameters mStaticPublicKey;
|
||||
|
||||
// Token: 0x040063E0 RID: 25568
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063E0")]
|
||||
private readonly ECPublicKeyParameters mEphemeralPublicKey;
|
||||
}
|
||||
}
|
||||
+466
@@ -0,0 +1,466 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200163B RID: 5691
|
||||
[Token(Token = "0x200163B")]
|
||||
[StructLayout(3)]
|
||||
public class SkeinParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x060097C4 RID: 38852 RVA: 0x0021A110 File Offset: 0x00218310
|
||||
[Token(Token = "0x60097C4")]
|
||||
[Address(RVA = "0x1DDFDE0", Offset = "0x1DDE7E0", VA = "0x181DDFDE0")]
|
||||
public SkeinParameters()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
base..ctor();
|
||||
this.parameters = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x060097C5 RID: 38853 RVA: 0x0021A134 File Offset: 0x00218334
|
||||
[Token(Token = "0x60097C5")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private SkeinParameters(IDictionary parameters)
|
||||
{
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x060097C6 RID: 38854 RVA: 0x0021A150 File Offset: 0x00218350
|
||||
[Token(Token = "0x60097C6")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
public IDictionary GetParameters()
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
|
||||
// Token: 0x060097C7 RID: 38855 RVA: 0x0021A164 File Offset: 0x00218364
|
||||
[Token(Token = "0x60097C7")]
|
||||
[Address(RVA = "0x1DDFB50", Offset = "0x1DDE550", VA = "0x181DDFB50")]
|
||||
public byte[] GetKey()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
}
|
||||
while (num != 0 && num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060097C8 RID: 38856 RVA: 0x0021A188 File Offset: 0x00218388
|
||||
[Token(Token = "0x60097C8")]
|
||||
[Address(RVA = "0x1DDFCA0", Offset = "0x1DDE6A0", VA = "0x181DDFCA0")]
|
||||
public byte[] GetPersonalisation()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060097C9 RID: 38857 RVA: 0x0021A1AC File Offset: 0x002183AC
|
||||
[Token(Token = "0x60097C9")]
|
||||
[Address(RVA = "0x1DDFD40", Offset = "0x1DDE740", VA = "0x181DDFD40")]
|
||||
public byte[] GetPublicKey()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060097CA RID: 38858 RVA: 0x0021A1D0 File Offset: 0x002183D0
|
||||
[Token(Token = "0x60097CA")]
|
||||
[Address(RVA = "0x1DDFAB0", Offset = "0x1DDE4B0", VA = "0x181DDFAB0")]
|
||||
public byte[] GetKeyIdentifier()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060097CB RID: 38859 RVA: 0x0021A1F4 File Offset: 0x002183F4
|
||||
[Token(Token = "0x60097CB")]
|
||||
[Address(RVA = "0x1DDFC00", Offset = "0x1DDE600", VA = "0x181DDFC00")]
|
||||
public byte[] GetNonce()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040063E1 RID: 25569
|
||||
[Token(Token = "0x40063E1")]
|
||||
public const int PARAM_TYPE_KEY = 0;
|
||||
|
||||
// Token: 0x040063E2 RID: 25570
|
||||
[Token(Token = "0x40063E2")]
|
||||
public const int PARAM_TYPE_CONFIG = 4;
|
||||
|
||||
// Token: 0x040063E3 RID: 25571
|
||||
[Token(Token = "0x40063E3")]
|
||||
public const int PARAM_TYPE_PERSONALISATION = 8;
|
||||
|
||||
// Token: 0x040063E4 RID: 25572
|
||||
[Token(Token = "0x40063E4")]
|
||||
public const int PARAM_TYPE_PUBLIC_KEY = 12;
|
||||
|
||||
// Token: 0x040063E5 RID: 25573
|
||||
[Token(Token = "0x40063E5")]
|
||||
public const int PARAM_TYPE_KEY_IDENTIFIER = 16;
|
||||
|
||||
// Token: 0x040063E6 RID: 25574
|
||||
[Token(Token = "0x40063E6")]
|
||||
public const int PARAM_TYPE_NONCE = 20;
|
||||
|
||||
// Token: 0x040063E7 RID: 25575
|
||||
[Token(Token = "0x40063E7")]
|
||||
public const int PARAM_TYPE_MESSAGE = 48;
|
||||
|
||||
// Token: 0x040063E8 RID: 25576
|
||||
[Token(Token = "0x40063E8")]
|
||||
public const int PARAM_TYPE_OUTPUT = 63;
|
||||
|
||||
// Token: 0x040063E9 RID: 25577
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063E9")]
|
||||
private IDictionary parameters;
|
||||
|
||||
// Token: 0x0200163C RID: 5692
|
||||
[Token(Token = "0x200163C")]
|
||||
public class Builder
|
||||
{
|
||||
// Token: 0x060097CC RID: 38860 RVA: 0x0021A218 File Offset: 0x00218418
|
||||
[Token(Token = "0x60097CC")]
|
||||
[Address(RVA = "0x1DCF1A0", Offset = "0x1DCDBA0", VA = "0x181DCF1A0")]
|
||||
public Builder()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.parameters = dictionary;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x060097CD RID: 38861 RVA: 0x0021A23C File Offset: 0x0021843C
|
||||
[Token(Token = "0x60097CD")]
|
||||
[Address(RVA = "0x1DCEAE0", Offset = "0x1DCD4E0", VA = "0x181DCEAE0")]
|
||||
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: 0x060097CE RID: 38862 RVA: 0x0021A2C8 File Offset: 0x002184C8
|
||||
[Token(Token = "0x60097CE")]
|
||||
[Address(RVA = "0x1DCEE30", Offset = "0x1DCD830", VA = "0x181DCEE30")]
|
||||
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: 0x060097CF RID: 38863 RVA: 0x0021A364 File Offset: 0x00218564
|
||||
[Token(Token = "0x60097CF")]
|
||||
[Address(RVA = "0x1DCE960", Offset = "0x1DCD360", VA = "0x181DCE960")]
|
||||
public SkeinParameters.Builder Set(int type, byte[] value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097CF)
|
||||
|
||||
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: 0x060097D0 RID: 38864 RVA: 0x0021A3B8 File Offset: 0x002185B8
|
||||
[Token(Token = "0x60097D0")]
|
||||
[Address(RVA = "0x1DCE3D0", Offset = "0x1DCCDD0", VA = "0x181DCE3D0")]
|
||||
public SkeinParameters.Builder SetKey(byte[] key)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097D0)
|
||||
|
||||
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: 0x060097D1 RID: 38865 RVA: 0x0021A3DC File Offset: 0x002185DC
|
||||
[Token(Token = "0x60097D1")]
|
||||
[Address(RVA = "0x1DCE7E0", Offset = "0x1DCD1E0", VA = "0x181DCE7E0")]
|
||||
public SkeinParameters.Builder SetPersonalisation(byte[] personalisation)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097D1)
|
||||
|
||||
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: 0x060097D2 RID: 38866 RVA: 0x0021A400 File Offset: 0x00218600
|
||||
[Token(Token = "0x60097D2")]
|
||||
[Address(RVA = "0x1DCE550", Offset = "0x1DCCF50", VA = "0x181DCE550")]
|
||||
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: 0x060097D3 RID: 38867 RVA: 0x0021A454 File Offset: 0x00218654
|
||||
[Token(Token = "0x60097D3")]
|
||||
[Address(RVA = "0x1DCE8A0", Offset = "0x1DCD2A0", VA = "0x181DCE8A0")]
|
||||
public SkeinParameters.Builder SetPublicKey(byte[] publicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097D3)
|
||||
|
||||
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: 0x060097D4 RID: 38868 RVA: 0x0021A478 File Offset: 0x00218678
|
||||
[Token(Token = "0x60097D4")]
|
||||
[Address(RVA = "0x1DCE310", Offset = "0x1DCCD10", VA = "0x181DCE310")]
|
||||
public SkeinParameters.Builder SetKeyIdentifier(byte[] keyIdentifier)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097D4)
|
||||
|
||||
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: 0x060097D5 RID: 38869 RVA: 0x0021A49C File Offset: 0x0021869C
|
||||
[Token(Token = "0x60097D5")]
|
||||
[Address(RVA = "0x1DCE490", Offset = "0x1DCCE90", VA = "0x181DCE490")]
|
||||
public SkeinParameters.Builder SetNonce(byte[] nonce)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097D5)
|
||||
|
||||
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: 0x060097D6 RID: 38870 RVA: 0x0021A4C0 File Offset: 0x002186C0
|
||||
[Token(Token = "0x60097D6")]
|
||||
[Address(RVA = "0x1DCE2B0", Offset = "0x1DCCCB0", VA = "0x181DCE2B0")]
|
||||
public SkeinParameters Build()
|
||||
{
|
||||
IDictionary dictionary = this.parameters;
|
||||
return new SkeinParameters
|
||||
{
|
||||
parameters = dictionary
|
||||
};
|
||||
}
|
||||
|
||||
// Token: 0x040063EA RID: 25578
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063EA")]
|
||||
private IDictionary parameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200163D RID: 5693
|
||||
[Token(Token = "0x200163D")]
|
||||
[StructLayout(3)]
|
||||
public sealed class Srp6GroupParameters
|
||||
{
|
||||
// Token: 0x060097D7 RID: 38871 RVA: 0x0021A4E4 File Offset: 0x002186E4
|
||||
[Token(Token = "0x60097D7")]
|
||||
[Address(RVA = "0x3C39C0", Offset = "0x3C23C0", VA = "0x1803C39C0")]
|
||||
public Srp6GroupParameters(BigInteger N, BigInteger g)
|
||||
{
|
||||
this.n = N;
|
||||
this.g = g;
|
||||
}
|
||||
|
||||
// Token: 0x17001863 RID: 6243
|
||||
// (get) Token: 0x060097D8 RID: 38872 RVA: 0x0021A508 File Offset: 0x00218708
|
||||
[Token(Token = "0x17001863")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x60097D8")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.g;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001864 RID: 6244
|
||||
// (get) Token: 0x060097D9 RID: 38873 RVA: 0x0021A51C File Offset: 0x0021871C
|
||||
[Token(Token = "0x17001864")]
|
||||
public BigInteger N
|
||||
{
|
||||
[Token(Token = "0x60097D9")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.n;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063EB RID: 25579
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063EB")]
|
||||
private readonly BigInteger n;
|
||||
|
||||
// Token: 0x040063EC RID: 25580
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063EC")]
|
||||
private readonly BigInteger g;
|
||||
}
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200163E RID: 5694
|
||||
[Token(Token = "0x200163E")]
|
||||
[StructLayout(3)]
|
||||
public class TweakableBlockCipherParameters : ICipherParameters
|
||||
{
|
||||
// Token: 0x060097DA RID: 38874 RVA: 0x0021A530 File Offset: 0x00218730
|
||||
[Token(Token = "0x60097DA")]
|
||||
[Address(RVA = "0x1DDFF90", Offset = "0x1DDE990", VA = "0x181DDFF90")]
|
||||
public TweakableBlockCipherParameters(KeyParameter key, byte[] tweak)
|
||||
{
|
||||
this.key = key;
|
||||
byte[] array = Arrays.Clone(tweak);
|
||||
this.tweak = array;
|
||||
}
|
||||
|
||||
// Token: 0x17001865 RID: 6245
|
||||
// (get) Token: 0x060097DB RID: 38875 RVA: 0x0021A558 File Offset: 0x00218758
|
||||
[Token(Token = "0x17001865")]
|
||||
public KeyParameter Key
|
||||
{
|
||||
[Token(Token = "0x60097DB")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.key;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001866 RID: 6246
|
||||
// (get) Token: 0x060097DC RID: 38876 RVA: 0x0021A56C File Offset: 0x0021876C
|
||||
[Token(Token = "0x17001866")]
|
||||
public byte[] Tweak
|
||||
{
|
||||
[Token(Token = "0x60097DC")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.tweak;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040063ED RID: 25581
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40063ED")]
|
||||
private readonly byte[] tweak;
|
||||
|
||||
// Token: 0x040063EE RID: 25582
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063EE")]
|
||||
private readonly KeyParameter key;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x0200163F RID: 5695
|
||||
[Token(Token = "0x200163F")]
|
||||
[StructLayout(3)]
|
||||
public class X25519KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x060097DD RID: 38877 RVA: 0x0021A580 File Offset: 0x00218780
|
||||
[Token(Token = "0x60097DD")]
|
||||
[Address(RVA = "0x1DE0010", Offset = "0x1DDEA10", VA = "0x181DE0010")]
|
||||
public X25519KeyGenerationParameters(SecureRandom random)
|
||||
: base(random, 255)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x02001640 RID: 5696
|
||||
[Token(Token = "0x2001640")]
|
||||
[StructLayout(3)]
|
||||
public sealed class X25519PrivateKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x060097DE RID: 38878 RVA: 0x0021A59C File Offset: 0x0021879C
|
||||
[Token(Token = "0x60097DE")]
|
||||
[Address(RVA = "0x1DE0580", Offset = "0x1DDEF80", VA = "0x181DE0580")]
|
||||
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: 0x060097DF RID: 38879 RVA: 0x0021A5D0 File Offset: 0x002187D0
|
||||
[Token(Token = "0x60097DF")]
|
||||
[Address(RVA = "0x1DE04C0", Offset = "0x1DDEEC0", VA = "0x181DE04C0")]
|
||||
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: 0x060097E0 RID: 38880 RVA: 0x0021A614 File Offset: 0x00218814
|
||||
[Token(Token = "0x60097E0")]
|
||||
[Address(RVA = "0x1DE03D0", Offset = "0x1DDEDD0", VA = "0x181DE03D0")]
|
||||
public X25519PrivateKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097E0)
|
||||
|
||||
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: 0x060097E1 RID: 38881 RVA: 0x0021A660 File Offset: 0x00218860
|
||||
[Token(Token = "0x60097E1")]
|
||||
[Address(RVA = "0x1DE0020", Offset = "0x1DDEA20", VA = "0x181DE0020")]
|
||||
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: 0x060097E2 RID: 38882 RVA: 0x0021A688 File Offset: 0x00218888
|
||||
[Token(Token = "0x60097E2")]
|
||||
[Address(RVA = "0x1DE0320", Offset = "0x1DDED20", VA = "0x181DE0320")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x060097E3 RID: 38883 RVA: 0x0021A6A0 File Offset: 0x002188A0
|
||||
[Token(Token = "0x60097E3")]
|
||||
[Address(RVA = "0x1DE00C0", Offset = "0x1DDEAC0", VA = "0x181DE00C0")]
|
||||
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: 0x060097E4 RID: 38884 RVA: 0x0021A714 File Offset: 0x00218914
|
||||
[Token(Token = "0x60097E4")]
|
||||
[Address(RVA = "0x1DE01D0", Offset = "0x1DDEBD0", VA = "0x181DE01D0")]
|
||||
public void GenerateSecret(X25519PublicKeyParameters publicKey, byte[] buf, int off)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097E4)
|
||||
|
||||
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: 0x040063EF RID: 25583
|
||||
[Token(Token = "0x40063EF")]
|
||||
public static readonly int KeySize;
|
||||
|
||||
// Token: 0x040063F0 RID: 25584
|
||||
[Token(Token = "0x40063F0")]
|
||||
public static readonly int SecretSize;
|
||||
|
||||
// Token: 0x040063F1 RID: 25585
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063F1")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001641 RID: 5697
|
||||
[Token(Token = "0x2001641")]
|
||||
[StructLayout(3)]
|
||||
public sealed class X25519PublicKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x060097E6 RID: 38886 RVA: 0x0021A784 File Offset: 0x00218984
|
||||
[Token(Token = "0x60097E6")]
|
||||
[Address(RVA = "0x1DE0760", Offset = "0x1DDF160", VA = "0x181DE0760")]
|
||||
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: 0x060097E7 RID: 38887 RVA: 0x0021A7C8 File Offset: 0x002189C8
|
||||
[Token(Token = "0x60097E7")]
|
||||
[Address(RVA = "0x1DE0820", Offset = "0x1DDF220", VA = "0x181DE0820")]
|
||||
public X25519PublicKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097E7)
|
||||
|
||||
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: 0x060097E8 RID: 38888 RVA: 0x0021A818 File Offset: 0x00218A18
|
||||
[Token(Token = "0x60097E8")]
|
||||
[Address(RVA = "0x1DE0620", Offset = "0x1DDF020", VA = "0x181DE0620")]
|
||||
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: 0x060097E9 RID: 38889 RVA: 0x0021A840 File Offset: 0x00218A40
|
||||
[Token(Token = "0x60097E9")]
|
||||
[Address(RVA = "0x1DE06C0", Offset = "0x1DDF0C0", VA = "0x181DE06C0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x040063F2 RID: 25586
|
||||
[Token(Token = "0x40063F2")]
|
||||
public static readonly int KeySize;
|
||||
|
||||
// Token: 0x040063F3 RID: 25587
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063F3")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001642 RID: 5698
|
||||
[Token(Token = "0x2001642")]
|
||||
[StructLayout(3)]
|
||||
public class X448KeyGenerationParameters : KeyGenerationParameters
|
||||
{
|
||||
// Token: 0x060097EB RID: 38891 RVA: 0x0021A868 File Offset: 0x00218A68
|
||||
[Token(Token = "0x60097EB")]
|
||||
[Address(RVA = "0x1DD7E60", Offset = "0x1DD6860", VA = "0x181DD7E60")]
|
||||
public X448KeyGenerationParameters(SecureRandom random)
|
||||
: base(random, 448)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x02001643 RID: 5699
|
||||
[Token(Token = "0x2001643")]
|
||||
[StructLayout(3)]
|
||||
public sealed class X448PrivateKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x060097EC RID: 38892 RVA: 0x0021A884 File Offset: 0x00218A84
|
||||
[Token(Token = "0x60097EC")]
|
||||
[Address(RVA = "0x1DE0CC0", Offset = "0x1DDF6C0", VA = "0x181DE0CC0")]
|
||||
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: 0x060097ED RID: 38893 RVA: 0x0021A8B8 File Offset: 0x00218AB8
|
||||
[Token(Token = "0x60097ED")]
|
||||
[Address(RVA = "0x1DE0D60", Offset = "0x1DDF760", VA = "0x181DE0D60")]
|
||||
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: 0x060097EE RID: 38894 RVA: 0x0021A8FC File Offset: 0x00218AFC
|
||||
[Token(Token = "0x60097EE")]
|
||||
[Address(RVA = "0x1DE0E20", Offset = "0x1DDF820", VA = "0x181DE0E20")]
|
||||
public X448PrivateKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097EE)
|
||||
|
||||
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: 0x060097EF RID: 38895 RVA: 0x0021A948 File Offset: 0x00218B48
|
||||
[Token(Token = "0x60097EF")]
|
||||
[Address(RVA = "0x1DE0910", Offset = "0x1DDF310", VA = "0x181DE0910")]
|
||||
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: 0x060097F0 RID: 38896 RVA: 0x0021A970 File Offset: 0x00218B70
|
||||
[Token(Token = "0x60097F0")]
|
||||
[Address(RVA = "0x1DE0C10", Offset = "0x1DDF610", VA = "0x181DE0C10")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x060097F1 RID: 38897 RVA: 0x0021A988 File Offset: 0x00218B88
|
||||
[Token(Token = "0x60097F1")]
|
||||
[Address(RVA = "0x1DE09B0", Offset = "0x1DDF3B0", VA = "0x181DE09B0")]
|
||||
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: 0x060097F2 RID: 38898 RVA: 0x0021A9FC File Offset: 0x00218BFC
|
||||
[Token(Token = "0x60097F2")]
|
||||
[Address(RVA = "0x1DE0AC0", Offset = "0x1DDF4C0", VA = "0x181DE0AC0")]
|
||||
public void GenerateSecret(X448PublicKeyParameters publicKey, byte[] buf, int off)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097F2)
|
||||
|
||||
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: 0x040063F4 RID: 25588
|
||||
[Token(Token = "0x40063F4")]
|
||||
public static readonly int KeySize;
|
||||
|
||||
// Token: 0x040063F5 RID: 25589
|
||||
[Token(Token = "0x40063F5")]
|
||||
public static readonly int SecretSize;
|
||||
|
||||
// Token: 0x040063F6 RID: 25590
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063F6")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
|
||||
{
|
||||
// Token: 0x02001644 RID: 5700
|
||||
[Token(Token = "0x2001644")]
|
||||
[StructLayout(3)]
|
||||
public sealed class X448PublicKeyParameters : AsymmetricKeyParameter
|
||||
{
|
||||
// Token: 0x060097F4 RID: 38900 RVA: 0x0021AA6C File Offset: 0x00218C6C
|
||||
[Token(Token = "0x60097F4")]
|
||||
[Address(RVA = "0x1DE1140", Offset = "0x1DDFB40", VA = "0x181DE1140")]
|
||||
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: 0x060097F5 RID: 38901 RVA: 0x0021AAB0 File Offset: 0x00218CB0
|
||||
[Token(Token = "0x60097F5")]
|
||||
[Address(RVA = "0x1DE1050", Offset = "0x1DDFA50", VA = "0x181DE1050")]
|
||||
public X448PublicKeyParameters(Stream input)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060097F5)
|
||||
|
||||
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: 0x060097F6 RID: 38902 RVA: 0x0021AB00 File Offset: 0x00218D00
|
||||
[Token(Token = "0x60097F6")]
|
||||
[Address(RVA = "0x1DE0F10", Offset = "0x1DDF910", VA = "0x181DE0F10")]
|
||||
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: 0x060097F7 RID: 38903 RVA: 0x0021AB28 File Offset: 0x00218D28
|
||||
[Token(Token = "0x60097F7")]
|
||||
[Address(RVA = "0x1DE0FB0", Offset = "0x1DDF9B0", VA = "0x181DE0FB0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return Arrays.Clone(this.data);
|
||||
}
|
||||
|
||||
// Token: 0x040063F7 RID: 25591
|
||||
[Token(Token = "0x40063F7")]
|
||||
public static readonly int KeySize;
|
||||
|
||||
// Token: 0x040063F8 RID: 25592
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40063F8")]
|
||||
private readonly byte[] data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user