Files
2026-04-08 23:40:05 +02:00

114 lines
5.8 KiB
C#

using System;
using System.IO;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x020013B0 RID: 5040
[Token(Token = "0x20013B0")]
[StructLayout(3)]
public class Pkcs10CertificationRequestDelaySigned : Pkcs10CertificationRequest
{
// Token: 0x06008058 RID: 32856 RVA: 0x001B0FA0 File Offset: 0x001AF1A0
[Token(Token = "0x6008058")]
[Address(RVA = "0x4DE6F0", Offset = "0x4DD0F0", VA = "0x1804DE6F0")]
protected Pkcs10CertificationRequestDelaySigned()
{
}
// Token: 0x06008059 RID: 32857 RVA: 0x001B0FB4 File Offset: 0x001AF1B4
[Token(Token = "0x6008059")]
[Address(RVA = "0x4DE820", Offset = "0x4DD220", VA = "0x1804DE820")]
public Pkcs10CertificationRequestDelaySigned(byte[] encoded)
: base(encoded)
{
}
// Token: 0x0600805A RID: 32858 RVA: 0x001B0FC8 File Offset: 0x001AF1C8
[Token(Token = "0x600805A")]
[Address(RVA = "0x4DE680", Offset = "0x4DD080", VA = "0x1804DE680")]
public Pkcs10CertificationRequestDelaySigned(Asn1Sequence seq)
: base(seq)
{
}
// Token: 0x0600805B RID: 32859 RVA: 0x001B0FDC File Offset: 0x001AF1DC
[Token(Token = "0x600805B")]
[Address(RVA = "0x4DE5A0", Offset = "0x4DCFA0", VA = "0x1804DE5A0")]
public Pkcs10CertificationRequestDelaySigned(Stream input)
{
Asn1Object asn1Object;
do
{
asn1Object = Asn1Object.FromStream(input);
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x0600805C RID: 32860 RVA: 0x001B0FFC File Offset: 0x001AF1FC
[Token(Token = "0x600805C")]
[Address(RVA = "0x4DE750", Offset = "0x4DD150", VA = "0x1804DE750")]
public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
{
}
// Token: 0x0600805D RID: 32861 RVA: 0x001B100C File Offset: 0x001AF20C
[Token(Token = "0x600805D")]
[Address(RVA = "0x4DE140", Offset = "0x4DCB40", VA = "0x1804DE140")]
public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
{
/*
An exception occurred when decompiling this method (0600805D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequestDelaySigned::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_82:
stloc:ArgumentNullException(var_13_8C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("signatureAlgorithm")))
}
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: 0x0600805E RID: 32862 RVA: 0x001B10A8 File Offset: 0x001AF2A8
[Token(Token = "0x600805E")]
[Address(RVA = "0x4DE0B0", Offset = "0x4DCAB0", VA = "0x1804DE0B0")]
public byte[] GetDataToSign()
{
return this.reqInfo.GetDerEncoded();
}
// Token: 0x0600805F RID: 32863 RVA: 0x001B10C8 File Offset: 0x001AF2C8
[Token(Token = "0x600805F")]
[Address(RVA = "0x4DE0D0", Offset = "0x4DCAD0", VA = "0x1804DE0D0")]
public void SignRequest(byte[] signedData)
{
DerBitString derBitString = new DerBitString(signedData);
this.sigBits = derBitString;
}
// Token: 0x06008060 RID: 32864 RVA: 0x001B10E4 File Offset: 0x001AF2E4
[Token(Token = "0x6008060")]
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
public void SignRequest(DerBitString signedData)
{
this.sigBits = signedData;
}
}
}