using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto { // Token: 0x02001AEE RID: 6894 [Token(Token = "0x2001AEE")] public class StreamBlockCipher : IStreamCipher { // Token: 0x0600AB2A RID: 43818 RVA: 0x002551AC File Offset: 0x002533AC [Token(Token = "0x600AB2A")] [Address(RVA = "0x18A4AC0", Offset = "0x18A38C0", VA = "0x1818A4AC0")] public StreamBlockCipher(IBlockCipher cipher) { /* An exception occurred when decompiling this method (0600AB2A) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.StreamBlockCipher::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBlockCipher) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_31: stloc:ArgumentException(var_2_40, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("block cipher block size != 1."), ldstr:string("cipher"))) } 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: 0x0600AB2B RID: 43819 RVA: 0x002551FC File Offset: 0x002533FC [Token(Token = "0x600AB2B")] [Address(RVA = "0x18A47D0", Offset = "0x18A35D0", VA = "0x1818A47D0", Slot = "5")] public void Init(bool forEncryption, ICipherParameters parameters) { IBlockCipher blockCipher = this.cipher; } // Token: 0x17001B30 RID: 6960 // (get) Token: 0x0600AB2C RID: 43820 RVA: 0x00255218 File Offset: 0x00253418 [Token(Token = "0x17001B30")] public string AlgorithmName { [Token(Token = "0x600AB2C")] [Address(RVA = "0x18A4BA0", Offset = "0x18A39A0", VA = "0x1818A4BA0", Slot = "4")] get { IBlockCipher blockCipher = this.cipher; throw new NullReferenceException(); } } // Token: 0x0600AB2D RID: 43821 RVA: 0x00255234 File Offset: 0x00253434 [Token(Token = "0x600AB2D")] [Address(RVA = "0x18A4A10", Offset = "0x18A3810", VA = "0x1818A4A10", Slot = "6")] public byte ReturnByte(byte input) { this.oneByte[0] = input; IBlockCipher blockCipher = this.cipher; byte[] array = this.oneByte; return this.oneByte[0]; } // Token: 0x0600AB2E RID: 43822 RVA: 0x00255270 File Offset: 0x00253470 [Token(Token = "0x600AB2E")] [Address(RVA = "0x18A4840", Offset = "0x18A3640", VA = "0x1818A4840", Slot = "7")] public void ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff) { if (length != 0) { int num = 0; IBlockCipher blockCipher = this.cipher; if (num < inOff) { num += num; num++; } while (inOff != length) { } } } // Token: 0x0600AB2F RID: 43823 RVA: 0x002552A0 File Offset: 0x002534A0 [Token(Token = "0x600AB2F")] [Address(RVA = "0x18A49C0", Offset = "0x18A37C0", VA = "0x1818A49C0", Slot = "8")] public void Reset() { IBlockCipher blockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x04006CAC RID: 27820 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4006CAC")] private readonly IBlockCipher cipher; // Token: 0x04006CAD RID: 27821 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4006CAD")] private readonly byte[] oneByte; } }