using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes { // Token: 0x02001C3E RID: 7230 [Token(Token = "0x2001C3E")] public class OfbBlockCipher : IBlockCipher { // Token: 0x0600B4CC RID: 46284 RVA: 0x002770F8 File Offset: 0x002752F8 [Token(Token = "0x600B4CC")] [Address(RVA = "0x180EBE0", Offset = "0x180D9E0", VA = "0x18180EBE0")] public OfbBlockCipher(IBlockCipher cipher, int blockSize) { this.cipher = cipher; this.blockSize = blockSize; byte[] array = new byte[blockSize]; this.IV = array; byte[] array2 = new byte[array]; this.ofbV = array2; byte[] array3 = new byte[array2]; this.ofbOutV = array3; } // Token: 0x0600B4CD RID: 46285 RVA: 0x0027714C File Offset: 0x0027534C [Token(Token = "0x600B4CD")] [Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")] public IBlockCipher GetUnderlyingCipher() { return this.cipher; } // Token: 0x0600B4CE RID: 46286 RVA: 0x00277160 File Offset: 0x00275360 [Token(Token = "0x600B4CE")] [Address(RVA = "0x180E740", Offset = "0x180D540", VA = "0x18180E740", Slot = "5")] public void Init(bool forEncryption, ICipherParameters parameters) { while (parameters != 0 && parameters != 0) { if (parameters != 0) { byte[] iv = this.IV; byte[] array; int length = array.Length; int length2 = iv.Length; int num = 0; int num2 = 0; Array.Copy(array, num, iv, num2, length2); break; } } byte[] iv2 = this.IV; int length3 = iv2.Length; int num3 = 0; byte[] array2 = this.ofbV; int num4 = 0; Array.Copy(iv2, num4, array2, num3, length3); IBlockCipher blockCipher = this.cipher; if (parameters != 0) { IBlockCipher blockCipher2 = this.cipher; } } // Token: 0x17001C83 RID: 7299 // (get) Token: 0x0600B4CF RID: 46287 RVA: 0x0027721C File Offset: 0x0027541C [Token(Token = "0x17001C83")] public string AlgorithmName { [Token(Token = "0x600B4CF")] [Address(RVA = "0x180ECC0", Offset = "0x180DAC0", VA = "0x18180ECC0", Slot = "4")] get { IBlockCipher blockCipher = this.cipher; int num = this.blockSize; string text; return text; } } // Token: 0x17001C84 RID: 7300 // (get) Token: 0x0600B4D0 RID: 46288 RVA: 0x00277240 File Offset: 0x00275440 [Token(Token = "0x17001C84")] public bool IsPartialBlockOkay { [Token(Token = "0x600B4D0")] [Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")] get { return true; } } // Token: 0x0600B4D1 RID: 46289 RVA: 0x00277250 File Offset: 0x00275450 [Token(Token = "0x600B4D1")] [Address(RVA = "0x42EE50", Offset = "0x42DC50", VA = "0x18042EE50", Slot = "6")] public int GetBlockSize() { return this.blockSize; } // Token: 0x0600B4D2 RID: 46290 RVA: 0x00277264 File Offset: 0x00275464 [Token(Token = "0x600B4D2")] [Address(RVA = "0x180E960", Offset = "0x180D760", VA = "0x18180E960", Slot = "8")] public int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff) { IBlockCipher blockCipher = this.cipher; byte[] array = this.ofbOutV; int num = this.blockSize; if (num > 0) { byte[] array2 = this.ofbOutV; int num2 = this.blockSize; } byte[] array3 = this.ofbV; int num3 = array3.Length; int num4 = 0; num3 -= num; Array.Copy(array3, num, array3, num4, num3); byte[] array4 = this.ofbV; int num5 = this.blockSize; int num6 = 0; int num7 = array4.Length; byte[] array5 = this.ofbOutV; num7 -= num5; Array.Copy(array5, num6, array4, num7, num5); return this.blockSize; } // Token: 0x0600B4D3 RID: 46291 RVA: 0x0027730C File Offset: 0x0027550C [Token(Token = "0x600B4D3")] [Address(RVA = "0x180EB70", Offset = "0x180D970", VA = "0x18180EB70", Slot = "9")] public void Reset() { byte[] iv = this.IV; int length = iv.Length; int num = 0; byte[] array = this.ofbV; int num2 = 0; Array.Copy(iv, num2, array, num, length); IBlockCipher blockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x040072C9 RID: 29385 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40072C9")] private byte[] IV; // Token: 0x040072CA RID: 29386 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40072CA")] private byte[] ofbV; // Token: 0x040072CB RID: 29387 [FieldOffset(Offset = "0x20")] [Token(Token = "0x40072CB")] private byte[] ofbOutV; // Token: 0x040072CC RID: 29388 [FieldOffset(Offset = "0x28")] [Token(Token = "0x40072CC")] private readonly int blockSize; // Token: 0x040072CD RID: 29389 [FieldOffset(Offset = "0x30")] [Token(Token = "0x40072CD")] private readonly IBlockCipher cipher; } }