using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes { // Token: 0x02001D1F RID: 7455 [Token(Token = "0x2001D1F")] public class OpenPgpCfbBlockCipher : IBlockCipher { // Token: 0x0600B8A2 RID: 47266 RVA: 0x002804E8 File Offset: 0x0027E6E8 [Token(Token = "0x600B8A2")] [Address(RVA = "0x22E2390", Offset = "0x22E1390", VA = "0x1822E2390")] 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: 0x0600B8A3 RID: 47267 RVA: 0x00280544 File Offset: 0x0027E744 [Token(Token = "0x600B8A3")] [Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")] public IBlockCipher GetUnderlyingCipher() { return this.cipher; } // Token: 0x17001D22 RID: 7458 // (get) Token: 0x0600B8A4 RID: 47268 RVA: 0x00280558 File Offset: 0x0027E758 [Token(Token = "0x17001D22")] public string AlgorithmName { [Token(Token = "0x600B8A4")] [Address(RVA = "0x22E2430", Offset = "0x22E1430", VA = "0x1822E2430", Slot = "4")] get { IBlockCipher blockCipher = this.cipher; return 0 + "/OpenPGPCFB"; } } // Token: 0x17001D23 RID: 7459 // (get) Token: 0x0600B8A5 RID: 47269 RVA: 0x00280580 File Offset: 0x0027E780 [Token(Token = "0x17001D23")] public bool IsPartialBlockOkay { [Token(Token = "0x600B8A5")] [Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "7")] get { return true; } } // Token: 0x0600B8A6 RID: 47270 RVA: 0x00280590 File Offset: 0x0027E790 [Token(Token = "0x600B8A6")] [Address(RVA = "0x22E2060", Offset = "0x22E1060", VA = "0x1822E2060", Slot = "6")] public int GetBlockSize() { IBlockCipher blockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x0600B8A7 RID: 47271 RVA: 0x002805AC File Offset: 0x0027E7AC [Token(Token = "0x600B8A7")] [Address(RVA = "0x22E22E0", Offset = "0x22E12E0", VA = "0x1822E22E0", 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: 0x0600B8A8 RID: 47272 RVA: 0x002805C8 File Offset: 0x0027E7C8 [Token(Token = "0x600B8A8")] [Address(RVA = "0x22E2310", Offset = "0x22E1310", VA = "0x1822E2310", 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: 0x0600B8A9 RID: 47273 RVA: 0x00280614 File Offset: 0x0027E814 [Token(Token = "0x600B8A9")] [Address(RVA = "0x22E20B0", Offset = "0x22E10B0", VA = "0x1822E20B0", 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: 0x0600B8AA RID: 47274 RVA: 0x002806B4 File Offset: 0x0027E8B4 [Token(Token = "0x600B8AA")] [Address(RVA = "0x22E2020", Offset = "0x22E1020", VA = "0x1822E2020")] private byte EncryptByte(byte data, int blockOff) { byte[] fre = this.FRE; byte b; return b; } // Token: 0x0600B8AB RID: 47275 RVA: 0x002806D0 File Offset: 0x0027E8D0 [Token(Token = "0x600B8AB")] [Address(RVA = "0x22E1970", Offset = "0x22E0970", VA = "0x1822E1970")] 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: 0x0600B8AC RID: 47276 RVA: 0x00280864 File Offset: 0x0027EA64 [Token(Token = "0x600B8AC")] [Address(RVA = "0x22E1240", Offset = "0x22E0240", VA = "0x1822E1240")] 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: 0x04007487 RID: 29831 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007487")] private byte[] IV; // Token: 0x04007488 RID: 29832 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007488")] private byte[] FR; // Token: 0x04007489 RID: 29833 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007489")] private byte[] FRE; // Token: 0x0400748A RID: 29834 [FieldOffset(Offset = "0x28")] [Token(Token = "0x400748A")] private readonly IBlockCipher cipher; // Token: 0x0400748B RID: 29835 [FieldOffset(Offset = "0x30")] [Token(Token = "0x400748B")] private readonly int blockSize; // Token: 0x0400748C RID: 29836 [FieldOffset(Offset = "0x34")] [Token(Token = "0x400748C")] private int count; // Token: 0x0400748D RID: 29837 [FieldOffset(Offset = "0x38")] [Token(Token = "0x400748D")] private bool forEncryption; } }