using System; using System.IO; using System.Text; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes { // Token: 0x02001D1B RID: 7451 [Token(Token = "0x2001D1B")] public class KCcmBlockCipher : IAeadBlockCipher { // Token: 0x0600B85C RID: 47196 RVA: 0x0027EA6C File Offset: 0x0027CC6C [Token(Token = "0x600B85C")] [Address(RVA = "0x22DD760", Offset = "0x22DC760", VA = "0x1822DD760")] private void setNb(int Nb) { /* An exception occurred when decompiling this method (0600B85C) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.KCcmBlockCipher::setNb(System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_0C: stloc:ArgumentException(var_0_16, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Nb = 4 is recommended by DSTU7624 but can be changed to only 6 or 8 in this implementation"))) } 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: 0x0600B85D RID: 47197 RVA: 0x0027EA90 File Offset: 0x0027CC90 [Token(Token = "0x600B85D")] [Address(RVA = "0x22DD220", Offset = "0x22DC220", VA = "0x1822DD220")] public KCcmBlockCipher(IBlockCipher engine) { } // Token: 0x0600B85E RID: 47198 RVA: 0x0027EAA0 File Offset: 0x0027CCA0 [Token(Token = "0x600B85E")] [Address(RVA = "0x22DD230", Offset = "0x22DC230", VA = "0x1822DD230")] public KCcmBlockCipher(IBlockCipher engine, int Nb) { /* An exception occurred when decompiling this method (0600B85E) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.KCcmBlockCipher::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBlockCipher,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_D8: stloc:ArgumentException(var_10_E2, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Nb = 4 is recommended by DSTU7624 but can be changed to only 6 or 8 in this implementation"))) } 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: 0x0600B85F RID: 47199 RVA: 0x0027EB90 File Offset: 0x0027CD90 [Token(Token = "0x600B85F")] [Address(RVA = "0x22DB6D0", Offset = "0x22DA6D0", VA = "0x1822DB6D0", Slot = "17")] public virtual void Init(bool forEncryption, ICipherParameters parameters) { /* An exception occurred when decompiling this method (0600B85F) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.KCcmBlockCipher::Init(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_B9: stloc:ArgumentException(var_15_C3, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Invalid mac size specified"))) } 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: 0x17001D1C RID: 7452 // (get) Token: 0x0600B860 RID: 47200 RVA: 0x0027EC64 File Offset: 0x0027CE64 [Token(Token = "0x17001D1C")] public virtual string AlgorithmName { [Token(Token = "0x600B860")] [Address(RVA = "0x22DD660", Offset = "0x22DC660", VA = "0x1822DD660", Slot = "18")] get { IBlockCipher blockCipher = this.engine; return 0 + "/KCCM"; } } // Token: 0x0600B861 RID: 47201 RVA: 0x0027EC8C File Offset: 0x0027CE8C [Token(Token = "0x600B861")] [Address(RVA = "0x22DB610", Offset = "0x22DA610", VA = "0x1822DB610", Slot = "19")] public virtual int GetBlockSize() { IBlockCipher blockCipher = this.engine; throw new NullReferenceException(); } // Token: 0x0600B862 RID: 47202 RVA: 0x0027ECA8 File Offset: 0x0027CEA8 [Token(Token = "0x600B862")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "20")] public virtual IBlockCipher GetUnderlyingCipher() { return this.engine; } // Token: 0x0600B863 RID: 47203 RVA: 0x0027ECBC File Offset: 0x0027CEBC [Token(Token = "0x600B863")] [Address(RVA = "0x22DC200", Offset = "0x22DB200", VA = "0x1822DC200", Slot = "21")] public virtual void ProcessAadByte(byte input) { ((IDisposable)this.associatedText).Dispose(); } // Token: 0x0600B864 RID: 47204 RVA: 0x0027ECDC File Offset: 0x0027CEDC [Token(Token = "0x600B864")] [Address(RVA = "0x22DC230", Offset = "0x22DB230", VA = "0x1822DC230", Slot = "22")] public virtual void ProcessAadBytes(byte[] input, int inOff, int len) { int num = this.associatedText.Read(input, inOff, len); } // Token: 0x0600B865 RID: 47205 RVA: 0x0027ED00 File Offset: 0x0027CF00 [Token(Token = "0x600B865")] [Address(RVA = "0x22DBB60", Offset = "0x22DAB60", VA = "0x1822DBB60")] private void ProcessAAD(byte[] assocText, int assocOff, int assocLen, int dataLen) { /* An exception occurred when decompiling this method (0600B865) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes.KCcmBlockCipher::ProcessAAD(System.Byte[],System.Int32,System.Int32,System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_1CD: stloc:IBlockCipher(var_40_1D3, ldfld:IBlockCipher(KCcmBlockCipher::engine, ldloc:KCcmBlockCipher(this))) stloc:uint8[](var_41_1DB, ldfld:uint8[](KCcmBlockCipher::macBlock, ldloc:KCcmBlockCipher(this))) stloc:ArgumentException(var_42_1E7, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("authText 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: 0x0600B866 RID: 47206 RVA: 0x0027EEF8 File Offset: 0x0027D0F8 [Token(Token = "0x600B866")] [Address(RVA = "0x22DC4F0", Offset = "0x22DB4F0", VA = "0x1822DC4F0", Slot = "23")] public virtual int ProcessByte(byte input, byte[] output, int outOff) { MemoryStream memoryStream = this.data; return 0; } // Token: 0x0600B867 RID: 47207 RVA: 0x0027EF14 File Offset: 0x0027D114 [Token(Token = "0x600B867")] [Address(RVA = "0x22DC520", Offset = "0x22DB520", VA = "0x1822DC520", Slot = "24")] public virtual int ProcessBytes(byte[] input, int inOff, int inLen, byte[] output, int outOff) { Check.DataLength(input, inOff, inOff, "input buffer too short"); int num = this.data.ReadByte(); return 0; } // Token: 0x0600B868 RID: 47208 RVA: 0x0027EF44 File Offset: 0x0027D144 [Token(Token = "0x600B868")] [Address(RVA = "0x22DC5C0", Offset = "0x22DB5C0", VA = "0x1822DC5C0")] public int ProcessPacket(byte[] input, int inOff, int len, byte[] output, int outOff) { byte[] array11; byte[] array12; do { Check.DataLength(input, inOff, inOff, "input buffer too short"); if (this.associatedText.CanWrite > false) { MemoryStream memoryStream = this.associatedText; bool canWrite = this.associatedText.CanWrite; MemoryStream memoryStream2 = this.data; if (this.forEncryption) { bool canWrite2 = memoryStream2.CanWrite; } bool canWrite3 = memoryStream2.CanWrite; } IBlockCipher blockCipher = this.engine; if (this.forEncryption) { break; } int num = this.macSize; Check.DataLength(typeof(IBlockCipher).TypeHandle != 0, "partial blocks not supported"); IBlockCipher blockCipher2 = this.engine; byte[] array = this.s; int num2 = 0; IBlockCipher blockCipher3 = this.engine; if (len > 0) { IBlockCipher blockCipher4 = this.engine; int num3 = 0; if (num3 < inOff) { num3 += num3; num3++; } IBlockCipher blockCipher5 = this.engine; int num4 = 0; uint num5; if (num4 < (int)num5) { num4 += num4; num4++; } num2++; } byte[] array2 = this.counter; uint num6; if (num6 < (uint)array2.Length) { byte[] array3 = this.s; num6 += (uint)1; byte[] array4 = this.counter; array4 += array4; array4 += array4; } IBlockCipher blockCipher6 = this.engine; byte[] array5 = this.buffer; if (this.macSize > 0) { byte[] array6 = this.buffer; int num7 = this.macSize; } byte[] array7 = this.counter; if (num6 < (uint)array7.Length) { byte[] array8 = this.s; num6 += (uint)1; if (this.counter != 0) { continue; } } IBlockCipher blockCipher7 = this.engine; byte[] array9 = this.buffer; int num8 = this.macSize; int num9 = this.macSize; int num10 = 0; byte[] array10 = this.mac; int num11 = 0; Array.Copy(this.macBlock, num11, array10, num10, num9); array11 = new byte[this.macSize]; int num12 = this.macSize; int num13 = 0; int num14 = 0; Array.Copy(this.buffer, num13, array11, num14, num12); array12 = this.mac; } while (!Arrays.ConstantTimeAreEqual(array12, array11)); Check.DataLength(typeof(IBlockCipher).TypeHandle != 0, "partial blocks not supported"); int num18; if (len > 0) { int num15 = 0; if (num15 < array12) { num15 += num15; num15++; } int num16 = 0; uint num17; if (num16 < (int)num17) { num16 += num16; num16++; } array12 += num16; num18 = 0; uint num19; if (num18 < (int)num19) { num18 += num18; num18++; } } uint num20; num20 += (uint)1; while (num18 != 0) { } num18 += num18; num18 += 2; num18 += 19; num18 += num18; num18 += 2; num18 += 19; num18 += num18; num18 += 2; num18 += 19; if (num18 > 0) { num20 += (uint)1; } num20 += (uint)len; throw new IndexOutOfRangeException(); } // Token: 0x0600B869 RID: 47209 RVA: 0x0027F210 File Offset: 0x0027D410 [Token(Token = "0x600B869")] [Address(RVA = "0x22DC260", Offset = "0x22DB260", VA = "0x1822DC260")] private void ProcessBlock(byte[] input, int inOff, int len, byte[] output, int outOff) { do { byte[] array = this.counter; int num = 0; if (num < array.Length) { byte[] array2 = this.s; num++; byte[] array3 = this.counter; } IBlockCipher blockCipher = this.engine; byte[] array4 = this.buffer; IBlockCipher blockCipher2 = this.engine; int num2 = 0; if (num2 < blockCipher) { num2 += num2; num2++; } if (num2 >= num2) { return; } byte[] array5 = this.buffer; } while (this.engine != 0); byte b; b += b; } // Token: 0x0600B86A RID: 47210 RVA: 0x0027F294 File Offset: 0x0027D494 [Token(Token = "0x600B86A")] [Address(RVA = "0x22DB3F0", Offset = "0x22DA3F0", VA = "0x1822DB3F0")] private void CalculateMac(byte[] authText, int authOff, int len) { if (len > 0) { int num = 0; IBlockCipher blockCipher = this.engine; byte[] array = this.macBlock; num += array; num++; IBlockCipher blockCipher2 = this.engine; byte[] array2 = this.macBlock; IBlockCipher blockCipher3 = this.engine; IBlockCipher blockCipher4 = this.engine; } } // Token: 0x0600B86B RID: 47211 RVA: 0x0027F2E4 File Offset: 0x0027D4E4 [Token(Token = "0x600B86B")] [Address(RVA = "0x22DB560", Offset = "0x22DA560", VA = "0x1822DB560", Slot = "25")] public virtual int DoFinal(byte[] output, int outOff) { MemoryStream memoryStream = this.data; bool canWrite = this.data.CanWrite; return outOff; } // Token: 0x0600B86C RID: 47212 RVA: 0x0027F30C File Offset: 0x0027D50C [Token(Token = "0x600B86C")] [Address(RVA = "0x22DB660", Offset = "0x22DA660", VA = "0x1822DB660", Slot = "26")] public virtual byte[] GetMac() { return Arrays.Clone(this.mac); } // Token: 0x0600B86D RID: 47213 RVA: 0x0027F324 File Offset: 0x0027D524 [Token(Token = "0x600B86D")] [Address(RVA = "0x5028A0", Offset = "0x5018A0", VA = "0x1805028A0", Slot = "27")] public virtual int GetUpdateOutputSize(int len) { return len; } // Token: 0x0600B86E RID: 47214 RVA: 0x0027F334 File Offset: 0x0027D534 [Token(Token = "0x600B86E")] [Address(RVA = "0x22DB6C0", Offset = "0x22DA6C0", VA = "0x1822DB6C0", Slot = "28")] public virtual int GetOutputSize(int len) { int num = this.macSize; return num + len; } // Token: 0x0600B86F RID: 47215 RVA: 0x0027F350 File Offset: 0x0027D550 [Token(Token = "0x600B86F")] [Address(RVA = "0x22DD080", Offset = "0x22DC080", VA = "0x1822DD080", Slot = "29")] public virtual void Reset() { byte[] g = this.G1; int num = 0; Arrays.Fill(g, (byte)num); byte[] array = this.buffer; int num2 = 0; Arrays.Fill(array, (byte)num2); byte[] array2 = this.counter; int num3 = 0; Arrays.Fill(array2, (byte)num3); byte[] array3 = this.macBlock; int num4 = 0; Arrays.Fill(array3, (byte)num4); byte[] array4 = this.counter; MemoryStream memoryStream = this.data; MemoryStream memoryStream2 = this.associatedText; byte[] array5 = this.initialAssociatedText; if (array5 != 0) { this.ProcessAadByte(array5); } } // Token: 0x0600B870 RID: 47216 RVA: 0x0027F3D8 File Offset: 0x0027D5D8 [Token(Token = "0x600B870")] [Address(RVA = "0x22DD6C0", Offset = "0x22DC6C0", VA = "0x1822DD6C0")] private void intToBytes(int num, byte[] outBytes, int outOff) { int num2 = outOff + 1; } // Token: 0x0600B871 RID: 47217 RVA: 0x0027F3F0 File Offset: 0x0027D5F0 [Token(Token = "0x600B871")] [Address(RVA = "0x22DD480", Offset = "0x22DC480", VA = "0x1822DD480")] private byte getFlag(bool authTextPresents, int macSize) { StringBuilder stringBuilder = new StringBuilder(); if (authTextPresents) { } StringBuilder stringBuilder2 = stringBuilder.Append("0"); if (macSize > 16) { if (macSize == 32) { } if (macSize == 48) { } if (macSize != 64) { goto IL_3F; } } if (macSize == 8) { } if (macSize == 16) { StringBuilder stringBuilder3 = stringBuilder.Append("011"); } IL_3F: string text = Convert.ToString(this.Nb_ - 1, 2); int num2; if (text.m_stringLength < 4) { StringBuilder stringBuilder4 = new StringBuilder(text); int num = 0; num2 = stringBuilder4.Insert(num, "0").GetHashCode(); } num2 = stringBuilder.GetHashCode(); throw new NullReferenceException(); } // Token: 0x04007452 RID: 29778 [Token(Token = "0x4007452")] private static readonly int BYTES_IN_INT; // Token: 0x04007453 RID: 29779 [Token(Token = "0x4007453")] private static readonly int BITS_IN_BYTE; // Token: 0x04007454 RID: 29780 [Token(Token = "0x4007454")] private static readonly int MAX_MAC_BIT_LENGTH; // Token: 0x04007455 RID: 29781 [Token(Token = "0x4007455")] private static readonly int MIN_MAC_BIT_LENGTH; // Token: 0x04007456 RID: 29782 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007456")] private IBlockCipher engine; // Token: 0x04007457 RID: 29783 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007457")] private int macSize; // Token: 0x04007458 RID: 29784 [FieldOffset(Offset = "0x1C")] [Token(Token = "0x4007458")] private bool forEncryption; // Token: 0x04007459 RID: 29785 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4007459")] private byte[] initialAssociatedText; // Token: 0x0400745A RID: 29786 [FieldOffset(Offset = "0x28")] [Token(Token = "0x400745A")] private byte[] mac; // Token: 0x0400745B RID: 29787 [FieldOffset(Offset = "0x30")] [Token(Token = "0x400745B")] private byte[] macBlock; // Token: 0x0400745C RID: 29788 [FieldOffset(Offset = "0x38")] [Token(Token = "0x400745C")] private byte[] nonce; // Token: 0x0400745D RID: 29789 [FieldOffset(Offset = "0x40")] [Token(Token = "0x400745D")] private byte[] G1; // Token: 0x0400745E RID: 29790 [FieldOffset(Offset = "0x48")] [Token(Token = "0x400745E")] private byte[] buffer; // Token: 0x0400745F RID: 29791 [FieldOffset(Offset = "0x50")] [Token(Token = "0x400745F")] private byte[] s; // Token: 0x04007460 RID: 29792 [FieldOffset(Offset = "0x58")] [Token(Token = "0x4007460")] private byte[] counter; // Token: 0x04007461 RID: 29793 [FieldOffset(Offset = "0x60")] [Token(Token = "0x4007461")] private readonly MemoryStream associatedText; // Token: 0x04007462 RID: 29794 [FieldOffset(Offset = "0x68")] [Token(Token = "0x4007462")] private readonly MemoryStream data; // Token: 0x04007463 RID: 29795 [FieldOffset(Offset = "0x70")] [Token(Token = "0x4007463")] private int Nb_; } }