m
This commit is contained in:
+103
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
|
||||
{
|
||||
// Token: 0x02001C00 RID: 7168
|
||||
[Token(Token = "0x2001C00")]
|
||||
public class DigitallySigned
|
||||
{
|
||||
// Token: 0x0600B089 RID: 45193 RVA: 0x00261F18 File Offset: 0x00260118
|
||||
[Token(Token = "0x600B089")]
|
||||
[Address(RVA = "0x2338250", Offset = "0x2337250", VA = "0x182338250")]
|
||||
public DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B089)
|
||||
|
||||
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: 0x17001BFB RID: 7163
|
||||
// (get) Token: 0x0600B08A RID: 45194 RVA: 0x00261F48 File Offset: 0x00260148
|
||||
[Token(Token = "0x17001BFB")]
|
||||
public virtual SignatureAndHashAlgorithm Algorithm
|
||||
{
|
||||
[Token(Token = "0x600B08A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.mAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BFC RID: 7164
|
||||
// (get) Token: 0x0600B08B RID: 45195 RVA: 0x00261F5C File Offset: 0x0026015C
|
||||
[Token(Token = "0x17001BFC")]
|
||||
public virtual byte[] Signature
|
||||
{
|
||||
[Token(Token = "0x600B08B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.mSignature;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B08C RID: 45196 RVA: 0x00261F70 File Offset: 0x00260170
|
||||
[Token(Token = "0x600B08C")]
|
||||
[Address(RVA = "0x23380F0", Offset = "0x23370F0", VA = "0x1823380F0", 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: 0x0600B08D RID: 45197 RVA: 0x00261F9C File Offset: 0x0026019C
|
||||
[Token(Token = "0x600B08D")]
|
||||
[Address(RVA = "0x2338180", Offset = "0x2337180", VA = "0x182338180")]
|
||||
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: 0x0400701A RID: 28698
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400701A")]
|
||||
protected readonly SignatureAndHashAlgorithm mAlgorithm;
|
||||
|
||||
// Token: 0x0400701B RID: 28699
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400701B")]
|
||||
protected readonly byte[] mSignature;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user