74 lines
2.6 KiB
C#
74 lines
2.6 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
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: 0x02001340 RID: 4928
|
|
[Token(Token = "0x2001340")]
|
|
[StructLayout(3)]
|
|
public class AuthorityKeyIdentifierStructure : AuthorityKeyIdentifier
|
|
{
|
|
// Token: 0x06007C22 RID: 31778 RVA: 0x0019D550 File Offset: 0x0019B750
|
|
[Token(Token = "0x6007C22")]
|
|
[Address(RVA = "0x5299D0", Offset = "0x5283D0", VA = "0x1805299D0")]
|
|
public AuthorityKeyIdentifierStructure(Asn1OctetString encodedValue)
|
|
{
|
|
Asn1Object asn1Object;
|
|
do
|
|
{
|
|
Stream octetStream = encodedValue.GetOctetStream();
|
|
if (asn1Object == 0)
|
|
{
|
|
}
|
|
}
|
|
while (asn1Object == 0);
|
|
}
|
|
|
|
// Token: 0x06007C23 RID: 31779 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6007C23")]
|
|
[Address(RVA = "0x5294E0", Offset = "0x527EE0", VA = "0x1805294E0")]
|
|
private static Asn1Sequence FromCertificate(X509Certificate certificate)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06007C24 RID: 31780 RVA: 0x0019D574 File Offset: 0x0019B774
|
|
[Token(Token = "0x6007C24")]
|
|
[Address(RVA = "0x5298A0", Offset = "0x5282A0", VA = "0x1805298A0")]
|
|
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: 0x06007C25 RID: 31781 RVA: 0x0019D5A8 File Offset: 0x0019B7A8
|
|
[Token(Token = "0x6007C25")]
|
|
[Address(RVA = "0x529AC0", Offset = "0x5284C0", VA = "0x180529AC0")]
|
|
public AuthorityKeyIdentifierStructure(X509Certificate certificate)
|
|
{
|
|
Asn1Sequence asn1Sequence = AuthorityKeyIdentifierStructure.FromCertificate(certificate);
|
|
base..ctor(asn1Sequence);
|
|
}
|
|
|
|
// Token: 0x06007C26 RID: 31782 RVA: 0x0019D5C4 File Offset: 0x0019B7C4
|
|
[Token(Token = "0x6007C26")]
|
|
[Address(RVA = "0x529A90", Offset = "0x528490", VA = "0x180529A90")]
|
|
public AuthorityKeyIdentifierStructure(AsymmetricKeyParameter pubKey)
|
|
{
|
|
Asn1Sequence asn1Sequence = AuthorityKeyIdentifierStructure.FromKey(pubKey);
|
|
base..ctor(asn1Sequence);
|
|
}
|
|
}
|
|
}
|