This commit is contained in:
niko
2026-04-08 23:40:05 +02:00
parent d6894bcbc7
commit 18dc73f922
7750 changed files with 1795369 additions and 0 deletions
@@ -0,0 +1,122 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
{
// Token: 0x0200153E RID: 5438
[Token(Token = "0x200153E")]
[StructLayout(3)]
public class DefaultTlsSignerCredentials : AbstractTlsSignerCredentials
{
// Token: 0x060090BF RID: 37055 RVA: 0x002010A8 File Offset: 0x001FF2A8
[Token(Token = "0x60090BF")]
[Address(RVA = "0x1E7BEE0", Offset = "0x1E7A8E0", VA = "0x181E7BEE0")]
public DefaultTlsSignerCredentials(TlsContext context, Certificate certificate, AsymmetricKeyParameter privateKey)
{
}
// Token: 0x060090C0 RID: 37056 RVA: 0x002010B8 File Offset: 0x001FF2B8
[Token(Token = "0x60090C0")]
[Address(RVA = "0x1E7BF00", Offset = "0x1E7A900", VA = "0x181E7BF00")]
public DefaultTlsSignerCredentials(TlsContext context, Certificate certificate, AsymmetricKeyParameter privateKey, SignatureAndHashAlgorithm signatureAndHashAlgorithm)
{
/*
An exception occurred when decompiling this method (060090C0)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.DefaultTlsSignerCredentials::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsContext,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.Certificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_8E:
stloc:string(var_7_94, call:string(Platform::GetTypeName, ldloc:AsymmetricKeyParameter[exp:object](privateKey)))
stloc:ArgumentException(var_8_AC, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("type not supported: "), ldloc:string(var_7_94)), ldstr:string("privateKey")))
}
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: 0x1700175A RID: 5978
// (get) Token: 0x060090C1 RID: 37057 RVA: 0x00201174 File Offset: 0x001FF374
[Token(Token = "0x1700175A")]
public override Certificate Certificate
{
[Token(Token = "0x60090C1")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")]
get
{
return this.mCertificate;
}
}
// Token: 0x060090C2 RID: 37058 RVA: 0x00201188 File Offset: 0x001FF388
[Token(Token = "0x60090C2")]
[Address(RVA = "0x1E7BCF0", Offset = "0x1E7A6F0", VA = "0x181E7BCF0", Slot = "8")]
public override byte[] GenerateCertificateSignature(byte[] hash)
{
bool flag = TlsUtilities.IsTlsV12(this.mContext);
TlsSigner tlsSigner = this.mSigner;
if (!flag)
{
AsymmetricKeyParameter asymmetricKeyParameter = this.mPrivateKey;
int num = 0;
num += num;
num++;
asymmetricKeyParameter += asymmetricKeyParameter;
}
SignatureAndHashAlgorithm signatureAndHashAlgorithm = this.mSignatureAndHashAlgorithm;
int num2 = 0;
num2 += num2;
num2++;
signatureAndHashAlgorithm += signatureAndHashAlgorithm;
num2 += 2;
num2 += 19;
throw new NullReferenceException();
}
// Token: 0x1700175B RID: 5979
// (get) Token: 0x060090C3 RID: 37059 RVA: 0x002011F8 File Offset: 0x001FF3F8
[Token(Token = "0x1700175B")]
public override SignatureAndHashAlgorithm SignatureAndHashAlgorithm
{
[Token(Token = "0x60090C3")]
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
get
{
return this.mSignatureAndHashAlgorithm;
}
}
// Token: 0x04006011 RID: 24593
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006011")]
protected readonly TlsContext mContext;
// Token: 0x04006012 RID: 24594
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006012")]
protected readonly Certificate mCertificate;
// Token: 0x04006013 RID: 24595
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006013")]
protected readonly AsymmetricKeyParameter mPrivateKey;
// Token: 0x04006014 RID: 24596
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006014")]
protected readonly SignatureAndHashAlgorithm mSignatureAndHashAlgorithm;
// Token: 0x04006015 RID: 24597
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006015")]
protected readonly TlsSigner mSigner;
}
}