using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto { // Token: 0x02001BA5 RID: 7077 [Token(Token = "0x2001BA5")] public class BufferedAsymmetricBlockCipher : BufferedCipherBase { // Token: 0x0600AE1D RID: 44573 RVA: 0x0025D3B0 File Offset: 0x0025B5B0 [Token(Token = "0x600AE1D")] [Address(RVA = "0x259ADA0", Offset = "0x2599DA0", VA = "0x18259ADA0")] public BufferedAsymmetricBlockCipher(IAsymmetricBlockCipher cipher) { this.cipher = cipher; } // Token: 0x0600AE1E RID: 44574 RVA: 0x0025D3CC File Offset: 0x0025B5CC [Token(Token = "0x600AE1E")] [Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70")] internal int GetBufferPosition() { return this.bufOff; } // Token: 0x17001BB0 RID: 7088 // (get) Token: 0x0600AE1F RID: 44575 RVA: 0x0025D3E0 File Offset: 0x0025B5E0 [Token(Token = "0x17001BB0")] public override string AlgorithmName { [Token(Token = "0x600AE1F")] [Address(RVA = "0x259AE10", Offset = "0x2599E10", VA = "0x18259AE10", Slot = "22")] get { IAsymmetricBlockCipher asymmetricBlockCipher = this.cipher; throw new NullReferenceException(); } } // Token: 0x0600AE20 RID: 44576 RVA: 0x0025D3FC File Offset: 0x0025B5FC [Token(Token = "0x600AE20")] [Address(RVA = "0x259AA60", Offset = "0x2599A60", VA = "0x18259AA60", Slot = "24")] public override int GetBlockSize() { IAsymmetricBlockCipher asymmetricBlockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x0600AE21 RID: 44577 RVA: 0x0025D418 File Offset: 0x0025B618 [Token(Token = "0x600AE21")] [Address(RVA = "0x259AAB0", Offset = "0x2599AB0", VA = "0x18259AAB0", Slot = "25")] public override int GetOutputSize(int length) { IAsymmetricBlockCipher asymmetricBlockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x0600AE22 RID: 44578 RVA: 0x0025D434 File Offset: 0x0025B634 [Token(Token = "0x600AE22")] [Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "26")] public override int GetUpdateOutputSize(int length) { return 0; } // Token: 0x0600AE23 RID: 44579 RVA: 0x0025D444 File Offset: 0x0025B644 [Token(Token = "0x600AE23")] [Address(RVA = "0x259AB00", Offset = "0x2599B00", VA = "0x18259AB00", Slot = "23")] public override void Init(bool forEncryption, ICipherParameters parameters) { IAsymmetricBlockCipher asymmetricBlockCipher = this.cipher; IAsymmetricBlockCipher asymmetricBlockCipher2 = this.cipher; byte[] array = new byte[forEncryption ? 1 : 0]; this.buffer = array; this.bufOff = (int)((ulong)0L); } // Token: 0x0600AE24 RID: 44580 RVA: 0x0025D47C File Offset: 0x0025B67C [Token(Token = "0x600AE24")] [Address(RVA = "0x259ABC0", Offset = "0x2599BC0", VA = "0x18259ABC0", Slot = "27")] public override byte[] ProcessByte(byte input) { /* An exception occurred when decompiling this method (0600AE24) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedAsymmetricBlockCipher::ProcessByte(System.Byte) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_2A: stloc:DataLengthException(var_4_34, newobj:DataLengthException(DataLengthException::.ctor, ldstr:string("attempt to process message to long for 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: 0x0600AE25 RID: 44581 RVA: 0x0025D4C0 File Offset: 0x0025B6C0 [Token(Token = "0x600AE25")] [Address(RVA = "0x259AC70", Offset = "0x2599C70", VA = "0x18259AC70", Slot = "30")] public override byte[] ProcessBytes(byte[] input, int inOff, int length) { /* An exception occurred when decompiling this method (0600AE25) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedAsymmetricBlockCipher::ProcessBytes(System.Byte[],System.Int32,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_1E: stloc:ArgumentNullException(var_4_28, 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: 0x0600AE26 RID: 44582 RVA: 0x0025D4F8 File Offset: 0x0025B6F8 [Token(Token = "0x600AE26")] [Address(RVA = "0x259A8F0", Offset = "0x25998F0", VA = "0x18259A8F0", Slot = "33")] public override byte[] DoFinal() { if (this.bufOff > 0) { IAsymmetricBlockCipher asymmetricBlockCipher = this.cipher; byte[] array = this.buffer; int num = 0; num += num; num++; array += array; } throw new NullReferenceException(); } // Token: 0x0600AE27 RID: 44583 RVA: 0x0025D530 File Offset: 0x0025B730 [Token(Token = "0x600AE27")] [Address(RVA = "0x259AA20", Offset = "0x2599A20", VA = "0x18259AA20", Slot = "35")] public override byte[] DoFinal(byte[] input, int inOff, int length) { /* An exception occurred when decompiling this method (0600AE27) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.BufferedAsymmetricBlockCipher::DoFinal(System.Byte[],System.Int32,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:uint8[](var_0_07, callvirt:uint8[](BufferedCipherBase::ProcessBytes, ldloc:BufferedAsymmetricBlockCipher[exp:BufferedCipherBase](this), ldloc:uint8[](input))) stloc:string(var_1_0E, callgetter:string(BufferedCipherBase::get_AlgorithmName, ldloc:BufferedAsymmetricBlockCipher[exp:BufferedCipherBase](this))) } 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: 0x0600AE28 RID: 44584 RVA: 0x0025D54C File Offset: 0x0025B74C [Token(Token = "0x600AE28")] [Address(RVA = "0x259AD70", Offset = "0x2599D70", VA = "0x18259AD70", Slot = "39")] public override void Reset() { byte[] array = this.buffer; if (array != 0) { int length = array.Length; int num = 0; Array.Clear(array, num, length); this.bufOff = (int)((ulong)0L); } } // Token: 0x04006E50 RID: 28240 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4006E50")] private readonly IAsymmetricBlockCipher cipher; // Token: 0x04006E51 RID: 28241 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4006E51")] private byte[] buffer; // Token: 0x04006E52 RID: 28242 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4006E52")] private int bufOff; } }