using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes { // Token: 0x02001C34 RID: 7220 [Token(Token = "0x2001C34")] public class CfbBlockCipher : IBlockCipher { // Token: 0x0600B43B RID: 46139 RVA: 0x00273AB0 File Offset: 0x00271CB0 [Token(Token = "0x600B43B")] [Address(RVA = "0x1C1E280", Offset = "0x1C1D080", VA = "0x181C1E280")] 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: 0x0600B43C RID: 46140 RVA: 0x00273B04 File Offset: 0x00271D04 [Token(Token = "0x600B43C")] [Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")] public IBlockCipher GetUnderlyingCipher() { return this.cipher; } // Token: 0x0600B43D RID: 46141 RVA: 0x00273B18 File Offset: 0x00271D18 [Token(Token = "0x600B43D")] [Address(RVA = "0x1C1E020", Offset = "0x1C1CE20", VA = "0x181C1E020", 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: 0x17001C78 RID: 7288 // (get) Token: 0x0600B43E RID: 46142 RVA: 0x00273BC8 File Offset: 0x00271DC8 [Token(Token = "0x17001C78")] public string AlgorithmName { [Token(Token = "0x600B43E")] [Address(RVA = "0x1C1E360", Offset = "0x1C1D160", VA = "0x181C1E360", Slot = "4")] get { IBlockCipher blockCipher = this.cipher; int num = this.blockSize; string text; return text; } } // Token: 0x17001C79 RID: 7289 // (get) Token: 0x0600B43F RID: 46143 RVA: 0x00273BEC File Offset: 0x00271DEC [Token(Token = "0x17001C79")] public bool IsPartialBlockOkay { [Token(Token = "0x600B43F")] [Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")] get { return true; } } // Token: 0x0600B440 RID: 46144 RVA: 0x00273BFC File Offset: 0x00271DFC [Token(Token = "0x600B440")] [Address(RVA = "0x42EED0", Offset = "0x42DCD0", VA = "0x18042EED0", Slot = "6")] public int GetBlockSize() { return this.blockSize; } // Token: 0x0600B441 RID: 46145 RVA: 0x00273C10 File Offset: 0x00271E10 [Token(Token = "0x600B441")] [Address(RVA = "0x1C1E1E0", Offset = "0x1C1CFE0", VA = "0x181C1E1E0", 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: 0x0600B442 RID: 46146 RVA: 0x00273C2C File Offset: 0x00271E2C [Token(Token = "0x600B442")] [Address(RVA = "0x1C1DE00", Offset = "0x1C1CC00", VA = "0x181C1DE00")] 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: 0x0600B443 RID: 46147 RVA: 0x00273CC4 File Offset: 0x00271EC4 [Token(Token = "0x600B443")] [Address(RVA = "0x1C1DBF0", Offset = "0x1C1C9F0", VA = "0x181C1DBF0")] 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: 0x0600B444 RID: 46148 RVA: 0x00273D70 File Offset: 0x00271F70 [Token(Token = "0x600B444")] [Address(RVA = "0x1C1E210", Offset = "0x1C1D010", VA = "0x181C1E210", 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: 0x0400725E RID: 29278 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400725E")] private byte[] IV; // Token: 0x0400725F RID: 29279 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400725F")] private byte[] cfbV; // Token: 0x04007260 RID: 29280 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007260")] private byte[] cfbOutV; // Token: 0x04007261 RID: 29281 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4007261")] private bool encrypting; // Token: 0x04007262 RID: 29282 [FieldOffset(Offset = "0x2C")] [Token(Token = "0x4007262")] private readonly int blockSize; // Token: 0x04007263 RID: 29283 [FieldOffset(Offset = "0x30")] [Token(Token = "0x4007263")] private readonly IBlockCipher cipher; } }