scripts
This commit is contained in:
+58
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Agreement
|
||||
{
|
||||
// Token: 0x0200172B RID: 5931
|
||||
[Token(Token = "0x200172B")]
|
||||
[StructLayout(3)]
|
||||
public class ECDHBasicAgreement : IBasicAgreement
|
||||
{
|
||||
// Token: 0x0600A063 RID: 41059 RVA: 0x00254380 File Offset: 0x00252580
|
||||
[Token(Token = "0x600A063")]
|
||||
[Address(RVA = "0x6581D0", Offset = "0x656BD0", VA = "0x1806581D0", Slot = "7")]
|
||||
public virtual void Init(ICipherParameters parameters)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
}
|
||||
while (parameters != 0 && ((parameters != 0 && (parameters == 0 || parameters == 0)) || (parameters != 0 && parameters == 0)));
|
||||
this.privKey = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600A064 RID: 41060 RVA: 0x002543B8 File Offset: 0x002525B8
|
||||
[Token(Token = "0x600A064")]
|
||||
[Address(RVA = "0x658180", Offset = "0x656B80", VA = "0x180658180", Slot = "8")]
|
||||
public virtual int GetFieldSize()
|
||||
{
|
||||
string text = this.privKey.parameters.curve.ToString();
|
||||
text += 0;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A065 RID: 41061 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600A065")]
|
||||
[Address(RVA = "0x657E90", Offset = "0x656890", VA = "0x180657E90", Slot = "9")]
|
||||
public virtual BigInteger CalculateAgreement(ICipherParameters pubKey)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600A066 RID: 41062 RVA: 0x002543E4 File Offset: 0x002525E4
|
||||
[Token(Token = "0x600A066")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public ECDHBasicAgreement()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04006981 RID: 27009
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006981")]
|
||||
protected internal ECPrivateKeyParameters privKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user