using System; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes { // Token: 0x02001663 RID: 5731 [Token(Token = "0x2001663")] [StructLayout(3)] public class SicBlockCipher : IBlockCipher { // Token: 0x06009905 RID: 39173 RVA: 0x00220264 File Offset: 0x0021E464 [Token(Token = "0x6009905")] [Address(RVA = "0x1DDF9B0", Offset = "0x1DDE3B0", VA = "0x181DDF9B0")] public SicBlockCipher(IBlockCipher cipher) { this.cipher = cipher; byte[] array = new byte[0]; int num = this.blockSize; this.counter = array; byte[] array2 = new byte[num]; int num2 = this.blockSize; this.counterOut = array2; byte[] array3 = new byte[num2]; this.IV = array3; } // Token: 0x06009906 RID: 39174 RVA: 0x002202C0 File Offset: 0x0021E4C0 [Token(Token = "0x6009906")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "10")] public virtual IBlockCipher GetUnderlyingCipher() { return this.cipher; } // Token: 0x06009907 RID: 39175 RVA: 0x002202D4 File Offset: 0x0021E4D4 [Token(Token = "0x6009907")] [Address(RVA = "0x1DDF4E0", Offset = "0x1DDDEE0", VA = "0x181DDF4E0", Slot = "11")] public virtual void Init(bool forEncryption, ICipherParameters parameters) { /* An exception occurred when decompiling this method (06009907) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.SicBlockCipher::Init(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_5C: stloc:ArgumentException(var_10_6B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("CTR/SIC mode requires ParametersWithIV"), ldstr:string("parameters"))) } 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: 0x17001886 RID: 6278 // (get) Token: 0x06009908 RID: 39176 RVA: 0x00220350 File Offset: 0x0021E550 [Token(Token = "0x17001886")] public virtual string AlgorithmName { [Token(Token = "0x6009908")] [Address(RVA = "0x1DDFA50", Offset = "0x1DDE450", VA = "0x181DDFA50", Slot = "12")] get { IBlockCipher blockCipher = this.cipher; return 0 + "/SIC"; } } // Token: 0x17001887 RID: 6279 // (get) Token: 0x06009909 RID: 39177 RVA: 0x00220378 File Offset: 0x0021E578 [Token(Token = "0x17001887")] public virtual bool IsPartialBlockOkay { [Token(Token = "0x6009909")] [Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "13")] get { return true; } } // Token: 0x0600990A RID: 39178 RVA: 0x00220388 File Offset: 0x0021E588 [Token(Token = "0x600990A")] [Address(RVA = "0x1DDF490", Offset = "0x1DDDE90", VA = "0x181DDF490", Slot = "14")] public virtual int GetBlockSize() { IBlockCipher blockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x0600990B RID: 39179 RVA: 0x002203A4 File Offset: 0x0021E5A4 [Token(Token = "0x600990B")] [Address(RVA = "0x1DDF760", Offset = "0x1DDE160", VA = "0x181DDF760", Slot = "15")] public virtual int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff) { IBlockCipher blockCipher = this.cipher; byte[] array = this.counterOut; int num = 0; byte[] array2 = this.counterOut; if (num < array2.Length) { byte[] array3 = this.counterOut; } int length = this.counter.Length; byte[] array4 = this.counter; while (length == array4.Length) { } return this.counter.Length; } // Token: 0x0600990C RID: 39180 RVA: 0x0022040C File Offset: 0x0021E60C [Token(Token = "0x600990C")] [Address(RVA = "0x1DDF900", Offset = "0x1DDE300", VA = "0x181DDF900", Slot = "16")] public virtual void Reset() { byte[] array = this.counter; int num = 0; Arrays.Fill(array, (byte)num); byte[] iv = this.IV; int length = iv.Length; int num2 = 0; byte[] array2 = this.counter; int num3 = 0; Array.Copy(iv, num3, array2, num2, length); IBlockCipher blockCipher = this.cipher; throw new NullReferenceException(); } // Token: 0x04006492 RID: 25746 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006492")] private readonly IBlockCipher cipher; // Token: 0x04006493 RID: 25747 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006493")] private readonly int blockSize; // Token: 0x04006494 RID: 25748 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4006494")] private readonly byte[] counter; // Token: 0x04006495 RID: 25749 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4006495")] private readonly byte[] counterOut; // Token: 0x04006496 RID: 25750 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4006496")] private byte[] IV; } }