oh dear
This commit is contained in:
@@ -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: 0x02001989 RID: 6537
|
||||
[Token(Token = "0x2001989")]
|
||||
public class AsymmetricKeyEntry : Pkcs12Entry
|
||||
{
|
||||
// Token: 0x06009C11 RID: 39953 RVA: 0x00207D58 File Offset: 0x00205F58
|
||||
[Token(Token = "0x6009C11")]
|
||||
[Address(RVA = "0x1CBBF60", Offset = "0x1CBAD60", VA = "0x181CBBF60")]
|
||||
public AsymmetricKeyEntry(AsymmetricKeyParameter key)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
base..ctor(dictionary);
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
// Token: 0x06009C12 RID: 39954 RVA: 0x00207D7C File Offset: 0x00205F7C
|
||||
[Token(Token = "0x6009C12")]
|
||||
[Address(RVA = "0x1CBBF30", Offset = "0x1CBAD30", VA = "0x181CBBF30")]
|
||||
[Obsolete]
|
||||
public AsymmetricKeyEntry(AsymmetricKeyParameter key, Hashtable attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
// Token: 0x06009C13 RID: 39955 RVA: 0x00207D98 File Offset: 0x00205F98
|
||||
[Token(Token = "0x6009C13")]
|
||||
[Address(RVA = "0x1CBBF30", Offset = "0x1CBAD30", VA = "0x181CBBF30")]
|
||||
public AsymmetricKeyEntry(AsymmetricKeyParameter key, IDictionary attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
// Token: 0x170018F6 RID: 6390
|
||||
// (get) Token: 0x06009C14 RID: 39956 RVA: 0x00207DB4 File Offset: 0x00205FB4
|
||||
[Token(Token = "0x170018F6")]
|
||||
public AsymmetricKeyParameter Key
|
||||
{
|
||||
[Token(Token = "0x6009C14")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.key;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009C15 RID: 39957 RVA: 0x00207DC8 File Offset: 0x00205FC8
|
||||
[Token(Token = "0x6009C15")]
|
||||
[Address(RVA = "0x1CBBE50", Offset = "0x1CBAC50", VA = "0x181CBBE50", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
AsymmetricKeyParameter asymmetricKeyParameter = this.key;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009C16 RID: 39958 RVA: 0x00207DF0 File Offset: 0x00205FF0
|
||||
[Token(Token = "0x6009C16")]
|
||||
[Address(RVA = "0x1CBBF00", Offset = "0x1CBAD00", VA = "0x181CBBF00", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.key.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400691E RID: 26910
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400691E")]
|
||||
private readonly AsymmetricKeyParameter key;
|
||||
}
|
||||
}
|
||||
+68
@@ -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: 0x0200198A RID: 6538
|
||||
[Token(Token = "0x200198A")]
|
||||
public sealed class EncryptedPrivateKeyInfoFactory
|
||||
{
|
||||
// Token: 0x06009C17 RID: 39959 RVA: 0x00207E10 File Offset: 0x00206010
|
||||
[Token(Token = "0x6009C17")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
private EncryptedPrivateKeyInfoFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C18 RID: 39960 RVA: 0x00207E24 File Offset: 0x00206024
|
||||
[Token(Token = "0x6009C18")]
|
||||
[Address(RVA = "0x1CBC1A0", Offset = "0x1CBAFA0", VA = "0x181CBC1A0")]
|
||||
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(DerObjectIdentifier algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
|
||||
{
|
||||
string identifier = algorithm.identifier;
|
||||
EncryptedPrivateKeyInfo encryptedPrivateKeyInfo;
|
||||
return encryptedPrivateKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x06009C19 RID: 39961 RVA: 0x00207E40 File Offset: 0x00206040
|
||||
[Token(Token = "0x6009C19")]
|
||||
[Address(RVA = "0x1CBC210", Offset = "0x1CBB010", VA = "0x181CBC210")]
|
||||
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
|
||||
{
|
||||
EncryptedPrivateKeyInfo encryptedPrivateKeyInfo;
|
||||
return encryptedPrivateKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x06009C1A RID: 39962 RVA: 0x00207E50 File Offset: 0x00206050
|
||||
[Token(Token = "0x6009C1A")]
|
||||
[Address(RVA = "0x1CBC280", Offset = "0x1CBB080", VA = "0x181CBC280")]
|
||||
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, PrivateKeyInfo keyInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C1A)
|
||||
|
||||
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
|
||||
*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
+442
@@ -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: 0x0200198C RID: 6540
|
||||
[Token(Token = "0x200198C")]
|
||||
public class Pkcs10CertificationRequest : CertificationRequest
|
||||
{
|
||||
// Token: 0x06009C20 RID: 39968 RVA: 0x00207F40 File Offset: 0x00206140
|
||||
[Token(Token = "0x6009C20")]
|
||||
[Address(RVA = "0x1CBEE70", Offset = "0x1CBDC70", VA = "0x181CBEE70")]
|
||||
static Pkcs10CertificationRequest()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C20)
|
||||
|
||||
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: 0x06009C21 RID: 39969 RVA: 0x00208278 File Offset: 0x00206478
|
||||
[Token(Token = "0x6009C21")]
|
||||
[Address(RVA = "0x1CBDE90", Offset = "0x1CBCC90", VA = "0x181CBDE90")]
|
||||
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: 0x06009C22 RID: 39970 RVA: 0x002082A8 File Offset: 0x002064A8
|
||||
[Token(Token = "0x6009C22")]
|
||||
[Address(RVA = "0x716AB0", Offset = "0x7158B0", VA = "0x180716AB0")]
|
||||
protected Pkcs10CertificationRequest()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C23 RID: 39971 RVA: 0x002082BC File Offset: 0x002064BC
|
||||
[Token(Token = "0x6009C23")]
|
||||
[Address(RVA = "0x1CC0A90", Offset = "0x1CBF890", VA = "0x181CC0A90")]
|
||||
public Pkcs10CertificationRequest(byte[] encoded)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = Asn1Object.FromByteArray(encoded);
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Object == 0);
|
||||
}
|
||||
|
||||
// Token: 0x06009C24 RID: 39972 RVA: 0x002082DC File Offset: 0x002064DC
|
||||
[Token(Token = "0x6009C24")]
|
||||
[Address(RVA = "0x1CC0880", Offset = "0x1CBF680", VA = "0x181CC0880")]
|
||||
public Pkcs10CertificationRequest(Asn1Sequence seq)
|
||||
: base(seq)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C25 RID: 39973 RVA: 0x002082F0 File Offset: 0x002064F0
|
||||
[Token(Token = "0x6009C25")]
|
||||
[Address(RVA = "0x1CC0B30", Offset = "0x1CBF930", VA = "0x181CC0B30")]
|
||||
public Pkcs10CertificationRequest(Stream input)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = Asn1Object.FromStream(input);
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Object == 0);
|
||||
}
|
||||
|
||||
// Token: 0x06009C26 RID: 39974 RVA: 0x00208310 File Offset: 0x00206510
|
||||
[Token(Token = "0x6009C26")]
|
||||
[Address(RVA = "0x1CC0890", Offset = "0x1CBF690", VA = "0x181CC0890")]
|
||||
public Pkcs10CertificationRequest(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C27 RID: 39975 RVA: 0x00208320 File Offset: 0x00206520
|
||||
[Token(Token = "0x6009C27")]
|
||||
[Address(RVA = "0x1CC0BD0", Offset = "0x1CBF9D0", VA = "0x181CC0BD0")]
|
||||
[Obsolete]
|
||||
public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C28 RID: 39976 RVA: 0x00208330 File Offset: 0x00206530
|
||||
[Token(Token = "0x6009C28")]
|
||||
[Address(RVA = "0x1CC0930", Offset = "0x1CBF730", VA = "0x181CC0930")]
|
||||
public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C28)
|
||||
|
||||
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: 0x06009C29 RID: 39977 RVA: 0x00208374 File Offset: 0x00206574
|
||||
[Token(Token = "0x6009C29")]
|
||||
[Address(RVA = "0x1CBE5D0", Offset = "0x1CBD3D0", VA = "0x181CBE5D0")]
|
||||
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: 0x06009C2A RID: 39978 RVA: 0x002083E0 File Offset: 0x002065E0
|
||||
[Token(Token = "0x6009C2A")]
|
||||
[Address(RVA = "0x1CBE3D0", Offset = "0x1CBD1D0", VA = "0x181CBE3D0")]
|
||||
public AsymmetricKeyParameter GetPublicKey()
|
||||
{
|
||||
return PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo);
|
||||
}
|
||||
|
||||
// Token: 0x06009C2B RID: 39979 RVA: 0x00208404 File Offset: 0x00206604
|
||||
[Token(Token = "0x6009C2B")]
|
||||
[Address(RVA = "0x1CBEC90", Offset = "0x1CBDA90", VA = "0x181CBEC90")]
|
||||
public bool Verify()
|
||||
{
|
||||
Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo));
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06009C2C RID: 39980 RVA: 0x00208430 File Offset: 0x00206630
|
||||
[Token(Token = "0x6009C2C")]
|
||||
[Address(RVA = "0x1CBED50", Offset = "0x1CBDB50", VA = "0x181CBED50")]
|
||||
public bool Verify(AsymmetricKeyParameter publicKey)
|
||||
{
|
||||
Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(publicKey);
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06009C2D RID: 39981 RVA: 0x0020844C File Offset: 0x0020664C
|
||||
[Token(Token = "0x6009C2D")]
|
||||
[Address(RVA = "0x1CBEE00", Offset = "0x1CBDC00", VA = "0x181CBEE00")]
|
||||
public bool Verify(IVerifierFactoryProvider verifierProvider)
|
||||
{
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06009C2E RID: 39982 RVA: 0x00208460 File Offset: 0x00206660
|
||||
[Token(Token = "0x6009C2E")]
|
||||
[Address(RVA = "0x1CBEA10", Offset = "0x1CBD810", VA = "0x181CBEA10")]
|
||||
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: 0x06009C2F RID: 39983 RVA: 0x002084D8 File Offset: 0x002066D8
|
||||
[Token(Token = "0x6009C2F")]
|
||||
[Address(RVA = "0x1CBE8A0", Offset = "0x1CBD6A0", VA = "0x181CBE8A0")]
|
||||
private void SetSignatureParameters(ISigner signature, Asn1Encodable asn1Params)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C2F)
|
||||
|
||||
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: 0x06009C30 RID: 39984 RVA: 0x0020850C File Offset: 0x0020670C
|
||||
[Token(Token = "0x6009C30")]
|
||||
[Address(RVA = "0x1CBE400", Offset = "0x1CBD200", VA = "0x181CBE400")]
|
||||
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: 0x06009C31 RID: 39985 RVA: 0x0020855C File Offset: 0x0020675C
|
||||
[Token(Token = "0x6009C31")]
|
||||
[Address(RVA = "0x1CBDFB0", Offset = "0x1CBCDB0", VA = "0x181CBDFB0")]
|
||||
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: 0x04006922 RID: 26914
|
||||
[Token(Token = "0x4006922")]
|
||||
protected static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x04006923 RID: 26915
|
||||
[Token(Token = "0x4006923")]
|
||||
protected static readonly IDictionary exParams;
|
||||
|
||||
// Token: 0x04006924 RID: 26916
|
||||
[Token(Token = "0x4006924")]
|
||||
protected static readonly IDictionary keyAlgorithms;
|
||||
|
||||
// Token: 0x04006925 RID: 26917
|
||||
[Token(Token = "0x4006925")]
|
||||
protected static readonly IDictionary oids;
|
||||
|
||||
// Token: 0x04006926 RID: 26918
|
||||
[Token(Token = "0x4006926")]
|
||||
protected static readonly ISet noParams;
|
||||
}
|
||||
}
|
||||
+119
@@ -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: 0x0200198D RID: 6541
|
||||
[Token(Token = "0x200198D")]
|
||||
public class Pkcs10CertificationRequestDelaySigned : Pkcs10CertificationRequest
|
||||
{
|
||||
// Token: 0x06009C32 RID: 39986 RVA: 0x002085F4 File Offset: 0x002067F4
|
||||
[Token(Token = "0x6009C32")]
|
||||
[Address(RVA = "0x1CBDC80", Offset = "0x1CBCA80", VA = "0x181CBDC80")]
|
||||
protected Pkcs10CertificationRequestDelaySigned()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C33 RID: 39987 RVA: 0x00208608 File Offset: 0x00206808
|
||||
[Token(Token = "0x6009C33")]
|
||||
[Address(RVA = "0x1CBDDB0", Offset = "0x1CBCBB0", VA = "0x181CBDDB0")]
|
||||
public Pkcs10CertificationRequestDelaySigned(byte[] encoded)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = Asn1Object.FromByteArray(encoded);
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Object == 0);
|
||||
}
|
||||
|
||||
// Token: 0x06009C34 RID: 39988 RVA: 0x00208628 File Offset: 0x00206828
|
||||
[Token(Token = "0x6009C34")]
|
||||
[Address(RVA = "0x1CBDC10", Offset = "0x1CBCA10", VA = "0x181CBDC10")]
|
||||
public Pkcs10CertificationRequestDelaySigned(Asn1Sequence seq)
|
||||
: base(seq)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C35 RID: 39989 RVA: 0x0020863C File Offset: 0x0020683C
|
||||
[Token(Token = "0x6009C35")]
|
||||
[Address(RVA = "0x1CBDB30", Offset = "0x1CBC930", VA = "0x181CBDB30")]
|
||||
public Pkcs10CertificationRequestDelaySigned(Stream input)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = Asn1Object.FromStream(input);
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Object == 0);
|
||||
}
|
||||
|
||||
// Token: 0x06009C36 RID: 39990 RVA: 0x0020865C File Offset: 0x0020685C
|
||||
[Token(Token = "0x6009C36")]
|
||||
[Address(RVA = "0x1CBDCE0", Offset = "0x1CBCAE0", VA = "0x181CBDCE0")]
|
||||
public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C37 RID: 39991 RVA: 0x0020866C File Offset: 0x0020686C
|
||||
[Token(Token = "0x6009C37")]
|
||||
[Address(RVA = "0x1CBD6D0", Offset = "0x1CBC4D0", VA = "0x181CBD6D0")]
|
||||
public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C37)
|
||||
|
||||
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: 0x06009C38 RID: 39992 RVA: 0x00208708 File Offset: 0x00206908
|
||||
[Token(Token = "0x6009C38")]
|
||||
[Address(RVA = "0x162BED0", Offset = "0x162ACD0", VA = "0x18162BED0")]
|
||||
public byte[] GetDataToSign()
|
||||
{
|
||||
return this.reqInfo.GetDerEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x06009C39 RID: 39993 RVA: 0x00208728 File Offset: 0x00206928
|
||||
[Token(Token = "0x6009C39")]
|
||||
[Address(RVA = "0x1CBD660", Offset = "0x1CBC460", VA = "0x181CBD660")]
|
||||
public void SignRequest(byte[] signedData)
|
||||
{
|
||||
DerBitString derBitString = new DerBitString(signedData);
|
||||
this.sigBits = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x06009C3A RID: 39994 RVA: 0x00208744 File Offset: 0x00206944
|
||||
[Token(Token = "0x6009C3A")]
|
||||
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
||||
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: 0x0200198E RID: 6542
|
||||
[Token(Token = "0x200198E")]
|
||||
public abstract class Pkcs12Entry
|
||||
{
|
||||
// Token: 0x06009C3B RID: 39995 RVA: 0x00208758 File Offset: 0x00206958
|
||||
[Token(Token = "0x6009C3B")]
|
||||
[Address(RVA = "0x1CC0DA0", Offset = "0x1CBFBA0", VA = "0x181CC0DA0")]
|
||||
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: 0x06009C3C RID: 39996 RVA: 0x002087E4 File Offset: 0x002069E4
|
||||
[Token(Token = "0x6009C3C")]
|
||||
[Address(RVA = "0x1CC0CF0", Offset = "0x1CBFAF0", VA = "0x181CC0CF0")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetBagAttribute(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009C3D RID: 39997 RVA: 0x00208808 File Offset: 0x00206A08
|
||||
[Token(Token = "0x6009C3D")]
|
||||
[Address(RVA = "0x1CC0C40", Offset = "0x1CBFA40", VA = "0x181CC0C40")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetBagAttribute(string oid)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009C3E RID: 39998 RVA: 0x0020882C File Offset: 0x00206A2C
|
||||
[Token(Token = "0x6009C3E")]
|
||||
[Address(RVA = "0x1CC0BE0", Offset = "0x1CBF9E0", VA = "0x181CC0BE0")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetBagAttributeKeys()
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170018F7 RID: 6391
|
||||
[Token(Token = "0x170018F7")]
|
||||
public Asn1Encodable this[DerObjectIdentifier oid]
|
||||
{
|
||||
[Token(Token = "0x6009C3F")]
|
||||
[Address(RVA = "0x1CC1190", Offset = "0x1CBFF90", VA = "0x181CC1190")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018F8 RID: 6392
|
||||
[Token(Token = "0x170018F8")]
|
||||
public Asn1Encodable this[string oid]
|
||||
{
|
||||
[Token(Token = "0x6009C40")]
|
||||
[Address(RVA = "0x1CC10E0", Offset = "0x1CBFEE0", VA = "0x181CC10E0")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018F9 RID: 6393
|
||||
// (get) Token: 0x06009C41 RID: 40001 RVA: 0x00208890 File Offset: 0x00206A90
|
||||
[Token(Token = "0x170018F9")]
|
||||
public IEnumerable BagAttributeKeys
|
||||
{
|
||||
[Token(Token = "0x6009C41")]
|
||||
[Address(RVA = "0x1CC1060", Offset = "0x1CBFE60", VA = "0x181CC1060")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006927 RID: 26919
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006927")]
|
||||
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: 0x0200198F RID: 6543
|
||||
[Token(Token = "0x200198F")]
|
||||
public class Pkcs12Store
|
||||
{
|
||||
// Token: 0x06009C42 RID: 40002 RVA: 0x002088AC File Offset: 0x00206AAC
|
||||
[Token(Token = "0x6009C42")]
|
||||
[Address(RVA = "0x1CC14F0", Offset = "0x1CC02F0", VA = "0x181CC14F0")]
|
||||
private static SubjectKeyIdentifier CreateSubjectKeyID(AsymmetricKeyParameter pubKey)
|
||||
{
|
||||
return new SubjectKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey));
|
||||
}
|
||||
|
||||
// Token: 0x06009C43 RID: 40003 RVA: 0x002088C4 File Offset: 0x00206AC4
|
||||
[Token(Token = "0x6009C43")]
|
||||
[Address(RVA = "0x1CC7B00", Offset = "0x1CC6900", VA = "0x181CC7B00")]
|
||||
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: 0x06009C44 RID: 40004 RVA: 0x00208978 File Offset: 0x00206B78
|
||||
[Token(Token = "0x6009C44")]
|
||||
[Address(RVA = "0x1CC79D0", Offset = "0x1CC67D0", VA = "0x181CC79D0")]
|
||||
public Pkcs12Store()
|
||||
{
|
||||
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
|
||||
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
|
||||
}
|
||||
|
||||
// Token: 0x06009C45 RID: 40005 RVA: 0x00208994 File Offset: 0x00206B94
|
||||
[Token(Token = "0x6009C45")]
|
||||
[Address(RVA = "0x1CC7A50", Offset = "0x1CC6850", VA = "0x181CC7A50")]
|
||||
public Pkcs12Store(Stream input, char[] password)
|
||||
{
|
||||
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
|
||||
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
|
||||
this.Load(input, password);
|
||||
}
|
||||
|
||||
// Token: 0x06009C46 RID: 40006 RVA: 0x002089B8 File Offset: 0x00206BB8
|
||||
[Token(Token = "0x6009C46")]
|
||||
[Address(RVA = "0x1CC3190", Offset = "0x1CC1F90", VA = "0x181CC3190", 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: 0x06009C47 RID: 40007 RVA: 0x00208A8C File Offset: 0x00206C8C
|
||||
[Token(Token = "0x6009C47")]
|
||||
[Address(RVA = "0x1CC36D0", Offset = "0x1CC24D0", VA = "0x181CC36D0", Slot = "5")]
|
||||
protected virtual void LoadPkcs8ShroudedKeyBag(EncryptedPrivateKeyInfo encPrivKeyInfo, Asn1Set bagAttributes, char[] password, bool wrongPkcs12Zero)
|
||||
{
|
||||
if (password != 0)
|
||||
{
|
||||
string text = this.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009C48 RID: 40008 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009C48")]
|
||||
[Address(RVA = "0x1CC3720", Offset = "0x1CC2520", VA = "0x181CC3720")]
|
||||
public void Load(Stream input, char[] password)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06009C49 RID: 40009 RVA: 0x00208AA4 File Offset: 0x00206CA4
|
||||
[Token(Token = "0x6009C49")]
|
||||
[Address(RVA = "0x1CC2DE0", Offset = "0x1CC1BE0", VA = "0x181CC2DE0")]
|
||||
public AsymmetricKeyEntry GetKey(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C49)
|
||||
|
||||
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: 0x06009C4A RID: 40010 RVA: 0x00208AD8 File Offset: 0x00206CD8
|
||||
[Token(Token = "0x6009C4A")]
|
||||
[Address(RVA = "0x1CC2EC0", Offset = "0x1CC1CC0", VA = "0x181CC2EC0")]
|
||||
public bool IsCertificateEntry(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C4A)
|
||||
|
||||
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: 0x06009C4B RID: 40011 RVA: 0x00208B14 File Offset: 0x00206D14
|
||||
[Token(Token = "0x6009C4B")]
|
||||
[Address(RVA = "0x1CC3100", Offset = "0x1CC1F00", VA = "0x181CC3100")]
|
||||
public bool IsKeyEntry(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C4B)
|
||||
|
||||
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: 0x06009C4C RID: 40012 RVA: 0x00208B44 File Offset: 0x00206D44
|
||||
[Token(Token = "0x6009C4C")]
|
||||
[Address(RVA = "0x1CC1AB0", Offset = "0x1CC08B0", VA = "0x181CC1AB0")]
|
||||
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: 0x170018FA RID: 6394
|
||||
// (get) Token: 0x06009C4D RID: 40013 RVA: 0x00208C40 File Offset: 0x00206E40
|
||||
[Token(Token = "0x170018FA")]
|
||||
public IEnumerable Aliases
|
||||
{
|
||||
[Token(Token = "0x6009C4D")]
|
||||
[Address(RVA = "0x1CC7C90", Offset = "0x1CC6A90", VA = "0x181CC7C90")]
|
||||
get
|
||||
{
|
||||
EnumerableProxy enumerableProxy = new EnumerableProxy(this.GetAliasesTable());
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009C4E RID: 40014 RVA: 0x00208C60 File Offset: 0x00206E60
|
||||
[Token(Token = "0x6009C4E")]
|
||||
[Address(RVA = "0x1CC1490", Offset = "0x1CC0290", VA = "0x181CC1490")]
|
||||
public bool ContainsAlias(string alias)
|
||||
{
|
||||
return this.certs[alias] != 0 || this.keys[alias] != 0;
|
||||
}
|
||||
|
||||
// Token: 0x06009C4F RID: 40015 RVA: 0x00208C98 File Offset: 0x00206E98
|
||||
[Token(Token = "0x6009C4F")]
|
||||
[Address(RVA = "0x1CC2C70", Offset = "0x1CC1A70", VA = "0x181CC2C70")]
|
||||
public X509CertificateEntry GetCertificate(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C4F)
|
||||
|
||||
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: 0x06009C50 RID: 40016 RVA: 0x00208CEC File Offset: 0x00206EEC
|
||||
[Token(Token = "0x6009C50")]
|
||||
[Address(RVA = "0x1CC2070", Offset = "0x1CC0E70", VA = "0x181CC2070")]
|
||||
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: 0x06009C51 RID: 40017 RVA: 0x00208DBC File Offset: 0x00206FBC
|
||||
[Token(Token = "0x6009C51")]
|
||||
[Address(RVA = "0x1CC2590", Offset = "0x1CC1390", VA = "0x181CC2590")]
|
||||
public X509CertificateEntry[] GetCertificateChain(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C51)
|
||||
|
||||
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: 0x06009C52 RID: 40018 RVA: 0x00208EDC File Offset: 0x002070DC
|
||||
[Token(Token = "0x6009C52")]
|
||||
[Address(RVA = "0x1CC7480", Offset = "0x1CC6280", VA = "0x181CC7480")]
|
||||
public void SetCertificateEntry(string alias, X509CertificateEntry certEntry)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C52)
|
||||
|
||||
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: 0x06009C53 RID: 40019 RVA: 0x00208F40 File Offset: 0x00207140
|
||||
[Token(Token = "0x6009C53")]
|
||||
[Address(RVA = "0x1CC7640", Offset = "0x1CC6440", VA = "0x181CC7640")]
|
||||
public void SetKeyEntry(string alias, AsymmetricKeyEntry keyEntry, X509CertificateEntry[] chain)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C53)
|
||||
|
||||
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: 0x06009C54 RID: 40020 RVA: 0x00209024 File Offset: 0x00207224
|
||||
[Token(Token = "0x6009C54")]
|
||||
[Address(RVA = "0x1CC1710", Offset = "0x1CC0510", VA = "0x181CC1710")]
|
||||
public void DeleteEntry(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C54)
|
||||
|
||||
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: 0x06009C55 RID: 40021 RVA: 0x002090F0 File Offset: 0x002072F0
|
||||
[Token(Token = "0x6009C55")]
|
||||
[Address(RVA = "0x1CC2F70", Offset = "0x1CC1D70", VA = "0x181CC2F70")]
|
||||
public bool IsEntryOfType(string alias, Type entryType)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C55)
|
||||
|
||||
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: 0x06009C56 RID: 40022 RVA: 0x00209160 File Offset: 0x00207360
|
||||
[Token(Token = "0x6009C56")]
|
||||
[Address(RVA = "0x1CC7970", Offset = "0x1CC6770", VA = "0x181CC7970")]
|
||||
[Obsolete]
|
||||
public int Size()
|
||||
{
|
||||
IDictionary aliasesTable = this.GetAliasesTable();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170018FB RID: 6395
|
||||
// (get) Token: 0x06009C57 RID: 40023 RVA: 0x0020917C File Offset: 0x0020737C
|
||||
[Token(Token = "0x170018FB")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x6009C57")]
|
||||
[Address(RVA = "0x1CC7970", Offset = "0x1CC6770", VA = "0x181CC7970")]
|
||||
get
|
||||
{
|
||||
IDictionary aliasesTable = this.GetAliasesTable();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009C58 RID: 40024 RVA: 0x00209198 File Offset: 0x00207398
|
||||
[Token(Token = "0x6009C58")]
|
||||
[Address(RVA = "0x1CC49A0", Offset = "0x1CC37A0", VA = "0x181CC49A0")]
|
||||
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: 0x06009C59 RID: 40025 RVA: 0x00209574 File Offset: 0x00207774
|
||||
[Token(Token = "0x6009C59")]
|
||||
[Address(RVA = "0x1CC1370", Offset = "0x1CC0170", VA = "0x181CC1370")]
|
||||
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: 0x06009C5A RID: 40026 RVA: 0x0020959C File Offset: 0x0020779C
|
||||
[Token(Token = "0x6009C5A")]
|
||||
[Address(RVA = "0x1CC1550", Offset = "0x1CC0350", VA = "0x181CC1550")]
|
||||
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: 0x04006928 RID: 26920
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006928")]
|
||||
private readonly Pkcs12Store.IgnoresCaseHashtable keys;
|
||||
|
||||
// Token: 0x04006929 RID: 26921
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006929")]
|
||||
private readonly IDictionary localIds;
|
||||
|
||||
// Token: 0x0400692A RID: 26922
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400692A")]
|
||||
private readonly Pkcs12Store.IgnoresCaseHashtable certs;
|
||||
|
||||
// Token: 0x0400692B RID: 26923
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400692B")]
|
||||
private readonly IDictionary chainCerts;
|
||||
|
||||
// Token: 0x0400692C RID: 26924
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400692C")]
|
||||
private readonly IDictionary keyCerts;
|
||||
|
||||
// Token: 0x0400692D RID: 26925
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400692D")]
|
||||
private readonly DerObjectIdentifier keyAlgorithm;
|
||||
|
||||
// Token: 0x0400692E RID: 26926
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400692E")]
|
||||
private readonly DerObjectIdentifier certAlgorithm;
|
||||
|
||||
// Token: 0x0400692F RID: 26927
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400692F")]
|
||||
private readonly bool useDerEncoding;
|
||||
|
||||
// Token: 0x04006930 RID: 26928
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4006930")]
|
||||
private AsymmetricKeyEntry unmarkedKeyEntry;
|
||||
|
||||
// Token: 0x04006931 RID: 26929
|
||||
[Token(Token = "0x4006931")]
|
||||
private const int MinIterations = 1024;
|
||||
|
||||
// Token: 0x04006932 RID: 26930
|
||||
[Token(Token = "0x4006932")]
|
||||
private const int SaltSize = 20;
|
||||
|
||||
// Token: 0x02001990 RID: 6544
|
||||
[Token(Token = "0x2001990")]
|
||||
internal class CertId
|
||||
{
|
||||
// Token: 0x06009C5B RID: 40027 RVA: 0x002095C8 File Offset: 0x002077C8
|
||||
[Token(Token = "0x6009C5B")]
|
||||
[Address(RVA = "0x1CBC100", Offset = "0x1CBAF00", VA = "0x181CBC100")]
|
||||
internal CertId(AsymmetricKeyParameter pubKey)
|
||||
{
|
||||
byte[] keyIdentifier = new SubjectKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey)).keyIdentifier;
|
||||
this.id = keyIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x06009C5C RID: 40028 RVA: 0x002095FC File Offset: 0x002077FC
|
||||
[Token(Token = "0x6009C5C")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
internal CertId(byte[] id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x170018FC RID: 6396
|
||||
// (get) Token: 0x06009C5D RID: 40029 RVA: 0x00209618 File Offset: 0x00207818
|
||||
[Token(Token = "0x170018FC")]
|
||||
internal byte[] Id
|
||||
{
|
||||
[Token(Token = "0x6009C5D")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009C5E RID: 40030 RVA: 0x0020962C File Offset: 0x0020782C
|
||||
[Token(Token = "0x6009C5E")]
|
||||
[Address(RVA = "0x1CBC0A0", Offset = "0x1CBAEA0", VA = "0x181CBC0A0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Arrays.GetHashCode(this.id);
|
||||
}
|
||||
|
||||
// Token: 0x06009C5F RID: 40031 RVA: 0x00209644 File Offset: 0x00207844
|
||||
[Token(Token = "0x6009C5F")]
|
||||
[Address(RVA = "0x1CBBFD0", Offset = "0x1CBADD0", VA = "0x181CBBFD0", 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: 0x04006933 RID: 26931
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006933")]
|
||||
private readonly byte[] id;
|
||||
}
|
||||
|
||||
// Token: 0x02001991 RID: 6545
|
||||
[Token(Token = "0x2001991")]
|
||||
private class IgnoresCaseHashtable : IEnumerable
|
||||
{
|
||||
// Token: 0x06009C60 RID: 40032 RVA: 0x0020966C File Offset: 0x0020786C
|
||||
[Token(Token = "0x6009C60")]
|
||||
[Address(RVA = "0x1CBC450", Offset = "0x1CBB250", VA = "0x181CBC450")]
|
||||
public void Clear()
|
||||
{
|
||||
IDictionary dictionary = this.orig;
|
||||
IDictionary dictionary2 = this.keys;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009C61 RID: 40033 RVA: 0x0020968C File Offset: 0x0020788C
|
||||
[Token(Token = "0x6009C61")]
|
||||
[Address(RVA = "0x1CBC4C0", Offset = "0x1CBB2C0", VA = "0x181CBC4C0", Slot = "4")]
|
||||
public IEnumerator GetEnumerator()
|
||||
{
|
||||
IDictionary dictionary = this.orig;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170018FD RID: 6397
|
||||
// (get) Token: 0x06009C62 RID: 40034 RVA: 0x002096A8 File Offset: 0x002078A8
|
||||
[Token(Token = "0x170018FD")]
|
||||
public ICollection Keys
|
||||
{
|
||||
[Token(Token = "0x6009C62")]
|
||||
[Address(RVA = "0x1CBC770", Offset = "0x1CBB570", VA = "0x181CBC770")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = this.orig;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009C63 RID: 40035 RVA: 0x002096C4 File Offset: 0x002078C4
|
||||
[Token(Token = "0x6009C63")]
|
||||
[Address(RVA = "0x1CBC510", Offset = "0x1CBB310", VA = "0x181CBC510")]
|
||||
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: 0x170018FE RID: 6398
|
||||
[Token(Token = "0x170018FE")]
|
||||
public object this[string alias]
|
||||
{
|
||||
[Token(Token = "0x6009C64")]
|
||||
[Address(RVA = "0x1CBC6A0", Offset = "0x1CBB4A0", VA = "0x181CBC6A0")]
|
||||
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 = "0x6009C65")]
|
||||
[Address(RVA = "0x1CBC810", Offset = "0x1CBB610", VA = "0x181CBC810")]
|
||||
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: 0x170018FF RID: 6399
|
||||
// (get) Token: 0x06009C66 RID: 40038 RVA: 0x00209774 File Offset: 0x00207974
|
||||
[Token(Token = "0x170018FF")]
|
||||
public ICollection Values
|
||||
{
|
||||
[Token(Token = "0x6009C66")]
|
||||
[Address(RVA = "0x1CBC7C0", Offset = "0x1CBB5C0", VA = "0x181CBC7C0")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = this.orig;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009C67 RID: 40039 RVA: 0x00209790 File Offset: 0x00207990
|
||||
[Token(Token = "0x6009C67")]
|
||||
[Address(RVA = "0x1CBC630", Offset = "0x1CBB430", VA = "0x181CBC630")]
|
||||
public IgnoresCaseHashtable()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.orig = dictionary;
|
||||
IDictionary dictionary2 = Platform.CreateHashtable();
|
||||
this.keys = dictionary2;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04006934 RID: 26932
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006934")]
|
||||
private readonly IDictionary orig;
|
||||
|
||||
// Token: 0x04006935 RID: 26933
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006935")]
|
||||
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: 0x0200198B RID: 6539
|
||||
[Token(Token = "0x200198B")]
|
||||
public class Pkcs12StoreBuilder
|
||||
{
|
||||
// Token: 0x06009C1B RID: 39963 RVA: 0x00207E9C File Offset: 0x0020609C
|
||||
[Token(Token = "0x6009C1B")]
|
||||
[Address(RVA = "0x1CC12E0", Offset = "0x1CC00E0", VA = "0x181CC12E0")]
|
||||
public Pkcs12StoreBuilder()
|
||||
{
|
||||
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
|
||||
this.keyAlgorithm = pbeWithShaAnd3KeyTripleDesCbc;
|
||||
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
|
||||
this.certAlgorithm = pbewithShaAnd40BitRC2Cbc;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x06009C1C RID: 39964 RVA: 0x00207ECC File Offset: 0x002060CC
|
||||
[Token(Token = "0x6009C1C")]
|
||||
[Address(RVA = "0x1CC1240", Offset = "0x1CC0040", VA = "0x181CC1240")]
|
||||
public Pkcs12Store Build()
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = this.keyAlgorithm;
|
||||
DerObjectIdentifier derObjectIdentifier2 = this.certAlgorithm;
|
||||
bool flag = this.useDerEncoding;
|
||||
return new Pkcs12Store(derObjectIdentifier, derObjectIdentifier2, flag);
|
||||
}
|
||||
|
||||
// Token: 0x06009C1D RID: 39965 RVA: 0x00207EF8 File Offset: 0x002060F8
|
||||
[Token(Token = "0x6009C1D")]
|
||||
[Address(RVA = "0x1871FF0", Offset = "0x1870DF0", VA = "0x181871FF0")]
|
||||
public Pkcs12StoreBuilder SetCertAlgorithm(DerObjectIdentifier certAlgorithm)
|
||||
{
|
||||
this.certAlgorithm = certAlgorithm;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x06009C1E RID: 39966 RVA: 0x00207F10 File Offset: 0x00206110
|
||||
[Token(Token = "0x6009C1E")]
|
||||
[Address(RVA = "0x1CC12C0", Offset = "0x1CC00C0", VA = "0x181CC12C0")]
|
||||
public Pkcs12StoreBuilder SetKeyAlgorithm(DerObjectIdentifier keyAlgorithm)
|
||||
{
|
||||
this.keyAlgorithm = keyAlgorithm;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x06009C1F RID: 39967 RVA: 0x00207F28 File Offset: 0x00206128
|
||||
[Token(Token = "0x6009C1F")]
|
||||
[Address(RVA = "0x1CC12D0", Offset = "0x1CC00D0", VA = "0x181CC12D0")]
|
||||
public Pkcs12StoreBuilder SetUseDerEncoding(bool useDerEncoding)
|
||||
{
|
||||
this.useDerEncoding = useDerEncoding;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0400691F RID: 26911
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400691F")]
|
||||
private DerObjectIdentifier keyAlgorithm;
|
||||
|
||||
// Token: 0x04006920 RID: 26912
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006920")]
|
||||
private DerObjectIdentifier certAlgorithm;
|
||||
|
||||
// Token: 0x04006921 RID: 26913
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006921")]
|
||||
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: 0x02001992 RID: 6546
|
||||
[Token(Token = "0x2001992")]
|
||||
public class Pkcs12Utilities
|
||||
{
|
||||
// Token: 0x06009C68 RID: 40040 RVA: 0x002097C4 File Offset: 0x002079C4
|
||||
[Token(Token = "0x6009C68")]
|
||||
[Address(RVA = "0x1CC80C0", Offset = "0x1CC6EC0", VA = "0x181CC80C0")]
|
||||
public static byte[] ConvertToDefiniteLength(byte[] berPkcs12File)
|
||||
{
|
||||
return new Pfx(Asn1Sequence.GetInstance(Asn1Object.FromByteArray(berPkcs12File))).GetEncoded("DER");
|
||||
}
|
||||
|
||||
// Token: 0x06009C69 RID: 40041 RVA: 0x002097F4 File Offset: 0x002079F4
|
||||
[Token(Token = "0x6009C69")]
|
||||
[Address(RVA = "0x1CC7D10", Offset = "0x1CC6B10", VA = "0x181CC7D10")]
|
||||
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: 0x06009C6A RID: 40042 RVA: 0x002098E4 File Offset: 0x00207AE4
|
||||
[Token(Token = "0x6009C6A")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public Pkcs12Utilities()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+98
@@ -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: 0x02001993 RID: 6547
|
||||
[Token(Token = "0x2001993")]
|
||||
public sealed class PrivateKeyInfoFactory
|
||||
{
|
||||
// Token: 0x06009C6B RID: 40043 RVA: 0x002098F8 File Offset: 0x00207AF8
|
||||
[Token(Token = "0x6009C6B")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
private PrivateKeyInfoFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009C6C RID: 40044 RVA: 0x0020990C File Offset: 0x00207B0C
|
||||
[Token(Token = "0x6009C6C")]
|
||||
[Address(RVA = "0x1CDA9E0", Offset = "0x1CD97E0", VA = "0x181CDA9E0")]
|
||||
public static PrivateKeyInfo CreatePrivateKeyInfo(AsymmetricKeyParameter privateKey)
|
||||
{
|
||||
int num = 0;
|
||||
return PrivateKeyInfoFactory.CreatePrivateKeyInfo(privateKey, num);
|
||||
}
|
||||
|
||||
// Token: 0x06009C6D RID: 40045 RVA: 0x00209924 File Offset: 0x00207B24
|
||||
[Token(Token = "0x6009C6D")]
|
||||
[Address(RVA = "0x1CDAB80", Offset = "0x1CD9980", VA = "0x181CDAB80")]
|
||||
public static PrivateKeyInfo CreatePrivateKeyInfo(AsymmetricKeyParameter privateKey, Asn1Set attributes)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009C6D)
|
||||
|
||||
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: 0x06009C6E RID: 40046 RVA: 0x00209BC8 File Offset: 0x00207DC8
|
||||
[Token(Token = "0x6009C6E")]
|
||||
[Address(RVA = "0x1CDAB70", Offset = "0x1CD9970", VA = "0x181CDAB70")]
|
||||
public static PrivateKeyInfo CreatePrivateKeyInfo(char[] passPhrase, EncryptedPrivateKeyInfo encInfo)
|
||||
{
|
||||
int num = 0;
|
||||
return PrivateKeyInfoFactory.CreatePrivateKeyInfo(passPhrase, num != 0, encInfo);
|
||||
}
|
||||
|
||||
// Token: 0x06009C6F RID: 40047 RVA: 0x00209BE0 File Offset: 0x00207DE0
|
||||
[Token(Token = "0x6009C6F")]
|
||||
[Address(RVA = "0x1CDA9F0", Offset = "0x1CD97F0", VA = "0x181CDA9F0")]
|
||||
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: 0x02001994 RID: 6548
|
||||
[Token(Token = "0x2001994")]
|
||||
public class X509CertificateEntry : Pkcs12Entry
|
||||
{
|
||||
// Token: 0x06009C70 RID: 40048 RVA: 0x00209C30 File Offset: 0x00207E30
|
||||
[Token(Token = "0x6009C70")]
|
||||
[Address(RVA = "0x1CDBB30", Offset = "0x1CDA930", VA = "0x181CDBB30")]
|
||||
public X509CertificateEntry(X509Certificate cert)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
base..ctor(dictionary);
|
||||
this.cert = cert;
|
||||
}
|
||||
|
||||
// Token: 0x06009C71 RID: 40049 RVA: 0x00209C54 File Offset: 0x00207E54
|
||||
[Token(Token = "0x6009C71")]
|
||||
[Address(RVA = "0x1CBBF30", Offset = "0x1CBAD30", VA = "0x181CBBF30")]
|
||||
[Obsolete]
|
||||
public X509CertificateEntry(X509Certificate cert, Hashtable attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.cert = cert;
|
||||
}
|
||||
|
||||
// Token: 0x06009C72 RID: 40050 RVA: 0x00209C70 File Offset: 0x00207E70
|
||||
[Token(Token = "0x6009C72")]
|
||||
[Address(RVA = "0x1CBBF30", Offset = "0x1CBAD30", VA = "0x181CBBF30")]
|
||||
public X509CertificateEntry(X509Certificate cert, IDictionary attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.cert = cert;
|
||||
}
|
||||
|
||||
// Token: 0x17001900 RID: 6400
|
||||
// (get) Token: 0x06009C73 RID: 40051 RVA: 0x00209C8C File Offset: 0x00207E8C
|
||||
[Token(Token = "0x17001900")]
|
||||
public X509Certificate Certificate
|
||||
{
|
||||
[Token(Token = "0x6009C73")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.cert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009C74 RID: 40052 RVA: 0x00209CA0 File Offset: 0x00207EA0
|
||||
[Token(Token = "0x6009C74")]
|
||||
[Address(RVA = "0x1CDBA80", Offset = "0x1CDA880", VA = "0x181CDBA80", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
ISet criticalExtensionOids = ((IX509Extension)this.cert).GetCriticalExtensionOids();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009C75 RID: 40053 RVA: 0x00209CCC File Offset: 0x00207ECC
|
||||
[Token(Token = "0x6009C75")]
|
||||
[Address(RVA = "0x1CBBF00", Offset = "0x1CBAD00", VA = "0x181CBBF00", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.cert.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006936 RID: 26934
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006936")]
|
||||
private readonly X509Certificate cert;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user