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,81 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x02001A69 RID: 6761
[Token(Token = "0x2001A69")]
public class AsymmetricKeyEntry : Pkcs12Entry
{
// Token: 0x06009FDF RID: 40927 RVA: 0x00210DE0 File Offset: 0x0020EFE0
[Token(Token = "0x6009FDF")]
[Address(RVA = "0x63E3F0", Offset = "0x63D3F0", VA = "0x18063E3F0")]
public AsymmetricKeyEntry(AsymmetricKeyParameter key)
{
IDictionary dictionary = Platform.CreateHashtable();
base..ctor(dictionary);
this.key = key;
}
// Token: 0x06009FE0 RID: 40928 RVA: 0x00210E04 File Offset: 0x0020F004
[Token(Token = "0x6009FE0")]
[Address(RVA = "0x63E3C0", Offset = "0x63D3C0", VA = "0x18063E3C0")]
[Obsolete]
public AsymmetricKeyEntry(AsymmetricKeyParameter key, Hashtable attributes)
: base(attributes)
{
this.key = key;
}
// Token: 0x06009FE1 RID: 40929 RVA: 0x00210E20 File Offset: 0x0020F020
[Token(Token = "0x6009FE1")]
[Address(RVA = "0x63E3C0", Offset = "0x63D3C0", VA = "0x18063E3C0")]
public AsymmetricKeyEntry(AsymmetricKeyParameter key, IDictionary attributes)
: base(attributes)
{
this.key = key;
}
// Token: 0x17001993 RID: 6547
// (get) Token: 0x06009FE2 RID: 40930 RVA: 0x00210E3C File Offset: 0x0020F03C
[Token(Token = "0x17001993")]
public AsymmetricKeyParameter Key
{
[Token(Token = "0x6009FE2")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.key;
}
}
// Token: 0x06009FE3 RID: 40931 RVA: 0x00210E50 File Offset: 0x0020F050
[Token(Token = "0x6009FE3")]
[Address(RVA = "0x63E2E0", Offset = "0x63D2E0", VA = "0x18063E2E0", Slot = "0")]
public override bool Equals(object obj)
{
if (obj != 0 && obj != 0)
{
AsymmetricKeyParameter asymmetricKeyParameter = this.key;
}
throw new NullReferenceException();
}
// Token: 0x06009FE4 RID: 40932 RVA: 0x00210E78 File Offset: 0x0020F078
[Token(Token = "0x6009FE4")]
[Address(RVA = "0x63E390", Offset = "0x63D390", VA = "0x18063E390", Slot = "2")]
public override int GetHashCode()
{
this.key.Finalize();
throw new NullReferenceException();
}
// Token: 0x04006AD7 RID: 27351
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006AD7")]
private readonly AsymmetricKeyParameter key;
}
}
@@ -0,0 +1,68 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x02001A6A RID: 6762
[Token(Token = "0x2001A6A")]
public sealed class EncryptedPrivateKeyInfoFactory
{
// Token: 0x06009FE5 RID: 40933 RVA: 0x00210E98 File Offset: 0x0020F098
[Token(Token = "0x6009FE5")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private EncryptedPrivateKeyInfoFactory()
{
}
// Token: 0x06009FE6 RID: 40934 RVA: 0x00210EAC File Offset: 0x0020F0AC
[Token(Token = "0x6009FE6")]
[Address(RVA = "0x63E640", Offset = "0x63D640", VA = "0x18063E640")]
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(DerObjectIdentifier algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
{
string identifier = algorithm.identifier;
EncryptedPrivateKeyInfo encryptedPrivateKeyInfo;
return encryptedPrivateKeyInfo;
}
// Token: 0x06009FE7 RID: 40935 RVA: 0x00210EC8 File Offset: 0x0020F0C8
[Token(Token = "0x6009FE7")]
[Address(RVA = "0x63E6B0", Offset = "0x63D6B0", VA = "0x18063E6B0")]
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
{
EncryptedPrivateKeyInfo encryptedPrivateKeyInfo;
return encryptedPrivateKeyInfo;
}
// Token: 0x06009FE8 RID: 40936 RVA: 0x00210ED8 File Offset: 0x0020F0D8
[Token(Token = "0x6009FE8")]
[Address(RVA = "0x63E720", Offset = "0x63D720", VA = "0x18063E720")]
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, PrivateKeyInfo keyInfo)
{
/*
An exception occurred when decompiling this method (06009FE8)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedPrivateKeyInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.EncryptedPrivateKeyInfoFactory::CreateEncryptedPrivateKeyInfo(System.String,System.Char[],System.Byte[],System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PrivateKeyInfo)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2E:
stloc:Exception(var_3_3E, newobj:Exception(Exception::.ctor, call:string(string::Concat, ldstr:string("Unknown encryption algorithm: "), ldloc:string(algorithm))))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
}
@@ -0,0 +1,442 @@
using System;
using System.Collections;
using System.IO;
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.Oiw;
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.Crypto;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x02001A6C RID: 6764
[Token(Token = "0x2001A6C")]
public class Pkcs10CertificationRequest : CertificationRequest
{
// Token: 0x06009FEE RID: 40942 RVA: 0x00210FC8 File Offset: 0x0020F1C8
[Token(Token = "0x6009FEE")]
[Address(RVA = "0x641310", Offset = "0x640310", VA = "0x180641310")]
static Pkcs10CertificationRequest()
{
/*
An exception occurred when decompiling this method (06009FEE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::.cctor()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:IDictionary(var_1_07, call:IDictionary(Platform::CreateHashtable))
stsfld:IDictionary(Pkcs10CertificationRequest::algorithms, ldloc:IDictionary(var_1_07))
stloc:IDictionary(var_3_15, call:IDictionary(Platform::CreateHashtable))
stsfld:IDictionary(Pkcs10CertificationRequest::exParams, ldloc:IDictionary(var_3_15))
stloc:IDictionary(var_5_24, call:IDictionary(Platform::CreateHashtable))
stsfld:IDictionary(Pkcs10CertificationRequest::keyAlgorithms, ldloc:IDictionary(var_5_24))
stsfld:IDictionary(Pkcs10CertificationRequest::oids, call:IDictionary(Platform::CreateHashtable))
stsfld:ISet(Pkcs10CertificationRequest::noParams, newobj:HashSet[exp:ISet](HashSet::.ctor))
stloc:IDictionary(var_7_49, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_8_50, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption))
stloc:IDictionary(var_9_57, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_10_5E, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption))
stloc:IDictionary(var_11_65, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_12_6C, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
stloc:IDictionary(var_13_73, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_14_7A, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
stloc:IDictionary(var_15_81, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_16_88, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
stloc:IDictionary(var_17_8F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_18_96, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
stloc:IDictionary(var_19_9D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_20_A4, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
stloc:IDictionary(var_21_AB, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_22_B2, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption))
stloc:IDictionary(var_23_B9, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_24_C0, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption))
stloc:IDictionary(var_25_C7, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_26_CE, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption))
stloc:IDictionary(var_27_D5, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_28_DC, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption))
stloc:IDictionary(var_29_E3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_30_EA, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption))
stloc:IDictionary(var_31_F1, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_32_F8, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption))
stloc:IDictionary(var_33_FF, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_34_106, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption))
stloc:IDictionary(var_35_10D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_36_114, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption))
stloc:IDictionary(var_37_11B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_38_122, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
stloc:IDictionary(var_39_129, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_40_130, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
stloc:IDictionary(var_41_137, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_42_13E, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
stloc:IDictionary(var_43_145, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_44_14C, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
stloc:IDictionary(var_45_153, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_46_15A, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
stloc:IDictionary(var_47_161, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_48_168, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
stloc:IDictionary(var_49_16F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_50_176, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128))
stloc:IDictionary(var_51_17D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_52_184, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128))
stloc:IDictionary(var_53_18B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_54_192, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160))
stloc:IDictionary(var_55_199, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_56_1A0, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160))
stloc:IDictionary(var_57_1A7, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_58_1AE, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256))
stloc:IDictionary(var_59_1B5, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_60_1BC, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256))
stloc:IDictionary(var_61_1C3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_62_1CA, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1))
stloc:IDictionary(var_63_1D1, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_64_1D8, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1))
stloc:IDictionary(var_65_1DF, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_66_1E6, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha224))
stloc:IDictionary(var_67_1ED, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_68_1F4, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha256))
stloc:IDictionary(var_69_1FB, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_70_202, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha384))
stloc:IDictionary(var_71_209, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_72_210, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha512))
stloc:IDictionary(var_73_217, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_74_21E, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1))
stloc:IDictionary(var_75_225, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_76_22C, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha224))
stloc:IDictionary(var_77_233, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_78_23A, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha256))
stloc:IDictionary(var_79_241, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_80_248, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha384))
stloc:IDictionary(var_81_24F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_82_256, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha512))
stloc:IDictionary(var_83_25D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_84_264, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1))
stloc:IDictionary(var_85_26B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_86_272, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94))
stloc:IDictionary(var_87_279, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_88_280, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94))
stloc:IDictionary(var_89_287, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_90_28E, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
stloc:IDictionary(var_91_295, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_92_29C, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
stloc:IDictionary(var_93_2A3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
stloc:DerObjectIdentifier(var_94_2AA, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
stloc:IDictionary(var_95_2B1, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_97_2B8, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_99_2BF, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_101_2C6, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_103_2CD, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_105_2D4, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_107_2DB, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_109_2E2, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_111_2E9, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_113_2F0, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_115_2F7, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_117_2FE, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_119_305, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_121_30C, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_123_313, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_125_31A, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_127_321, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
stloc:IDictionary(var_129_328, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009FEF RID: 40943 RVA: 0x00211300 File Offset: 0x0020F500
[Token(Token = "0x6009FEF")]
[Address(RVA = "0x640330", Offset = "0x63F330", VA = "0x180640330")]
private static RsassaPssParameters CreatePssParams(AlgorithmIdentifier hashAlgId, int saltSize)
{
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PkcsObjectIdentifiers.IdMgf1, hashAlgId);
DerInteger derInteger = new DerInteger(saltSize);
DerInteger derInteger2 = new DerInteger(1);
return new RsassaPssParameters(hashAlgId, algorithmIdentifier, derInteger, derInteger2);
}
// Token: 0x06009FF0 RID: 40944 RVA: 0x00211330 File Offset: 0x0020F530
[Token(Token = "0x6009FF0")]
[Address(RVA = "0x642D30", Offset = "0x641D30", VA = "0x180642D30")]
protected Pkcs10CertificationRequest()
{
}
// Token: 0x06009FF1 RID: 40945 RVA: 0x00211344 File Offset: 0x0020F544
[Token(Token = "0x6009FF1")]
[Address(RVA = "0x642F40", Offset = "0x641F40", VA = "0x180642F40")]
public Pkcs10CertificationRequest(byte[] encoded)
{
Asn1Object asn1Object;
do
{
asn1Object = Asn1Object.FromByteArray(encoded);
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x06009FF2 RID: 40946 RVA: 0x00211364 File Offset: 0x0020F564
[Token(Token = "0x6009FF2")]
[Address(RVA = "0x642D20", Offset = "0x641D20", VA = "0x180642D20")]
public Pkcs10CertificationRequest(Asn1Sequence seq)
: base(seq)
{
}
// Token: 0x06009FF3 RID: 40947 RVA: 0x00211378 File Offset: 0x0020F578
[Token(Token = "0x6009FF3")]
[Address(RVA = "0x642FE0", Offset = "0x641FE0", VA = "0x180642FE0")]
public Pkcs10CertificationRequest(Stream input)
{
Asn1Object asn1Object;
do
{
asn1Object = Asn1Object.FromStream(input);
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x06009FF4 RID: 40948 RVA: 0x00211398 File Offset: 0x0020F598
[Token(Token = "0x6009FF4")]
[Address(RVA = "0x642D40", Offset = "0x641D40", VA = "0x180642D40")]
public Pkcs10CertificationRequest(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
{
}
// Token: 0x06009FF5 RID: 40949 RVA: 0x002113A8 File Offset: 0x0020F5A8
[Token(Token = "0x6009FF5")]
[Address(RVA = "0x643080", Offset = "0x642080", VA = "0x180643080")]
[Obsolete]
public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
{
}
// Token: 0x06009FF6 RID: 40950 RVA: 0x002113B8 File Offset: 0x0020F5B8
[Token(Token = "0x6009FF6")]
[Address(RVA = "0x642DE0", Offset = "0x641DE0", VA = "0x180642DE0")]
public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
{
/*
An exception occurred when decompiling this method (06009FF6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISignatureFactory,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_27:
stloc:ArgumentException(var_2_36, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("expected public key"), ldstr:string("publicKey")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009FF7 RID: 40951 RVA: 0x002113FC File Offset: 0x0020F5FC
[Token(Token = "0x6009FF7")]
[Address(RVA = "0x640A70", Offset = "0x63FA70", VA = "0x180640A70")]
private void Init(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
{
int num;
for (;;)
{
num = 0;
if (signatureFactory != 0)
{
this.sigAlgId = signatureFactory;
SubjectPublicKeyInfo subjectPublicKeyInfo = SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(publicKey);
CertificationRequestInfo certificationRequestInfo;
this.reqInfo = certificationRequestInfo;
byte[] derEncoded = this.reqInfo.GetDerEncoded();
if (derEncoded != 0 && derEncoded != 0)
{
break;
}
}
}
if (num < typeof(IBlockResult).TypeHandle)
{
num += num;
num++;
}
DerBitString derBitString;
this.sigBits = derBitString;
}
// Token: 0x06009FF8 RID: 40952 RVA: 0x00211468 File Offset: 0x0020F668
[Token(Token = "0x6009FF8")]
[Address(RVA = "0x640870", Offset = "0x63F870", VA = "0x180640870")]
public AsymmetricKeyParameter GetPublicKey()
{
return PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo);
}
// Token: 0x06009FF9 RID: 40953 RVA: 0x0021148C File Offset: 0x0020F68C
[Token(Token = "0x6009FF9")]
[Address(RVA = "0x641130", Offset = "0x640130", VA = "0x180641130")]
public bool Verify()
{
Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo));
bool flag;
return flag;
}
// Token: 0x06009FFA RID: 40954 RVA: 0x002114B8 File Offset: 0x0020F6B8
[Token(Token = "0x6009FFA")]
[Address(RVA = "0x6411F0", Offset = "0x6401F0", VA = "0x1806411F0")]
public bool Verify(AsymmetricKeyParameter publicKey)
{
Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(publicKey);
bool flag;
return flag;
}
// Token: 0x06009FFB RID: 40955 RVA: 0x002114D4 File Offset: 0x0020F6D4
[Token(Token = "0x6009FFB")]
[Address(RVA = "0x6412A0", Offset = "0x6402A0", VA = "0x1806412A0")]
public bool Verify(IVerifierFactoryProvider verifierProvider)
{
bool flag;
return flag;
}
// Token: 0x06009FFC RID: 40956 RVA: 0x002114E8 File Offset: 0x0020F6E8
[Token(Token = "0x6009FFC")]
[Address(RVA = "0x640EB0", Offset = "0x63FEB0", VA = "0x180640EB0")]
public bool Verify(IVerifierFactory verifier)
{
byte[] derEncoded = this.reqInfo.GetDerEncoded();
string text = this.sigBits.GetString();
if (text != 0 && text != 0)
{
int num = 0;
if (num < derEncoded)
{
num += num;
num++;
}
int num2 = 0;
text += text;
SignatureException ex = new SignatureException("exception encoding TBS cert request", num2);
}
throw new NullReferenceException();
}
// Token: 0x06009FFD RID: 40957 RVA: 0x00211560 File Offset: 0x0020F760
[Token(Token = "0x6009FFD")]
[Address(RVA = "0x640D40", Offset = "0x63FD40", VA = "0x180640D40")]
private void SetSignatureParameters(ISigner signature, Asn1Encodable asn1Params)
{
/*
An exception occurred when decompiling this method (06009FFD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::SetSignatureParameters(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISigner,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1D:
stloc:Exception(var_3_27, call:Exception(Platform::CreateNotImplementedException, ldstr:string("signature algorithm with MGF1")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009FFE RID: 40958 RVA: 0x00211594 File Offset: 0x0020F794
[Token(Token = "0x6009FFE")]
[Address(RVA = "0x6408A0", Offset = "0x63F8A0", VA = "0x1806408A0")]
internal static string GetSignatureName(AlgorithmIdentifier sigAlgId)
{
DerObjectIdentifier objectID = sigAlgId.ObjectID;
if (objectID != 0 && objectID == 0)
{
Asn1Object asn1Object = sigAlgId.ToAsn1Object();
Asn1Object asn1Object2 = RsassaPssParameters.GetInstance(objectID).hashAlgorithm.ToAsn1Object();
string text;
return text + "withRSAandMGF1";
}
Asn1Object asn1Object3 = sigAlgId.ToAsn1Object();
throw new NullReferenceException();
}
// Token: 0x06009FFF RID: 40959 RVA: 0x002115E4 File Offset: 0x0020F7E4
[Token(Token = "0x6009FFF")]
[Address(RVA = "0x640450", Offset = "0x63F450", VA = "0x180640450")]
private static string GetDigestAlgName(DerObjectIdentifier digestAlgOID)
{
DerObjectIdentifier md = PkcsObjectIdentifiers.MD5;
DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1;
DerObjectIdentifier idSha2 = NistObjectIdentifiers.IdSha224;
DerObjectIdentifier idSha3 = NistObjectIdentifiers.IdSha256;
DerObjectIdentifier idSha4 = NistObjectIdentifiers.IdSha384;
DerObjectIdentifier idSha5 = NistObjectIdentifiers.IdSha512;
DerObjectIdentifier ripeMD = TeleTrusTObjectIdentifiers.RipeMD128;
DerObjectIdentifier ripeMD2 = TeleTrusTObjectIdentifiers.RipeMD160;
DerObjectIdentifier ripeMD3 = TeleTrusTObjectIdentifiers.RipeMD256;
DerObjectIdentifier gostR = CryptoProObjectIdentifiers.GostR3411;
return digestAlgOID.identifier;
}
// Token: 0x04006ADB RID: 27355
[Token(Token = "0x4006ADB")]
protected static readonly IDictionary algorithms;
// Token: 0x04006ADC RID: 27356
[Token(Token = "0x4006ADC")]
protected static readonly IDictionary exParams;
// Token: 0x04006ADD RID: 27357
[Token(Token = "0x4006ADD")]
protected static readonly IDictionary keyAlgorithms;
// Token: 0x04006ADE RID: 27358
[Token(Token = "0x4006ADE")]
protected static readonly IDictionary oids;
// Token: 0x04006ADF RID: 27359
[Token(Token = "0x4006ADF")]
protected static readonly ISet noParams;
}
}
@@ -0,0 +1,119 @@
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.Pkcs
{
// Token: 0x02001A6D RID: 6765
[Token(Token = "0x2001A6D")]
public class Pkcs10CertificationRequestDelaySigned : Pkcs10CertificationRequest
{
// Token: 0x0600A000 RID: 40960 RVA: 0x0021167C File Offset: 0x0020F87C
[Token(Token = "0x600A000")]
[Address(RVA = "0x640120", Offset = "0x63F120", VA = "0x180640120")]
protected Pkcs10CertificationRequestDelaySigned()
{
}
// Token: 0x0600A001 RID: 40961 RVA: 0x00211690 File Offset: 0x0020F890
[Token(Token = "0x600A001")]
[Address(RVA = "0x640250", Offset = "0x63F250", VA = "0x180640250")]
public Pkcs10CertificationRequestDelaySigned(byte[] encoded)
{
Asn1Object asn1Object;
do
{
asn1Object = Asn1Object.FromByteArray(encoded);
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x0600A002 RID: 40962 RVA: 0x002116B0 File Offset: 0x0020F8B0
[Token(Token = "0x600A002")]
[Address(RVA = "0x6400B0", Offset = "0x63F0B0", VA = "0x1806400B0")]
public Pkcs10CertificationRequestDelaySigned(Asn1Sequence seq)
: base(seq)
{
}
// Token: 0x0600A003 RID: 40963 RVA: 0x002116C4 File Offset: 0x0020F8C4
[Token(Token = "0x600A003")]
[Address(RVA = "0x63FFD0", Offset = "0x63EFD0", VA = "0x18063FFD0")]
public Pkcs10CertificationRequestDelaySigned(Stream input)
{
Asn1Object asn1Object;
do
{
asn1Object = Asn1Object.FromStream(input);
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
}
// Token: 0x0600A004 RID: 40964 RVA: 0x002116E4 File Offset: 0x0020F8E4
[Token(Token = "0x600A004")]
[Address(RVA = "0x640180", Offset = "0x63F180", VA = "0x180640180")]
public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
{
}
// Token: 0x0600A005 RID: 40965 RVA: 0x002116F4 File Offset: 0x0020F8F4
[Token(Token = "0x600A005")]
[Address(RVA = "0x63FB70", Offset = "0x63EB70", VA = "0x18063FB70")]
public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
{
/*
An exception occurred when decompiling this method (0600A005)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequestDelaySigned::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_82:
stloc:ArgumentNullException(var_13_8C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("signatureAlgorithm")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A006 RID: 40966 RVA: 0x00211790 File Offset: 0x0020F990
[Token(Token = "0x600A006")]
[Address(RVA = "0x4191F0", Offset = "0x4181F0", VA = "0x1804191F0")]
public byte[] GetDataToSign()
{
return this.reqInfo.GetDerEncoded();
}
// Token: 0x0600A007 RID: 40967 RVA: 0x002117B0 File Offset: 0x0020F9B0
[Token(Token = "0x600A007")]
[Address(RVA = "0x63FB00", Offset = "0x63EB00", VA = "0x18063FB00")]
public void SignRequest(byte[] signedData)
{
DerBitString derBitString = new DerBitString(signedData);
this.sigBits = derBitString;
}
// Token: 0x0600A008 RID: 40968 RVA: 0x002117CC File Offset: 0x0020F9CC
[Token(Token = "0x600A008")]
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810")]
public void SignRequest(DerBitString signedData)
{
this.sigBits = signedData;
}
}
}
@@ -0,0 +1,140 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x02001A6E RID: 6766
[Token(Token = "0x2001A6E")]
public abstract class Pkcs12Entry
{
// Token: 0x0600A009 RID: 40969 RVA: 0x002117E0 File Offset: 0x0020F9E0
[Token(Token = "0x600A009")]
[Address(RVA = "0x643250", Offset = "0x642250", VA = "0x180643250")]
protected internal Pkcs12Entry(IDictionary attributes)
{
int num;
do
{
num = 0;
base..ctor();
this.attributes = attributes;
if (typeof(IEnumerator).TypeHandle == 0 || typeof(IEnumerator).TypeHandle == 0)
{
goto IL_51;
}
if (typeof(string).TypeHandle == 0)
{
goto IL_34;
}
if (typeof(string).TypeHandle != 0)
{
}
}
while (num != 0);
return;
IL_34:
Type typeFromHandle = typeof(Asn1Encodable);
throw new NullReferenceException();
IL_51:
Type typeFromHandle2 = typeof(string);
throw new NullReferenceException();
}
// Token: 0x0600A00A RID: 40970 RVA: 0x0021186C File Offset: 0x0020FA6C
[Token(Token = "0x600A00A")]
[Address(RVA = "0x6431A0", Offset = "0x6421A0", VA = "0x1806431A0")]
[Obsolete]
public Asn1Encodable GetBagAttribute(DerObjectIdentifier oid)
{
IDictionary dictionary;
do
{
dictionary = this.attributes;
}
while (dictionary == 0);
throw new NullReferenceException();
}
// Token: 0x0600A00B RID: 40971 RVA: 0x00211890 File Offset: 0x0020FA90
[Token(Token = "0x600A00B")]
[Address(RVA = "0x6430F0", Offset = "0x6420F0", VA = "0x1806430F0")]
[Obsolete]
public Asn1Encodable GetBagAttribute(string oid)
{
IDictionary dictionary;
do
{
dictionary = this.attributes;
}
while (dictionary == 0);
throw new NullReferenceException();
}
// Token: 0x0600A00C RID: 40972 RVA: 0x002118B4 File Offset: 0x0020FAB4
[Token(Token = "0x600A00C")]
[Address(RVA = "0x643090", Offset = "0x642090", VA = "0x180643090")]
[Obsolete]
public IEnumerator GetBagAttributeKeys()
{
IDictionary dictionary = this.attributes;
throw new NullReferenceException();
}
// Token: 0x17001994 RID: 6548
[Token(Token = "0x17001994")]
public Asn1Encodable this[DerObjectIdentifier oid]
{
[Token(Token = "0x600A00D")]
[Address(RVA = "0x643640", Offset = "0x642640", VA = "0x180643640")]
get
{
IDictionary dictionary;
do
{
dictionary = this.attributes;
}
while (dictionary == 0);
throw new NullReferenceException();
}
}
// Token: 0x17001995 RID: 6549
[Token(Token = "0x17001995")]
public Asn1Encodable this[string oid]
{
[Token(Token = "0x600A00E")]
[Address(RVA = "0x643590", Offset = "0x642590", VA = "0x180643590")]
get
{
IDictionary dictionary;
do
{
dictionary = this.attributes;
}
while (dictionary == 0);
throw new NullReferenceException();
}
}
// Token: 0x17001996 RID: 6550
// (get) Token: 0x0600A00F RID: 40975 RVA: 0x00211918 File Offset: 0x0020FB18
[Token(Token = "0x17001996")]
public IEnumerable BagAttributeKeys
{
[Token(Token = "0x600A00F")]
[Address(RVA = "0x643510", Offset = "0x642510", VA = "0x180643510")]
get
{
IDictionary dictionary = this.attributes;
throw new NullReferenceException();
}
}
// Token: 0x04006AE0 RID: 27360
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006AE0")]
private readonly IDictionary attributes;
}
}
@@ -0,0 +1,1039 @@
using System;
using System.Collections;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x02001A6F RID: 6767
[Token(Token = "0x2001A6F")]
public class Pkcs12Store
{
// Token: 0x0600A010 RID: 40976 RVA: 0x00211934 File Offset: 0x0020FB34
[Token(Token = "0x600A010")]
[Address(RVA = "0x6439A0", Offset = "0x6429A0", VA = "0x1806439A0")]
private static SubjectKeyIdentifier CreateSubjectKeyID(AsymmetricKeyParameter pubKey)
{
return new SubjectKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey));
}
// Token: 0x0600A011 RID: 40977 RVA: 0x0021194C File Offset: 0x0020FB4C
[Token(Token = "0x600A011")]
[Address(RVA = "0x649FB0", Offset = "0x648FB0", VA = "0x180649FB0")]
internal Pkcs12Store(DerObjectIdentifier keyAlgorithm, DerObjectIdentifier certAlgorithm, bool useDerEncoding)
{
IDictionary dictionary = Platform.CreateHashtable();
Pkcs12Store.IgnoresCaseHashtable ignoresCaseHashtable;
ignoresCaseHashtable.orig = dictionary;
IDictionary dictionary2 = Platform.CreateHashtable();
ignoresCaseHashtable.keys = dictionary2;
this.keys = ignoresCaseHashtable;
IDictionary dictionary3 = Platform.CreateHashtable();
this.localIds = dictionary3;
IDictionary dictionary4 = Platform.CreateHashtable();
Pkcs12Store.IgnoresCaseHashtable ignoresCaseHashtable2;
ignoresCaseHashtable2.orig = dictionary4;
IDictionary dictionary5 = Platform.CreateHashtable();
ignoresCaseHashtable2.keys = dictionary5;
this.certs = ignoresCaseHashtable2;
IDictionary dictionary6 = Platform.CreateHashtable();
this.chainCerts = dictionary6;
IDictionary dictionary7 = Platform.CreateHashtable();
this.keyCerts = dictionary7;
base..ctor();
this.certAlgorithm = certAlgorithm;
this.useDerEncoding = useDerEncoding;
this.keyAlgorithm = keyAlgorithm;
}
// Token: 0x0600A012 RID: 40978 RVA: 0x00211A00 File Offset: 0x0020FC00
[Token(Token = "0x600A012")]
[Address(RVA = "0x649E80", Offset = "0x648E80", VA = "0x180649E80")]
public Pkcs12Store()
{
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
}
// Token: 0x0600A013 RID: 40979 RVA: 0x00211A1C File Offset: 0x0020FC1C
[Token(Token = "0x600A013")]
[Address(RVA = "0x649F00", Offset = "0x648F00", VA = "0x180649F00")]
public Pkcs12Store(Stream input, char[] password)
{
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
this.Load(input, password);
}
// Token: 0x0600A014 RID: 40980 RVA: 0x00211A40 File Offset: 0x0020FC40
[Token(Token = "0x600A014")]
[Address(RVA = "0x645640", Offset = "0x644640", VA = "0x180645640", Slot = "4")]
protected virtual void LoadKeyBag(PrivateKeyInfo privKeyInfo, Asn1Set bagAttributes)
{
AsymmetricKeyParameter asymmetricKeyParameter;
DerObjectIdentifier pkcs1Oid;
int num;
do
{
asymmetricKeyParameter = PrivateKeyFactory.CreateKey(privKeyInfo);
new AsymmetricKeyEntry(Platform.CreateHashtable()).key = asymmetricKeyParameter;
if (bagAttributes == 0)
{
goto IL_82;
}
IEnumerator enumerator = bagAttributes.GetEnumerator();
if (enumerator != 0)
{
if (enumerator == 0)
{
goto IL_BA;
}
Asn1Encodable asn1Encodable;
while (asn1Encodable <= 0)
{
}
Asn1Set asn1Set;
if (asn1Set.GetEnumerator() == 0)
{
}
pkcs1Oid = PkcsObjectIdentifiers.Pkcs1Oid;
Pkcs12Store.IgnoresCaseHashtable ignoresCaseHashtable = this.keys;
}
num = 0;
if (pkcs1Oid != 0)
{
}
}
while (num != 0);
DerObjectIdentifier pkcs1Oid2 = PkcsObjectIdentifiers.Pkcs1Oid;
if (pkcs1Oid != 0)
{
IDictionary dictionary = this.localIds;
}
string text;
DerObjectIdentifier derObjectIdentifier;
this.keys[text] = derObjectIdentifier;
IL_82:
this.unmarkedKeyEntry = asymmetricKeyParameter;
return;
IL_BA:
throw new NullReferenceException();
}
// Token: 0x0600A015 RID: 40981 RVA: 0x00211B14 File Offset: 0x0020FD14
[Token(Token = "0x600A015")]
[Address(RVA = "0x645B80", Offset = "0x644B80", VA = "0x180645B80", Slot = "5")]
protected virtual void LoadPkcs8ShroudedKeyBag(EncryptedPrivateKeyInfo encPrivKeyInfo, Asn1Set bagAttributes, char[] password, bool wrongPkcs12Zero)
{
if (password != 0)
{
string text = this.ToString();
}
}
// Token: 0x0600A016 RID: 40982 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600A016")]
[Address(RVA = "0x645BD0", Offset = "0x644BD0", VA = "0x180645BD0")]
public void Load(Stream input, char[] password)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600A017 RID: 40983 RVA: 0x00211B2C File Offset: 0x0020FD2C
[Token(Token = "0x600A017")]
[Address(RVA = "0x645290", Offset = "0x644290", VA = "0x180645290")]
public AsymmetricKeyEntry GetKey(string alias)
{
/*
An exception occurred when decompiling this method (0600A017)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.AsymmetricKeyEntry BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::GetKey(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1B:
stloc:ArgumentNullException(var_2_25, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("alias")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A018 RID: 40984 RVA: 0x00211B60 File Offset: 0x0020FD60
[Token(Token = "0x600A018")]
[Address(RVA = "0x645370", Offset = "0x644370", VA = "0x180645370")]
public bool IsCertificateEntry(string alias)
{
/*
An exception occurred when decompiling this method (0600A018)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::IsCertificateEntry(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_23:
stloc:ArgumentNullException(var_0_2D, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("alias")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A019 RID: 40985 RVA: 0x00211B9C File Offset: 0x0020FD9C
[Token(Token = "0x600A019")]
[Address(RVA = "0x6455B0", Offset = "0x6445B0", VA = "0x1806455B0")]
public bool IsKeyEntry(string alias)
{
/*
An exception occurred when decompiling this method (0600A019)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::IsKeyEntry(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_17:
stloc:ArgumentNullException(var_0_21, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("alias")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A01A RID: 40986 RVA: 0x00211BCC File Offset: 0x0020FDCC
[Token(Token = "0x600A01A")]
[Address(RVA = "0x643F60", Offset = "0x642F60", VA = "0x180643F60")]
private IDictionary GetAliasesTable()
{
int num;
IDictionary dictionary;
do
{
num = 0;
dictionary = Platform.CreateHashtable();
IDictionary orig = this.certs.orig;
if (dictionary != 0)
{
if (num < dictionary)
{
num += num;
num++;
}
if (dictionary != 0 && dictionary == 0)
{
goto IL_DE;
}
uint num2;
if (num < (int)num2)
{
num += num;
num++;
}
dictionary += dictionary;
num++;
num += 19;
dictionary += dictionary;
num++;
num += 19;
}
int num3 = 0;
if (num != 0)
{
}
if (num != 0)
{
goto IL_E4;
}
if (num != -1)
{
}
IDictionary orig2 = this.keys.orig;
if (num3 < num)
{
num3 += num3;
num3++;
}
int num4 = 0;
if (num != 0)
{
if (num3 < num4)
{
num3 += num3;
num3++;
}
if (num3 != 0 && num3 == 0)
{
goto IL_EA;
}
uint num5;
if (num3 < (int)num5)
{
num3 += num3;
num3++;
}
while (num3 != 0)
{
}
}
if (num != 0)
{
}
}
while (num != 0);
return dictionary;
IL_DE:
throw new NullReferenceException();
IL_E4:
throw new NullReferenceException();
IL_EA:
throw new NullReferenceException();
}
// Token: 0x17001997 RID: 6551
// (get) Token: 0x0600A01B RID: 40987 RVA: 0x00211CC8 File Offset: 0x0020FEC8
[Token(Token = "0x17001997")]
public IEnumerable Aliases
{
[Token(Token = "0x600A01B")]
[Address(RVA = "0x64A140", Offset = "0x649140", VA = "0x18064A140")]
get
{
EnumerableProxy enumerableProxy = new EnumerableProxy(this.GetAliasesTable());
throw new NullReferenceException();
}
}
// Token: 0x0600A01C RID: 40988 RVA: 0x00211CE8 File Offset: 0x0020FEE8
[Token(Token = "0x600A01C")]
[Address(RVA = "0x643940", Offset = "0x642940", VA = "0x180643940")]
public bool ContainsAlias(string alias)
{
return this.certs[alias] != 0 || this.keys[alias] != 0;
}
// Token: 0x0600A01D RID: 40989 RVA: 0x00211D20 File Offset: 0x0020FF20
[Token(Token = "0x600A01D")]
[Address(RVA = "0x645120", Offset = "0x644120", VA = "0x180645120")]
public X509CertificateEntry GetCertificate(string alias)
{
/*
An exception occurred when decompiling this method (0600A01D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.X509CertificateEntry BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::GetCertificate(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_39:
stloc:ArgumentNullException(var_5_43, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("alias")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A01E RID: 40990 RVA: 0x00211D74 File Offset: 0x0020FF74
[Token(Token = "0x600A01E")]
[Address(RVA = "0x644520", Offset = "0x643520", VA = "0x180644520")]
public string GetCertificateAlias(X509Certificate cert)
{
int num;
do
{
num = 0;
if (cert == 0)
{
goto IL_85;
}
IDictionary orig = this.certs.orig;
if (typeof(DictionaryEntry).TypeHandle == 0)
{
goto IL_97;
}
int num2 = 0;
if (typeof(DictionaryEntry).TypeHandle == 0)
{
goto IL_97;
}
if (num2 == 0)
{
}
if (num2 == 0)
{
goto IL_91;
}
int num3;
if (num2 != 0)
{
num3 = 0;
}
if (num != 0)
{
goto IL_A9;
}
if (num != -1)
{
if (num3 == 207)
{
goto IL_85;
}
if (num3 == 107)
{
}
}
IDictionary dictionary = this.keyCerts;
if (num != 0)
{
int num4 = num;
if (num4 != 0 && num4 == 0)
{
goto IL_A9;
}
num++;
}
num++;
if (num != 0)
{
}
}
while (num != 0);
if (num != -1)
{
}
IL_85:
ArgumentNullException ex = new ArgumentNullException("cert");
IL_91:
throw new NullReferenceException();
IL_97:
throw new NullReferenceException();
IL_A9:
throw new NullReferenceException();
}
// Token: 0x0600A01F RID: 40991 RVA: 0x00211E44 File Offset: 0x00210044
[Token(Token = "0x600A01F")]
[Address(RVA = "0x644A40", Offset = "0x643A40", VA = "0x180644A40")]
public X509CertificateEntry[] GetCertificateChain(string alias)
{
/*
An exception occurred when decompiling this method (0600A01F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.X509CertificateEntry[] BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::GetCertificateChain(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_107:
stloc:ArgumentNullException(var_22_111, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("alias")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A020 RID: 40992 RVA: 0x00211F64 File Offset: 0x00210164
[Token(Token = "0x600A020")]
[Address(RVA = "0x649930", Offset = "0x648930", VA = "0x180649930")]
public void SetCertificateEntry(string alias, X509CertificateEntry certEntry)
{
/*
An exception occurred when decompiling this method (0600A020)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::SetCertificateEntry(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.X509CertificateEntry)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3F:
stloc:ArgumentException(var_5_54, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("There is a key entry with the name "), ldloc:string(alias), ldstr:string("."))))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A021 RID: 40993 RVA: 0x00211FC8 File Offset: 0x002101C8
[Token(Token = "0x600A021")]
[Address(RVA = "0x649AF0", Offset = "0x648AF0", VA = "0x180649AF0")]
public void SetKeyEntry(string alias, AsymmetricKeyEntry keyEntry, X509CertificateEntry[] chain)
{
/*
An exception occurred when decompiling this method (0600A021)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::SetKeyEntry(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.AsymmetricKeyEntry,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.X509CertificateEntry[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_CB:
stloc:ArgumentException(var_14_D5, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("No certificate chain for private key")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A022 RID: 40994 RVA: 0x002120AC File Offset: 0x002102AC
[Token(Token = "0x600A022")]
[Address(RVA = "0x643BC0", Offset = "0x642BC0", VA = "0x180643BC0")]
public void DeleteEntry(string alias)
{
/*
An exception occurred when decompiling this method (0600A022)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::DeleteEntry(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_B3:
stloc:ArgumentNullException(var_15_BD, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("alias")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A023 RID: 40995 RVA: 0x00212178 File Offset: 0x00210378
[Token(Token = "0x600A023")]
[Address(RVA = "0x645420", Offset = "0x644420", VA = "0x180645420")]
public bool IsEntryOfType(string alias, Type entryType)
{
/*
An exception occurred when decompiling this method (0600A023)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs12Store::IsEntryOfType(System.String,System.Type)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_57:
stloc:ArgumentNullException(var_5_61, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("alias")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A024 RID: 40996 RVA: 0x002121E8 File Offset: 0x002103E8
[Token(Token = "0x600A024")]
[Address(RVA = "0x649E20", Offset = "0x648E20", VA = "0x180649E20")]
[Obsolete]
public int Size()
{
IDictionary aliasesTable = this.GetAliasesTable();
throw new NullReferenceException();
}
// Token: 0x17001998 RID: 6552
// (get) Token: 0x0600A025 RID: 40997 RVA: 0x00212204 File Offset: 0x00210404
[Token(Token = "0x17001998")]
public int Count
{
[Token(Token = "0x600A025")]
[Address(RVA = "0x649E20", Offset = "0x648E20", VA = "0x180649E20")]
get
{
IDictionary aliasesTable = this.GetAliasesTable();
throw new NullReferenceException();
}
}
// Token: 0x0600A026 RID: 40998 RVA: 0x00212220 File Offset: 0x00210420
[Token(Token = "0x600A026")]
[Address(RVA = "0x646E50", Offset = "0x645E50", VA = "0x180646E50")]
public void Save(Stream stream, char[] password, SecureRandom random)
{
int num2;
DerSequence derSequence;
Asn1Encodable[] array2;
X509CertificateEntry x509CertificateEntry;
IEnumerable bagAttributeKeys;
int num3;
Asn1Encodable[] array3;
for (;;)
{
if (random != 0)
{
IDictionary orig = this.keys.orig;
Asn1EncodableVector asn1EncodableVector;
if (asn1EncodableVector != 0)
{
if (asn1EncodableVector == 0)
{
}
if (asn1EncodableVector != 0)
{
byte[] array = new byte[20];
double num = random.NextDouble();
Pkcs12Store.IgnoresCaseHashtable ignoresCaseHashtable = this.keys;
DerObjectIdentifier derObjectIdentifier = this.keyAlgorithm;
IEnumerable enumerable;
if (enumerable != 0)
{
num2 = 0;
if (enumerable == 0 || enumerable != 0)
{
break;
}
}
else
{
if (derSequence != 0)
{
}
if (array2 == 0)
{
goto Block_6;
}
}
}
}
else
{
IEnumerable enumerable;
if (enumerable != 0)
{
}
DerSet derSet;
if (derSet == 0)
{
if (enumerable != (ulong)(-1L))
{
}
DerSequence derSequence2;
byte[] derEncoded = derSequence2.GetDerEncoded();
DerObjectIdentifier data = PkcsObjectIdentifiers.Data;
BerOctetString berOctetString = new BerOctetString(derEncoded);
ContentInfo contentInfo = new ContentInfo(data, berOctetString);
Asn1Object asn1Object = new Pkcs12PbeParams(new byte[20], 1024).ToAsn1Object();
HashSet hashSet = new HashSet();
ICollection collection;
if (collection != 0 && (collection == 0 || collection != 0))
{
DerObjectIdentifier x509Certificate = PkcsObjectIdentifiers.X509Certificate;
AsymmetricKeyParameter publicKey = x509CertificateEntry.cert.GetPublicKey();
DerOctetString derOctetString;
CertBag certBag = new CertBag(x509Certificate, derOctetString);
bagAttributeKeys = x509CertificateEntry.BagAttributeKeys;
if (bagAttributeKeys != 0)
{
num3 = 0;
if (bagAttributeKeys == 0 || bagAttributeKeys != 0)
{
goto IL_268;
}
}
else
{
DerSequence derSequence3;
if (derSequence3 != 0)
{
}
if (array3 == 0)
{
goto Block_13;
}
}
}
}
}
}
}
string identifier = PkcsObjectIdentifiers.Pkcs9AtFriendlyName.identifier;
bool flag;
while (flag)
{
}
Asn1Encodable[] array4 = new Asn1Encodable[1];
array2 = new Asn1Encodable[2];
DerObjectIdentifier derObjectIdentifier2 = new DerObjectIdentifier(num2);
throw new ArrayTypeMismatchException();
Block_6:
if (derSequence != (ulong)(-1L))
{
}
Asn1Encodable[] array5 = new Asn1Encodable[1];
Asn1Encodable[] array6 = new Asn1Encodable[2];
DerObjectIdentifier pkcs9AtFriendlyName = PkcsObjectIdentifiers.Pkcs9AtFriendlyName;
throw new ArrayTypeMismatchException();
IL_268:
Asn1Encodable asn1Encodable = x509CertificateEntry[num3];
string identifier2 = PkcsObjectIdentifiers.Pkcs9AtFriendlyName.identifier;
bool flag2;
while (flag2)
{
}
Asn1Encodable[] array7 = new Asn1Encodable[1];
array3 = new Asn1Encodable[2];
DerObjectIdentifier derObjectIdentifier3 = new DerObjectIdentifier(num3);
throw new ArrayTypeMismatchException();
Block_13:
if (bagAttributeKeys != (ulong)(-1L))
{
}
Asn1Encodable[] array8 = new Asn1Encodable[1];
Asn1Encodable[] array9 = new Asn1Encodable[2];
DerObjectIdentifier pkcs9AtFriendlyName2 = PkcsObjectIdentifiers.Pkcs9AtFriendlyName;
throw new ArrayTypeMismatchException();
}
// Token: 0x0600A027 RID: 40999 RVA: 0x002125FC File Offset: 0x002107FC
[Token(Token = "0x600A027")]
[Address(RVA = "0x643820", Offset = "0x642820", VA = "0x180643820")]
internal static byte[] CalculatePbeMac(DerObjectIdentifier oid, byte[] salt, int itCount, char[] password, bool wrongPkcs12Zero, byte[] data)
{
do
{
Asn1Encodable asn1Encodable = PbeUtilities.GenerateAlgorithmParameters(oid, salt, itCount);
}
while (PbeUtilities.CreateEngine(oid) == 0);
byte[] array;
return array;
}
// Token: 0x0600A028 RID: 41000 RVA: 0x00212624 File Offset: 0x00210824
[Token(Token = "0x600A028")]
[Address(RVA = "0x643A00", Offset = "0x642A00", VA = "0x180643A00")]
private static byte[] CryptPbeData(bool forEncryption, AlgorithmIdentifier algId, char[] password, bool wrongPkcs12Zero, byte[] data)
{
Asn1Object asn1Object = algId.ToAsn1Object();
Pkcs12PbeParams instance = Pkcs12PbeParams.GetInstance(algId.ObjectID);
Asn1Object asn1Object2 = algId.ToAsn1Object();
throw new NullReferenceException();
}
// Token: 0x04006AE1 RID: 27361
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006AE1")]
private readonly Pkcs12Store.IgnoresCaseHashtable keys;
// Token: 0x04006AE2 RID: 27362
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006AE2")]
private readonly IDictionary localIds;
// Token: 0x04006AE3 RID: 27363
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006AE3")]
private readonly Pkcs12Store.IgnoresCaseHashtable certs;
// Token: 0x04006AE4 RID: 27364
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006AE4")]
private readonly IDictionary chainCerts;
// Token: 0x04006AE5 RID: 27365
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006AE5")]
private readonly IDictionary keyCerts;
// Token: 0x04006AE6 RID: 27366
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4006AE6")]
private readonly DerObjectIdentifier keyAlgorithm;
// Token: 0x04006AE7 RID: 27367
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4006AE7")]
private readonly DerObjectIdentifier certAlgorithm;
// Token: 0x04006AE8 RID: 27368
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4006AE8")]
private readonly bool useDerEncoding;
// Token: 0x04006AE9 RID: 27369
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4006AE9")]
private AsymmetricKeyEntry unmarkedKeyEntry;
// Token: 0x04006AEA RID: 27370
[Token(Token = "0x4006AEA")]
private const int MinIterations = 1024;
// Token: 0x04006AEB RID: 27371
[Token(Token = "0x4006AEB")]
private const int SaltSize = 20;
// Token: 0x02001A70 RID: 6768
[Token(Token = "0x2001A70")]
internal class CertId
{
// Token: 0x0600A029 RID: 41001 RVA: 0x00212650 File Offset: 0x00210850
[Token(Token = "0x600A029")]
[Address(RVA = "0x63E590", Offset = "0x63D590", VA = "0x18063E590")]
internal CertId(AsymmetricKeyParameter pubKey)
{
byte[] keyIdentifier = new SubjectKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey)).keyIdentifier;
this.id = keyIdentifier;
}
// Token: 0x0600A02A RID: 41002 RVA: 0x00212684 File Offset: 0x00210884
[Token(Token = "0x600A02A")]
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
internal CertId(byte[] id)
{
this.id = id;
}
// Token: 0x17001999 RID: 6553
// (get) Token: 0x0600A02B RID: 41003 RVA: 0x002126A0 File Offset: 0x002108A0
[Token(Token = "0x17001999")]
internal byte[] Id
{
[Token(Token = "0x600A02B")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.id;
}
}
// Token: 0x0600A02C RID: 41004 RVA: 0x002126B4 File Offset: 0x002108B4
[Token(Token = "0x600A02C")]
[Address(RVA = "0x63E530", Offset = "0x63D530", VA = "0x18063E530", Slot = "2")]
public override int GetHashCode()
{
return Arrays.GetHashCode(this.id);
}
// Token: 0x0600A02D RID: 41005 RVA: 0x002126CC File Offset: 0x002108CC
[Token(Token = "0x600A02D")]
[Address(RVA = "0x63E460", Offset = "0x63D460", VA = "0x18063E460", Slot = "0")]
public override bool Equals(object obj)
{
if (obj != this)
{
if (obj != 0 && obj != 0)
{
byte[] array = this.id;
bool flag;
return flag;
}
}
return true;
}
// Token: 0x04006AEC RID: 27372
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006AEC")]
private readonly byte[] id;
}
// Token: 0x02001A71 RID: 6769
[Token(Token = "0x2001A71")]
private class IgnoresCaseHashtable : IEnumerable
{
// Token: 0x0600A02E RID: 41006 RVA: 0x002126F4 File Offset: 0x002108F4
[Token(Token = "0x600A02E")]
[Address(RVA = "0x63E8F0", Offset = "0x63D8F0", VA = "0x18063E8F0")]
public void Clear()
{
IDictionary dictionary = this.orig;
IDictionary dictionary2 = this.keys;
throw new NullReferenceException();
}
// Token: 0x0600A02F RID: 41007 RVA: 0x00212714 File Offset: 0x00210914
[Token(Token = "0x600A02F")]
[Address(RVA = "0x63E960", Offset = "0x63D960", VA = "0x18063E960", Slot = "4")]
public IEnumerator GetEnumerator()
{
IDictionary dictionary = this.orig;
throw new NullReferenceException();
}
// Token: 0x1700199A RID: 6554
// (get) Token: 0x0600A030 RID: 41008 RVA: 0x00212730 File Offset: 0x00210930
[Token(Token = "0x1700199A")]
public ICollection Keys
{
[Token(Token = "0x600A030")]
[Address(RVA = "0x63EC10", Offset = "0x63DC10", VA = "0x18063EC10")]
get
{
IDictionary dictionary = this.orig;
throw new NullReferenceException();
}
}
// Token: 0x0600A031 RID: 41009 RVA: 0x0021274C File Offset: 0x0021094C
[Token(Token = "0x600A031")]
[Address(RVA = "0x63E9B0", Offset = "0x63D9B0", VA = "0x18063E9B0")]
public object Remove(string alias)
{
string text;
do
{
text = Platform.ToUpperInvariant(alias);
IDictionary dictionary = this.keys;
if (text == 0)
{
goto IL_2C;
}
}
while (text == 0);
IDictionary dictionary2 = this.keys;
IDictionary dictionary3 = this.orig;
IDictionary dictionary4 = this.orig;
IL_2C:
throw new NullReferenceException();
}
// Token: 0x1700199B RID: 6555
[Token(Token = "0x1700199B")]
public object this[string alias]
{
[Token(Token = "0x600A032")]
[Address(RVA = "0x63EB40", Offset = "0x63DB40", VA = "0x18063EB40")]
get
{
string text;
do
{
text = Platform.ToUpperInvariant(alias);
IDictionary dictionary = this.keys;
if (text == 0)
{
goto IL_1D;
}
}
while (text == 0);
IDictionary dictionary2 = this.orig;
IL_1D:
throw new NullReferenceException();
}
[Token(Token = "0x600A033")]
[Address(RVA = "0x63ECB0", Offset = "0x63DCB0", VA = "0x18063ECB0")]
set
{
string text;
do
{
text = Platform.ToUpperInvariant(alias);
IDictionary dictionary = this.keys;
if (text == 0)
{
goto IL_1D;
}
}
while (text == 0);
IDictionary dictionary2 = this.orig;
IL_1D:
IDictionary dictionary3 = this.keys;
IDictionary dictionary4 = this.orig;
}
}
// Token: 0x1700199C RID: 6556
// (get) Token: 0x0600A034 RID: 41012 RVA: 0x002127FC File Offset: 0x002109FC
[Token(Token = "0x1700199C")]
public ICollection Values
{
[Token(Token = "0x600A034")]
[Address(RVA = "0x63EC60", Offset = "0x63DC60", VA = "0x18063EC60")]
get
{
IDictionary dictionary = this.orig;
throw new NullReferenceException();
}
}
// Token: 0x0600A035 RID: 41013 RVA: 0x00212818 File Offset: 0x00210A18
[Token(Token = "0x600A035")]
[Address(RVA = "0x63EAD0", Offset = "0x63DAD0", VA = "0x18063EAD0")]
public IgnoresCaseHashtable()
{
IDictionary dictionary = Platform.CreateHashtable();
this.orig = dictionary;
IDictionary dictionary2 = Platform.CreateHashtable();
this.keys = dictionary2;
base..ctor();
}
// Token: 0x04006AED RID: 27373
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006AED")]
private readonly IDictionary orig;
// Token: 0x04006AEE RID: 27374
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006AEE")]
private readonly IDictionary keys;
}
}
}
@@ -0,0 +1,77 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x02001A6B RID: 6763
[Token(Token = "0x2001A6B")]
public class Pkcs12StoreBuilder
{
// Token: 0x06009FE9 RID: 40937 RVA: 0x00210F24 File Offset: 0x0020F124
[Token(Token = "0x6009FE9")]
[Address(RVA = "0x643790", Offset = "0x642790", VA = "0x180643790")]
public Pkcs12StoreBuilder()
{
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
this.keyAlgorithm = pbeWithShaAnd3KeyTripleDesCbc;
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
this.certAlgorithm = pbewithShaAnd40BitRC2Cbc;
base..ctor();
}
// Token: 0x06009FEA RID: 40938 RVA: 0x00210F54 File Offset: 0x0020F154
[Token(Token = "0x6009FEA")]
[Address(RVA = "0x6436F0", Offset = "0x6426F0", VA = "0x1806436F0")]
public Pkcs12Store Build()
{
DerObjectIdentifier derObjectIdentifier = this.keyAlgorithm;
DerObjectIdentifier derObjectIdentifier2 = this.certAlgorithm;
bool flag = this.useDerEncoding;
return new Pkcs12Store(derObjectIdentifier, derObjectIdentifier2, flag);
}
// Token: 0x06009FEB RID: 40939 RVA: 0x00210F80 File Offset: 0x0020F180
[Token(Token = "0x6009FEB")]
[Address(RVA = "0x493840", Offset = "0x492840", VA = "0x180493840")]
public Pkcs12StoreBuilder SetCertAlgorithm(DerObjectIdentifier certAlgorithm)
{
this.certAlgorithm = certAlgorithm;
return this;
}
// Token: 0x06009FEC RID: 40940 RVA: 0x00210F98 File Offset: 0x0020F198
[Token(Token = "0x6009FEC")]
[Address(RVA = "0x643770", Offset = "0x642770", VA = "0x180643770")]
public Pkcs12StoreBuilder SetKeyAlgorithm(DerObjectIdentifier keyAlgorithm)
{
this.keyAlgorithm = keyAlgorithm;
return this;
}
// Token: 0x06009FED RID: 40941 RVA: 0x00210FB0 File Offset: 0x0020F1B0
[Token(Token = "0x6009FED")]
[Address(RVA = "0x643780", Offset = "0x642780", VA = "0x180643780")]
public Pkcs12StoreBuilder SetUseDerEncoding(bool useDerEncoding)
{
this.useDerEncoding = useDerEncoding;
return this;
}
// Token: 0x04006AD8 RID: 27352
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006AD8")]
private DerObjectIdentifier keyAlgorithm;
// Token: 0x04006AD9 RID: 27353
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006AD9")]
private DerObjectIdentifier certAlgorithm;
// Token: 0x04006ADA RID: 27354
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006ADA")]
private bool useDerEncoding;
}
}
@@ -0,0 +1,55 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x02001A72 RID: 6770
[Token(Token = "0x2001A72")]
public class Pkcs12Utilities
{
// Token: 0x0600A036 RID: 41014 RVA: 0x0021284C File Offset: 0x00210A4C
[Token(Token = "0x600A036")]
[Address(RVA = "0x64A570", Offset = "0x649570", VA = "0x18064A570")]
public static byte[] ConvertToDefiniteLength(byte[] berPkcs12File)
{
return new Pfx(Asn1Sequence.GetInstance(Asn1Object.FromByteArray(berPkcs12File))).GetEncoded("DER");
}
// Token: 0x0600A037 RID: 41015 RVA: 0x0021287C File Offset: 0x00210A7C
[Token(Token = "0x600A037")]
[Address(RVA = "0x64A1C0", Offset = "0x6491C0", VA = "0x18064A1C0")]
public static byte[] ConvertToDefiniteLength(byte[] berPkcs12File, char[] passwd)
{
Pfx pfx = new Pfx(Asn1Sequence.GetInstance(Asn1Object.FromByteArray(berPkcs12File)));
ContentInfo contentInfo = pfx.contentInfo;
Stream octetStream = Asn1OctetString.GetInstance(contentInfo.content).GetOctetStream();
DerObjectIdentifier contentType = contentInfo.contentType;
Asn1Object asn1Object;
DerOctetString derOctetString = new DerOctetString(asn1Object.GetEncoded("DER"));
ContentInfo contentInfo2 = new ContentInfo(contentType, derOctetString);
MacData macData = pfx.macData;
int intValue = macData.iterationCount.IntValue;
Stream octetStream2 = Asn1OctetString.GetInstance(contentInfo2.content).GetOctetStream();
Asn1Object asn1Object2 = macData.digInfo.algID.ToAsn1Object();
byte[] salt = macData.GetSalt();
Asn1Object asn1Object3 = macData.digInfo.algID.ToAsn1Object();
AlgorithmIdentifier algorithmIdentifier;
byte[] array;
DigestInfo digestInfo = new DigestInfo(algorithmIdentifier, array);
byte[] salt2 = macData.GetSalt();
MacData macData2 = new MacData(digestInfo, salt2, intValue);
return new Pfx(contentInfo2, macData2).GetEncoded("DER");
}
// Token: 0x0600A038 RID: 41016 RVA: 0x0021296C File Offset: 0x00210B6C
[Token(Token = "0x600A038")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public Pkcs12Utilities()
{
}
}
}
@@ -0,0 +1,98 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
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.Pkcs
{
// Token: 0x02001A73 RID: 6771
[Token(Token = "0x2001A73")]
public sealed class PrivateKeyInfoFactory
{
// Token: 0x0600A039 RID: 41017 RVA: 0x00212980 File Offset: 0x00210B80
[Token(Token = "0x600A039")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private PrivateKeyInfoFactory()
{
}
// Token: 0x0600A03A RID: 41018 RVA: 0x00212994 File Offset: 0x00210B94
[Token(Token = "0x600A03A")]
[Address(RVA = "0x65CF10", Offset = "0x65BF10", VA = "0x18065CF10")]
public static PrivateKeyInfo CreatePrivateKeyInfo(AsymmetricKeyParameter privateKey)
{
int num = 0;
return PrivateKeyInfoFactory.CreatePrivateKeyInfo(privateKey, num);
}
// Token: 0x0600A03B RID: 41019 RVA: 0x002129AC File Offset: 0x00210BAC
[Token(Token = "0x600A03B")]
[Address(RVA = "0x65D0B0", Offset = "0x65C0B0", VA = "0x18065D0B0")]
public static PrivateKeyInfo CreatePrivateKeyInfo(AsymmetricKeyParameter privateKey, Asn1Set attributes)
{
/*
An exception occurred when decompiling this method (0600A03B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PrivateKeyInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.PrivateKeyInfoFactory::CreatePrivateKeyInfo(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_289:
stloc:Exception(var_87_293, call:Exception(Platform::CreateNotImplementedException, ldstr:string("Not a CryptoPro parameter set")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600A03C RID: 41020 RVA: 0x00212C50 File Offset: 0x00210E50
[Token(Token = "0x600A03C")]
[Address(RVA = "0x65D0A0", Offset = "0x65C0A0", VA = "0x18065D0A0")]
public static PrivateKeyInfo CreatePrivateKeyInfo(char[] passPhrase, EncryptedPrivateKeyInfo encInfo)
{
int num = 0;
return PrivateKeyInfoFactory.CreatePrivateKeyInfo(passPhrase, num != 0, encInfo);
}
// Token: 0x0600A03D RID: 41021 RVA: 0x00212C68 File Offset: 0x00210E68
[Token(Token = "0x600A03D")]
[Address(RVA = "0x65CF20", Offset = "0x65BF20", VA = "0x18065CF20")]
public static PrivateKeyInfo CreatePrivateKeyInfo(char[] passPhrase, bool wrongPkcs12Zero, EncryptedPrivateKeyInfo encInfo)
{
AlgorithmIdentifier algId = encInfo.algId;
if (PbeUtilities.CreateEngine(algId) != 0)
{
ICipherParameters cipherParameters = PbeUtilities.GenerateCipherParameters(algId, passPhrase, wrongPkcs12Zero);
return PrivateKeyInfo.GetInstance(encInfo.GetEncryptedData());
}
throw new NullReferenceException();
}
}
}
@@ -0,0 +1,82 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
{
// Token: 0x02001A74 RID: 6772
[Token(Token = "0x2001A74")]
public class X509CertificateEntry : Pkcs12Entry
{
// Token: 0x0600A03E RID: 41022 RVA: 0x00212CB8 File Offset: 0x00210EB8
[Token(Token = "0x600A03E")]
[Address(RVA = "0x65E060", Offset = "0x65D060", VA = "0x18065E060")]
public X509CertificateEntry(X509Certificate cert)
{
IDictionary dictionary = Platform.CreateHashtable();
base..ctor(dictionary);
this.cert = cert;
}
// Token: 0x0600A03F RID: 41023 RVA: 0x00212CDC File Offset: 0x00210EDC
[Token(Token = "0x600A03F")]
[Address(RVA = "0x63E3C0", Offset = "0x63D3C0", VA = "0x18063E3C0")]
[Obsolete]
public X509CertificateEntry(X509Certificate cert, Hashtable attributes)
: base(attributes)
{
this.cert = cert;
}
// Token: 0x0600A040 RID: 41024 RVA: 0x00212CF8 File Offset: 0x00210EF8
[Token(Token = "0x600A040")]
[Address(RVA = "0x63E3C0", Offset = "0x63D3C0", VA = "0x18063E3C0")]
public X509CertificateEntry(X509Certificate cert, IDictionary attributes)
: base(attributes)
{
this.cert = cert;
}
// Token: 0x1700199D RID: 6557
// (get) Token: 0x0600A041 RID: 41025 RVA: 0x00212D14 File Offset: 0x00210F14
[Token(Token = "0x1700199D")]
public X509Certificate Certificate
{
[Token(Token = "0x600A041")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.cert;
}
}
// Token: 0x0600A042 RID: 41026 RVA: 0x00212D28 File Offset: 0x00210F28
[Token(Token = "0x600A042")]
[Address(RVA = "0x65DFB0", Offset = "0x65CFB0", VA = "0x18065DFB0", Slot = "0")]
public override bool Equals(object obj)
{
if (obj != 0 && obj != 0)
{
ISet criticalExtensionOids = ((IX509Extension)this.cert).GetCriticalExtensionOids();
}
throw new NullReferenceException();
}
// Token: 0x0600A043 RID: 41027 RVA: 0x00212D54 File Offset: 0x00210F54
[Token(Token = "0x600A043")]
[Address(RVA = "0x63E390", Offset = "0x63D390", VA = "0x18063E390", Slot = "2")]
public override int GetHashCode()
{
this.cert.Finalize();
throw new NullReferenceException();
}
// Token: 0x04006AEF RID: 27375
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006AEF")]
private readonly X509Certificate cert;
}
}