This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,339 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes
{
// Token: 0x02001C3F RID: 7231
[Token(Token = "0x2001C3F")]
public class OpenPgpCfbBlockCipher : IBlockCipher
{
// Token: 0x0600B4D4 RID: 46292 RVA: 0x0027734C File Offset: 0x0027554C
[Token(Token = "0x600B4D4")]
[Address(RVA = "0x180FEA0", Offset = "0x180ECA0", VA = "0x18180FEA0")]
public OpenPgpCfbBlockCipher(IBlockCipher cipher)
{
this.cipher = cipher;
byte[] array = new byte[0];
int num = this.blockSize;
this.IV = array;
byte[] array2 = new byte[num];
int num2 = this.blockSize;
this.FR = array2;
byte[] array3 = new byte[num2];
this.FRE = array3;
}
// Token: 0x0600B4D5 RID: 46293 RVA: 0x002773A8 File Offset: 0x002755A8
[Token(Token = "0x600B4D5")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
public IBlockCipher GetUnderlyingCipher()
{
return this.cipher;
}
// Token: 0x17001C85 RID: 7301
// (get) Token: 0x0600B4D6 RID: 46294 RVA: 0x002773BC File Offset: 0x002755BC
[Token(Token = "0x17001C85")]
public string AlgorithmName
{
[Token(Token = "0x600B4D6")]
[Address(RVA = "0x180FF40", Offset = "0x180ED40", VA = "0x18180FF40", Slot = "4")]
get
{
IBlockCipher blockCipher = this.cipher;
return 0 + "/OpenPGPCFB";
}
}
// Token: 0x17001C86 RID: 7302
// (get) Token: 0x0600B4D7 RID: 46295 RVA: 0x002773E4 File Offset: 0x002755E4
[Token(Token = "0x17001C86")]
public bool IsPartialBlockOkay
{
[Token(Token = "0x600B4D7")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")]
get
{
return true;
}
}
// Token: 0x0600B4D8 RID: 46296 RVA: 0x002773F4 File Offset: 0x002755F4
[Token(Token = "0x600B4D8")]
[Address(RVA = "0x180FB70", Offset = "0x180E970", VA = "0x18180FB70", Slot = "6")]
public int GetBlockSize()
{
IBlockCipher blockCipher = this.cipher;
throw new NullReferenceException();
}
// Token: 0x0600B4D9 RID: 46297 RVA: 0x00277410 File Offset: 0x00275610
[Token(Token = "0x600B4D9")]
[Address(RVA = "0x180FDF0", Offset = "0x180EBF0", VA = "0x18180FDF0", Slot = "8")]
public int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)
{
if (this.forEncryption)
{
int num;
return num;
}
int num2;
return num2;
}
// Token: 0x0600B4DA RID: 46298 RVA: 0x0027742C File Offset: 0x0027562C
[Token(Token = "0x600B4DA")]
[Address(RVA = "0x180FE20", Offset = "0x180EC20", VA = "0x18180FE20", Slot = "9")]
public void Reset()
{
byte[] fr = this.FR;
int num = 0;
this.count = num;
byte[] iv = this.IV;
int num2 = 0;
int num3 = 0;
int length = fr.Length;
Array.Copy(iv, num3, fr, num2, length);
IBlockCipher blockCipher = this.cipher;
throw new NullReferenceException();
}
// Token: 0x0600B4DB RID: 46299 RVA: 0x00277478 File Offset: 0x00275678
[Token(Token = "0x600B4DB")]
[Address(RVA = "0x180FBC0", Offset = "0x180E9C0", VA = "0x18180FBC0", Slot = "5")]
public void Init(bool forEncryption, ICipherParameters parameters)
{
int num;
do
{
num = 0;
this.forEncryption = forEncryption;
if (parameters == 0 || parameters == 0)
{
goto IL_46;
}
}
while (parameters == 0);
byte[] iv = this.IV;
byte[] array;
int length = array.Length;
int length2 = iv.Length;
int num2 = 0;
int num3 = 0;
Array.Copy(array, num2, iv, num3, length2);
IL_46:
byte[] fr = this.FR;
this.count = num;
int length3 = fr.Length;
int num4 = 0;
byte[] iv2 = this.IV;
int num5 = 0;
Array.Copy(iv2, num5, fr, num4, length3);
IBlockCipher blockCipher = this.cipher;
IBlockCipher blockCipher2 = this.cipher;
}
// Token: 0x0600B4DC RID: 46300 RVA: 0x00277518 File Offset: 0x00275718
[Token(Token = "0x600B4DC")]
[Address(RVA = "0x180FB30", Offset = "0x180E930", VA = "0x18180FB30")]
private byte EncryptByte(byte data, int blockOff)
{
byte[] fre = this.FRE;
byte b;
return b;
}
// Token: 0x0600B4DD RID: 46301 RVA: 0x00277534 File Offset: 0x00275734
[Token(Token = "0x600B4DD")]
[Address(RVA = "0x180F480", Offset = "0x180E280", VA = "0x18180F480")]
private int EncryptBlock(byte[] input, int inOff, byte[] outBytes, int outOff)
{
int num;
int num2;
byte[] fre5;
for (;;)
{
num = this.blockSize;
int length = input.Length;
int length2 = outBytes.Length;
num2 = this.count;
if (num2 != 0)
{
break;
}
IBlockCipher blockCipher = this.cipher;
byte[] fre = this.FRE;
int num3 = 0;
if (this.blockSize > 0)
{
byte[] fr = this.FR;
byte[] fre2 = this.FRE;
byte b = fre[input];
num3++;
int num4 = this.blockSize;
byte[] fr2 = this.FR;
byte[] fre3 = this.FRE;
num4 += -2;
byte b2;
fr2[0] = b2;
int num5 = inOff + 1;
byte[] fr3 = this.FR;
byte[] fre4 = this.FRE;
int num6 = this.blockSize;
byte b3;
fr3[0] = b3;
IBlockCipher blockCipher2 = this.cipher;
fre5 = this.FRE;
if (this.blockSize > 2)
{
goto Block_4;
}
}
}
if (num2 == num)
{
IBlockCipher blockCipher3 = this.cipher;
byte[] fre6 = this.FRE;
byte[] fre7 = this.FRE;
int num7 = inOff + 1;
byte[] fre8 = this.FRE;
int num8 = this.blockSize;
int num9 = 0;
byte[] fr4 = this.FR;
Array.Copy(fr4, 2, fr4, num9, num8);
IBlockCipher blockCipher4 = this.cipher;
byte[] fre9 = this.FRE;
if (this.blockSize > 2)
{
byte[] fr5 = this.FR;
byte[] fre10 = this.FRE;
byte b4;
fre9[0] = b4;
int num10 = this.blockSize;
}
}
return num;
Block_4:
byte[] fr6 = this.FR;
byte[] fre11 = this.FRE;
byte b5;
fre5[0] = b5;
int num11 = this.blockSize;
throw new NullReferenceException();
}
// Token: 0x0600B4DE RID: 46302 RVA: 0x002776C8 File Offset: 0x002758C8
[Token(Token = "0x600B4DE")]
[Address(RVA = "0x180ED50", Offset = "0x180DB50", VA = "0x18180ED50")]
private int DecryptBlock(byte[] input, int inOff, byte[] outBytes, int outOff)
{
int num;
int num2;
byte[] fre5;
for (;;)
{
num = this.blockSize;
int length = input.Length;
num2 = this.count;
if (num2 != 0)
{
break;
}
IBlockCipher blockCipher = this.cipher;
byte[] fre = this.FRE;
int num3 = 0;
if (this.blockSize > 0)
{
byte[] fr = this.FR;
byte[] fre2 = this.FRE;
num3++;
int num4 = this.blockSize;
byte[] fr2 = this.FR;
byte[] fre3 = this.FRE;
int num5 = this.blockSize;
int num6 = inOff + 1;
byte[] fr3 = this.FR;
int num7 = this.blockSize;
byte[] fre4 = this.FRE;
int num8 = this.blockSize;
IBlockCipher blockCipher2 = this.cipher;
fre5 = this.FRE;
if (this.blockSize > 2)
{
goto Block_4;
}
}
}
if (num2 == num)
{
IBlockCipher blockCipher3 = this.cipher;
byte[] fre6 = this.FRE;
int length2 = input.Length;
int num9 = inOff + 1;
byte[] fre7 = this.FRE;
byte[] fre8 = this.FRE;
int num10 = 0;
int num11 = this.blockSize;
byte[] fr4 = this.FR;
Array.Copy(fr4, 2, fr4, num10, num11);
byte[] fr5 = this.FR;
int num12 = this.blockSize;
byte[] fr6 = this.FR;
int num13 = this.blockSize;
IBlockCipher blockCipher4 = this.cipher;
byte[] fre9 = this.FRE;
if (this.blockSize > 2)
{
byte[] fr7 = this.FR;
byte b = fre9[input];
fre9[0] = b;
byte[] fre10 = this.FRE;
int num14 = this.blockSize;
}
}
return num;
Block_4:
byte[] fr8 = this.FR;
byte b2 = fre5[input];
fre5[0] = b2;
byte[] fre11 = this.FRE;
int num15 = this.blockSize;
throw new NullReferenceException();
}
// Token: 0x040072CE RID: 29390
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40072CE")]
private byte[] IV;
// Token: 0x040072CF RID: 29391
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40072CF")]
private byte[] FR;
// Token: 0x040072D0 RID: 29392
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40072D0")]
private byte[] FRE;
// Token: 0x040072D1 RID: 29393
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40072D1")]
private readonly IBlockCipher cipher;
// Token: 0x040072D2 RID: 29394
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40072D2")]
private readonly int blockSize;
// Token: 0x040072D3 RID: 29395
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x40072D3")]
private int count;
// Token: 0x040072D4 RID: 29396
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40072D4")]
private bool forEncryption;
}
}