using System; using System.IO; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls { // Token: 0x02001543 RID: 5443 [Token(Token = "0x2001543")] [StructLayout(3)] public class DigitallySigned { // Token: 0x060090E1 RID: 37089 RVA: 0x002017E8 File Offset: 0x001FF9E8 [Token(Token = "0x60090E1")] [Address(RVA = "0x1E7E020", Offset = "0x1E7CA20", VA = "0x181E7E020")] public DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature) { /* An exception occurred when decompiling this method (060090E1) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.DigitallySigned::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm,System.Byte[]) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_19: stloc:ArgumentNullException(var_0_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("signature"))) } 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: 0x1700175D RID: 5981 // (get) Token: 0x060090E2 RID: 37090 RVA: 0x00201818 File Offset: 0x001FFA18 [Token(Token = "0x1700175D")] public virtual SignatureAndHashAlgorithm Algorithm { [Token(Token = "0x60090E2")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")] get { return this.mAlgorithm; } } // Token: 0x1700175E RID: 5982 // (get) Token: 0x060090E3 RID: 37091 RVA: 0x0020182C File Offset: 0x001FFA2C [Token(Token = "0x1700175E")] public virtual byte[] Signature { [Token(Token = "0x60090E3")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")] get { return this.mSignature; } } // Token: 0x060090E4 RID: 37092 RVA: 0x00201840 File Offset: 0x001FFA40 [Token(Token = "0x60090E4")] [Address(RVA = "0x1E7DEC0", Offset = "0x1E7C8C0", VA = "0x181E7DEC0", Slot = "6")] public virtual void Encode(Stream output) { SignatureAndHashAlgorithm signatureAndHashAlgorithm = this.mAlgorithm; if (signatureAndHashAlgorithm != 0) { byte signature = signatureAndHashAlgorithm.Signature; } TlsUtilities.WriteOpaque16(this.mSignature, output); } // Token: 0x060090E5 RID: 37093 RVA: 0x0020186C File Offset: 0x001FFA6C [Token(Token = "0x60090E5")] [Address(RVA = "0x1E7DF50", Offset = "0x1E7C950", VA = "0x181E7DF50")] public static DigitallySigned Parse(TlsContext context, Stream input) { int num = 0; if (TlsUtilities.IsTlsV12(context)) { SignatureAndHashAlgorithm signatureAndHashAlgorithm = SignatureAndHashAlgorithm.Parse(input); } byte[] array = TlsUtilities.ReadOpaque16(input); return new DigitallySigned(num, array); } // Token: 0x0400601E RID: 24606 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400601E")] protected readonly SignatureAndHashAlgorithm mAlgorithm; // Token: 0x0400601F RID: 24607 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400601F")] protected readonly byte[] mSignature; } }