156 lines
4.8 KiB
C#
156 lines
4.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001ED1 RID: 7889
|
|
[Token(Token = "0x2001ED1")]
|
|
public class AttributeCertificate : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C5AA RID: 50602 RVA: 0x002CA418 File Offset: 0x002C8618
|
|
[Token(Token = "0x600C5AA")]
|
|
[Address(RVA = "0x2D832E0", Offset = "0x2D822E0", VA = "0x182D832E0")]
|
|
public static AttributeCertificate GetInstance(object obj)
|
|
{
|
|
while (obj != 0)
|
|
{
|
|
Asn1SequenceParser parser3;
|
|
if (obj == 0)
|
|
{
|
|
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
|
Asn1SequenceParser parser = instance.Parser;
|
|
AttributeCertificate attributeCertificate;
|
|
AttributeCertificateInfo attributeCertificateInfo;
|
|
attributeCertificate.acinfo = attributeCertificateInfo;
|
|
Asn1SequenceParser parser2 = instance.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
attributeCertificate.signatureAlgorithm = algorithmIdentifier;
|
|
parser3 = instance.Parser;
|
|
DerBitString derBitString;
|
|
attributeCertificate.signatureValue = derBitString;
|
|
return attributeCertificate;
|
|
}
|
|
if (parser3 != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C5AB RID: 50603 RVA: 0x002CA48C File Offset: 0x002C868C
|
|
[Token(Token = "0x600C5AB")]
|
|
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
|
public AttributeCertificate(AttributeCertificateInfo acinfo, AlgorithmIdentifier signatureAlgorithm, DerBitString signatureValue)
|
|
{
|
|
this.acinfo = acinfo;
|
|
this.signatureAlgorithm = signatureAlgorithm;
|
|
this.signatureValue = signatureValue;
|
|
}
|
|
|
|
// Token: 0x0600C5AC RID: 50604 RVA: 0x002CA4B4 File Offset: 0x002C86B4
|
|
[Token(Token = "0x600C5AC")]
|
|
[Address(RVA = "0x2D83690", Offset = "0x2D82690", VA = "0x182D83690")]
|
|
private AttributeCertificate(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
AttributeCertificateInfo attributeCertificateInfo;
|
|
this.acinfo = attributeCertificateInfo;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
this.signatureAlgorithm = algorithmIdentifier;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
DerBitString derBitString;
|
|
this.signatureValue = derBitString;
|
|
}
|
|
|
|
// Token: 0x17001E84 RID: 7812
|
|
// (get) Token: 0x0600C5AD RID: 50605 RVA: 0x002CA4FC File Offset: 0x002C86FC
|
|
[Token(Token = "0x17001E84")]
|
|
public AttributeCertificateInfo ACInfo
|
|
{
|
|
[Token(Token = "0x600C5AD")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.acinfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E85 RID: 7813
|
|
// (get) Token: 0x0600C5AE RID: 50606 RVA: 0x002CA510 File Offset: 0x002C8710
|
|
[Token(Token = "0x17001E85")]
|
|
public AlgorithmIdentifier SignatureAlgorithm
|
|
{
|
|
[Token(Token = "0x600C5AE")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.signatureAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E86 RID: 7814
|
|
// (get) Token: 0x0600C5AF RID: 50607 RVA: 0x002CA524 File Offset: 0x002C8724
|
|
[Token(Token = "0x17001E86")]
|
|
public DerBitString SignatureValue
|
|
{
|
|
[Token(Token = "0x600C5AF")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.signatureValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C5B0 RID: 50608 RVA: 0x002CA538 File Offset: 0x002C8738
|
|
[Token(Token = "0x600C5B0")]
|
|
[Address(RVA = "0xBDDB90", Offset = "0xBDCB90", VA = "0x180BDDB90")]
|
|
public byte[] GetSignatureOctets()
|
|
{
|
|
Asn1Object asn1Object = this.signatureValue.ToAsn1Object();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C5B1 RID: 50609 RVA: 0x002CA558 File Offset: 0x002C8758
|
|
[Token(Token = "0x600C5B1")]
|
|
[Address(RVA = "0x2D83520", Offset = "0x2D82520", VA = "0x182D83520", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[3];
|
|
AttributeCertificateInfo attributeCertificateInfo = this.acinfo;
|
|
if (attributeCertificateInfo != 0)
|
|
{
|
|
}
|
|
array[0] = attributeCertificateInfo;
|
|
AlgorithmIdentifier algorithmIdentifier = this.signatureAlgorithm;
|
|
if (algorithmIdentifier != 0)
|
|
{
|
|
}
|
|
array[1] = algorithmIdentifier;
|
|
DerBitString derBitString = this.signatureValue;
|
|
if (derBitString != 0)
|
|
{
|
|
}
|
|
array[2] = derBitString;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007C16 RID: 31766
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007C16")]
|
|
private readonly AttributeCertificateInfo acinfo;
|
|
|
|
// Token: 0x04007C17 RID: 31767
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007C17")]
|
|
private readonly AlgorithmIdentifier signatureAlgorithm;
|
|
|
|
// Token: 0x04007C18 RID: 31768
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007C18")]
|
|
private readonly DerBitString signatureValue;
|
|
}
|
|
}
|