161 lines
6.6 KiB
C#
161 lines
6.6 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
|
{
|
|
// Token: 0x02001F67 RID: 8039
|
|
[Token(Token = "0x2001F67")]
|
|
public class CertificationRequest : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C943 RID: 51523 RVA: 0x002D9BD0 File Offset: 0x002D7DD0
|
|
[Token(Token = "0x600C943")]
|
|
[Address(RVA = "0x2F7DC90", Offset = "0x2F7CC90", VA = "0x182F7DC90")]
|
|
public static CertificationRequest GetInstance(object obj)
|
|
{
|
|
while (obj != 0)
|
|
{
|
|
if (obj == 0)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
CertificationRequest certificationRequest;
|
|
return certificationRequest;
|
|
}
|
|
}
|
|
else if (obj != 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C944 RID: 51524 RVA: 0x002D9BFC File Offset: 0x002D7DFC
|
|
[Token(Token = "0x600C944")]
|
|
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
|
protected CertificationRequest()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600C945 RID: 51525 RVA: 0x002D9C10 File Offset: 0x002D7E10
|
|
[Token(Token = "0x600C945")]
|
|
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
|
public CertificationRequest(CertificationRequestInfo requestInfo, AlgorithmIdentifier algorithm, DerBitString signature)
|
|
{
|
|
this.reqInfo = requestInfo;
|
|
this.sigAlgId = algorithm;
|
|
this.sigBits = signature;
|
|
}
|
|
|
|
// Token: 0x0600C946 RID: 51526 RVA: 0x002D9C38 File Offset: 0x002D7E38
|
|
[Token(Token = "0x600C946")]
|
|
[Address(RVA = "0x2F7DF40", Offset = "0x2F7CF40", VA = "0x182F7DF40")]
|
|
[Obsolete]
|
|
public CertificationRequest(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C946)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequest::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_61:
|
|
stloc:ArgumentException(var_12_70, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
|
}
|
|
|
|
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: 0x0600C947 RID: 51527 RVA: 0x002D9CB8 File Offset: 0x002D7EB8
|
|
[Token(Token = "0x600C947")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
public CertificationRequestInfo GetCertificationRequestInfo()
|
|
{
|
|
return this.reqInfo;
|
|
}
|
|
|
|
// Token: 0x17001F37 RID: 7991
|
|
// (get) Token: 0x0600C948 RID: 51528 RVA: 0x002D9CCC File Offset: 0x002D7ECC
|
|
[Token(Token = "0x17001F37")]
|
|
public AlgorithmIdentifier SignatureAlgorithm
|
|
{
|
|
[Token(Token = "0x600C948")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.sigAlgId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F38 RID: 7992
|
|
// (get) Token: 0x0600C949 RID: 51529 RVA: 0x002D9CE0 File Offset: 0x002D7EE0
|
|
[Token(Token = "0x17001F38")]
|
|
public DerBitString Signature
|
|
{
|
|
[Token(Token = "0x600C949")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.sigBits;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C94A RID: 51530 RVA: 0x002D9CF4 File Offset: 0x002D7EF4
|
|
[Token(Token = "0x600C94A")]
|
|
[Address(RVA = "0xBDDB90", Offset = "0xBDCB90", VA = "0x180BDDB90")]
|
|
public byte[] GetSignatureOctets()
|
|
{
|
|
Asn1Object asn1Object = this.sigBits.ToAsn1Object();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C94B RID: 51531 RVA: 0x002D9D14 File Offset: 0x002D7F14
|
|
[Token(Token = "0x600C94B")]
|
|
[Address(RVA = "0x2F7DDD0", Offset = "0x2F7CDD0", VA = "0x182F7DDD0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[3];
|
|
CertificationRequestInfo certificationRequestInfo = this.reqInfo;
|
|
if (certificationRequestInfo != 0)
|
|
{
|
|
}
|
|
array[0] = certificationRequestInfo;
|
|
AlgorithmIdentifier algorithmIdentifier = this.sigAlgId;
|
|
if (algorithmIdentifier != 0)
|
|
{
|
|
}
|
|
array[1] = algorithmIdentifier;
|
|
DerBitString derBitString = this.sigBits;
|
|
if (derBitString != 0)
|
|
{
|
|
}
|
|
array[2] = derBitString;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007EB6 RID: 32438
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007EB6")]
|
|
protected CertificationRequestInfo reqInfo;
|
|
|
|
// Token: 0x04007EB7 RID: 32439
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007EB7")]
|
|
protected AlgorithmIdentifier sigAlgId;
|
|
|
|
// Token: 0x04007EB8 RID: 32440
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007EB8")]
|
|
protected DerBitString sigBits;
|
|
}
|
|
}
|