This commit is contained in:
niko
2026-04-08 23:40:05 +02:00
parent d6894bcbc7
commit 18dc73f922
7750 changed files with 1795369 additions and 0 deletions
@@ -0,0 +1,272 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Encodings
{
// Token: 0x020016DF RID: 5855
[Token(Token = "0x20016DF")]
[StructLayout(3)]
public class ISO9796d1Encoding : IAsymmetricBlockCipher
{
// Token: 0x06009D8D RID: 40333 RVA: 0x00242330 File Offset: 0x00240530
[Token(Token = "0x6009D8D")]
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
public ISO9796d1Encoding(IAsymmetricBlockCipher cipher)
{
this.engine = cipher;
}
// Token: 0x17001902 RID: 6402
// (get) Token: 0x06009D8E RID: 40334 RVA: 0x0024234C File Offset: 0x0024054C
[Token(Token = "0x17001902")]
public string AlgorithmName
{
[Token(Token = "0x6009D8E")]
[Address(RVA = "0x205BF90", Offset = "0x205A990", VA = "0x18205BF90", Slot = "4")]
get
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
return 0 + "/ISO9796-1Padding";
}
}
// Token: 0x06009D8F RID: 40335 RVA: 0x00242374 File Offset: 0x00240574
[Token(Token = "0x6009D8F")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
public IAsymmetricBlockCipher GetUnderlyingCipher()
{
return this.engine;
}
// Token: 0x06009D90 RID: 40336 RVA: 0x00242388 File Offset: 0x00240588
[Token(Token = "0x6009D90")]
[Address(RVA = "0x205BC10", Offset = "0x205A610", VA = "0x18205BC10", Slot = "5")]
public void Init(bool forEncryption, ICipherParameters parameters)
{
while (parameters != 0)
{
if ((parameters != 0 || parameters != 0) && parameters != 0 && parameters != 0)
{
if (parameters == 0)
{
IL_2A:
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
this.modulus = (uint)1;
this.forEncryption = forEncryption;
int num;
this.bitSize = num;
return;
}
if (parameters != 0)
{
break;
}
}
}
goto IL_2A;
}
// Token: 0x06009D91 RID: 40337 RVA: 0x002423E4 File Offset: 0x002405E4
[Token(Token = "0x6009D91")]
[Address(RVA = "0x205BB50", Offset = "0x205A550", VA = "0x18205BB50", Slot = "6")]
public int GetInputBlockSize()
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
if (this.inverse != (ulong)0L)
{
}
throw new NullReferenceException();
}
// Token: 0x06009D92 RID: 40338 RVA: 0x00242408 File Offset: 0x00240608
[Token(Token = "0x6009D92")]
[Address(RVA = "0x205BBB0", Offset = "0x205A5B0", VA = "0x18205BBB0", Slot = "7")]
public int GetOutputBlockSize()
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
if (this.inverse == (ulong)0L)
{
}
throw new NullReferenceException();
}
// Token: 0x06009D93 RID: 40339 RVA: 0x0024242C File Offset: 0x0024062C
[Token(Token = "0x6009D93")]
[Address(RVA = "0x205BE30", Offset = "0x205A830", VA = "0x18205BE30")]
public void SetPadBits(int padBits)
{
this.padBits = padBits;
}
// Token: 0x06009D94 RID: 40340 RVA: 0x0024244C File Offset: 0x0024064C
[Token(Token = "0x6009D94")]
[Address(RVA = "0x4FBD40", Offset = "0x4FA740", VA = "0x1804FBD40")]
public int GetPadBits()
{
return this.padBits;
}
// Token: 0x06009D95 RID: 40341 RVA: 0x00242460 File Offset: 0x00240660
[Token(Token = "0x6009D95")]
[Address(RVA = "0x205BE00", Offset = "0x205A800", VA = "0x18205BE00", Slot = "8")]
public byte[] ProcessBlock(byte[] input, int inOff, int length)
{
if (this.inverse == (ulong)0L)
{
return this.DecodeBlock(input, inOff, length);
}
return this.EncodeBlock(input, inOff, length);
}
// Token: 0x06009D96 RID: 40342 RVA: 0x0024248C File Offset: 0x0024068C
[Token(Token = "0x6009D96")]
[Address(RVA = "0x205B7C0", Offset = "0x205A1C0", VA = "0x18205B7C0")]
private byte[] EncodeBlock(byte[] input, int inOff, int inLen)
{
int num = this.bitSize;
num += 7;
byte[] array = new byte[input];
int num2 = this.padBits;
int num3 = this.bitSize;
num2++;
num3 += 13;
int num4 = 0;
num3 += input;
if (num3 > 0)
{
num3 -= inLen;
int num5 = array.Length;
num5 -= num4;
num5 -= inLen;
int num6 = array.Length;
num6 -= inLen;
num4 += inLen;
num3 = inLen - inLen;
}
int num7 = array.Length;
num7 -= num3;
int length = array.Length;
int num8;
if (num7 != length)
{
num3 = num7;
num3 -= 0;
num3 -= num3;
num8 = ISO9796d1Encoding.shadows.Length;
num8 = num7;
num8++;
num7 += 2;
}
byte b;
num8 -= (int)b;
int length2 = array.Length;
if (length2 - 1 < length2)
{
}
uint num9;
byte b2;
num9 -= (uint)b2;
int length3 = array.Length;
if (num9 == (uint)8)
{
array[0] = (byte)((ulong)0L);
}
uint num10;
array[0] = (byte)num10;
uint num11;
array[0] = (byte)num11;
int num12 = 0;
int num13 = array.Length;
num13 -= num12;
throw new NullReferenceException();
}
// Token: 0x06009D97 RID: 40343 RVA: 0x002425A4 File Offset: 0x002407A4
[Token(Token = "0x6009D97")]
[Address(RVA = "0x205B1C0", Offset = "0x2059BC0", VA = "0x18205B1C0")]
private byte[] DecodeBlock(byte[] input, int inOff, int inLen)
{
/*
An exception occurred when decompiling this method (06009D97)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Encodings.ISO9796d1Encoding::DecodeBlock(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_140:
stloc:InvalidCipherTextException(var_33_14A, newobj:InvalidCipherTextException(InvalidCipherTextException::.ctor, ldstr:string("resulting integer iS or (modulus - iS) is not congruent to 6 mod 16")))
}
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: 0x06009D98 RID: 40344 RVA: 0x002426FC File Offset: 0x002408FC
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009D98")]
[Address(RVA = "0x205BEA0", Offset = "0x205A8A0", VA = "0x18205BEA0")]
static ISO9796d1Encoding()
{
BigInteger bigInteger;
ISO9796d1Encoding.Sixteen = bigInteger;
BigInteger bigInteger2;
ISO9796d1Encoding.Six = bigInteger2;
byte[] array = new byte[16];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.27C3AB82CCA6CE2F199F4F670BF19513A3825B87).FieldHandle);
ISO9796d1Encoding.shadows = array;
byte[] array2 = new byte[16];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.30F65A149AF7DE938A9287048498B966AEBE54D4).FieldHandle);
ISO9796d1Encoding.inverse = array2;
}
// Token: 0x040067BF RID: 26559
[Token(Token = "0x40067BF")]
private static readonly BigInteger Sixteen;
// Token: 0x040067C0 RID: 26560
[Token(Token = "0x40067C0")]
private static readonly BigInteger Six;
// Token: 0x040067C1 RID: 26561
[Token(Token = "0x40067C1")]
private static readonly byte[] shadows;
// Token: 0x040067C2 RID: 26562
[Token(Token = "0x40067C2")]
private static readonly byte[] inverse;
// Token: 0x040067C3 RID: 26563
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40067C3")]
private readonly IAsymmetricBlockCipher engine;
// Token: 0x040067C4 RID: 26564
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40067C4")]
private bool forEncryption;
// Token: 0x040067C5 RID: 26565
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40067C5")]
private int bitSize;
// Token: 0x040067C6 RID: 26566
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40067C6")]
private int padBits;
// Token: 0x040067C7 RID: 26567
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40067C7")]
private BigInteger modulus;
}
}
@@ -0,0 +1,362 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Encodings
{
// Token: 0x020016E0 RID: 5856
[Token(Token = "0x20016E0")]
[StructLayout(3)]
public class OaepEncoding : IAsymmetricBlockCipher
{
// Token: 0x06009D99 RID: 40345 RVA: 0x00242748 File Offset: 0x00240948
[Token(Token = "0x6009D99")]
[Address(RVA = "0x205CAE0", Offset = "0x205B4E0", VA = "0x18205CAE0")]
public OaepEncoding(IAsymmetricBlockCipher cipher)
{
Sha1Digest sha1Digest = new Sha1Digest();
}
// Token: 0x06009D9A RID: 40346 RVA: 0x0024275C File Offset: 0x0024095C
[Token(Token = "0x6009D9A")]
[Address(RVA = "0x205CAC0", Offset = "0x205B4C0", VA = "0x18205CAC0")]
public OaepEncoding(IAsymmetricBlockCipher cipher, IDigest hash)
{
}
// Token: 0x06009D9B RID: 40347 RVA: 0x0024276C File Offset: 0x0024096C
[Token(Token = "0x6009D9B")]
[Address(RVA = "0x205CB60", Offset = "0x205B560", VA = "0x18205CB60")]
public OaepEncoding(IAsymmetricBlockCipher cipher, IDigest hash, byte[] encodingParams)
{
this.engine = cipher;
this.mgf1Hash = hash;
byte[] array = new byte[0];
this.defHash = array;
if (encodingParams != 0)
{
int length = encodingParams.Length;
}
throw new NullReferenceException();
}
// Token: 0x06009D9C RID: 40348 RVA: 0x002427B0 File Offset: 0x002409B0
[Token(Token = "0x6009D9C")]
[Address(RVA = "0x205C9D0", Offset = "0x205B3D0", VA = "0x18205C9D0")]
public OaepEncoding(IAsymmetricBlockCipher cipher, IDigest hash, IDigest mgf1Hash, byte[] encodingParams)
{
this.engine = cipher;
this.mgf1Hash = mgf1Hash;
byte[] array = new byte[0];
this.defHash = array;
throw new NullReferenceException();
}
// Token: 0x06009D9D RID: 40349 RVA: 0x002427E8 File Offset: 0x002409E8
[Token(Token = "0x6009D9D")]
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
public IAsymmetricBlockCipher GetUnderlyingCipher()
{
return this.engine;
}
// Token: 0x17001903 RID: 6403
// (get) Token: 0x06009D9E RID: 40350 RVA: 0x002427FC File Offset: 0x002409FC
[Token(Token = "0x17001903")]
public string AlgorithmName
{
[Token(Token = "0x6009D9E")]
[Address(RVA = "0x205CC50", Offset = "0x205B650", VA = "0x18205CC50", Slot = "4")]
get
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
return 0 + "/OAEPPadding";
}
}
// Token: 0x06009D9F RID: 40351 RVA: 0x00242824 File Offset: 0x00240A24
[Token(Token = "0x6009D9F")]
[Address(RVA = "0x205C880", Offset = "0x205B280", VA = "0x18205C880", Slot = "5")]
public void Init(bool forEncryption, ICipherParameters param)
{
while (param != 0 && param != 0 && param == 0)
{
}
SecureRandom secureRandom = new SecureRandom();
this.random = secureRandom;
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
this.forEncryption = forEncryption;
}
// Token: 0x06009DA0 RID: 40352 RVA: 0x00242864 File Offset: 0x00240A64
[Token(Token = "0x6009DA0")]
[Address(RVA = "0x205C7A0", Offset = "0x205B1A0", VA = "0x18205C7A0", Slot = "6")]
public int GetInputBlockSize()
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
if (this.forEncryption)
{
int num = this.defHash.Length;
num += num;
uint num2;
num2 -= (uint)num;
}
throw new NullReferenceException();
}
// Token: 0x06009DA1 RID: 40353 RVA: 0x0024289C File Offset: 0x00240A9C
[Token(Token = "0x6009DA1")]
[Address(RVA = "0x205C810", Offset = "0x205B210", VA = "0x18205C810", Slot = "7")]
public int GetOutputBlockSize()
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
if (!this.forEncryption)
{
int num = this.defHash.Length;
num += num;
}
throw new NullReferenceException();
}
// Token: 0x06009DA2 RID: 40354 RVA: 0x002428D0 File Offset: 0x00240AD0
[Token(Token = "0x6009DA2")]
[Address(RVA = "0x205C9A0", Offset = "0x205B3A0", VA = "0x18205C9A0", Slot = "8")]
public byte[] ProcessBlock(byte[] inBytes, int inOff, int inLen)
{
if (!this.forEncryption)
{
return this.DecodeBlock(inBytes, inOff, inLen);
}
return this.EncodeBlock(inBytes, inOff, inLen);
}
// Token: 0x06009DA3 RID: 40355 RVA: 0x002428FC File Offset: 0x00240AFC
[Token(Token = "0x6009DA3")]
[Address(RVA = "0x205C400", Offset = "0x205AE00", VA = "0x18205C400")]
private byte[] EncodeBlock(byte[] inBytes, int inOff, int inLen)
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
uint num2;
if (this.forEncryption)
{
int num = this.defHash.Length;
num += num;
num2 -= (uint)num;
}
Check.DataLength(inLen > (int)num2, "input data too long");
IAsymmetricBlockCipher asymmetricBlockCipher2 = this.engine;
byte[] array = this.defHash;
if (this.forEncryption)
{
int num3 = array.Length;
num3 += num3;
}
int num4 = array.Length;
num4 += num4;
num4++;
byte[] array2 = new byte[0];
int num5 = array2.Length;
int num6 = 0;
num5 -= inLen;
Array.Copy(inBytes, inOff, array2, num5, inLen);
int num7 = array2.Length;
num7 -= inLen;
byte[] array3 = this.defHash;
int length = array3.Length;
int num8 = 0;
Array.Copy(array3, num8, array2, length, length);
byte[] array4 = this.defHash;
SecureRandom secureRandom = this.random;
int length2 = array4.Length;
byte[] nextBytes = SecureRandom.GetNextBytes(secureRandom, length2);
byte[] array5 = this.defHash;
int length3 = array2.Length;
int num9 = 0;
int length4 = nextBytes.Length;
byte[] array6 = this.maskGeneratorFunction1(nextBytes, num9, length4, length3);
int num10 = this.defHash.Length;
if (num10 != array2.Length)
{
byte[] array7 = this.defHash;
num10++;
}
int length5 = this.defHash.Length;
int num11 = 0;
int num12 = 0;
Array.Copy(nextBytes, num12, array2, num11, length5);
int length6 = this.defHash.Length;
int num13 = array2.Length;
num13 -= length6;
byte[] array8 = this.maskGeneratorFunction1(array2, length6, num13, length6);
byte[] array9 = this.defHash;
if (num6 != array9.Length)
{
num6++;
byte[] array10 = this.defHash;
}
IAsymmetricBlockCipher asymmetricBlockCipher3 = this.engine;
int length7 = array2.Length;
throw new IndexOutOfRangeException();
}
// Token: 0x06009DA4 RID: 40356 RVA: 0x00242AD4 File Offset: 0x00240CD4
[Token(Token = "0x6009DA4")]
[Address(RVA = "0x205BFF0", Offset = "0x205A9F0", VA = "0x18205BFF0")]
private byte[] DecodeBlock(byte[] inBytes, int inOff, int inLen)
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
IAsymmetricBlockCipher asymmetricBlockCipher2 = this.engine;
byte[] array = new byte[0];
int length = this.defHash.Length;
int num = array.Length;
num -= typeof(IAsymmetricBlockCipher).TypeHandle;
int num2 = 0;
int length2 = this.defHash.Length;
int num3 = array.Length;
num3 -= length2;
byte[] array2 = this.maskGeneratorFunction1(array, length2, num3, length2);
byte[] array3 = this.defHash;
byte[] array4;
if (num2 != array3.Length)
{
num2++;
array4 = this.defHash;
}
int num4 = array.Length;
int num5 = 0;
int length3 = array4.Length;
num4 -= length3;
byte[] array5 = this.maskGeneratorFunction1(array, num5, length3, num4);
int num6 = this.defHash.Length;
int num7 = array.Length;
if (num6 != num7)
{
byte[] array6 = this.defHash;
num7 = num6;
num6++;
}
int length4 = this.defHash.Length;
if (num2 != length4)
{
num2++;
}
if (num2 != num7)
{
num2++;
bool flag = num7 == num7;
}
num7++;
int num8 = num7 - 1;
num7 -= num7;
byte[] array7 = new byte[num7];
int length5 = array7.Length;
int num9 = 0;
Array.Copy(array, num7, array7, num9, length5);
return array7;
}
// Token: 0x06009DA5 RID: 40357 RVA: 0x00242C30 File Offset: 0x00240E30
[Token(Token = "0x6009DA5")]
[Address(RVA = "0x1E44410", Offset = "0x1E42E10", VA = "0x181E44410")]
private void ItoOSP(int i, byte[] sp)
{
sp[0] = (byte)i;
sp[0] = (byte)i;
sp[0] = (byte)i;
sp[0] = (byte)i;
}
// Token: 0x06009DA6 RID: 40358 RVA: 0x00242C64 File Offset: 0x00240E64
[Token(Token = "0x6009DA6")]
[Address(RVA = "0x205CCB0", Offset = "0x205B6B0", VA = "0x18205CCB0")]
private byte[] maskGeneratorFunction1(byte[] Z, int zOff, int zLen, int length)
{
byte[] array = new byte[0];
IDigest digest = this.mgf1Hash;
byte[] array2 = new byte[array];
byte[] array3 = new byte[4];
IDigest digest2 = this.mgf1Hash;
int num = 0;
int num2 = 0;
int length2 = array2.Length;
array3[0] = (byte)num;
array3[0] = (byte)num;
array3[0] = (byte)num;
array3[0] = (byte)num;
IDigest digest3 = this.mgf1Hash;
if (num2 < num2)
{
num2 += num2;
num2++;
}
IDigest digest4 = this.mgf1Hash;
int num3 = 0;
num3 += num3;
num3++;
int num4 = 0;
IDigest digest5 = this.mgf1Hash;
int num5 = 0;
if (num5 < num4)
{
num5 += num5;
num5++;
}
int num6 = array2.Length;
int num7 = num6 * num;
int num8 = 0;
Array.Copy(array2, num8, array, num7, num6);
num++;
num8 += num8;
num6 += 4;
num6 += 19;
num8 += num8;
num6 += 4;
num6 += 19;
num8 += num8;
num6 += 5;
num6 += 19;
array3[0] = (byte)num;
array3[0] = (byte)num;
array3[0] = (byte)num;
array3[0] = (byte)num;
IDigest digest6 = this.mgf1Hash;
IDigest digest7 = this.mgf1Hash;
int length3 = array3.Length;
IDigest digest8 = this.mgf1Hash;
int length4 = array2.Length;
int num9 = array.Length;
int num10 = 0;
int num11 = length4 * num;
num9 -= num11;
Array.Copy(array2, num10, array, num11, num9);
return array;
}
// Token: 0x040067C8 RID: 26568
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40067C8")]
private byte[] defHash;
// Token: 0x040067C9 RID: 26569
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40067C9")]
private IDigest mgf1Hash;
// Token: 0x040067CA RID: 26570
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40067CA")]
private IAsymmetricBlockCipher engine;
// Token: 0x040067CB RID: 26571
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40067CB")]
private SecureRandom random;
// Token: 0x040067CC RID: 26572
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40067CC")]
private bool forEncryption;
}
}
@@ -0,0 +1,357 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Encodings
{
// Token: 0x020016E1 RID: 5857
[Token(Token = "0x20016E1")]
[StructLayout(3)]
public class Pkcs1Encoding : IAsymmetricBlockCipher
{
// Token: 0x17001904 RID: 6404
// (get) Token: 0x06009DA7 RID: 40359 RVA: 0x00242E04 File Offset: 0x00241004
// (set) Token: 0x06009DA8 RID: 40360 RVA: 0x00242E2C File Offset: 0x0024102C
[Token(Token = "0x17001904")]
public static bool StrictLengthEnabled
{
[Token(Token = "0x6009DA7")]
[Address(RVA = "0x205E250", Offset = "0x205CC50", VA = "0x18205E250")]
get
{
bool[] array = Pkcs1Encoding.strictLengthEnabled;
return "{il2cpp array field local0->}" != (ulong)0L;
}
[Token(Token = "0x6009DA8")]
[Address(RVA = "0x205E2D0", Offset = "0x205CCD0", VA = "0x18205E2D0")]
set
{
Pkcs1Encoding.strictLengthEnabled[0] = value;
}
}
// Token: 0x06009DA9 RID: 40361 RVA: 0x00242E4C File Offset: 0x0024104C
[Token(Token = "0x6009DA9")]
[Address(RVA = "0x205DF70", Offset = "0x205C970", VA = "0x18205DF70")]
static Pkcs1Encoding()
{
string environmentVariable = Platform.GetEnvironmentVariable("BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs1.Strict");
bool[] array = new bool[1];
if (environmentVariable == 0)
{
}
bool flag = environmentVariable.Equals("true");
array[0] = flag;
Pkcs1Encoding.strictLengthEnabled = array;
}
// Token: 0x06009DAA RID: 40362 RVA: 0x00242E90 File Offset: 0x00241090
[Token(Token = "0x6009DAA")]
[Address(RVA = "0x205E170", Offset = "0x205CB70", VA = "0x18205E170")]
public Pkcs1Encoding(IAsymmetricBlockCipher cipher)
{
this.engine = cipher;
bool flag = Pkcs1Encoding.StrictLengthEnabled;
this.useStrictLength = flag;
}
// Token: 0x06009DAB RID: 40363 RVA: 0x00242ECC File Offset: 0x002410CC
[Token(Token = "0x6009DAB")]
[Address(RVA = "0x205E040", Offset = "0x205CA40", VA = "0x18205E040")]
public Pkcs1Encoding(IAsymmetricBlockCipher cipher, int pLen)
{
this.engine = cipher;
bool flag = Pkcs1Encoding.StrictLengthEnabled;
this.pLen = pLen;
this.useStrictLength = flag;
}
// Token: 0x06009DAC RID: 40364 RVA: 0x00242F0C File Offset: 0x0024110C
[Token(Token = "0x6009DAC")]
[Address(RVA = "0x205E0D0", Offset = "0x205CAD0", VA = "0x18205E0D0")]
public Pkcs1Encoding(IAsymmetricBlockCipher cipher, byte[] fallback)
{
this.engine = cipher;
bool flag = Pkcs1Encoding.StrictLengthEnabled;
this.useStrictLength = flag;
this.fallback = fallback;
int length = fallback.Length;
this.pLen = length;
}
// Token: 0x06009DAD RID: 40365 RVA: 0x00242F60 File Offset: 0x00241160
[Token(Token = "0x6009DAD")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
public IAsymmetricBlockCipher GetUnderlyingCipher()
{
return this.engine;
}
// Token: 0x17001905 RID: 6405
// (get) Token: 0x06009DAE RID: 40366 RVA: 0x00242F74 File Offset: 0x00241174
[Token(Token = "0x17001905")]
public string AlgorithmName
{
[Token(Token = "0x6009DAE")]
[Address(RVA = "0x205E1F0", Offset = "0x205CBF0", VA = "0x18205E1F0", Slot = "4")]
get
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
return 0 + "/PKCS1Padding";
}
}
// Token: 0x06009DAF RID: 40367 RVA: 0x00242F9C File Offset: 0x0024119C
[Token(Token = "0x6009DAF")]
[Address(RVA = "0x205DCD0", Offset = "0x205C6D0", VA = "0x18205DCD0", Slot = "5")]
public void Init(bool forEncryption, ICipherParameters parameters)
{
/*
An exception occurred when decompiling this method (06009DAF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Encodings.Pkcs1Encoding::Init(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_84:
stloc:ArgumentException(var_8_8E, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("encoder requires 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: 0x06009DB0 RID: 40368 RVA: 0x00243038 File Offset: 0x00241238
[Token(Token = "0x6009DB0")]
[Address(RVA = "0x205DC10", Offset = "0x205C610", VA = "0x18205DC10", Slot = "6")]
public int GetInputBlockSize()
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
if (this.forEncryption)
{
}
throw new NullReferenceException();
}
// Token: 0x06009DB1 RID: 40369 RVA: 0x0024305C File Offset: 0x0024125C
[Token(Token = "0x6009DB1")]
[Address(RVA = "0x205DC70", Offset = "0x205C670", VA = "0x18205DC70", Slot = "7")]
public int GetOutputBlockSize()
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
if (!this.forEncryption)
{
}
throw new NullReferenceException();
}
// Token: 0x06009DB2 RID: 40370 RVA: 0x00243080 File Offset: 0x00241280
[Token(Token = "0x6009DB2")]
[Address(RVA = "0x205DF40", Offset = "0x205C940", VA = "0x18205DF40", Slot = "8")]
public byte[] ProcessBlock(byte[] input, int inOff, int length)
{
if (this.forEncryption)
{
return this.EncodeBlock(input, inOff, length);
}
return this.DecodeBlock(input, inOff, length);
}
// Token: 0x06009DB3 RID: 40371 RVA: 0x002430AC File Offset: 0x002412AC
[Token(Token = "0x6009DB3")]
[Address(RVA = "0x205D890", Offset = "0x205C290", VA = "0x18205D890")]
private byte[] EncodeBlock(byte[] input, int inOff, int inLen)
{
IAsymmetricBlockCipher asymmetricBlockCipher = this.engine;
if (this.forEncryption)
{
}
IAsymmetricBlockCipher asymmetricBlockCipher2 = this.engine;
byte[] array = new byte[0];
if (!this.forPrivateKey)
{
double num = this.random.NextDouble();
array[0] = (byte)((ulong)2L);
int num2 = array.Length;
num2 -= inLen;
uint num3;
if (num3 == (uint)num2)
{
goto IL_83;
}
int length = array.Length;
SecureRandom secureRandom = this.random;
num3 += (uint)1;
}
int num4 = array.Length;
num4 -= inLen;
uint num5;
if (num5 != (uint)num4)
{
num5 += (uint)1;
}
IL_83:
num4 -= inLen;
int num6 = num4 - 1;
int num7 = array.Length;
num7 -= inLen;
num4 = inOff;
Array.Copy(input, num4, array, num7, inLen);
IAsymmetricBlockCipher asymmetricBlockCipher3 = this.engine;
int length2 = array.Length;
throw new NullReferenceException();
}
// Token: 0x06009DB4 RID: 40372 RVA: 0x00243180 File Offset: 0x00241380
[Token(Token = "0x6009DB4")]
[Address(RVA = "0x205D180", Offset = "0x205BB80", VA = "0x18205D180")]
private static int CheckPkcs1Encoding(byte[] encoded, int pLen)
{
int num = encoded.Length;
num -= pLen;
uint num2;
if (num - 1 > (int)num2)
{
num2 += (uint)1;
}
int num3 = num - 1;
throw new NullReferenceException();
}
// Token: 0x06009DB5 RID: 40373 RVA: 0x002431AC File Offset: 0x002413AC
[Token(Token = "0x6009DB5")]
[Address(RVA = "0x205D270", Offset = "0x205BC70", VA = "0x18205D270")]
private byte[] DecodeBlockOrRandom(byte[] input, int inOff, int inLen)
{
/*
An exception occurred when decompiling this method (06009DB5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Encodings.Pkcs1Encoding::DecodeBlockOrRandom(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_C7:
stloc:InvalidCipherTextException(var_18_D1, newobj:InvalidCipherTextException(InvalidCipherTextException::.ctor, ldstr:string("sorry, this method is only for decryption, not for signing")))
}
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: 0x06009DB6 RID: 40374 RVA: 0x0024328C File Offset: 0x0024148C
[Token(Token = "0x6009DB6")]
[Address(RVA = "0x205D580", Offset = "0x205BF80", VA = "0x18205D580")]
private byte[] DecodeBlock(byte[] input, int inOff, int inLen)
{
/*
An exception occurred when decompiling this method (06009DB6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Encodings.Pkcs1Encoding::DecodeBlock(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_C5:
stloc:InvalidCipherTextException(var_20_CF, newobj:InvalidCipherTextException(InvalidCipherTextException::.ctor, ldstr:string("block incorrect size")))
}
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: 0x06009DB7 RID: 40375 RVA: 0x0024336C File Offset: 0x0024156C
[Token(Token = "0x6009DB7")]
[Address(RVA = "0x205DB60", Offset = "0x205C560", VA = "0x18205DB60")]
private int FindStart(byte type, byte[] block)
{
int length = block.Length;
if ((uint)1 != (uint)length)
{
}
return -1;
}
// Token: 0x040067CD RID: 26573
[Token(Token = "0x40067CD")]
public const string StrictLengthEnabledProperty = "BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs1.Strict";
// Token: 0x040067CE RID: 26574
[Token(Token = "0x40067CE")]
private const int HeaderLength = 10;
// Token: 0x040067CF RID: 26575
[Token(Token = "0x40067CF")]
private static readonly bool[] strictLengthEnabled;
// Token: 0x040067D0 RID: 26576
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40067D0")]
private SecureRandom random;
// Token: 0x040067D1 RID: 26577
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40067D1")]
private IAsymmetricBlockCipher engine;
// Token: 0x040067D2 RID: 26578
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40067D2")]
private bool forEncryption;
// Token: 0x040067D3 RID: 26579
[global::Cpp2IlInjected.FieldOffset(Offset = "0x21")]
[Token(Token = "0x40067D3")]
private bool forPrivateKey;
// Token: 0x040067D4 RID: 26580
[global::Cpp2IlInjected.FieldOffset(Offset = "0x22")]
[Token(Token = "0x40067D4")]
private bool useStrictLength;
// Token: 0x040067D5 RID: 26581
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
[Token(Token = "0x40067D5")]
private int pLen = (int)((ulong)4294967295L);
// Token: 0x040067D6 RID: 26582
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40067D6")]
private byte[] fallback;
// Token: 0x040067D7 RID: 26583
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40067D7")]
private byte[] blockBuffer;
}
}