using System; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto { // Token: 0x020014E7 RID: 5351 [Token(Token = "0x20014E7")] [StructLayout(3)] public class BufferedAeadBlockCipher : BufferedCipherBase { // Token: 0x06008E67 RID: 36455 RVA: 0x001FC9C0 File Offset: 0x001FABC0 [Token(Token = "0x6008E67")] [Address(RVA = "0x2177090", Offset = "0x2175A90", VA = "0x182177090")] public BufferedAeadBlockCipher(IAeadBlockCipher cipher) { /* An exception occurred when decompiling this method (06008E67) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedAeadBlockCipher::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.IAeadBlockCipher) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_12: stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846 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: 0x17001711 RID: 5905 // (get) Token: 0x06008E68 RID: 36456 RVA: 0x001FC9EC File Offset: 0x001FABEC [Token(Token = "0x17001711")] public override string AlgorithmName { [Token(Token = "0x6008E68")] [Address(RVA = "0x2177130", Offset = "0x2175B30", VA = "0x182177130", Slot = "22")] get { IAeadBlockCipher aeadBlockCipher = this.cipher; throw new NullReferenceException(); } } // Token: 0x06008E69 RID: 36457 RVA: 0x001FCA08 File Offset: 0x001FAC08 [Token(Token = "0x6008E69")] [Address(RVA = "0x2176B00", Offset = "0x2175500", VA = "0x182176B00", Slot = "23")] public override void Init(bool forEncryption, ICipherParameters parameters) { while (parameters != 0 && parameters != 0 && (parameters == 0 || parameters == 0)) { } IAeadBlockCipher aeadBlockCipher = this.cipher; } // Token: 0x06008E6A RID: 36458 RVA: 0x001FCA38 File Offset: 0x001FAC38 [Token(Token = "0x6008E6A")] [Address(RVA = "0x21769F0", Offset = "0x21753F0", VA = "0x1821769F0", Slot = "24")] public override int GetBlockSize() { IAeadBlockCipher aeadBlockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x06008E6B RID: 36459 RVA: 0x001FCA54 File Offset: 0x001FAC54 [Token(Token = "0x6008E6B")] [Address(RVA = "0x2176AA0", Offset = "0x21754A0", VA = "0x182176AA0", Slot = "26")] public override int GetUpdateOutputSize(int length) { IAeadBlockCipher aeadBlockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x06008E6C RID: 36460 RVA: 0x001FCA70 File Offset: 0x001FAC70 [Token(Token = "0x6008E6C")] [Address(RVA = "0x2176A40", Offset = "0x2175440", VA = "0x182176A40", Slot = "25")] public override int GetOutputSize(int length) { IAeadBlockCipher aeadBlockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x06008E6D RID: 36461 RVA: 0x001FCA8C File Offset: 0x001FAC8C [Token(Token = "0x6008E6D")] [Address(RVA = "0x2176C40", Offset = "0x2175640", VA = "0x182176C40", Slot = "28")] public override int ProcessByte(byte input, byte[] output, int outOff) { IAeadBlockCipher aeadBlockCipher = this.cipher; int num = 0; if (num < output) { num += num; num++; } string algorithmName = aeadBlockCipher.AlgorithmName; throw new NullReferenceException(); } // Token: 0x06008E6E RID: 36462 RVA: 0x001FCABC File Offset: 0x001FACBC [Token(Token = "0x6008E6E")] [Address(RVA = "0x2176D30", Offset = "0x2175730", VA = "0x182176D30", Slot = "27")] public override byte[] ProcessByte(byte input) { /* An exception occurred when decompiling this method (06008E6E) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedAeadBlockCipher::ProcessByte(System.Byte) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_2: stloc:uint8[](var_4_2B, newarr:uint8[]([mscorlib]System.Byte, ldloc:uint8[][exp:int32](var_3_1C))) } 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: 0x06008E6F RID: 36463 RVA: 0x001FCAF8 File Offset: 0x001FACF8 [Token(Token = "0x6008E6F")] [Address(RVA = "0x2176F00", Offset = "0x2175900", VA = "0x182176F00", Slot = "30")] public override byte[] ProcessBytes(byte[] input, int inOff, int length) { /* An exception occurred when decompiling this method (06008E6F) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedAeadBlockCipher::ProcessBytes(System.Byte[],System.Int32,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_41: stloc:ArgumentNullException(var_9_4B, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("input"))) } 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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846 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: 0x06008E70 RID: 36464 RVA: 0x001FCB54 File Offset: 0x001FAD54 [Token(Token = "0x6008E70")] [Address(RVA = "0x2176E10", Offset = "0x2175810", VA = "0x182176E10", Slot = "32")] public override int ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff) { IAeadBlockCipher aeadBlockCipher = this.cipher; int num = 0; if (num < inOff) { num += num; num++; } string algorithmName = aeadBlockCipher.AlgorithmName; throw new NullReferenceException(); } // Token: 0x06008E71 RID: 36465 RVA: 0x001FCB84 File Offset: 0x001FAD84 [Token(Token = "0x6008E71")] [Address(RVA = "0x2176920", Offset = "0x2175320", VA = "0x182176920", Slot = "33")] public override byte[] DoFinal() { byte[] array = new byte[this.GetBlockSize()]; byte[] array2; if (array2 < array.Length) { byte[] array3 = new byte[array2]; } return array; } // Token: 0x06008E72 RID: 36466 RVA: 0x001FCBB8 File Offset: 0x001FADB8 [Token(Token = "0x6008E72")] [Address(RVA = "0x2176750", Offset = "0x2175150", VA = "0x182176750", Slot = "35")] public override byte[] DoFinal(byte[] input, int inOff, int inLen) { /* An exception occurred when decompiling this method (06008E72) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedAeadBlockCipher::DoFinal(System.Byte[],System.Int32,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_29: stloc:ArgumentNullException(var_7_33, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("input"))) } 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: 0x06008E73 RID: 36467 RVA: 0x001FCBFC File Offset: 0x001FADFC [Token(Token = "0x6008E73")] [Address(RVA = "0x21768B0", Offset = "0x21752B0", VA = "0x1821768B0", Slot = "36")] public override int DoFinal(byte[] output, int outOff) { IAeadBlockCipher aeadBlockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x06008E74 RID: 36468 RVA: 0x001FCC18 File Offset: 0x001FAE18 [Token(Token = "0x6008E74")] [Address(RVA = "0x2177040", Offset = "0x2175A40", VA = "0x182177040", Slot = "39")] public override void Reset() { IAeadBlockCipher aeadBlockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x04005E53 RID: 24147 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4005E53")] private readonly IAeadBlockCipher cipher; } }