using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto { // Token: 0x02001BA7 RID: 7079 [Token(Token = "0x2001BA7")] public abstract class BufferedCipherBase : IBufferedCipher { // Token: 0x17001BB2 RID: 7090 // (get) Token: 0x0600AE38 RID: 44600 [Token(Token = "0x17001BB2")] public abstract string AlgorithmName { [Token(Token = "0x600AE38")] [Address(Slot = "22")] get; } // Token: 0x0600AE39 RID: 44601 [Token(Token = "0x600AE39")] [Address(Slot = "23")] public abstract void Init(bool forEncryption, ICipherParameters parameters); // Token: 0x0600AE3A RID: 44602 [Token(Token = "0x600AE3A")] [Address(Slot = "24")] public abstract int GetBlockSize(); // Token: 0x0600AE3B RID: 44603 [Token(Token = "0x600AE3B")] [Address(Slot = "25")] public abstract int GetOutputSize(int inputLen); // Token: 0x0600AE3C RID: 44604 [Token(Token = "0x600AE3C")] [Address(Slot = "26")] public abstract int GetUpdateOutputSize(int inputLen); // Token: 0x0600AE3D RID: 44605 [Token(Token = "0x600AE3D")] [Address(Slot = "27")] public abstract byte[] ProcessByte(byte input); // Token: 0x0600AE3E RID: 44606 RVA: 0x0025D9C4 File Offset: 0x0025BBC4 [Token(Token = "0x600AE3E")] [Address(RVA = "0x259BE60", Offset = "0x259AE60", VA = "0x18259BE60", Slot = "28")] public virtual int ProcessByte(byte input, byte[] output, int outOff) { int updateOutputSize = this.GetUpdateOutputSize((int)input); if (updateOutputSize != 0) { } return updateOutputSize; } // Token: 0x0600AE3F RID: 44607 RVA: 0x0025D9EC File Offset: 0x0025BBEC [Token(Token = "0x600AE3F")] [Address(RVA = "0x259BF30", Offset = "0x259AF30", VA = "0x18259BF30", Slot = "29")] public virtual byte[] ProcessBytes(byte[] input) { return this.ProcessBytes(input); } // Token: 0x0600AE40 RID: 44608 [Token(Token = "0x600AE40")] [Address(Slot = "30")] public abstract byte[] ProcessBytes(byte[] input, int inOff, int length); // Token: 0x0600AE41 RID: 44609 RVA: 0x0025DA08 File Offset: 0x0025BC08 [Token(Token = "0x600AE41")] [Address(RVA = "0x259BF70", Offset = "0x259AF70", VA = "0x18259BF70", Slot = "31")] public virtual int ProcessBytes(byte[] input, byte[] output, int outOff) { int num; return num; } // Token: 0x0600AE42 RID: 44610 RVA: 0x0025DA1C File Offset: 0x0025BC1C [Token(Token = "0x600AE42")] [Address(RVA = "0x259BFB0", Offset = "0x259AFB0", VA = "0x18259BFB0", Slot = "32")] public virtual int ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff) { /* An exception occurred when decompiling this method (0600AE42) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedCipherBase::ProcessBytes(System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_13: stloc:DataLengthException(var_2_1D, newobj:DataLengthException(DataLengthException::.ctor, ldstr:string("output buffer too short"))) } 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: 0x0600AE43 RID: 44611 [Token(Token = "0x600AE43")] [Address(Slot = "33")] public abstract byte[] DoFinal(); // Token: 0x0600AE44 RID: 44612 RVA: 0x0025DA48 File Offset: 0x0025BC48 [Token(Token = "0x600AE44")] [Address(RVA = "0x259BCA0", Offset = "0x259ACA0", VA = "0x18259BCA0", Slot = "34")] public virtual byte[] DoFinal(byte[] input) { return this.DoFinal(input); } // Token: 0x0600AE45 RID: 44613 [Token(Token = "0x600AE45")] [Address(Slot = "35")] public abstract byte[] DoFinal(byte[] input, int inOff, int length); // Token: 0x0600AE46 RID: 44614 RVA: 0x0025DA64 File Offset: 0x0025BC64 [Token(Token = "0x600AE46")] [Address(RVA = "0x259BD60", Offset = "0x259AD60", VA = "0x18259BD60", Slot = "36")] public virtual int DoFinal(byte[] output, int outOff) { int num; return num; } // Token: 0x0600AE47 RID: 44615 RVA: 0x0025DA78 File Offset: 0x0025BC78 [Token(Token = "0x600AE47")] [Address(RVA = "0x259BE20", Offset = "0x259AE20", VA = "0x18259BE20", Slot = "37")] public virtual int DoFinal(byte[] input, byte[] output, int outOff) { int num; return num; } // Token: 0x0600AE48 RID: 44616 RVA: 0x0025DA8C File Offset: 0x0025BC8C [Token(Token = "0x600AE48")] [Address(RVA = "0x259BCE0", Offset = "0x259ACE0", VA = "0x18259BCE0", Slot = "38")] public virtual int DoFinal(byte[] input, int inOff, int length, byte[] output, int outOff) { /* An exception occurred when decompiling this method (0600AE48) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedCipherBase::DoFinal(System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:uint8[](var_1, add:uint8[](ldloc:uint8[](var_1), ldloc:int32[exp:uint8[]](var_0))) } 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: 0x0600AE49 RID: 44617 [Token(Token = "0x600AE49")] [Address(Slot = "39")] public abstract void Reset(); // Token: 0x0600AE4A RID: 44618 RVA: 0x0025DA9C File Offset: 0x0025BC9C [Token(Token = "0x600AE4A")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] protected BufferedCipherBase() { } // Token: 0x0600AE4B RID: 44619 RVA: 0x0025DAB0 File Offset: 0x0025BCB0 // Note: this type is marked as 'beforefieldinit'. [Token(Token = "0x600AE4B")] [Address(RVA = "0x259C090", Offset = "0x259B090", VA = "0x18259C090")] static BufferedCipherBase() { byte[] array = new byte[0]; } // Token: 0x04006E57 RID: 28247 [Token(Token = "0x4006E57")] protected static readonly byte[] EmptyBuffer; } }