scripts
This commit is contained in:
+93
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines
|
||||
{
|
||||
// Token: 0x020016DC RID: 5852
|
||||
[Token(Token = "0x20016DC")]
|
||||
[StructLayout(3)]
|
||||
public class VmpcKsa3Engine : VmpcEngine
|
||||
{
|
||||
// Token: 0x170018FD RID: 6397
|
||||
// (get) Token: 0x06009D7C RID: 40316 RVA: 0x00241D78 File Offset: 0x0023FF78
|
||||
[Token(Token = "0x170018FD")]
|
||||
public override string AlgorithmName
|
||||
{
|
||||
[Token(Token = "0x6009D7C")]
|
||||
[Address(RVA = "0x1F620E0", Offset = "0x1F60AE0", VA = "0x181F620E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return "VMPC-KSA3";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009D7D RID: 40317 RVA: 0x00241D8C File Offset: 0x0023FF8C
|
||||
[Token(Token = "0x6009D7D")]
|
||||
[Address(RVA = "0x1F61C80", Offset = "0x1F60680", VA = "0x181F61C80", Slot = "11")]
|
||||
protected override void InitKey(byte[] keyBytes, byte[] ivBytes)
|
||||
{
|
||||
this.s = (byte)((ulong)0L);
|
||||
byte[] array = new byte[256];
|
||||
int num = 0;
|
||||
this.P = array;
|
||||
byte[] p = this.P;
|
||||
num++;
|
||||
byte[] p2 = this.P;
|
||||
int length = p2.Length;
|
||||
byte b = p[keyBytes];
|
||||
byte b2;
|
||||
b += b2;
|
||||
byte s = this.s;
|
||||
b += s;
|
||||
byte b3;
|
||||
this.s = b3;
|
||||
int length2 = p2.Length;
|
||||
byte b4 = p2[num];
|
||||
byte b5;
|
||||
p2[0] = b5;
|
||||
byte[] p3 = this.P;
|
||||
byte s2 = this.s;
|
||||
num++;
|
||||
byte[] p4 = this.P;
|
||||
int length3 = p4.Length;
|
||||
byte b6;
|
||||
byte b7;
|
||||
b6 += b7;
|
||||
byte s3 = this.s;
|
||||
b6 += s3;
|
||||
byte b8;
|
||||
this.s = b8;
|
||||
int length4 = p4.Length;
|
||||
byte b9;
|
||||
p4[0] = b9;
|
||||
byte[] p5 = this.P;
|
||||
byte s4 = this.s;
|
||||
num++;
|
||||
byte[] p6 = this.P;
|
||||
int length5 = p6.Length;
|
||||
byte b10;
|
||||
byte b11;
|
||||
b10 += b11;
|
||||
byte s5 = this.s;
|
||||
b10 += s5;
|
||||
byte b12;
|
||||
this.s = b12;
|
||||
int length6 = p6.Length;
|
||||
byte b13 = p6[num];
|
||||
byte b14;
|
||||
p6[0] = b14;
|
||||
byte[] p7 = this.P;
|
||||
byte s6 = this.s;
|
||||
num++;
|
||||
this.n = (byte)((ulong)0L);
|
||||
}
|
||||
|
||||
// Token: 0x06009D7E RID: 40318 RVA: 0x00241EFC File Offset: 0x002400FC
|
||||
[Token(Token = "0x6009D7E")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public VmpcKsa3Engine()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user