Files
2026-04-08 23:40:05 +02:00

197 lines
9.4 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.TeleTrust;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
{
// Token: 0x020013F0 RID: 5104
[Token(Token = "0x20013F0")]
[StructLayout(3)]
internal class OcspUtilities
{
// Token: 0x060081FF RID: 33279 RVA: 0x001BA3E0 File Offset: 0x001B85E0
[Token(Token = "0x60081FF")]
[Address(RVA = "0xC22D10", Offset = "0xC21710", VA = "0x180C22D10")]
static OcspUtilities()
{
IDictionary dictionary = Platform.CreateHashtable();
OcspUtilities.algorithms = dictionary;
OcspUtilities.oids = Platform.CreateHashtable();
OcspUtilities.noParams = new HashSet();
IDictionary dictionary2 = OcspUtilities.algorithms;
DerObjectIdentifier md2WithRsaEncryption = PkcsObjectIdentifiers.MD2WithRsaEncryption;
IDictionary dictionary3 = OcspUtilities.algorithms;
DerObjectIdentifier md2WithRsaEncryption2 = PkcsObjectIdentifiers.MD2WithRsaEncryption;
IDictionary dictionary4 = OcspUtilities.algorithms;
DerObjectIdentifier md5WithRsaEncryption = PkcsObjectIdentifiers.MD5WithRsaEncryption;
IDictionary dictionary5 = OcspUtilities.algorithms;
DerObjectIdentifier md5WithRsaEncryption2 = PkcsObjectIdentifiers.MD5WithRsaEncryption;
IDictionary dictionary6 = OcspUtilities.algorithms;
DerObjectIdentifier sha1WithRsaEncryption = PkcsObjectIdentifiers.Sha1WithRsaEncryption;
IDictionary dictionary7 = OcspUtilities.algorithms;
DerObjectIdentifier sha1WithRsaEncryption2 = PkcsObjectIdentifiers.Sha1WithRsaEncryption;
IDictionary dictionary8 = OcspUtilities.algorithms;
DerObjectIdentifier sha224WithRsaEncryption = PkcsObjectIdentifiers.Sha224WithRsaEncryption;
IDictionary dictionary9 = OcspUtilities.algorithms;
DerObjectIdentifier sha224WithRsaEncryption2 = PkcsObjectIdentifiers.Sha224WithRsaEncryption;
IDictionary dictionary10 = OcspUtilities.algorithms;
DerObjectIdentifier sha256WithRsaEncryption = PkcsObjectIdentifiers.Sha256WithRsaEncryption;
IDictionary dictionary11 = OcspUtilities.algorithms;
DerObjectIdentifier sha256WithRsaEncryption2 = PkcsObjectIdentifiers.Sha256WithRsaEncryption;
IDictionary dictionary12 = OcspUtilities.algorithms;
DerObjectIdentifier sha384WithRsaEncryption = PkcsObjectIdentifiers.Sha384WithRsaEncryption;
IDictionary dictionary13 = OcspUtilities.algorithms;
DerObjectIdentifier sha384WithRsaEncryption2 = PkcsObjectIdentifiers.Sha384WithRsaEncryption;
IDictionary dictionary14 = OcspUtilities.algorithms;
DerObjectIdentifier sha512WithRsaEncryption = PkcsObjectIdentifiers.Sha512WithRsaEncryption;
IDictionary dictionary15 = OcspUtilities.algorithms;
DerObjectIdentifier sha512WithRsaEncryption2 = PkcsObjectIdentifiers.Sha512WithRsaEncryption;
IDictionary dictionary16 = OcspUtilities.algorithms;
DerObjectIdentifier rsaSignatureWithRipeMD = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD160;
IDictionary dictionary17 = OcspUtilities.algorithms;
DerObjectIdentifier rsaSignatureWithRipeMD2 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD160;
IDictionary dictionary18 = OcspUtilities.algorithms;
DerObjectIdentifier rsaSignatureWithRipeMD3 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD128;
IDictionary dictionary19 = OcspUtilities.algorithms;
DerObjectIdentifier rsaSignatureWithRipeMD4 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD128;
IDictionary dictionary20 = OcspUtilities.algorithms;
DerObjectIdentifier rsaSignatureWithRipeMD5 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD256;
IDictionary dictionary21 = OcspUtilities.algorithms;
DerObjectIdentifier rsaSignatureWithRipeMD6 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD256;
IDictionary dictionary22 = OcspUtilities.algorithms;
DerObjectIdentifier idDsaWithSha = X9ObjectIdentifiers.IdDsaWithSha1;
IDictionary dictionary23 = OcspUtilities.algorithms;
DerObjectIdentifier idDsaWithSha2 = X9ObjectIdentifiers.IdDsaWithSha1;
IDictionary dictionary24 = OcspUtilities.algorithms;
DerObjectIdentifier dsaWithSha = NistObjectIdentifiers.DsaWithSha224;
IDictionary dictionary25 = OcspUtilities.algorithms;
DerObjectIdentifier dsaWithSha2 = NistObjectIdentifiers.DsaWithSha256;
IDictionary dictionary26 = OcspUtilities.algorithms;
DerObjectIdentifier ecdsaWithSha = X9ObjectIdentifiers.ECDsaWithSha1;
IDictionary dictionary27 = OcspUtilities.algorithms;
DerObjectIdentifier ecdsaWithSha2 = X9ObjectIdentifiers.ECDsaWithSha1;
IDictionary dictionary28 = OcspUtilities.algorithms;
DerObjectIdentifier ecdsaWithSha3 = X9ObjectIdentifiers.ECDsaWithSha224;
IDictionary dictionary29 = OcspUtilities.algorithms;
DerObjectIdentifier ecdsaWithSha4 = X9ObjectIdentifiers.ECDsaWithSha256;
IDictionary dictionary30 = OcspUtilities.algorithms;
DerObjectIdentifier ecdsaWithSha5 = X9ObjectIdentifiers.ECDsaWithSha384;
IDictionary dictionary31 = OcspUtilities.algorithms;
DerObjectIdentifier ecdsaWithSha6 = X9ObjectIdentifiers.ECDsaWithSha512;
IDictionary dictionary32 = OcspUtilities.algorithms;
DerObjectIdentifier gostR3411x94WithGostR3410x = CryptoProObjectIdentifiers.GostR3411x94WithGostR3410x94;
IDictionary dictionary33 = OcspUtilities.algorithms;
DerObjectIdentifier gostR3411x94WithGostR3410x2 = CryptoProObjectIdentifiers.GostR3411x94WithGostR3410x94;
IDictionary dictionary34 = OcspUtilities.oids;
IDictionary dictionary35 = OcspUtilities.oids;
IDictionary dictionary36 = OcspUtilities.oids;
IDictionary dictionary37 = OcspUtilities.oids;
IDictionary dictionary38 = OcspUtilities.oids;
IDictionary dictionary39 = OcspUtilities.oids;
IDictionary dictionary40 = OcspUtilities.oids;
IDictionary dictionary41 = OcspUtilities.oids;
IDictionary dictionary42 = OcspUtilities.oids;
IDictionary dictionary43 = OcspUtilities.oids;
IDictionary dictionary44 = OcspUtilities.oids;
IDictionary dictionary45 = OcspUtilities.oids;
IDictionary dictionary46 = OcspUtilities.oids;
IDictionary dictionary47 = OcspUtilities.oids;
IDictionary dictionary48 = OcspUtilities.oids;
IDictionary dictionary49 = OcspUtilities.oids;
IDictionary dictionary50 = OcspUtilities.oids;
IDictionary dictionary51 = OcspUtilities.oids;
IDictionary dictionary52 = OcspUtilities.oids;
IDictionary dictionary53 = OcspUtilities.oids;
IDictionary dictionary54 = OcspUtilities.oids;
IDictionary dictionary55 = OcspUtilities.oids;
ISet set = OcspUtilities.noParams;
ISet set2 = OcspUtilities.noParams;
ISet set3 = OcspUtilities.noParams;
ISet set4 = OcspUtilities.noParams;
ISet set5 = OcspUtilities.noParams;
ISet set6 = OcspUtilities.noParams;
ISet set7 = OcspUtilities.noParams;
ISet set8 = OcspUtilities.noParams;
throw new NullReferenceException();
}
// Token: 0x06008200 RID: 33280 RVA: 0x001BA6A8 File Offset: 0x001B88A8
[Token(Token = "0x6008200")]
[Address(RVA = "0xC22A70", Offset = "0xC21470", VA = "0x180C22A70")]
internal static DerObjectIdentifier GetAlgorithmOid(string algorithmName)
{
string text = Platform.ToUpperInvariant(algorithmName);
IDictionary dictionary = OcspUtilities.algorithms;
if (text == 0)
{
return new DerObjectIdentifier(text);
}
IDictionary dictionary2 = OcspUtilities.algorithms;
IDictionary dictionary3 = OcspUtilities.algorithms;
throw new NullReferenceException();
}
// Token: 0x06008201 RID: 33281 RVA: 0x001BA6E4 File Offset: 0x001B88E4
[Token(Token = "0x6008201")]
[Address(RVA = "0xC22960", Offset = "0xC21360", VA = "0x180C22960")]
internal static string GetAlgorithmName(DerObjectIdentifier oid)
{
IDictionary dictionary = OcspUtilities.oids;
return oid.identifier;
}
// Token: 0x06008202 RID: 33282 RVA: 0x001BA70C File Offset: 0x001B890C
[Token(Token = "0x6008202")]
[Address(RVA = "0xC22BF0", Offset = "0xC215F0", VA = "0x180C22BF0")]
internal static AlgorithmIdentifier GetSigAlgID(DerObjectIdentifier sigOid)
{
ISet set = OcspUtilities.noParams;
DerNull instance = DerNull.Instance;
return new AlgorithmIdentifier(sigOid, instance);
}
// Token: 0x1700151A RID: 5402
// (get) Token: 0x06008203 RID: 33283 RVA: 0x001BA73C File Offset: 0x001B893C
[Token(Token = "0x1700151A")]
internal static IEnumerable AlgNames
{
[Token(Token = "0x6008203")]
[Address(RVA = "0xC24000", Offset = "0xC22A00", VA = "0x180C24000")]
get
{
IDictionary dictionary = OcspUtilities.algorithms;
throw new NullReferenceException();
}
}
// Token: 0x06008204 RID: 33284 RVA: 0x001BA754 File Offset: 0x001B8954
[Token(Token = "0x6008204")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public OcspUtilities()
{
}
// Token: 0x04005BD9 RID: 23513
[Token(Token = "0x4005BD9")]
private static readonly IDictionary algorithms;
// Token: 0x04005BDA RID: 23514
[Token(Token = "0x4005BDA")]
private static readonly IDictionary oids;
// Token: 0x04005BDB RID: 23515
[Token(Token = "0x4005BDB")]
private static readonly ISet noParams;
}
}