using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes { // Token: 0x02001D14 RID: 7444 [Token(Token = "0x2001D14")] public class CfbBlockCipher : IBlockCipher { // Token: 0x0600B809 RID: 47113 RVA: 0x0027CCA8 File Offset: 0x0027AEA8 [Token(Token = "0x600B809")] [Address(RVA = "0x25B5220", Offset = "0x25B4220", VA = "0x1825B5220")] public CfbBlockCipher(IBlockCipher cipher, int bitBlockSize) { this.cipher = cipher; this.blockSize = bitBlockSize; byte[] array = new byte[bitBlockSize]; this.IV = array; byte[] array2 = new byte[array]; this.cfbV = array2; byte[] array3 = new byte[array2]; this.cfbOutV = array3; } // Token: 0x0600B80A RID: 47114 RVA: 0x0027CCFC File Offset: 0x0027AEFC [Token(Token = "0x600B80A")] [Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")] public IBlockCipher GetUnderlyingCipher() { return this.cipher; } // Token: 0x0600B80B RID: 47115 RVA: 0x0027CD10 File Offset: 0x0027AF10 [Token(Token = "0x600B80B")] [Address(RVA = "0x25B4FC0", Offset = "0x25B3FC0", VA = "0x1825B4FC0", Slot = "5")] public void Init(bool forEncryption, ICipherParameters parameters) { do { this.encrypting = forEncryption; if (parameters == 0 || parameters == 0) { goto IL_5B; } } while (parameters == 0); byte[] iv = this.IV; byte[] array; int length = array.Length; int num = 0; int num2 = iv.Length; num2 -= length; Array.Copy(array, num, iv, num2, length); byte[] iv2 = this.IV; int num3 = 0; Array.Clear(iv2, num3, num2); IL_5B: byte[] iv3 = this.IV; int length2 = iv3.Length; int num4 = 0; byte[] array2 = this.cfbV; int num5 = 0; Array.Copy(iv3, num5, array2, num4, length2); IBlockCipher blockCipher = this.cipher; if (parameters != 0) { IBlockCipher blockCipher2 = this.cipher; } } // Token: 0x17001D15 RID: 7445 // (get) Token: 0x0600B80C RID: 47116 RVA: 0x0027CDC0 File Offset: 0x0027AFC0 [Token(Token = "0x17001D15")] public string AlgorithmName { [Token(Token = "0x600B80C")] [Address(RVA = "0x25B5300", Offset = "0x25B4300", VA = "0x1825B5300", Slot = "4")] get { IBlockCipher blockCipher = this.cipher; int num = this.blockSize; string text; return text; } } // Token: 0x17001D16 RID: 7446 // (get) Token: 0x0600B80D RID: 47117 RVA: 0x0027CDE4 File Offset: 0x0027AFE4 [Token(Token = "0x17001D16")] public bool IsPartialBlockOkay { [Token(Token = "0x600B80D")] [Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "7")] get { return true; } } // Token: 0x0600B80E RID: 47118 RVA: 0x0027CDF4 File Offset: 0x0027AFF4 [Token(Token = "0x600B80E")] [Address(RVA = "0x4B5010", Offset = "0x4B4010", VA = "0x1804B5010", Slot = "6")] public int GetBlockSize() { return this.blockSize; } // Token: 0x0600B80F RID: 47119 RVA: 0x0027CE08 File Offset: 0x0027B008 [Token(Token = "0x600B80F")] [Address(RVA = "0x25B5180", Offset = "0x25B4180", VA = "0x1825B5180", Slot = "8")] public int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff) { if (this.encrypting) { int num; return num; } int num2; return num2; } // Token: 0x0600B810 RID: 47120 RVA: 0x0027CE24 File Offset: 0x0027B024 [Token(Token = "0x600B810")] [Address(RVA = "0x25B4DA0", Offset = "0x25B3DA0", VA = "0x1825B4DA0")] public int EncryptBlock(byte[] input, int inOff, byte[] outBytes, int outOff) { IBlockCipher blockCipher = this.cipher; byte[] array = this.cfbOutV; byte[] array2 = this.cfbV; int num = this.blockSize; if (num > 0) { byte[] array3 = this.cfbOutV; int num2 = this.blockSize; } byte[] array4 = this.cfbV; int num3 = array4.Length; int num4 = 0; num3 -= num; Array.Copy(array4, num, array4, num4, num3); byte[] array5 = this.cfbV; int num5 = this.blockSize; int num6 = array5.Length; num6 -= num5; return this.blockSize; } // Token: 0x0600B811 RID: 47121 RVA: 0x0027CEBC File Offset: 0x0027B0BC [Token(Token = "0x600B811")] [Address(RVA = "0x25B4B90", Offset = "0x25B3B90", VA = "0x1825B4B90")] public int DecryptBlock(byte[] input, int inOff, byte[] outBytes, int outOff) { IBlockCipher blockCipher = this.cipher; byte[] array = this.cfbOutV; byte[] array2 = this.cfbV; int num = array2.Length; int num2 = 0; int num3 = this.blockSize; num -= num3; Array.Copy(array2, num3, array2, num2, num); byte[] array3 = this.cfbV; int num4 = this.blockSize; int num5 = array3.Length; num5 -= num4; Array.Copy(input, inOff, array3, num5, num4); int num6 = this.blockSize; if (num6 > 0) { byte[] array4 = this.cfbOutV; num6 = num4; int num7 = this.blockSize; } return num6; } // Token: 0x0600B812 RID: 47122 RVA: 0x0027CF68 File Offset: 0x0027B168 [Token(Token = "0x600B812")] [Address(RVA = "0x25B51B0", Offset = "0x25B41B0", VA = "0x1825B51B0", Slot = "9")] public void Reset() { byte[] iv = this.IV; int length = iv.Length; int num = 0; byte[] array = this.cfbV; int num2 = 0; Array.Copy(iv, num2, array, num, length); IBlockCipher blockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x04007417 RID: 29719 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007417")] private byte[] IV; // Token: 0x04007418 RID: 29720 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007418")] private byte[] cfbV; // Token: 0x04007419 RID: 29721 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007419")] private byte[] cfbOutV; // Token: 0x0400741A RID: 29722 [FieldOffset(Offset = "0x28")] [Token(Token = "0x400741A")] private bool encrypting; // Token: 0x0400741B RID: 29723 [FieldOffset(Offset = "0x2C")] [Token(Token = "0x400741B")] private readonly int blockSize; // Token: 0x0400741C RID: 29724 [FieldOffset(Offset = "0x30")] [Token(Token = "0x400741C")] private readonly IBlockCipher cipher; } }