using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes { // Token: 0x02001D16 RID: 7446 [Token(Token = "0x2001D16")] public class EaxBlockCipher : IAeadBlockCipher { // Token: 0x0600B819 RID: 47129 RVA: 0x0027D24C File Offset: 0x0027B44C [Token(Token = "0x600B819")] [Address(RVA = "0x25B8EE0", Offset = "0x25B7EE0", VA = "0x1825B8EE0")] public EaxBlockCipher(IBlockCipher cipher) { int num = this.blockSize; CMac cmac; this.mac = cmac; byte[] array = new byte[num]; IMac mac = this.mac; this.macBlock = array; byte[] array2 = new byte[array]; IMac mac2 = this.mac; this.associatedTextMac = array2; byte[] array3 = new byte[array2]; this.nonceMac = array3; SicBlockCipher sicBlockCipher = new SicBlockCipher(cipher); this.cipher = sicBlockCipher; } // Token: 0x17001D17 RID: 7447 // (get) Token: 0x0600B81A RID: 47130 RVA: 0x0027D2C4 File Offset: 0x0027B4C4 [Token(Token = "0x17001D17")] public virtual string AlgorithmName { [Token(Token = "0x600B81A")] [Address(RVA = "0x25B9040", Offset = "0x25B8040", VA = "0x1825B9040", Slot = "17")] get { this.cipher.Reset(); string text; return text; } } // Token: 0x0600B81B RID: 47131 RVA: 0x0027D2E4 File Offset: 0x0027B4E4 [Token(Token = "0x600B81B")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "18")] public virtual IBlockCipher GetUnderlyingCipher() { /* An exception occurred when decompiling this method (0600B81B) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBlockCipher BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.EaxBlockCipher::GetUnderlyingCipher() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:SicBlockCipher(var_0_06, ldfld:SicBlockCipher(EaxBlockCipher::cipher, ldloc:EaxBlockCipher(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: 0x0600B81C RID: 47132 RVA: 0x0027D2F8 File Offset: 0x0027B4F8 [Token(Token = "0x600B81C")] [Address(RVA = "0x4DAF30", Offset = "0x4D9F30", VA = "0x1804DAF30", Slot = "19")] public virtual int GetBlockSize() { string algorithmName = ((IBlockCipher)this.cipher).AlgorithmName; throw new NullReferenceException(); } // Token: 0x0600B81D RID: 47133 RVA: 0x0027D318 File Offset: 0x0027B518 [Token(Token = "0x600B81D")] [Address(RVA = "0x25B8510", Offset = "0x25B7510", VA = "0x1825B8510", Slot = "20")] public virtual void Init(bool forEncryption, ICipherParameters parameters) { /* An exception occurred when decompiling this method (0600B81D) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.EaxBlockCipher::Init(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_E3: stloc:ArgumentException(var_22_ED, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("invalid parameters passed to EAX"))) } 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: 0x0600B81E RID: 47134 RVA: 0x0027D414 File Offset: 0x0027B614 [Token(Token = "0x600B81E")] [Address(RVA = "0x25B8440", Offset = "0x25B7440", VA = "0x1825B8440")] private void InitCipher() { if (!this.cipherInitialized) { IMac mac = this.mac; this.cipherInitialized = true; byte[] array = new byte[this.blockSize]; int num = this.blockSize; IMac mac2 = this.mac; int num2 = this.blockSize; } } // Token: 0x0600B81F RID: 47135 RVA: 0x0027D464 File Offset: 0x0027B664 [Token(Token = "0x600B81F")] [Address(RVA = "0x25B7F30", Offset = "0x25B6F30", VA = "0x1825B7F30")] private void CalculateMac() { byte[] array = new byte[this.blockSize]; IMac mac = this.mac; int num = 0; byte[] array2 = this.macBlock; if (num < array2.Length) { byte[] array3 = this.nonceMac; byte[] array4 = this.associatedTextMac; num++; byte[] array5 = this.macBlock; } } // Token: 0x0600B820 RID: 47136 RVA: 0x0027D4B8 File Offset: 0x0027B6B8 [Token(Token = "0x600B820")] [Address(RVA = "0x25B8CF0", Offset = "0x25B7CF0", VA = "0x1825B8CF0", Slot = "21")] public virtual void Reset() { this.Reset(true); } // Token: 0x0600B821 RID: 47137 RVA: 0x0027D4CC File Offset: 0x0027B6CC [Token(Token = "0x600B821")] [Address(RVA = "0x25B8D00", Offset = "0x25B7D00", VA = "0x1825B8D00")] private void Reset(bool clearMac) { SicBlockCipher sicBlockCipher = this.cipher; IMac mac = this.mac; byte[] array = this.bufBlock; this.bufOff = (int)((ulong)0L); int length = array.Length; int num = 0; Array.Clear(array, num, length); if (clearMac) { byte[] array2 = this.macBlock; int length2 = array2.Length; int num2 = 0; Array.Clear(array2, num2, length2); } byte[] array3 = new byte[this.blockSize]; int num3 = this.blockSize; IMac mac2 = this.mac; int num4 = this.blockSize; byte[] array4 = this.initialAssociatedText; this.cipherInitialized = false; if (array4 != 0) { this.ProcessAadByte(array4); } } // Token: 0x0600B822 RID: 47138 RVA: 0x0027D578 File Offset: 0x0027B778 [Token(Token = "0x600B822")] [Address(RVA = "0x25B88B0", Offset = "0x25B78B0", VA = "0x1825B88B0", Slot = "22")] public virtual void ProcessAadByte(byte input) { /* An exception occurred when decompiling this method (0600B822) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.EaxBlockCipher::ProcessAadByte(System.Byte) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_10: stloc:InvalidOperationException(var_1_1A, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("AAD data cannot be added after encryption/decryption processing has begun."))) } 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: 0x0600B823 RID: 47139 RVA: 0x0027D5A0 File Offset: 0x0027B7A0 [Token(Token = "0x600B823")] [Address(RVA = "0x25B8940", Offset = "0x25B7940", VA = "0x1825B8940", Slot = "23")] public virtual void ProcessAadBytes(byte[] inBytes, int inOff, int len) { /* An exception occurred when decompiling this method (0600B823) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.EaxBlockCipher::ProcessAadBytes(System.Byte[],System.Int32,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_11: stloc:InvalidOperationException(var_1_1B, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("AAD data cannot be added after encryption/decryption processing has begun."))) } 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: 0x0600B824 RID: 47140 RVA: 0x0027D5C8 File Offset: 0x0027B7C8 [Token(Token = "0x600B824")] [Address(RVA = "0x25B8A00", Offset = "0x25B7A00", VA = "0x1825B8A00", Slot = "24")] public virtual int ProcessByte(byte input, byte[] outBytes, int outOff) { this.InitCipher(); return this.Process(input, outBytes, outOff); } // Token: 0x0600B825 RID: 47141 RVA: 0x0027D5E4 File Offset: 0x0027B7E4 [Token(Token = "0x600B825")] [Address(RVA = "0x25B8A60", Offset = "0x25B7A60", VA = "0x1825B8A60", Slot = "25")] public virtual int ProcessBytes(byte[] inBytes, int inOff, int len, byte[] outBytes, int outOff) { this.InitCipher(); int num = 0; if (len != 0) { int num2; num += num2; num2 = inOff; num2 -= inOff; while (num2 != len) { } } return num; } // Token: 0x0600B826 RID: 47142 RVA: 0x0027D614 File Offset: 0x0027B814 [Token(Token = "0x600B826")] [Address(RVA = "0x25B8060", Offset = "0x25B7060", VA = "0x1825B8060", Slot = "26")] public virtual int DoFinal(byte[] outBytes, int outOff) { /* An exception occurred when decompiling this method (0600B826) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.EaxBlockCipher::DoFinal(System.Byte[],System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_148: stloc:InvalidCipherTextException(var_22_152, newobj:InvalidCipherTextException(InvalidCipherTextException::.ctor, ldstr:string("mac check in EAX failed"))) } 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.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.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: 0x0600B827 RID: 47143 RVA: 0x0027D774 File Offset: 0x0027B974 [Token(Token = "0x600B827")] [Address(RVA = "0x25B8370", Offset = "0x25B7370", VA = "0x1825B8370", Slot = "27")] public virtual byte[] GetMac() { byte[] array = new byte[this.macSize]; int num = this.macSize; int num2 = 0; int num3 = 0; Array.Copy(this.macBlock, num3, array, num2, num); return array; } // Token: 0x0600B828 RID: 47144 RVA: 0x0027D7AC File Offset: 0x0027B9AC [Token(Token = "0x600B828")] [Address(RVA = "0x25B8410", Offset = "0x25B7410", VA = "0x1825B8410", Slot = "28")] public virtual int GetUpdateOutputSize(int len) { int num = this.bufOff; num += len; if (!this.forEncryption) { int num2 = this.macSize; num -= num2; } return num - len; } // Token: 0x0600B829 RID: 47145 RVA: 0x0027D7E0 File Offset: 0x0027B9E0 [Token(Token = "0x600B829")] [Address(RVA = "0x25B83E0", Offset = "0x25B73E0", VA = "0x1825B83E0", Slot = "29")] public virtual int GetOutputSize(int len) { int num = this.bufOff; int num2 = this.macSize; num += len; if (this.forEncryption) { return num2 + num; } if (num < num2) { return 0; } return num - num2; } // Token: 0x0600B82A RID: 47146 RVA: 0x0027D81C File Offset: 0x0027BA1C [Token(Token = "0x600B82A")] [Address(RVA = "0x25B8B20", Offset = "0x25B7B20", VA = "0x1825B8B20")] private int Process(byte b, byte[] outBytes, int outOff) { int num = this.bufOff; byte[] array = this.bufBlock; int num2 = num + 1; this.bufOff = num2; int length = this.bufBlock.Length; if (this.bufOff != length) { return 0; } int num3 = 0; int num4 = this.blockSize; Check.OutputLength(outBytes, outOff, num4, "Output buffer is too short"); if ((this.forEncryption ? 1 : 0) == num3) { IMac mac = this.mac; int num5 = this.blockSize; int num6 = this.cipher.GetBlockSize(); } int num7 = this.cipher.GetBlockSize(); IMac mac2 = this.mac; int num8 = this.blockSize; this.bufOff = num3; if ((this.forEncryption ? 1 : 0) == num3) { byte[] array2 = this.bufBlock; int num9 = 0; int num10 = this.macSize; int num11 = this.blockSize; Array.Copy(array2, num11, array2, num9, num10); int num12 = this.macSize; this.bufOff = num12; } throw new NullReferenceException(); } // Token: 0x0600B82B RID: 47147 RVA: 0x0027D910 File Offset: 0x0027BB10 [Token(Token = "0x600B82B")] [Address(RVA = "0x25B8E50", Offset = "0x25B7E50", VA = "0x1825B8E50")] private bool VerifyMac(byte[] mac, int off) { int num = this.macSize; int num2 = 0; if (num > 0) { byte[] array = this.macBlock; num2++; } return num2 == 0; } // Token: 0x0400741E RID: 29726 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400741E")] private SicBlockCipher cipher; // Token: 0x0400741F RID: 29727 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400741F")] private bool forEncryption; // Token: 0x04007420 RID: 29728 [FieldOffset(Offset = "0x1C")] [Token(Token = "0x4007420")] private int blockSize; // Token: 0x04007421 RID: 29729 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007421")] private IMac mac; // Token: 0x04007422 RID: 29730 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4007422")] private byte[] nonceMac; // Token: 0x04007423 RID: 29731 [FieldOffset(Offset = "0x30")] [Token(Token = "0x4007423")] private byte[] associatedTextMac; // Token: 0x04007424 RID: 29732 [FieldOffset(Offset = "0x38")] [Token(Token = "0x4007424")] private byte[] macBlock; // Token: 0x04007425 RID: 29733 [FieldOffset(Offset = "0x40")] [Token(Token = "0x4007425")] private int macSize; // Token: 0x04007426 RID: 29734 [FieldOffset(Offset = "0x48")] [Token(Token = "0x4007426")] private byte[] bufBlock; // Token: 0x04007427 RID: 29735 [FieldOffset(Offset = "0x50")] [Token(Token = "0x4007427")] private int bufOff; // Token: 0x04007428 RID: 29736 [FieldOffset(Offset = "0x54")] [Token(Token = "0x4007428")] private bool cipherInitialized; // Token: 0x04007429 RID: 29737 [FieldOffset(Offset = "0x58")] [Token(Token = "0x4007429")] private byte[] initialAssociatedText; // Token: 0x02001D17 RID: 7447 [Token(Token = "0x2001D17")] private enum Tag : byte { // Token: 0x0400742B RID: 29739 [Token(Token = "0x400742B")] N, // Token: 0x0400742C RID: 29740 [Token(Token = "0x400742C")] H, // Token: 0x0400742D RID: 29741 [Token(Token = "0x400742D")] C } } }