This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 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: 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);
}
}
}
@@ -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: 0x020019FE RID: 6654
[Token(Token = "0x20019FE")]
public class SubjectKeyIdentifierStructure : SubjectKeyIdentifier
{
// Token: 0x06009BCF RID: 39887 RVA: 0x001FE040 File Offset: 0x001FC240
[Token(Token = "0x6009BCF")]
[Address(RVA = "0x412F00", Offset = "0x411F00", VA = "0x180412F00")]
public SubjectKeyIdentifierStructure(Asn1OctetString encodedValue)
{
Asn1Object asn1Object;
do
{
Stream octetStream = encodedValue.GetOctetStream();
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x06009BD0 RID: 39888 RVA: 0x001FE064 File Offset: 0x001FC264
[Token(Token = "0x6009BD0")]
[Address(RVA = "0x412DB0", Offset = "0x411DB0", VA = "0x180412DB0")]
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: 0x06009BD1 RID: 39889 RVA: 0x001FE0A0 File Offset: 0x001FC2A0
[Token(Token = "0x6009BD1")]
[Address(RVA = "0x412FC0", Offset = "0x411FC0", VA = "0x180412FC0")]
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: 0x020019FF RID: 6655
[Token(Token = "0x20019FF")]
public class X509ExtensionUtilities
{
// Token: 0x06009BD2 RID: 39890 RVA: 0x001FE0BC File Offset: 0x001FC2BC
[Token(Token = "0x6009BD2")]
[Address(RVA = "0x41F2A0", Offset = "0x41E2A0", VA = "0x18041F2A0")]
public static Asn1Object FromExtensionValue(Asn1OctetString extensionValue)
{
Stream octetStream = extensionValue.GetOctetStream();
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x06009BD3 RID: 39891 RVA: 0x001FE0D8 File Offset: 0x001FC2D8
[Token(Token = "0x6009BD3")]
[Address(RVA = "0x41F760", Offset = "0x41E760", VA = "0x18041F760")]
public static ICollection GetIssuerAlternativeNames(X509Certificate cert)
{
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
ICollection collection;
return collection;
}
// Token: 0x06009BD4 RID: 39892 RVA: 0x001FE0F4 File Offset: 0x001FC2F4
[Token(Token = "0x6009BD4")]
[Address(RVA = "0x41F7F0", Offset = "0x41E7F0", VA = "0x18041F7F0")]
public static ICollection GetSubjectAlternativeNames(X509Certificate cert)
{
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
ICollection collection;
return collection;
}
// Token: 0x06009BD5 RID: 39893 RVA: 0x001FE110 File Offset: 0x001FC310
[Token(Token = "0x6009BD5")]
[Address(RVA = "0x41F2D0", Offset = "0x41E2D0", VA = "0x18041F2D0")]
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: 0x06009BD6 RID: 39894 RVA: 0x001FE1F0 File Offset: 0x001FC3F0
[Token(Token = "0x6009BD6")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public X509ExtensionUtilities()
{
}
}
}