scripts
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
|
||||
{
|
||||
// Token: 0x020013AC RID: 5036
|
||||
[Token(Token = "0x20013AC")]
|
||||
[StructLayout(3)]
|
||||
public class AsymmetricKeyEntry : Pkcs12Entry
|
||||
{
|
||||
// Token: 0x06008037 RID: 32823 RVA: 0x001B0704 File Offset: 0x001AE904
|
||||
[Token(Token = "0x6008037")]
|
||||
[Address(RVA = "0x4DA0A0", Offset = "0x4D8AA0", VA = "0x1804DA0A0")]
|
||||
public AsymmetricKeyEntry(AsymmetricKeyParameter key)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
base..ctor(dictionary);
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
// Token: 0x06008038 RID: 32824 RVA: 0x001B0728 File Offset: 0x001AE928
|
||||
[Token(Token = "0x6008038")]
|
||||
[Address(RVA = "0x4DA070", Offset = "0x4D8A70", VA = "0x1804DA070")]
|
||||
[Obsolete]
|
||||
public AsymmetricKeyEntry(AsymmetricKeyParameter key, Hashtable attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
// Token: 0x06008039 RID: 32825 RVA: 0x001B0744 File Offset: 0x001AE944
|
||||
[Token(Token = "0x6008039")]
|
||||
[Address(RVA = "0x4DA070", Offset = "0x4D8A70", VA = "0x1804DA070")]
|
||||
public AsymmetricKeyEntry(AsymmetricKeyParameter key, IDictionary attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
// Token: 0x170014F5 RID: 5365
|
||||
// (get) Token: 0x0600803A RID: 32826 RVA: 0x001B0760 File Offset: 0x001AE960
|
||||
[Token(Token = "0x170014F5")]
|
||||
public AsymmetricKeyParameter Key
|
||||
{
|
||||
[Token(Token = "0x600803A")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.key;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600803B RID: 32827 RVA: 0x001B0774 File Offset: 0x001AE974
|
||||
[Token(Token = "0x600803B")]
|
||||
[Address(RVA = "0x4D9F90", Offset = "0x4D8990", VA = "0x1804D9F90", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
AsymmetricKeyParameter asymmetricKeyParameter = this.key;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600803C RID: 32828 RVA: 0x001B079C File Offset: 0x001AE99C
|
||||
[Token(Token = "0x600803C")]
|
||||
[Address(RVA = "0x4DA040", Offset = "0x4D8A40", VA = "0x1804DA040", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.key.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005ADB RID: 23259
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005ADB")]
|
||||
private readonly AsymmetricKeyParameter key;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x020013AD RID: 5037
|
||||
[Token(Token = "0x20013AD")]
|
||||
[StructLayout(3)]
|
||||
public sealed class EncryptedPrivateKeyInfoFactory
|
||||
{
|
||||
// Token: 0x0600803D RID: 32829 RVA: 0x001B07BC File Offset: 0x001AE9BC
|
||||
[Token(Token = "0x600803D")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private EncryptedPrivateKeyInfoFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600803E RID: 32830 RVA: 0x001B07D0 File Offset: 0x001AE9D0
|
||||
[Token(Token = "0x600803E")]
|
||||
[Address(RVA = "0x4DA2F0", Offset = "0x4D8CF0", VA = "0x1804DA2F0")]
|
||||
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(DerObjectIdentifier algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
|
||||
{
|
||||
string identifier = algorithm.identifier;
|
||||
EncryptedPrivateKeyInfo encryptedPrivateKeyInfo;
|
||||
return encryptedPrivateKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600803F RID: 32831 RVA: 0x001B07EC File Offset: 0x001AE9EC
|
||||
[Token(Token = "0x600803F")]
|
||||
[Address(RVA = "0x4DA360", Offset = "0x4D8D60", VA = "0x1804DA360")]
|
||||
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
|
||||
{
|
||||
EncryptedPrivateKeyInfo encryptedPrivateKeyInfo;
|
||||
return encryptedPrivateKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x06008040 RID: 32832 RVA: 0x001B07FC File Offset: 0x001AE9FC
|
||||
[Token(Token = "0x6008040")]
|
||||
[Address(RVA = "0x4DA3D0", Offset = "0x4D8DD0", VA = "0x1804DA3D0")]
|
||||
public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, PrivateKeyInfo keyInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008040)
|
||||
|
||||
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
|
||||
*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
+444
@@ -0,0 +1,444 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.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: 0x020013AF RID: 5039
|
||||
[Token(Token = "0x20013AF")]
|
||||
[StructLayout(3)]
|
||||
public class Pkcs10CertificationRequest : CertificationRequest
|
||||
{
|
||||
// Token: 0x06008046 RID: 32838 RVA: 0x001B08EC File Offset: 0x001AEAEC
|
||||
[Token(Token = "0x6008046")]
|
||||
[Address(RVA = "0x4DF870", Offset = "0x4DE270", VA = "0x1804DF870")]
|
||||
static Pkcs10CertificationRequest()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008046)
|
||||
|
||||
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: 0x06008047 RID: 32839 RVA: 0x001B0C24 File Offset: 0x001AEE24
|
||||
[Token(Token = "0x6008047")]
|
||||
[Address(RVA = "0x4DE890", Offset = "0x4DD290", VA = "0x1804DE890")]
|
||||
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: 0x06008048 RID: 32840 RVA: 0x001B0C54 File Offset: 0x001AEE54
|
||||
[Token(Token = "0x6008048")]
|
||||
[Address(RVA = "0x4E1290", Offset = "0x4DFC90", VA = "0x1804E1290")]
|
||||
protected Pkcs10CertificationRequest()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008049 RID: 32841 RVA: 0x001B0C68 File Offset: 0x001AEE68
|
||||
[Token(Token = "0x6008049")]
|
||||
[Address(RVA = "0x4E14A0", Offset = "0x4DFEA0", VA = "0x1804E14A0")]
|
||||
public Pkcs10CertificationRequest(byte[] encoded)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = Asn1Object.FromByteArray(encoded);
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Object == 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600804A RID: 32842 RVA: 0x001B0C88 File Offset: 0x001AEE88
|
||||
[Token(Token = "0x600804A")]
|
||||
[Address(RVA = "0x4E1280", Offset = "0x4DFC80", VA = "0x1804E1280")]
|
||||
public Pkcs10CertificationRequest(Asn1Sequence seq)
|
||||
: base(seq)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600804B RID: 32843 RVA: 0x001B0C9C File Offset: 0x001AEE9C
|
||||
[Token(Token = "0x600804B")]
|
||||
[Address(RVA = "0x4E1540", Offset = "0x4DFF40", VA = "0x1804E1540")]
|
||||
public Pkcs10CertificationRequest(Stream input)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = Asn1Object.FromStream(input);
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Object == 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600804C RID: 32844 RVA: 0x001B0CBC File Offset: 0x001AEEBC
|
||||
[Token(Token = "0x600804C")]
|
||||
[Address(RVA = "0x4E12A0", Offset = "0x4DFCA0", VA = "0x1804E12A0")]
|
||||
public Pkcs10CertificationRequest(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600804D RID: 32845 RVA: 0x001B0CCC File Offset: 0x001AEECC
|
||||
[Token(Token = "0x600804D")]
|
||||
[Address(RVA = "0x4E15E0", Offset = "0x4DFFE0", VA = "0x1804E15E0")]
|
||||
[Obsolete]
|
||||
public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600804E RID: 32846 RVA: 0x001B0CDC File Offset: 0x001AEEDC
|
||||
[Token(Token = "0x600804E")]
|
||||
[Address(RVA = "0x4E1340", Offset = "0x4DFD40", VA = "0x1804E1340")]
|
||||
public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600804E)
|
||||
|
||||
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: 0x0600804F RID: 32847 RVA: 0x001B0D20 File Offset: 0x001AEF20
|
||||
[Token(Token = "0x600804F")]
|
||||
[Address(RVA = "0x4DEFD0", Offset = "0x4DD9D0", VA = "0x1804DEFD0")]
|
||||
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: 0x06008050 RID: 32848 RVA: 0x001B0D8C File Offset: 0x001AEF8C
|
||||
[Token(Token = "0x6008050")]
|
||||
[Address(RVA = "0x4DEDD0", Offset = "0x4DD7D0", VA = "0x1804DEDD0")]
|
||||
public AsymmetricKeyParameter GetPublicKey()
|
||||
{
|
||||
return PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo);
|
||||
}
|
||||
|
||||
// Token: 0x06008051 RID: 32849 RVA: 0x001B0DB0 File Offset: 0x001AEFB0
|
||||
[Token(Token = "0x6008051")]
|
||||
[Address(RVA = "0x4DF690", Offset = "0x4DE090", VA = "0x1804DF690")]
|
||||
public bool Verify()
|
||||
{
|
||||
Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo));
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06008052 RID: 32850 RVA: 0x001B0DDC File Offset: 0x001AEFDC
|
||||
[Token(Token = "0x6008052")]
|
||||
[Address(RVA = "0x4DF750", Offset = "0x4DE150", VA = "0x1804DF750")]
|
||||
public bool Verify(AsymmetricKeyParameter publicKey)
|
||||
{
|
||||
Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(publicKey);
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06008053 RID: 32851 RVA: 0x001B0DF8 File Offset: 0x001AEFF8
|
||||
[Token(Token = "0x6008053")]
|
||||
[Address(RVA = "0x4DF800", Offset = "0x4DE200", VA = "0x1804DF800")]
|
||||
public bool Verify(IVerifierFactoryProvider verifierProvider)
|
||||
{
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06008054 RID: 32852 RVA: 0x001B0E0C File Offset: 0x001AF00C
|
||||
[Token(Token = "0x6008054")]
|
||||
[Address(RVA = "0x4DF410", Offset = "0x4DDE10", VA = "0x1804DF410")]
|
||||
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: 0x06008055 RID: 32853 RVA: 0x001B0E84 File Offset: 0x001AF084
|
||||
[Token(Token = "0x6008055")]
|
||||
[Address(RVA = "0x4DF2A0", Offset = "0x4DDCA0", VA = "0x1804DF2A0")]
|
||||
private void SetSignatureParameters(ISigner signature, Asn1Encodable asn1Params)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008055)
|
||||
|
||||
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: 0x06008056 RID: 32854 RVA: 0x001B0EB8 File Offset: 0x001AF0B8
|
||||
[Token(Token = "0x6008056")]
|
||||
[Address(RVA = "0x4DEE00", Offset = "0x4DD800", VA = "0x1804DEE00")]
|
||||
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: 0x06008057 RID: 32855 RVA: 0x001B0F08 File Offset: 0x001AF108
|
||||
[Token(Token = "0x6008057")]
|
||||
[Address(RVA = "0x4DE9B0", Offset = "0x4DD3B0", VA = "0x1804DE9B0")]
|
||||
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: 0x04005ADF RID: 23263
|
||||
[Token(Token = "0x4005ADF")]
|
||||
protected static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x04005AE0 RID: 23264
|
||||
[Token(Token = "0x4005AE0")]
|
||||
protected static readonly IDictionary exParams;
|
||||
|
||||
// Token: 0x04005AE1 RID: 23265
|
||||
[Token(Token = "0x4005AE1")]
|
||||
protected static readonly IDictionary keyAlgorithms;
|
||||
|
||||
// Token: 0x04005AE2 RID: 23266
|
||||
[Token(Token = "0x4005AE2")]
|
||||
protected static readonly IDictionary oids;
|
||||
|
||||
// Token: 0x04005AE3 RID: 23267
|
||||
[Token(Token = "0x4005AE3")]
|
||||
protected static readonly ISet noParams;
|
||||
}
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x020013B0 RID: 5040
|
||||
[Token(Token = "0x20013B0")]
|
||||
[StructLayout(3)]
|
||||
public class Pkcs10CertificationRequestDelaySigned : Pkcs10CertificationRequest
|
||||
{
|
||||
// Token: 0x06008058 RID: 32856 RVA: 0x001B0FA0 File Offset: 0x001AF1A0
|
||||
[Token(Token = "0x6008058")]
|
||||
[Address(RVA = "0x4DE6F0", Offset = "0x4DD0F0", VA = "0x1804DE6F0")]
|
||||
protected Pkcs10CertificationRequestDelaySigned()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008059 RID: 32857 RVA: 0x001B0FB4 File Offset: 0x001AF1B4
|
||||
[Token(Token = "0x6008059")]
|
||||
[Address(RVA = "0x4DE820", Offset = "0x4DD220", VA = "0x1804DE820")]
|
||||
public Pkcs10CertificationRequestDelaySigned(byte[] encoded)
|
||||
: base(encoded)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600805A RID: 32858 RVA: 0x001B0FC8 File Offset: 0x001AF1C8
|
||||
[Token(Token = "0x600805A")]
|
||||
[Address(RVA = "0x4DE680", Offset = "0x4DD080", VA = "0x1804DE680")]
|
||||
public Pkcs10CertificationRequestDelaySigned(Asn1Sequence seq)
|
||||
: base(seq)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600805B RID: 32859 RVA: 0x001B0FDC File Offset: 0x001AF1DC
|
||||
[Token(Token = "0x600805B")]
|
||||
[Address(RVA = "0x4DE5A0", Offset = "0x4DCFA0", VA = "0x1804DE5A0")]
|
||||
public Pkcs10CertificationRequestDelaySigned(Stream input)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = Asn1Object.FromStream(input);
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Object == 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600805C RID: 32860 RVA: 0x001B0FFC File Offset: 0x001AF1FC
|
||||
[Token(Token = "0x600805C")]
|
||||
[Address(RVA = "0x4DE750", Offset = "0x4DD150", VA = "0x1804DE750")]
|
||||
public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600805D RID: 32861 RVA: 0x001B100C File Offset: 0x001AF20C
|
||||
[Token(Token = "0x600805D")]
|
||||
[Address(RVA = "0x4DE140", Offset = "0x4DCB40", VA = "0x1804DE140")]
|
||||
public Pkcs10CertificationRequestDelaySigned(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600805D)
|
||||
|
||||
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: 0x0600805E RID: 32862 RVA: 0x001B10A8 File Offset: 0x001AF2A8
|
||||
[Token(Token = "0x600805E")]
|
||||
[Address(RVA = "0x4DE0B0", Offset = "0x4DCAB0", VA = "0x1804DE0B0")]
|
||||
public byte[] GetDataToSign()
|
||||
{
|
||||
return this.reqInfo.GetDerEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x0600805F RID: 32863 RVA: 0x001B10C8 File Offset: 0x001AF2C8
|
||||
[Token(Token = "0x600805F")]
|
||||
[Address(RVA = "0x4DE0D0", Offset = "0x4DCAD0", VA = "0x1804DE0D0")]
|
||||
public void SignRequest(byte[] signedData)
|
||||
{
|
||||
DerBitString derBitString = new DerBitString(signedData);
|
||||
this.sigBits = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x06008060 RID: 32864 RVA: 0x001B10E4 File Offset: 0x001AF2E4
|
||||
[Token(Token = "0x6008060")]
|
||||
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
|
||||
public void SignRequest(DerBitString signedData)
|
||||
{
|
||||
this.sigBits = signedData;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
|
||||
{
|
||||
// Token: 0x020013B1 RID: 5041
|
||||
[Token(Token = "0x20013B1")]
|
||||
[StructLayout(3)]
|
||||
public abstract class Pkcs12Entry
|
||||
{
|
||||
// Token: 0x06008061 RID: 32865 RVA: 0x001B10F8 File Offset: 0x001AF2F8
|
||||
[Token(Token = "0x6008061")]
|
||||
[Address(RVA = "0x4E17B0", Offset = "0x4E01B0", VA = "0x1804E17B0")]
|
||||
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_55;
|
||||
}
|
||||
if (typeof(string).TypeHandle == 0)
|
||||
{
|
||||
goto IL_38;
|
||||
}
|
||||
if (typeof(string).TypeHandle != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_38:
|
||||
Type typeFromHandle = typeof(Asn1Encodable);
|
||||
throw new NullReferenceException();
|
||||
IL_55:
|
||||
Type typeFromHandle2 = typeof(string);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008062 RID: 32866 RVA: 0x001B1188 File Offset: 0x001AF388
|
||||
[Token(Token = "0x6008062")]
|
||||
[Address(RVA = "0x4E1700", Offset = "0x4E0100", VA = "0x1804E1700")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetBagAttribute(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008063 RID: 32867 RVA: 0x001B11AC File Offset: 0x001AF3AC
|
||||
[Token(Token = "0x6008063")]
|
||||
[Address(RVA = "0x4E1650", Offset = "0x4E0050", VA = "0x1804E1650")]
|
||||
[Obsolete]
|
||||
public Asn1Encodable GetBagAttribute(string oid)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008064 RID: 32868 RVA: 0x001B11D0 File Offset: 0x001AF3D0
|
||||
[Token(Token = "0x6008064")]
|
||||
[Address(RVA = "0x4E15F0", Offset = "0x4DFFF0", VA = "0x1804E15F0")]
|
||||
[Obsolete]
|
||||
public IEnumerator GetBagAttributeKeys()
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170014F6 RID: 5366
|
||||
[Token(Token = "0x170014F6")]
|
||||
public Asn1Encodable this[DerObjectIdentifier oid]
|
||||
{
|
||||
[Token(Token = "0x6008065")]
|
||||
[Address(RVA = "0x4E1BC0", Offset = "0x4E05C0", VA = "0x1804E1BC0")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170014F7 RID: 5367
|
||||
[Token(Token = "0x170014F7")]
|
||||
public Asn1Encodable this[string oid]
|
||||
{
|
||||
[Token(Token = "0x6008066")]
|
||||
[Address(RVA = "0x4E1B10", Offset = "0x4E0510", VA = "0x1804E1B10")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170014F8 RID: 5368
|
||||
// (get) Token: 0x06008067 RID: 32871 RVA: 0x001B1234 File Offset: 0x001AF434
|
||||
[Token(Token = "0x170014F8")]
|
||||
public IEnumerable BagAttributeKeys
|
||||
{
|
||||
[Token(Token = "0x6008067")]
|
||||
[Address(RVA = "0x4E1A90", Offset = "0x4E0490", VA = "0x1804E1A90")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04005AE4 RID: 23268
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005AE4")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,1271 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x020013B2 RID: 5042
|
||||
[Token(Token = "0x20013B2")]
|
||||
[StructLayout(3)]
|
||||
public class Pkcs12Store
|
||||
{
|
||||
// Token: 0x06008068 RID: 32872 RVA: 0x001B1250 File Offset: 0x001AF450
|
||||
[Token(Token = "0x6008068")]
|
||||
[Address(RVA = "0x4E1F30", Offset = "0x4E0930", VA = "0x1804E1F30")]
|
||||
private static SubjectKeyIdentifier CreateSubjectKeyID(AsymmetricKeyParameter pubKey)
|
||||
{
|
||||
return new SubjectKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey));
|
||||
}
|
||||
|
||||
// Token: 0x06008069 RID: 32873 RVA: 0x001B1268 File Offset: 0x001AF468
|
||||
[Token(Token = "0x6008069")]
|
||||
[Address(RVA = "0x4E86E0", Offset = "0x4E70E0", VA = "0x1804E86E0")]
|
||||
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: 0x0600806A RID: 32874 RVA: 0x001B131C File Offset: 0x001AF51C
|
||||
[Token(Token = "0x600806A")]
|
||||
[Address(RVA = "0x4E85B0", Offset = "0x4E6FB0", VA = "0x1804E85B0")]
|
||||
public Pkcs12Store()
|
||||
{
|
||||
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
|
||||
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
|
||||
}
|
||||
|
||||
// Token: 0x0600806B RID: 32875 RVA: 0x001B1338 File Offset: 0x001AF538
|
||||
[Token(Token = "0x600806B")]
|
||||
[Address(RVA = "0x4E8630", Offset = "0x4E7030", VA = "0x1804E8630")]
|
||||
public Pkcs12Store(Stream input, char[] password)
|
||||
{
|
||||
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
|
||||
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
|
||||
this.Load(input, password);
|
||||
}
|
||||
|
||||
// Token: 0x0600806C RID: 32876 RVA: 0x001B135C File Offset: 0x001AF55C
|
||||
[Token(Token = "0x600806C")]
|
||||
[Address(RVA = "0x4E3C10", Offset = "0x4E2610", VA = "0x1804E3C10", Slot = "4")]
|
||||
protected virtual void LoadKeyBag(PrivateKeyInfo privKeyInfo, Asn1Set bagAttributes)
|
||||
{
|
||||
AsymmetricKeyEntry asymmetricKeyEntry;
|
||||
DerObjectIdentifier pkcs1Oid;
|
||||
do
|
||||
{
|
||||
AsymmetricKeyParameter asymmetricKeyParameter = PrivateKeyFactory.CreateKey(privKeyInfo);
|
||||
asymmetricKeyEntry = new AsymmetricKeyEntry(Platform.CreateHashtable());
|
||||
asymmetricKeyEntry.key = asymmetricKeyParameter;
|
||||
if (bagAttributes == 0)
|
||||
{
|
||||
goto IL_7F;
|
||||
}
|
||||
IEnumerator enumerator = bagAttributes.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_B7;
|
||||
}
|
||||
Asn1Encodable asn1Encodable;
|
||||
while (asn1Encodable <= 0)
|
||||
{
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
if (asn1Set.GetEnumerator() == 0)
|
||||
{
|
||||
}
|
||||
pkcs1Oid = PkcsObjectIdentifiers.Pkcs1Oid;
|
||||
Pkcs12Store.IgnoresCaseHashtable ignoresCaseHashtable = this.keys;
|
||||
}
|
||||
if (pkcs1Oid != 0)
|
||||
{
|
||||
}
|
||||
if ((ulong)((uint)0) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
}
|
||||
while ((uint)0 != 0U);
|
||||
DerObjectIdentifier pkcs1Oid2 = PkcsObjectIdentifiers.Pkcs1Oid;
|
||||
if (pkcs1Oid != 0)
|
||||
{
|
||||
IDictionary dictionary = this.localIds;
|
||||
}
|
||||
Pkcs12Store.IgnoresCaseHashtable ignoresCaseHashtable2 = this.keys;
|
||||
IL_7F:
|
||||
this.unmarkedKeyEntry = asymmetricKeyEntry;
|
||||
return;
|
||||
IL_B7:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600806D RID: 32877 RVA: 0x001B142C File Offset: 0x001AF62C
|
||||
[Token(Token = "0x600806D")]
|
||||
[Address(RVA = "0x4E41A0", Offset = "0x4E2BA0", VA = "0x1804E41A0", Slot = "5")]
|
||||
protected virtual void LoadPkcs8ShroudedKeyBag(EncryptedPrivateKeyInfo encPrivKeyInfo, Asn1Set bagAttributes, char[] password, bool wrongPkcs12Zero)
|
||||
{
|
||||
if (password != 0)
|
||||
{
|
||||
string text = this.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600806E RID: 32878 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600806E")]
|
||||
[Address(RVA = "0x4E41F0", Offset = "0x4E2BF0", VA = "0x1804E41F0")]
|
||||
public void Load(Stream input, char[] password)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600806F RID: 32879 RVA: 0x001B1444 File Offset: 0x001AF644
|
||||
[Token(Token = "0x600806F")]
|
||||
[Address(RVA = "0x4E3860", Offset = "0x4E2260", VA = "0x1804E3860")]
|
||||
public AsymmetricKeyEntry GetKey(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600806F)
|
||||
|
||||
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: 0x06008070 RID: 32880 RVA: 0x001B1478 File Offset: 0x001AF678
|
||||
[Token(Token = "0x6008070")]
|
||||
[Address(RVA = "0x4E3940", Offset = "0x4E2340", VA = "0x1804E3940")]
|
||||
public bool IsCertificateEntry(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008070)
|
||||
|
||||
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: 0x06008071 RID: 32881 RVA: 0x001B14B4 File Offset: 0x001AF6B4
|
||||
[Token(Token = "0x6008071")]
|
||||
[Address(RVA = "0x4E3B80", Offset = "0x4E2580", VA = "0x1804E3B80")]
|
||||
public bool IsKeyEntry(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008071)
|
||||
|
||||
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: 0x06008072 RID: 32882 RVA: 0x001B14E4 File Offset: 0x001AF6E4
|
||||
[Token(Token = "0x6008072")]
|
||||
[Address(RVA = "0x4E24F0", Offset = "0x4E0EF0", VA = "0x1804E24F0")]
|
||||
private IDictionary GetAliasesTable()
|
||||
{
|
||||
IDictionary dictionary;
|
||||
for (;;)
|
||||
{
|
||||
int 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_E5;
|
||||
}
|
||||
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 == -1)
|
||||
{
|
||||
goto IL_BE;
|
||||
}
|
||||
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)
|
||||
{
|
||||
uint num5;
|
||||
if (num3 < (int)num5)
|
||||
{
|
||||
num3 += num3;
|
||||
num3++;
|
||||
}
|
||||
while (num3 != 0)
|
||||
{
|
||||
}
|
||||
goto IL_BE;
|
||||
}
|
||||
goto IL_F1;
|
||||
}
|
||||
IL_C3:
|
||||
num++;
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if (num3 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
IL_BE:
|
||||
if (num3 == 0)
|
||||
{
|
||||
goto IL_C3;
|
||||
}
|
||||
goto IL_EB;
|
||||
}
|
||||
return dictionary;
|
||||
IL_E5:
|
||||
throw new NullReferenceException();
|
||||
IL_EB:
|
||||
throw new NullReferenceException();
|
||||
IL_F1:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170014F9 RID: 5369
|
||||
// (get) Token: 0x06008073 RID: 32883 RVA: 0x001B15E8 File Offset: 0x001AF7E8
|
||||
[Token(Token = "0x170014F9")]
|
||||
public IEnumerable Aliases
|
||||
{
|
||||
[Token(Token = "0x6008073")]
|
||||
[Address(RVA = "0x4E8870", Offset = "0x4E7270", VA = "0x1804E8870")]
|
||||
get
|
||||
{
|
||||
EnumerableProxy enumerableProxy = new EnumerableProxy(this.GetAliasesTable());
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008074 RID: 32884 RVA: 0x001B1608 File Offset: 0x001AF808
|
||||
[Token(Token = "0x6008074")]
|
||||
[Address(RVA = "0x4E1ED0", Offset = "0x4E08D0", VA = "0x1804E1ED0")]
|
||||
public bool ContainsAlias(string alias)
|
||||
{
|
||||
return this.certs[alias] != 0 || this.keys[alias] != 0;
|
||||
}
|
||||
|
||||
// Token: 0x06008075 RID: 32885 RVA: 0x001B1640 File Offset: 0x001AF840
|
||||
[Token(Token = "0x6008075")]
|
||||
[Address(RVA = "0x4E36F0", Offset = "0x4E20F0", VA = "0x1804E36F0")]
|
||||
public X509CertificateEntry GetCertificate(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008075)
|
||||
|
||||
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: 0x06008076 RID: 32886 RVA: 0x001B1694 File Offset: 0x001AF894
|
||||
[Token(Token = "0x6008076")]
|
||||
[Address(RVA = "0x4E2AE0", Offset = "0x4E14E0", VA = "0x1804E2AE0")]
|
||||
public string GetCertificateAlias(X509Certificate cert)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
if (cert == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IDictionary orig = this.certs.orig;
|
||||
if (typeof(DictionaryEntry).TypeHandle == 0)
|
||||
{
|
||||
goto IL_AF;
|
||||
}
|
||||
int num2 = 0;
|
||||
if (typeof(DictionaryEntry).TypeHandle == 0)
|
||||
{
|
||||
goto IL_AF;
|
||||
}
|
||||
if (num2 == 0)
|
||||
{
|
||||
}
|
||||
if (num2 == 0)
|
||||
{
|
||||
goto IL_A9;
|
||||
}
|
||||
int num3;
|
||||
if (num2 != 0)
|
||||
{
|
||||
num3 = 0;
|
||||
}
|
||||
if (num == -1)
|
||||
{
|
||||
goto IL_71;
|
||||
}
|
||||
if (num3 == 207)
|
||||
{
|
||||
goto IL_8D;
|
||||
}
|
||||
if (num3 != 107)
|
||||
{
|
||||
goto IL_71;
|
||||
}
|
||||
IDictionary dictionary = this.keyCerts;
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_75;
|
||||
}
|
||||
int num4 = num;
|
||||
if (num4 == 0 || num4 != 0)
|
||||
{
|
||||
num++;
|
||||
goto IL_71;
|
||||
}
|
||||
goto IL_C1;
|
||||
IL_96:
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
IL_75:
|
||||
num++;
|
||||
int num5;
|
||||
if (num != 0)
|
||||
{
|
||||
num5 = 0;
|
||||
}
|
||||
if (num == -1)
|
||||
{
|
||||
goto IL_96;
|
||||
}
|
||||
if (num5 == 207)
|
||||
{
|
||||
}
|
||||
IL_8D:
|
||||
if (num5 != 205)
|
||||
{
|
||||
goto IL_96;
|
||||
}
|
||||
break;
|
||||
IL_71:
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_75;
|
||||
}
|
||||
goto IL_C1;
|
||||
}
|
||||
ArgumentNullException ex = new ArgumentNullException("cert");
|
||||
IL_A9:
|
||||
throw new NullReferenceException();
|
||||
IL_AF:
|
||||
throw new NullReferenceException();
|
||||
IL_C1:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008077 RID: 32887 RVA: 0x001B177C File Offset: 0x001AF97C
|
||||
[Token(Token = "0x6008077")]
|
||||
[Address(RVA = "0x4E3010", Offset = "0x4E1A10", VA = "0x1804E3010")]
|
||||
public X509CertificateEntry[] GetCertificateChain(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008077)
|
||||
|
||||
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_108:
|
||||
stloc:ArgumentNullException(var_23_112, 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: 0x06008078 RID: 32888 RVA: 0x001B189C File Offset: 0x001AFA9C
|
||||
[Token(Token = "0x6008078")]
|
||||
[Address(RVA = "0x4E8060", Offset = "0x4E6A60", VA = "0x1804E8060")]
|
||||
public void SetCertificateEntry(string alias, X509CertificateEntry certEntry)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008078)
|
||||
|
||||
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: 0x06008079 RID: 32889 RVA: 0x001B1900 File Offset: 0x001AFB00
|
||||
[Token(Token = "0x6008079")]
|
||||
[Address(RVA = "0x4E8220", Offset = "0x4E6C20", VA = "0x1804E8220")]
|
||||
public void SetKeyEntry(string alias, AsymmetricKeyEntry keyEntry, X509CertificateEntry[] chain)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008079)
|
||||
|
||||
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: 0x0600807A RID: 32890 RVA: 0x001B19E4 File Offset: 0x001AFBE4
|
||||
[Token(Token = "0x600807A")]
|
||||
[Address(RVA = "0x4E2150", Offset = "0x4E0B50", VA = "0x1804E2150")]
|
||||
public void DeleteEntry(string alias)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600807A)
|
||||
|
||||
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: 0x0600807B RID: 32891 RVA: 0x001B1AB0 File Offset: 0x001AFCB0
|
||||
[Token(Token = "0x600807B")]
|
||||
[Address(RVA = "0x4E39F0", Offset = "0x4E23F0", VA = "0x1804E39F0")]
|
||||
public bool IsEntryOfType(string alias, Type entryType)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600807B)
|
||||
|
||||
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: 0x0600807C RID: 32892 RVA: 0x001B1B20 File Offset: 0x001AFD20
|
||||
[Token(Token = "0x600807C")]
|
||||
[Address(RVA = "0x4E8550", Offset = "0x4E6F50", VA = "0x1804E8550")]
|
||||
[Obsolete]
|
||||
public int Size()
|
||||
{
|
||||
IDictionary aliasesTable = this.GetAliasesTable();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170014FA RID: 5370
|
||||
// (get) Token: 0x0600807D RID: 32893 RVA: 0x001B1B3C File Offset: 0x001AFD3C
|
||||
[Token(Token = "0x170014FA")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600807D")]
|
||||
[Address(RVA = "0x4E8550", Offset = "0x4E6F50", VA = "0x1804E8550")]
|
||||
get
|
||||
{
|
||||
IDictionary aliasesTable = this.GetAliasesTable();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600807E RID: 32894 RVA: 0x001B1B58 File Offset: 0x001AFD58
|
||||
[Token(Token = "0x600807E")]
|
||||
[Address(RVA = "0x4E54B0", Offset = "0x4E3EB0", VA = "0x1804E54B0")]
|
||||
public void Save(Stream stream, char[] password, SecureRandom random)
|
||||
{
|
||||
int num2;
|
||||
Asn1Encodable[] array2;
|
||||
X509CertificateEntry x509CertificateEntry;
|
||||
DerObjectIdentifier certBag3;
|
||||
Asn1Encodable[] array3;
|
||||
SafeBag safeBag;
|
||||
Asn1EncodableVector asn1EncodableVector2;
|
||||
DerSet derSet2;
|
||||
Asn1Encodable[] array4;
|
||||
int num3;
|
||||
Asn1Encodable[] array5;
|
||||
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
|
||||
{
|
||||
DerSequence derSequence;
|
||||
if (derSequence != 0)
|
||||
{
|
||||
}
|
||||
if (derSequence != (ulong)(-1L) && "{il2cpp array field local37->}" == (ulong)325L)
|
||||
{
|
||||
goto Block_7;
|
||||
}
|
||||
if (array2 == 0)
|
||||
{
|
||||
goto Block_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
IEnumerable enumerable;
|
||||
if (enumerable != 0)
|
||||
{
|
||||
}
|
||||
DerObjectIdentifier x509Certificate;
|
||||
IEnumerable bagAttributeKeys;
|
||||
DerSequence derSequence3;
|
||||
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)
|
||||
{
|
||||
if (collection != 0 && collection == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
x509Certificate = PkcsObjectIdentifiers.X509Certificate;
|
||||
AsymmetricKeyParameter publicKey = x509CertificateEntry.cert.GetPublicKey();
|
||||
DerOctetString derOctetString;
|
||||
CertBag certBag = new CertBag(x509Certificate, derOctetString);
|
||||
bagAttributeKeys = x509CertificateEntry.BagAttributeKeys;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (derSequence3 != 0)
|
||||
{
|
||||
}
|
||||
ICollection collection2;
|
||||
DerSequence derSequence4;
|
||||
if (derSequence3 != (ulong)(-1L))
|
||||
{
|
||||
if (collection2 != 0)
|
||||
{
|
||||
if (collection2 != 0)
|
||||
{
|
||||
goto IL_409;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (derSequence4 != 0)
|
||||
{
|
||||
}
|
||||
if (derSequence4 != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
DerSet derSet;
|
||||
if (derSet != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (derSequence4 != 0)
|
||||
{
|
||||
while (derSequence4 != 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString2;
|
||||
CertBag certBag2 = new CertBag(PkcsObjectIdentifiers.X509Certificate, derOctetString2);
|
||||
IEnumerable enumerable2;
|
||||
if (enumerable2 != 0)
|
||||
{
|
||||
if (enumerable2 == 0 || enumerable2 != 0)
|
||||
{
|
||||
goto IL_5AE;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
DerSequence derSequence5;
|
||||
if (derSequence5 != 0)
|
||||
{
|
||||
}
|
||||
if (derSequence5 != (ulong)(-1L))
|
||||
{
|
||||
goto Block_35;
|
||||
}
|
||||
if (certBag3 != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
array3[0] = safeBag;
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector2 != 0)
|
||||
{
|
||||
}
|
||||
if (asn1EncodableVector2 != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if (derSet2 == 0)
|
||||
{
|
||||
goto Block_37;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
DerSet derSet3;
|
||||
if (derSet3 != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
IL_409:
|
||||
if (collection2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
IList set = derSet3._set;
|
||||
object obj;
|
||||
while (obj != 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString3;
|
||||
CertBag certBag4 = new CertBag(PkcsObjectIdentifiers.X509Certificate, derOctetString3);
|
||||
IEnumerable enumerable3;
|
||||
if (enumerable3 != 0)
|
||||
{
|
||||
if (enumerable3 == 0 || enumerable3 != 0)
|
||||
{
|
||||
goto IL_442;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (derSequence4 != 0)
|
||||
{
|
||||
}
|
||||
if (enumerable3 != (ulong)(-1L) && "{il2cpp array field local225->}" == (ulong)1344L)
|
||||
{
|
||||
goto Block_28;
|
||||
}
|
||||
if (array4 == 0)
|
||||
{
|
||||
goto Block_29;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (x509Certificate == 0)
|
||||
{
|
||||
if (bagAttributeKeys != 0)
|
||||
{
|
||||
num3 = 0;
|
||||
if (bagAttributeKeys == 0 || bagAttributeKeys != 0)
|
||||
{
|
||||
goto IL_276;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (derSequence3 != 0)
|
||||
{
|
||||
}
|
||||
if (bagAttributeKeys != (ulong)(-1L) && "{il2cpp array field local139->}" == (ulong)853L)
|
||||
{
|
||||
goto Block_17;
|
||||
}
|
||||
if (array5 == 0)
|
||||
{
|
||||
goto Block_18;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
string identifier = PkcsObjectIdentifiers.Pkcs9AtFriendlyName.identifier;
|
||||
bool flag;
|
||||
while (flag)
|
||||
{
|
||||
}
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array7 = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier2 = new DerObjectIdentifier(num2);
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_7:
|
||||
array2 = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array8 = new Asn1Encodable[2];
|
||||
DerObjectIdentifier pkcs9AtFriendlyName = PkcsObjectIdentifiers.Pkcs9AtFriendlyName;
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_8:
|
||||
array8[0] = pkcs9AtFriendlyName;
|
||||
DerBmpString derBmpString;
|
||||
DerSet derSet4 = new DerSet(derBmpString);
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_276:
|
||||
Asn1Encodable asn1Encodable = x509CertificateEntry[num3];
|
||||
string identifier2 = PkcsObjectIdentifiers.Pkcs9AtFriendlyName.identifier;
|
||||
bool flag2;
|
||||
while (flag2)
|
||||
{
|
||||
}
|
||||
Asn1Encodable[] array9 = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array10 = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier3 = new DerObjectIdentifier(num3);
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_17:
|
||||
array5 = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array11 = new Asn1Encodable[2];
|
||||
DerObjectIdentifier pkcs9AtFriendlyName2 = PkcsObjectIdentifiers.Pkcs9AtFriendlyName;
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_18:
|
||||
array11[0] = pkcs9AtFriendlyName2;
|
||||
DerBmpString derBmpString2;
|
||||
DerSet derSet5 = new DerSet(derBmpString2);
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_442:
|
||||
string identifier3 = PkcsObjectIdentifiers.Pkcs9AtLocalKeyID.identifier;
|
||||
bool flag3;
|
||||
while (flag3)
|
||||
{
|
||||
}
|
||||
string identifier4 = PkcsObjectIdentifiers.Pkcs9AtFriendlyName.identifier;
|
||||
bool flag4;
|
||||
while (flag4)
|
||||
{
|
||||
}
|
||||
Asn1Encodable[] array12 = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array13 = new Asn1Encodable[2];
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_28:
|
||||
array4 = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array14 = new Asn1Encodable[2];
|
||||
DerObjectIdentifier pkcs9AtFriendlyName3 = PkcsObjectIdentifiers.Pkcs9AtFriendlyName;
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_29:
|
||||
array14[0] = pkcs9AtFriendlyName3;
|
||||
DerBmpString derBmpString3;
|
||||
DerSet derSet6 = new DerSet(derBmpString3);
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_5AE:
|
||||
string identifier5 = PkcsObjectIdentifiers.Pkcs9AtLocalKeyID.identifier;
|
||||
bool flag5;
|
||||
while (flag5)
|
||||
{
|
||||
}
|
||||
Asn1Encodable[] array15 = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array16 = new Asn1Encodable[2];
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_35:
|
||||
array3 = new Asn1Encodable[1];
|
||||
certBag3 = PkcsObjectIdentifiers.CertBag;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
Asn1Object asn1Object2 = asn1Encodable2.ToAsn1Object();
|
||||
derSet2 = new DerSet(asn1EncodableVector2);
|
||||
safeBag = new SafeBag(certBag3, asn1Object2, derSet2);
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_37:
|
||||
int num4 = 0;
|
||||
DerSequence derSequence6;
|
||||
byte[] derEncoded2 = derSequence6.GetDerEncoded();
|
||||
if (num4 != 0)
|
||||
{
|
||||
DerObjectIdentifier data2 = PkcsObjectIdentifiers.Data;
|
||||
byte[] array17;
|
||||
BerOctetString berOctetString2 = new BerOctetString(array17);
|
||||
int num5 = 0;
|
||||
Asn1Object asn1Object3 = new EncryptedData(data2, num5, berOctetString2).ToAsn1Object();
|
||||
}
|
||||
BerOctetString berOctetString3;
|
||||
ContentInfo contentInfo2 = new ContentInfo(PkcsObjectIdentifiers.Data, berOctetString3);
|
||||
ContentInfo[] array18 = new ContentInfo[2];
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600807F RID: 32895 RVA: 0x001B22F4 File Offset: 0x001B04F4
|
||||
[Token(Token = "0x600807F")]
|
||||
[Address(RVA = "0x4E1DB0", Offset = "0x4E07B0", VA = "0x1804E1DB0")]
|
||||
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: 0x06008080 RID: 32896 RVA: 0x001B231C File Offset: 0x001B051C
|
||||
[Token(Token = "0x6008080")]
|
||||
[Address(RVA = "0x4E1F90", Offset = "0x4E0990", VA = "0x1804E1F90")]
|
||||
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: 0x04005AE5 RID: 23269
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005AE5")]
|
||||
private readonly Pkcs12Store.IgnoresCaseHashtable keys;
|
||||
|
||||
// Token: 0x04005AE6 RID: 23270
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005AE6")]
|
||||
private readonly IDictionary localIds;
|
||||
|
||||
// Token: 0x04005AE7 RID: 23271
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005AE7")]
|
||||
private readonly Pkcs12Store.IgnoresCaseHashtable certs;
|
||||
|
||||
// Token: 0x04005AE8 RID: 23272
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4005AE8")]
|
||||
private readonly IDictionary chainCerts;
|
||||
|
||||
// Token: 0x04005AE9 RID: 23273
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4005AE9")]
|
||||
private readonly IDictionary keyCerts;
|
||||
|
||||
// Token: 0x04005AEA RID: 23274
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4005AEA")]
|
||||
private readonly DerObjectIdentifier keyAlgorithm;
|
||||
|
||||
// Token: 0x04005AEB RID: 23275
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4005AEB")]
|
||||
private readonly DerObjectIdentifier certAlgorithm;
|
||||
|
||||
// Token: 0x04005AEC RID: 23276
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4005AEC")]
|
||||
private readonly bool useDerEncoding;
|
||||
|
||||
// Token: 0x04005AED RID: 23277
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4005AED")]
|
||||
private AsymmetricKeyEntry unmarkedKeyEntry;
|
||||
|
||||
// Token: 0x04005AEE RID: 23278
|
||||
[Token(Token = "0x4005AEE")]
|
||||
private const int MinIterations = 1024;
|
||||
|
||||
// Token: 0x04005AEF RID: 23279
|
||||
[Token(Token = "0x4005AEF")]
|
||||
private const int SaltSize = 20;
|
||||
|
||||
// Token: 0x020013B3 RID: 5043
|
||||
[Token(Token = "0x20013B3")]
|
||||
internal class CertId
|
||||
{
|
||||
// Token: 0x06008081 RID: 32897 RVA: 0x001B2348 File Offset: 0x001B0548
|
||||
[Token(Token = "0x6008081")]
|
||||
[Address(RVA = "0x4DA240", Offset = "0x4D8C40", VA = "0x1804DA240")]
|
||||
internal CertId(AsymmetricKeyParameter pubKey)
|
||||
{
|
||||
byte[] keyIdentifier = new SubjectKeyIdentifier(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(pubKey)).keyIdentifier;
|
||||
this.id = keyIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x06008082 RID: 32898 RVA: 0x001B237C File Offset: 0x001B057C
|
||||
[Token(Token = "0x6008082")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
internal CertId(byte[] id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x170014FB RID: 5371
|
||||
// (get) Token: 0x06008083 RID: 32899 RVA: 0x001B2398 File Offset: 0x001B0598
|
||||
[Token(Token = "0x170014FB")]
|
||||
internal byte[] Id
|
||||
{
|
||||
[Token(Token = "0x6008083")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008084 RID: 32900 RVA: 0x001B23AC File Offset: 0x001B05AC
|
||||
[Token(Token = "0x6008084")]
|
||||
[Address(RVA = "0x4DA1E0", Offset = "0x4D8BE0", VA = "0x1804DA1E0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Arrays.GetHashCode(this.id);
|
||||
}
|
||||
|
||||
// Token: 0x06008085 RID: 32901 RVA: 0x001B23C4 File Offset: 0x001B05C4
|
||||
[Token(Token = "0x6008085")]
|
||||
[Address(RVA = "0x4DA110", Offset = "0x4D8B10", VA = "0x1804DA110", 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: 0x04005AF0 RID: 23280
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005AF0")]
|
||||
private readonly byte[] id;
|
||||
}
|
||||
|
||||
// Token: 0x020013B4 RID: 5044
|
||||
[Token(Token = "0x20013B4")]
|
||||
private class IgnoresCaseHashtable : IEnumerable
|
||||
{
|
||||
// Token: 0x06008086 RID: 32902 RVA: 0x001B23EC File Offset: 0x001B05EC
|
||||
[Token(Token = "0x6008086")]
|
||||
[Address(RVA = "0x4DA5A0", Offset = "0x4D8FA0", VA = "0x1804DA5A0")]
|
||||
public void Clear()
|
||||
{
|
||||
IDictionary dictionary = this.orig;
|
||||
IDictionary dictionary2 = this.keys;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008087 RID: 32903 RVA: 0x001B240C File Offset: 0x001B060C
|
||||
[Token(Token = "0x6008087")]
|
||||
[Address(RVA = "0x4DA610", Offset = "0x4D9010", VA = "0x1804DA610", Slot = "4")]
|
||||
public IEnumerator GetEnumerator()
|
||||
{
|
||||
IDictionary dictionary = this.orig;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170014FC RID: 5372
|
||||
// (get) Token: 0x06008088 RID: 32904 RVA: 0x001B2428 File Offset: 0x001B0628
|
||||
[Token(Token = "0x170014FC")]
|
||||
public ICollection Keys
|
||||
{
|
||||
[Token(Token = "0x6008088")]
|
||||
[Address(RVA = "0x4DA8C0", Offset = "0x4D92C0", VA = "0x1804DA8C0")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = this.orig;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008089 RID: 32905 RVA: 0x001B2444 File Offset: 0x001B0644
|
||||
[Token(Token = "0x6008089")]
|
||||
[Address(RVA = "0x4DA660", Offset = "0x4D9060", VA = "0x1804DA660")]
|
||||
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: 0x170014FD RID: 5373
|
||||
[Token(Token = "0x170014FD")]
|
||||
public object this[string alias]
|
||||
{
|
||||
[Token(Token = "0x600808A")]
|
||||
[Address(RVA = "0x4DA7F0", Offset = "0x4D91F0", VA = "0x1804DA7F0")]
|
||||
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 = "0x600808B")]
|
||||
[Address(RVA = "0x4DA960", Offset = "0x4D9360", VA = "0x1804DA960")]
|
||||
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: 0x170014FE RID: 5374
|
||||
// (get) Token: 0x0600808C RID: 32908 RVA: 0x001B24F4 File Offset: 0x001B06F4
|
||||
[Token(Token = "0x170014FE")]
|
||||
public ICollection Values
|
||||
{
|
||||
[Token(Token = "0x600808C")]
|
||||
[Address(RVA = "0x4DA910", Offset = "0x4D9310", VA = "0x1804DA910")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = this.orig;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600808D RID: 32909 RVA: 0x001B2510 File Offset: 0x001B0710
|
||||
[Token(Token = "0x600808D")]
|
||||
[Address(RVA = "0x4DA780", Offset = "0x4D9180", VA = "0x1804DA780")]
|
||||
public IgnoresCaseHashtable()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.orig = dictionary;
|
||||
IDictionary dictionary2 = Platform.CreateHashtable();
|
||||
this.keys = dictionary2;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04005AF1 RID: 23281
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005AF1")]
|
||||
private readonly IDictionary orig;
|
||||
|
||||
// Token: 0x04005AF2 RID: 23282
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005AF2")]
|
||||
private readonly IDictionary keys;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
|
||||
{
|
||||
// Token: 0x020013AE RID: 5038
|
||||
[Token(Token = "0x20013AE")]
|
||||
[StructLayout(3)]
|
||||
public class Pkcs12StoreBuilder
|
||||
{
|
||||
// Token: 0x06008041 RID: 32833 RVA: 0x001B0848 File Offset: 0x001AEA48
|
||||
[Token(Token = "0x6008041")]
|
||||
[Address(RVA = "0x4E1D20", Offset = "0x4E0720", VA = "0x1804E1D20")]
|
||||
public Pkcs12StoreBuilder()
|
||||
{
|
||||
DerObjectIdentifier pbeWithShaAnd3KeyTripleDesCbc = PkcsObjectIdentifiers.PbeWithShaAnd3KeyTripleDesCbc;
|
||||
this.keyAlgorithm = pbeWithShaAnd3KeyTripleDesCbc;
|
||||
DerObjectIdentifier pbewithShaAnd40BitRC2Cbc = PkcsObjectIdentifiers.PbewithShaAnd40BitRC2Cbc;
|
||||
this.certAlgorithm = pbewithShaAnd40BitRC2Cbc;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x06008042 RID: 32834 RVA: 0x001B0878 File Offset: 0x001AEA78
|
||||
[Token(Token = "0x6008042")]
|
||||
[Address(RVA = "0x4E1C70", Offset = "0x4E0670", VA = "0x1804E1C70")]
|
||||
public Pkcs12Store Build()
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = this.keyAlgorithm;
|
||||
DerObjectIdentifier derObjectIdentifier2 = this.certAlgorithm;
|
||||
bool flag = this.useDerEncoding;
|
||||
return new Pkcs12Store(derObjectIdentifier, derObjectIdentifier2, flag);
|
||||
}
|
||||
|
||||
// Token: 0x06008043 RID: 32835 RVA: 0x001B08A4 File Offset: 0x001AEAA4
|
||||
[Token(Token = "0x6008043")]
|
||||
[Address(RVA = "0x4E1CF0", Offset = "0x4E06F0", VA = "0x1804E1CF0")]
|
||||
public Pkcs12StoreBuilder SetCertAlgorithm(DerObjectIdentifier certAlgorithm)
|
||||
{
|
||||
this.certAlgorithm = certAlgorithm;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x06008044 RID: 32836 RVA: 0x001B08BC File Offset: 0x001AEABC
|
||||
[Token(Token = "0x6008044")]
|
||||
[Address(RVA = "0x4E1D00", Offset = "0x4E0700", VA = "0x1804E1D00")]
|
||||
public Pkcs12StoreBuilder SetKeyAlgorithm(DerObjectIdentifier keyAlgorithm)
|
||||
{
|
||||
this.keyAlgorithm = keyAlgorithm;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x06008045 RID: 32837 RVA: 0x001B08D4 File Offset: 0x001AEAD4
|
||||
[Token(Token = "0x6008045")]
|
||||
[Address(RVA = "0x4E1D10", Offset = "0x4E0710", VA = "0x1804E1D10")]
|
||||
public Pkcs12StoreBuilder SetUseDerEncoding(bool useDerEncoding)
|
||||
{
|
||||
this.useDerEncoding = useDerEncoding;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x04005ADC RID: 23260
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005ADC")]
|
||||
private DerObjectIdentifier keyAlgorithm;
|
||||
|
||||
// Token: 0x04005ADD RID: 23261
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005ADD")]
|
||||
private DerObjectIdentifier certAlgorithm;
|
||||
|
||||
// Token: 0x04005ADE RID: 23262
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005ADE")]
|
||||
private bool useDerEncoding;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x020013B5 RID: 5045
|
||||
[Token(Token = "0x20013B5")]
|
||||
[StructLayout(3)]
|
||||
public class Pkcs12Utilities
|
||||
{
|
||||
// Token: 0x0600808E RID: 32910 RVA: 0x001B2544 File Offset: 0x001B0744
|
||||
[Token(Token = "0x600808E")]
|
||||
[Address(RVA = "0x4E8CA0", Offset = "0x4E76A0", VA = "0x1804E8CA0")]
|
||||
public static byte[] ConvertToDefiniteLength(byte[] berPkcs12File)
|
||||
{
|
||||
return new Pfx(Asn1Sequence.GetInstance(Asn1Object.FromByteArray(berPkcs12File))).GetEncoded("DER");
|
||||
}
|
||||
|
||||
// Token: 0x0600808F RID: 32911 RVA: 0x001B2574 File Offset: 0x001B0774
|
||||
[Token(Token = "0x600808F")]
|
||||
[Address(RVA = "0x4E88F0", Offset = "0x4E72F0", VA = "0x1804E88F0")]
|
||||
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: 0x06008090 RID: 32912 RVA: 0x001B2664 File Offset: 0x001B0864
|
||||
[Token(Token = "0x6008090")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public Pkcs12Utilities()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x020013B6 RID: 5046
|
||||
[Token(Token = "0x20013B6")]
|
||||
[StructLayout(3)]
|
||||
public sealed class PrivateKeyInfoFactory
|
||||
{
|
||||
// Token: 0x06008091 RID: 32913 RVA: 0x001B2678 File Offset: 0x001B0878
|
||||
[Token(Token = "0x6008091")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private PrivateKeyInfoFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008092 RID: 32914 RVA: 0x001B268C File Offset: 0x001B088C
|
||||
[Token(Token = "0x6008092")]
|
||||
[Address(RVA = "0x4F3CA0", Offset = "0x4F26A0", VA = "0x1804F3CA0")]
|
||||
public static PrivateKeyInfo CreatePrivateKeyInfo(AsymmetricKeyParameter privateKey)
|
||||
{
|
||||
int num = 0;
|
||||
return PrivateKeyInfoFactory.CreatePrivateKeyInfo(privateKey, num);
|
||||
}
|
||||
|
||||
// Token: 0x06008093 RID: 32915 RVA: 0x001B26A4 File Offset: 0x001B08A4
|
||||
[Token(Token = "0x6008093")]
|
||||
[Address(RVA = "0x4F3E40", Offset = "0x4F2840", VA = "0x1804F3E40")]
|
||||
public static PrivateKeyInfo CreatePrivateKeyInfo(AsymmetricKeyParameter privateKey, Asn1Set attributes)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008093)
|
||||
|
||||
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: 0x06008094 RID: 32916 RVA: 0x001B2948 File Offset: 0x001B0B48
|
||||
[Token(Token = "0x6008094")]
|
||||
[Address(RVA = "0x4F3E30", Offset = "0x4F2830", VA = "0x1804F3E30")]
|
||||
public static PrivateKeyInfo CreatePrivateKeyInfo(char[] passPhrase, EncryptedPrivateKeyInfo encInfo)
|
||||
{
|
||||
int num = 0;
|
||||
return PrivateKeyInfoFactory.CreatePrivateKeyInfo(passPhrase, num != 0, encInfo);
|
||||
}
|
||||
|
||||
// Token: 0x06008095 RID: 32917 RVA: 0x001B2960 File Offset: 0x001B0B60
|
||||
[Token(Token = "0x6008095")]
|
||||
[Address(RVA = "0x4F3CB0", Offset = "0x4F26B0", VA = "0x1804F3CB0")]
|
||||
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,84 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x020013B7 RID: 5047
|
||||
[Token(Token = "0x20013B7")]
|
||||
[StructLayout(3)]
|
||||
public class X509CertificateEntry : Pkcs12Entry
|
||||
{
|
||||
// Token: 0x06008096 RID: 32918 RVA: 0x001B29B0 File Offset: 0x001B0BB0
|
||||
[Token(Token = "0x6008096")]
|
||||
[Address(RVA = "0x4F4E50", Offset = "0x4F3850", VA = "0x1804F4E50")]
|
||||
public X509CertificateEntry(X509Certificate cert)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
base..ctor(dictionary);
|
||||
this.cert = cert;
|
||||
}
|
||||
|
||||
// Token: 0x06008097 RID: 32919 RVA: 0x001B29D4 File Offset: 0x001B0BD4
|
||||
[Token(Token = "0x6008097")]
|
||||
[Address(RVA = "0x4DA070", Offset = "0x4D8A70", VA = "0x1804DA070")]
|
||||
[Obsolete]
|
||||
public X509CertificateEntry(X509Certificate cert, Hashtable attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.cert = cert;
|
||||
}
|
||||
|
||||
// Token: 0x06008098 RID: 32920 RVA: 0x001B29F0 File Offset: 0x001B0BF0
|
||||
[Token(Token = "0x6008098")]
|
||||
[Address(RVA = "0x4DA070", Offset = "0x4D8A70", VA = "0x1804DA070")]
|
||||
public X509CertificateEntry(X509Certificate cert, IDictionary attributes)
|
||||
: base(attributes)
|
||||
{
|
||||
this.cert = cert;
|
||||
}
|
||||
|
||||
// Token: 0x170014FF RID: 5375
|
||||
// (get) Token: 0x06008099 RID: 32921 RVA: 0x001B2A0C File Offset: 0x001B0C0C
|
||||
[Token(Token = "0x170014FF")]
|
||||
public X509Certificate Certificate
|
||||
{
|
||||
[Token(Token = "0x6008099")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.cert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600809A RID: 32922 RVA: 0x001B2A20 File Offset: 0x001B0C20
|
||||
[Token(Token = "0x600809A")]
|
||||
[Address(RVA = "0x4F4DA0", Offset = "0x4F37A0", VA = "0x1804F4DA0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
ISet criticalExtensionOids = ((IX509Extension)this.cert).GetCriticalExtensionOids();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600809B RID: 32923 RVA: 0x001B2A4C File Offset: 0x001B0C4C
|
||||
[Token(Token = "0x600809B")]
|
||||
[Address(RVA = "0x4DA040", Offset = "0x4D8A40", VA = "0x1804DA040", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.cert.Finalize();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005AF3 RID: 23283
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005AF3")]
|
||||
private readonly X509Certificate cert;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user