Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/X509/SigI/PersonalData.cs
T
2026-04-08 23:40:05 +02:00

289 lines
11 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI
{
// Token: 0x02001859 RID: 6233
[Token(Token = "0x2001859")]
[StructLayout(3)]
public class PersonalData : Asn1Encodable
{
// Token: 0x0600A836 RID: 43062 RVA: 0x0027332C File Offset: 0x0027152C
[Token(Token = "0x600A836")]
[Address(RVA = "0x2B0DBA0", Offset = "0x2B0C5A0", VA = "0x182B0DBA0")]
public static PersonalData GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600A836)
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: 0x0600A837 RID: 43063 RVA: 0x00273380 File Offset: 0x00271580
[Token(Token = "0x600A837")]
[Address(RVA = "0x2B0E2C0", Offset = "0x2B0CCC0", VA = "0x182B0E2C0")]
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)
{
if (tagNo != 1)
{
throw new NullReferenceException();
}
DirectoryString instance2 = DirectoryString.GetInstance(instance.GetObject());
this.postalAddress = instance2;
}
int num = 0;
string @string = DerPrintableString.GetInstance(instance, num != 0).GetString();
this.gender = @string;
}
DirectoryString instance3 = DirectoryString.GetInstance(instance.GetObject());
this.placeOfBirth = instance3;
}
int num2 = 0;
DerGeneralizedTime instance4 = DerGeneralizedTime.GetInstance(instance, num2 != 0);
this.dateOfBirth = instance4;
}
int num3 = 0;
BigInteger value = DerInteger.GetInstance(instance, num3 != 0).Value;
this.nameDistinguisher = value;
}
}
// Token: 0x0600A838 RID: 43064 RVA: 0x00273464 File Offset: 0x00271664
[Token(Token = "0x600A838")]
[Address(RVA = "0x2B0E250", Offset = "0x2B0CC50", VA = "0x182B0E250")]
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: 0x17001A60 RID: 6752
// (get) Token: 0x0600A839 RID: 43065 RVA: 0x002734A4 File Offset: 0x002716A4
[Token(Token = "0x17001A60")]
public NameOrPseudonym NameOrPseudonym
{
[Token(Token = "0x600A839")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.nameOrPseudonym;
}
}
// Token: 0x17001A61 RID: 6753
// (get) Token: 0x0600A83A RID: 43066 RVA: 0x002734B8 File Offset: 0x002716B8
[Token(Token = "0x17001A61")]
public BigInteger NameDistinguisher
{
[Token(Token = "0x600A83A")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.nameDistinguisher;
}
}
// Token: 0x17001A62 RID: 6754
// (get) Token: 0x0600A83B RID: 43067 RVA: 0x002734CC File Offset: 0x002716CC
[Token(Token = "0x17001A62")]
public DerGeneralizedTime DateOfBirth
{
[Token(Token = "0x600A83B")]
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
get
{
return this.dateOfBirth;
}
}
// Token: 0x17001A63 RID: 6755
// (get) Token: 0x0600A83C RID: 43068 RVA: 0x002734E0 File Offset: 0x002716E0
[Token(Token = "0x17001A63")]
public DirectoryString PlaceOfBirth
{
[Token(Token = "0x600A83C")]
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
get
{
return this.placeOfBirth;
}
}
// Token: 0x17001A64 RID: 6756
// (get) Token: 0x0600A83D RID: 43069 RVA: 0x002734F4 File Offset: 0x002716F4
[Token(Token = "0x17001A64")]
public string Gender
{
[Token(Token = "0x600A83D")]
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
get
{
return this.gender;
}
}
// Token: 0x17001A65 RID: 6757
// (get) Token: 0x0600A83E RID: 43070 RVA: 0x00273508 File Offset: 0x00271708
[Token(Token = "0x17001A65")]
public DirectoryString PostalAddress
{
[Token(Token = "0x600A83E")]
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
get
{
return this.postalAddress;
}
}
// Token: 0x0600A83F RID: 43071 RVA: 0x0027351C File Offset: 0x0027171C
[Token(Token = "0x600A83F")]
[Address(RVA = "0x2B0DDA0", Offset = "0x2B0C7A0", VA = "0x182B0DDA0", 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: 0x04006D72 RID: 28018
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006D72")]
private readonly NameOrPseudonym nameOrPseudonym;
// Token: 0x04006D73 RID: 28019
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006D73")]
private readonly BigInteger nameDistinguisher;
// Token: 0x04006D74 RID: 28020
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006D74")]
private readonly DerGeneralizedTime dateOfBirth;
// Token: 0x04006D75 RID: 28021
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006D75")]
private readonly DirectoryString placeOfBirth;
// Token: 0x04006D76 RID: 28022
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006D76")]
private readonly string gender;
// Token: 0x04006D77 RID: 28023
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4006D77")]
private readonly DirectoryString postalAddress;
}
}