219 lines
6.1 KiB
C#
219 lines
6.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x0200203F RID: 8255
|
|
[Token(Token = "0x200203F")]
|
|
public class PkiMessage : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CF0E RID: 53006 RVA: 0x002F176C File Offset: 0x002EF96C
|
|
[Token(Token = "0x600CF0E")]
|
|
[Address(RVA = "0x2FEE0E0", Offset = "0x2FED0E0", VA = "0x182FEE0E0")]
|
|
private PkiMessage(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser3;
|
|
do
|
|
{
|
|
base..ctor();
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
PkiHeader pkiHeader;
|
|
this.header = pkiHeader;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
PkiBody pkiBody;
|
|
this.body = pkiBody;
|
|
Asn1Encodable asn1Encodable;
|
|
if ((uint)2 >= asn1Encodable)
|
|
{
|
|
return;
|
|
}
|
|
parser3 = seq.Parser;
|
|
}
|
|
while (parser3 == 0);
|
|
Asn1Sequence asn1Sequence;
|
|
this.extraCerts = asn1Sequence;
|
|
DerBitString derBitString;
|
|
this.protection = derBitString;
|
|
}
|
|
|
|
// Token: 0x0600CF0F RID: 53007 RVA: 0x002F17C4 File Offset: 0x002EF9C4
|
|
[Token(Token = "0x600CF0F")]
|
|
[Address(RVA = "0x2FEDD10", Offset = "0x2FECD10", VA = "0x182FEDD10")]
|
|
public static PkiMessage GetInstance(object obj)
|
|
{
|
|
while (obj != 0)
|
|
{
|
|
Asn1Sequence instance;
|
|
if (obj == 0)
|
|
{
|
|
instance = Asn1Sequence.GetInstance(obj);
|
|
return new PkiMessage(instance);
|
|
}
|
|
if (instance != 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF10 RID: 53008 RVA: 0x002F17F8 File Offset: 0x002EF9F8
|
|
[Token(Token = "0x600CF10")]
|
|
[Address(RVA = "0x2FEDF70", Offset = "0x2FECF70", VA = "0x182FEDF70")]
|
|
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection, CmpCertificate[] extraCerts)
|
|
{
|
|
this.body = body;
|
|
this.header = header;
|
|
this.protection = protection;
|
|
DerSequence derSequence;
|
|
this.extraCerts = derSequence;
|
|
}
|
|
|
|
// Token: 0x0600CF11 RID: 53009 RVA: 0x002F1828 File Offset: 0x002EFA28
|
|
[Token(Token = "0x600CF11")]
|
|
[Address(RVA = "0x2FEE010", Offset = "0x2FED010", VA = "0x182FEE010")]
|
|
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection)
|
|
{
|
|
this.header = header;
|
|
this.body = body;
|
|
this.protection = protection;
|
|
}
|
|
|
|
// Token: 0x0600CF12 RID: 53010 RVA: 0x002F1850 File Offset: 0x002EFA50
|
|
[Token(Token = "0x600CF12")]
|
|
[Address(RVA = "0x2FEE080", Offset = "0x2FED080", VA = "0x182FEE080")]
|
|
public PkiMessage(PkiHeader header, PkiBody body)
|
|
{
|
|
this.header = header;
|
|
this.body = body;
|
|
this.protection = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x170020E0 RID: 8416
|
|
// (get) Token: 0x0600CF13 RID: 53011 RVA: 0x002F187C File Offset: 0x002EFA7C
|
|
[Token(Token = "0x170020E0")]
|
|
public virtual PkiHeader Header
|
|
{
|
|
[Token(Token = "0x600CF13")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.header;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020E1 RID: 8417
|
|
// (get) Token: 0x0600CF14 RID: 53012 RVA: 0x002F1890 File Offset: 0x002EFA90
|
|
[Token(Token = "0x170020E1")]
|
|
public virtual PkiBody Body
|
|
{
|
|
[Token(Token = "0x600CF14")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.body;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020E2 RID: 8418
|
|
// (get) Token: 0x0600CF15 RID: 53013 RVA: 0x002F18A4 File Offset: 0x002EFAA4
|
|
[Token(Token = "0x170020E2")]
|
|
public virtual DerBitString Protection
|
|
{
|
|
[Token(Token = "0x600CF15")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.protection;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF16 RID: 53014 RVA: 0x002F18B8 File Offset: 0x002EFAB8
|
|
[Token(Token = "0x600CF16")]
|
|
[Address(RVA = "0x2FEDBF0", Offset = "0x2FECBF0", VA = "0x182FEDBF0", Slot = "9")]
|
|
public virtual CmpCertificate[] GetExtraCerts()
|
|
{
|
|
if (this.extraCerts != 0)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
Asn1SequenceParser parser = this.extraCerts.Parser;
|
|
CmpCertificate cmpCertificate;
|
|
if (cmpCertificate != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = cmpCertificate;
|
|
}
|
|
return array;
|
|
}
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
|
|
// Token: 0x0600CF17 RID: 53015 RVA: 0x002F1908 File Offset: 0x002EFB08
|
|
[Token(Token = "0x600CF17")]
|
|
[Address(RVA = "0x2FEDE10", Offset = "0x2FECE10", VA = "0x182FEDE10", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
PkiHeader pkiHeader = this.header;
|
|
if (pkiHeader != 0)
|
|
{
|
|
}
|
|
array[0] = pkiHeader;
|
|
PkiBody pkiBody = this.body;
|
|
if (pkiBody != 0)
|
|
{
|
|
}
|
|
array[1] = pkiBody;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
DerBitString derBitString = this.protection;
|
|
int num = 0;
|
|
PkiMessage.AddOptional(asn1EncodableVector, num, derBitString);
|
|
Asn1Sequence asn1Sequence = this.extraCerts;
|
|
PkiMessage.AddOptional(asn1EncodableVector, 1, asn1Sequence);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CF18 RID: 53016 RVA: 0x002F197C File Offset: 0x002EFB7C
|
|
[Token(Token = "0x600CF18")]
|
|
[Address(RVA = "0x2FEDAF0", Offset = "0x2FECAF0", VA = "0x182FEDAF0")]
|
|
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
v.Add(array);
|
|
}
|
|
}
|
|
|
|
// Token: 0x04008340 RID: 33600
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008340")]
|
|
private readonly PkiHeader header;
|
|
|
|
// Token: 0x04008341 RID: 33601
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008341")]
|
|
private readonly PkiBody body;
|
|
|
|
// Token: 0x04008342 RID: 33602
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008342")]
|
|
private readonly DerBitString protection;
|
|
|
|
// Token: 0x04008343 RID: 33603
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4008343")]
|
|
private readonly Asn1Sequence extraCerts;
|
|
}
|
|
}
|