This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,71 @@
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: 0x0200191D RID: 6429
[Token(Token = "0x200191D")]
public class AuthorityKeyIdentifierStructure : AuthorityKeyIdentifier
{
// Token: 0x060097FC RID: 38908 RVA: 0x001F4F18 File Offset: 0x001F3118
[Token(Token = "0x60097FC")]
[Address(RVA = "0x1624300", Offset = "0x1623100", VA = "0x181624300")]
public AuthorityKeyIdentifierStructure(Asn1OctetString encodedValue)
{
Asn1Object asn1Object;
do
{
Stream octetStream = encodedValue.GetOctetStream();
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x060097FD RID: 38909 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x60097FD")]
[Address(RVA = "0x1623E10", Offset = "0x1622C10", VA = "0x181623E10")]
private static Asn1Sequence FromCertificate(X509Certificate certificate)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060097FE RID: 38910 RVA: 0x001F4F3C File Offset: 0x001F313C
[Token(Token = "0x60097FE")]
[Address(RVA = "0x16241D0", Offset = "0x1622FD0", VA = "0x1816241D0")]
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: 0x060097FF RID: 38911 RVA: 0x001F4F70 File Offset: 0x001F3170
[Token(Token = "0x60097FF")]
[Address(RVA = "0x16243F0", Offset = "0x16231F0", VA = "0x1816243F0")]
public AuthorityKeyIdentifierStructure(X509Certificate certificate)
{
Asn1Sequence asn1Sequence = AuthorityKeyIdentifierStructure.FromCertificate(certificate);
base..ctor(asn1Sequence);
}
// Token: 0x06009800 RID: 38912 RVA: 0x001F4F8C File Offset: 0x001F318C
[Token(Token = "0x6009800")]
[Address(RVA = "0x16243C0", Offset = "0x16231C0", VA = "0x1816243C0")]
public AuthorityKeyIdentifierStructure(AsymmetricKeyParameter pubKey)
{
Asn1Sequence asn1Sequence = AuthorityKeyIdentifierStructure.FromKey(pubKey);
base..ctor(asn1Sequence);
}
}
}
@@ -0,0 +1,52 @@
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 Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Extension
{
// Token: 0x0200191E RID: 6430
[Token(Token = "0x200191E")]
public class SubjectKeyIdentifierStructure : SubjectKeyIdentifier
{
// Token: 0x06009801 RID: 38913 RVA: 0x001F4FA8 File Offset: 0x001F31A8
[Token(Token = "0x6009801")]
[Address(RVA = "0x1625DC0", Offset = "0x1624BC0", VA = "0x181625DC0")]
public SubjectKeyIdentifierStructure(Asn1OctetString encodedValue)
{
Asn1Object asn1Object;
do
{
Stream octetStream = encodedValue.GetOctetStream();
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x06009802 RID: 38914 RVA: 0x001F4FCC File Offset: 0x001F31CC
[Token(Token = "0x6009802")]
[Address(RVA = "0x1625C70", Offset = "0x1624A70", VA = "0x181625C70")]
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: 0x06009803 RID: 38915 RVA: 0x001F5008 File Offset: 0x001F3208
[Token(Token = "0x6009803")]
[Address(RVA = "0x1625E80", Offset = "0x1624C80", VA = "0x181625E80")]
public SubjectKeyIdentifierStructure(AsymmetricKeyParameter pubKey)
{
Asn1OctetString asn1OctetString = SubjectKeyIdentifierStructure.FromPublicKey(pubKey);
base..ctor(asn1OctetString);
}
}
}
@@ -0,0 +1,93 @@
using System;
using System.Collections;
using System.IO;
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: 0x0200191F RID: 6431
[Token(Token = "0x200191F")]
public class X509ExtensionUtilities
{
// Token: 0x06009804 RID: 38916 RVA: 0x001F5024 File Offset: 0x001F3224
[Token(Token = "0x6009804")]
[Address(RVA = "0x1631EC0", Offset = "0x1630CC0", VA = "0x181631EC0")]
public static Asn1Object FromExtensionValue(Asn1OctetString extensionValue)
{
Stream octetStream = extensionValue.GetOctetStream();
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x06009805 RID: 38917 RVA: 0x001F5040 File Offset: 0x001F3240
[Token(Token = "0x6009805")]
[Address(RVA = "0x1632380", Offset = "0x1631180", VA = "0x181632380")]
public static ICollection GetIssuerAlternativeNames(X509Certificate cert)
{
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
ICollection collection;
return collection;
}
// Token: 0x06009806 RID: 38918 RVA: 0x001F505C File Offset: 0x001F325C
[Token(Token = "0x6009806")]
[Address(RVA = "0x1632410", Offset = "0x1631210", VA = "0x181632410")]
public static ICollection GetSubjectAlternativeNames(X509Certificate cert)
{
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
ICollection collection;
return collection;
}
// Token: 0x06009807 RID: 38919 RVA: 0x001F5078 File Offset: 0x001F3278
[Token(Token = "0x6009807")]
[Address(RVA = "0x1631EF0", Offset = "0x1630CF0", VA = "0x181631EF0")]
private static ICollection GetAlternativeName(Asn1OctetString extVal)
{
int num;
Asn1Object asn1Object;
do
{
num = 0;
IList list = Platform.CreateArrayList();
if (extVal == 0)
{
goto IL_77;
}
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 != 0)
{
throw new NullReferenceException();
}
IL_77:
throw new NullReferenceException();
}
// Token: 0x06009808 RID: 38920 RVA: 0x001F5158 File Offset: 0x001F3358
[Token(Token = "0x6009808")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public X509ExtensionUtilities()
{
}
}
}