Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

285 lines
10 KiB
C#

using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI
{
// Token: 0x02001F16 RID: 7958
[Token(Token = "0x2001F16")]
public class PersonalData : Asn1Encodable
{
// Token: 0x0600C7DE RID: 51166 RVA: 0x002D40C4 File Offset: 0x002D22C4
[Token(Token = "0x600C7DE")]
[Address(RVA = "0x2E827C0", Offset = "0x2E817C0", VA = "0x182E827C0")]
public static PersonalData GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C7DE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.PersonalData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.PersonalData::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_26:
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
}
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: 0x0600C7DF RID: 51167 RVA: 0x002D4118 File Offset: 0x002D2318
[Token(Token = "0x600C7DF")]
[Address(RVA = "0x2E82EE0", Offset = "0x2E81EE0", VA = "0x182E82EE0")]
private PersonalData(Asn1Sequence seq)
{
IEnumerator enumerator = seq.GetEnumerator();
NameOrPseudonym nameOrPseudonym;
this.nameOrPseudonym = nameOrPseudonym;
if (nameOrPseudonym != 0)
{
Asn1TaggedObject instance = Asn1TaggedObject.GetInstance(nameOrPseudonym);
int tagNo = instance.tagNo;
if (tagNo != 0)
{
if (tagNo != 0)
{
if (tagNo != 0)
{
if (tagNo != 0)
{
ulong num;
DirectoryString instance2 = DirectoryString.GetInstance(instance, num != 0UL);
this.postalAddress = instance2;
}
int num2 = 0;
string @string = DerPrintableString.GetInstance(instance, num2 != 0).GetString();
this.gender = @string;
}
ulong num3;
DirectoryString instance3 = DirectoryString.GetInstance(instance, num3 != 0UL);
this.placeOfBirth = instance3;
}
int num4 = 0;
DerGeneralizedTime instance4 = DerGeneralizedTime.GetInstance(instance, num4 != 0);
this.dateOfBirth = instance4;
}
int num5 = 0;
BigInteger value = DerInteger.GetInstance(instance, num5 != 0).Value;
this.nameDistinguisher = value;
}
}
// Token: 0x0600C7E0 RID: 51168 RVA: 0x002D41EC File Offset: 0x002D23EC
[Token(Token = "0x600C7E0")]
[Address(RVA = "0x2E82E70", Offset = "0x2E81E70", VA = "0x182E82E70")]
public PersonalData(NameOrPseudonym nameOrPseudonym, BigInteger nameDistinguisher, DerGeneralizedTime dateOfBirth, DirectoryString placeOfBirth, string gender, DirectoryString postalAddress)
{
this.gender = 0;
this.postalAddress = 0;
this.nameOrPseudonym = nameOrPseudonym;
this.nameDistinguisher = nameDistinguisher;
this.placeOfBirth = 0;
this.dateOfBirth = dateOfBirth;
}
// Token: 0x17001EFE RID: 7934
// (get) Token: 0x0600C7E1 RID: 51169 RVA: 0x002D422C File Offset: 0x002D242C
[Token(Token = "0x17001EFE")]
public NameOrPseudonym NameOrPseudonym
{
[Token(Token = "0x600C7E1")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.nameOrPseudonym;
}
}
// Token: 0x17001EFF RID: 7935
// (get) Token: 0x0600C7E2 RID: 51170 RVA: 0x002D4240 File Offset: 0x002D2440
[Token(Token = "0x17001EFF")]
public BigInteger NameDistinguisher
{
[Token(Token = "0x600C7E2")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.nameDistinguisher;
}
}
// Token: 0x17001F00 RID: 7936
// (get) Token: 0x0600C7E3 RID: 51171 RVA: 0x002D4254 File Offset: 0x002D2454
[Token(Token = "0x17001F00")]
public DerGeneralizedTime DateOfBirth
{
[Token(Token = "0x600C7E3")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
get
{
return this.dateOfBirth;
}
}
// Token: 0x17001F01 RID: 7937
// (get) Token: 0x0600C7E4 RID: 51172 RVA: 0x002D4268 File Offset: 0x002D2468
[Token(Token = "0x17001F01")]
public DirectoryString PlaceOfBirth
{
[Token(Token = "0x600C7E4")]
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
get
{
return this.placeOfBirth;
}
}
// Token: 0x17001F02 RID: 7938
// (get) Token: 0x0600C7E5 RID: 51173 RVA: 0x002D427C File Offset: 0x002D247C
[Token(Token = "0x17001F02")]
public string Gender
{
[Token(Token = "0x600C7E5")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
get
{
return this.gender;
}
}
// Token: 0x17001F03 RID: 7939
// (get) Token: 0x0600C7E6 RID: 51174 RVA: 0x002D4290 File Offset: 0x002D2490
[Token(Token = "0x17001F03")]
public DirectoryString PostalAddress
{
[Token(Token = "0x600C7E6")]
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
get
{
return this.postalAddress;
}
}
// Token: 0x0600C7E7 RID: 51175 RVA: 0x002D42A4 File Offset: 0x002D24A4
[Token(Token = "0x600C7E7")]
[Address(RVA = "0x2E829C0", Offset = "0x2E819C0", VA = "0x182E829C0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
NameOrPseudonym nameOrPseudonym = this.nameOrPseudonym;
if (nameOrPseudonym != 0)
{
}
array[0] = nameOrPseudonym;
Asn1EncodableVector asn1EncodableVector;
asn1EncodableVector.Add(array);
int num = 0;
if (this.nameDistinguisher != num)
{
Asn1Encodable[] array2 = new Asn1Encodable[0];
DerInteger derInteger = new DerInteger(this.nameDistinguisher);
int num2;
int num3;
DerTaggedObject derTaggedObject = new DerTaggedObject(num2 != 0, num3, derInteger);
num3 = 0;
num2 = 0;
if (derTaggedObject != 0)
{
}
array2[0] = derTaggedObject;
asn1EncodableVector.Add(array2);
}
if (this.dateOfBirth != num)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
DerGeneralizedTime derGeneralizedTime = this.dateOfBirth;
int num4;
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num4 != 0, 1, derGeneralizedTime);
num4 = 0;
if (derTaggedObject2 != 0)
{
}
array3[0] = derTaggedObject2;
asn1EncodableVector.Add(array3);
}
if (this.placeOfBirth != num)
{
Asn1Encodable[] array4 = new Asn1Encodable[1];
DirectoryString directoryString = this.placeOfBirth;
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, directoryString);
if (derTaggedObject3 != 0)
{
}
array4[0] = derTaggedObject3;
asn1EncodableVector.Add(array4);
}
if (this.gender != num)
{
Asn1Encodable[] array5 = new Asn1Encodable[1];
DerPrintableString derPrintableString = new DerPrintableString(this.gender, true);
int num5;
DerTaggedObject derTaggedObject4 = new DerTaggedObject(num5 != 0, 3, derPrintableString);
num5 = 0;
if (derTaggedObject4 != 0)
{
}
array5[0] = derTaggedObject4;
asn1EncodableVector.Add(array5);
}
if (this.postalAddress != num)
{
Asn1Encodable[] array6 = new Asn1Encodable[1];
DirectoryString directoryString2 = this.postalAddress;
DerTaggedObject derTaggedObject5 = new DerTaggedObject(true, 4, directoryString2);
if (derTaggedObject5 != 0)
{
}
array6[0] = derTaggedObject5;
asn1EncodableVector.Add(array6);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007D6E RID: 32110
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D6E")]
private readonly NameOrPseudonym nameOrPseudonym;
// Token: 0x04007D6F RID: 32111
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D6F")]
private readonly BigInteger nameDistinguisher;
// Token: 0x04007D70 RID: 32112
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007D70")]
private readonly DerGeneralizedTime dateOfBirth;
// Token: 0x04007D71 RID: 32113
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007D71")]
private readonly DirectoryString placeOfBirth;
// Token: 0x04007D72 RID: 32114
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007D72")]
private readonly string gender;
// Token: 0x04007D73 RID: 32115
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4007D73")]
private readonly DirectoryString postalAddress;
}
}