72 lines
2.5 KiB
C#
72 lines
2.5 KiB
C#
using System;
|
|
using System.IO;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Extension
|
|
{
|
|
// Token: 0x020019FD RID: 6653
|
|
[Token(Token = "0x20019FD")]
|
|
public class AuthorityKeyIdentifierStructure : AuthorityKeyIdentifier
|
|
{
|
|
// Token: 0x06009BCA RID: 39882 RVA: 0x001FDFB0 File Offset: 0x001FC1B0
|
|
[Token(Token = "0x6009BCA")]
|
|
[Address(RVA = "0x411410", Offset = "0x410410", VA = "0x180411410")]
|
|
public AuthorityKeyIdentifierStructure(Asn1OctetString encodedValue)
|
|
{
|
|
Asn1Object asn1Object;
|
|
do
|
|
{
|
|
Stream octetStream = encodedValue.GetOctetStream();
|
|
if (asn1Object == 0)
|
|
{
|
|
}
|
|
}
|
|
while (asn1Object == 0);
|
|
}
|
|
|
|
// Token: 0x06009BCB RID: 39883 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6009BCB")]
|
|
[Address(RVA = "0x410F20", Offset = "0x40FF20", VA = "0x180410F20")]
|
|
private static Asn1Sequence FromCertificate(X509Certificate certificate)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06009BCC RID: 39884 RVA: 0x001FDFD4 File Offset: 0x001FC1D4
|
|
[Token(Token = "0x6009BCC")]
|
|
[Address(RVA = "0x4112E0", Offset = "0x4102E0", VA = "0x1804112E0")]
|
|
private static Asn1Sequence FromKey(AsymmetricKeyParameter pubKey)
|
|
{
|
|
Asn1Object asn1Object = new AuthorityKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey)).ToAsn1Object();
|
|
if (asn1Object == 0 || asn1Object != 0)
|
|
{
|
|
string text;
|
|
InvalidKeyException ex = new InvalidKeyException(text);
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009BCD RID: 39885 RVA: 0x001FE008 File Offset: 0x001FC208
|
|
[Token(Token = "0x6009BCD")]
|
|
[Address(RVA = "0x411500", Offset = "0x410500", VA = "0x180411500")]
|
|
public AuthorityKeyIdentifierStructure(X509Certificate certificate)
|
|
{
|
|
Asn1Sequence asn1Sequence = AuthorityKeyIdentifierStructure.FromCertificate(certificate);
|
|
base..ctor(asn1Sequence);
|
|
}
|
|
|
|
// Token: 0x06009BCE RID: 39886 RVA: 0x001FE024 File Offset: 0x001FC224
|
|
[Token(Token = "0x6009BCE")]
|
|
[Address(RVA = "0x4114D0", Offset = "0x4104D0", VA = "0x1804114D0")]
|
|
public AuthorityKeyIdentifierStructure(AsymmetricKeyParameter pubKey)
|
|
{
|
|
Asn1Sequence asn1Sequence = AuthorityKeyIdentifierStructure.FromKey(pubKey);
|
|
base..ctor(asn1Sequence);
|
|
}
|
|
}
|
|
}
|