This commit is contained in:
niko
2026-04-08 23:40:05 +02:00
parent d6894bcbc7
commit 18dc73f922
7750 changed files with 1795369 additions and 0 deletions
@@ -0,0 +1,73 @@
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);
}
}
}
@@ -0,0 +1,54 @@
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 Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Extension
{
// Token: 0x02001341 RID: 4929
[Token(Token = "0x2001341")]
[StructLayout(3)]
public class SubjectKeyIdentifierStructure : SubjectKeyIdentifier
{
// Token: 0x06007C27 RID: 31783 RVA: 0x0019D5E0 File Offset: 0x0019B7E0
[Token(Token = "0x6007C27")]
[Address(RVA = "0x52AD70", Offset = "0x529770", VA = "0x18052AD70")]
public SubjectKeyIdentifierStructure(Asn1OctetString encodedValue)
{
Asn1Object asn1Object;
do
{
Stream octetStream = encodedValue.GetOctetStream();
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x06007C28 RID: 31784 RVA: 0x0019D604 File Offset: 0x0019B804
[Token(Token = "0x6007C28")]
[Address(RVA = "0x52AC20", Offset = "0x529620", VA = "0x18052AC20")]
private static Asn1OctetString FromPublicKey(AsymmetricKeyParameter pubKey)
{
Asn1Object asn1Object = new SubjectKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey)).ToAsn1Object();
if (asn1Object == 0 || asn1Object != 0)
{
throw new NullReferenceException();
}
throw new NullReferenceException();
}
// Token: 0x06007C29 RID: 31785 RVA: 0x0019D640 File Offset: 0x0019B840
[Token(Token = "0x6007C29")]
[Address(RVA = "0x52AE30", Offset = "0x529830", VA = "0x18052AE30")]
public SubjectKeyIdentifierStructure(AsymmetricKeyParameter pubKey)
{
Asn1OctetString asn1OctetString = SubjectKeyIdentifierStructure.FromPublicKey(pubKey);
base..ctor(asn1OctetString);
}
}
}
@@ -0,0 +1,98 @@
using System;
using System.Collections;
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.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Extension
{
// Token: 0x02001342 RID: 4930
[Token(Token = "0x2001342")]
[StructLayout(3)]
public class X509ExtensionUtilities
{
// Token: 0x06007C2A RID: 31786 RVA: 0x0019D65C File Offset: 0x0019B85C
[Token(Token = "0x6007C2A")]
[Address(RVA = "0x5370B0", Offset = "0x535AB0", VA = "0x1805370B0")]
public static Asn1Object FromExtensionValue(Asn1OctetString extensionValue)
{
Stream octetStream = extensionValue.GetOctetStream();
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x06007C2B RID: 31787 RVA: 0x0019D678 File Offset: 0x0019B878
[Token(Token = "0x6007C2B")]
[Address(RVA = "0x5375B0", Offset = "0x535FB0", VA = "0x1805375B0")]
public static ICollection GetIssuerAlternativeNames(X509Certificate cert)
{
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
ICollection collection;
return collection;
}
// Token: 0x06007C2C RID: 31788 RVA: 0x0019D694 File Offset: 0x0019B894
[Token(Token = "0x6007C2C")]
[Address(RVA = "0x537640", Offset = "0x536040", VA = "0x180537640")]
public static ICollection GetSubjectAlternativeNames(X509Certificate cert)
{
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
ICollection collection;
return collection;
}
// Token: 0x06007C2D RID: 31789 RVA: 0x0019D6B0 File Offset: 0x0019B8B0
[Token(Token = "0x6007C2D")]
[Address(RVA = "0x5370E0", Offset = "0x535AE0", VA = "0x1805370E0")]
private static ICollection GetAlternativeName(Asn1OctetString extVal)
{
int num;
Asn1Object asn1Object;
do
{
num = 0;
IList list = Platform.CreateArrayList();
if (extVal == 0)
{
goto IL_7B;
}
Stream octetStream = extVal.GetOctetStream();
}
while (Asn1Sequence.GetInstance(asn1Object).GetEnumerator() == 0);
IList list2 = Platform.CreateArrayList();
GeneralName generalName;
if (generalName.tag > 8)
{
throw new NullReferenceException();
}
Asn1Encodable obj = generalName.obj;
X509Name instance = X509Name.GetInstance(obj);
int hashCode = instance.GetHashCode();
Asn1Object asn1Object2 = instance.ToAsn1Object();
Stream octetStream2 = Asn1OctetString.GetInstance(0).GetOctetStream();
if (DerObjectIdentifier.GetInstance(obj) != 0)
{
}
if (num != -1)
{
}
if (num != 0)
{
throw new NullReferenceException();
}
IL_7B:
throw new NullReferenceException();
}
// Token: 0x06007C2E RID: 31790 RVA: 0x0019D794 File Offset: 0x0019B994
[Token(Token = "0x6007C2E")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public X509ExtensionUtilities()
{
}
}
}