443 lines
30 KiB
C#
443 lines
30 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.IO;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.TeleTrust;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
|
|
{
|
|
// Token: 0x02001A6C RID: 6764
|
|
[Token(Token = "0x2001A6C")]
|
|
public class Pkcs10CertificationRequest : CertificationRequest
|
|
{
|
|
// Token: 0x06009FEE RID: 40942 RVA: 0x00210FC8 File Offset: 0x0020F1C8
|
|
[Token(Token = "0x6009FEE")]
|
|
[Address(RVA = "0x641310", Offset = "0x640310", VA = "0x180641310")]
|
|
static Pkcs10CertificationRequest()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009FEE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::.cctor()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:IDictionary(var_1_07, call:IDictionary(Platform::CreateHashtable))
|
|
stsfld:IDictionary(Pkcs10CertificationRequest::algorithms, ldloc:IDictionary(var_1_07))
|
|
stloc:IDictionary(var_3_15, call:IDictionary(Platform::CreateHashtable))
|
|
stsfld:IDictionary(Pkcs10CertificationRequest::exParams, ldloc:IDictionary(var_3_15))
|
|
stloc:IDictionary(var_5_24, call:IDictionary(Platform::CreateHashtable))
|
|
stsfld:IDictionary(Pkcs10CertificationRequest::keyAlgorithms, ldloc:IDictionary(var_5_24))
|
|
stsfld:IDictionary(Pkcs10CertificationRequest::oids, call:IDictionary(Platform::CreateHashtable))
|
|
stsfld:ISet(Pkcs10CertificationRequest::noParams, newobj:HashSet[exp:ISet](HashSet::.ctor))
|
|
stloc:IDictionary(var_7_49, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_8_50, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption))
|
|
stloc:IDictionary(var_9_57, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_10_5E, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption))
|
|
stloc:IDictionary(var_11_65, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_12_6C, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
|
|
stloc:IDictionary(var_13_73, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_14_7A, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
|
|
stloc:IDictionary(var_15_81, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_16_88, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
|
|
stloc:IDictionary(var_17_8F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_18_96, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
|
|
stloc:IDictionary(var_19_9D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_20_A4, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
|
|
stloc:IDictionary(var_21_AB, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_22_B2, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption))
|
|
stloc:IDictionary(var_23_B9, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_24_C0, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption))
|
|
stloc:IDictionary(var_25_C7, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_26_CE, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption))
|
|
stloc:IDictionary(var_27_D5, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_28_DC, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption))
|
|
stloc:IDictionary(var_29_E3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_30_EA, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption))
|
|
stloc:IDictionary(var_31_F1, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_32_F8, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption))
|
|
stloc:IDictionary(var_33_FF, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_34_106, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption))
|
|
stloc:IDictionary(var_35_10D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_36_114, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption))
|
|
stloc:IDictionary(var_37_11B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_38_122, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
|
stloc:IDictionary(var_39_129, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_40_130, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
|
stloc:IDictionary(var_41_137, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_42_13E, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
|
stloc:IDictionary(var_43_145, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_44_14C, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
|
stloc:IDictionary(var_45_153, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_46_15A, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
|
stloc:IDictionary(var_47_161, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_48_168, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
|
|
stloc:IDictionary(var_49_16F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_50_176, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128))
|
|
stloc:IDictionary(var_51_17D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_52_184, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128))
|
|
stloc:IDictionary(var_53_18B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_54_192, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160))
|
|
stloc:IDictionary(var_55_199, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_56_1A0, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160))
|
|
stloc:IDictionary(var_57_1A7, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_58_1AE, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256))
|
|
stloc:IDictionary(var_59_1B5, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_60_1BC, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256))
|
|
stloc:IDictionary(var_61_1C3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_62_1CA, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1))
|
|
stloc:IDictionary(var_63_1D1, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_64_1D8, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1))
|
|
stloc:IDictionary(var_65_1DF, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_66_1E6, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha224))
|
|
stloc:IDictionary(var_67_1ED, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_68_1F4, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha256))
|
|
stloc:IDictionary(var_69_1FB, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_70_202, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha384))
|
|
stloc:IDictionary(var_71_209, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_72_210, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha512))
|
|
stloc:IDictionary(var_73_217, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_74_21E, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1))
|
|
stloc:IDictionary(var_75_225, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_76_22C, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha224))
|
|
stloc:IDictionary(var_77_233, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_78_23A, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha256))
|
|
stloc:IDictionary(var_79_241, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_80_248, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha384))
|
|
stloc:IDictionary(var_81_24F, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_82_256, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha512))
|
|
stloc:IDictionary(var_83_25D, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_84_264, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1))
|
|
stloc:IDictionary(var_85_26B, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_86_272, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94))
|
|
stloc:IDictionary(var_87_279, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_88_280, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94))
|
|
stloc:IDictionary(var_89_287, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_90_28E, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
|
|
stloc:IDictionary(var_91_295, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_92_29C, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
|
|
stloc:IDictionary(var_93_2A3, ldsfld:IDictionary(Pkcs10CertificationRequest::algorithms))
|
|
stloc:DerObjectIdentifier(var_94_2AA, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
|
|
stloc:IDictionary(var_95_2B1, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_97_2B8, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_99_2BF, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_101_2C6, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_103_2CD, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_105_2D4, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_107_2DB, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_109_2E2, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_111_2E9, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_113_2F0, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_115_2F7, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_117_2FE, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_119_305, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_121_30C, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_123_313, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_125_31A, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_127_321, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
stloc:IDictionary(var_129_328, ldsfld:IDictionary(Pkcs10CertificationRequest::oids))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009FEF RID: 40943 RVA: 0x00211300 File Offset: 0x0020F500
|
|
[Token(Token = "0x6009FEF")]
|
|
[Address(RVA = "0x640330", Offset = "0x63F330", VA = "0x180640330")]
|
|
private static RsassaPssParameters CreatePssParams(AlgorithmIdentifier hashAlgId, int saltSize)
|
|
{
|
|
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PkcsObjectIdentifiers.IdMgf1, hashAlgId);
|
|
DerInteger derInteger = new DerInteger(saltSize);
|
|
DerInteger derInteger2 = new DerInteger(1);
|
|
return new RsassaPssParameters(hashAlgId, algorithmIdentifier, derInteger, derInteger2);
|
|
}
|
|
|
|
// Token: 0x06009FF0 RID: 40944 RVA: 0x00211330 File Offset: 0x0020F530
|
|
[Token(Token = "0x6009FF0")]
|
|
[Address(RVA = "0x642D30", Offset = "0x641D30", VA = "0x180642D30")]
|
|
protected Pkcs10CertificationRequest()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06009FF1 RID: 40945 RVA: 0x00211344 File Offset: 0x0020F544
|
|
[Token(Token = "0x6009FF1")]
|
|
[Address(RVA = "0x642F40", Offset = "0x641F40", VA = "0x180642F40")]
|
|
public Pkcs10CertificationRequest(byte[] encoded)
|
|
{
|
|
Asn1Object asn1Object;
|
|
do
|
|
{
|
|
asn1Object = Asn1Object.FromByteArray(encoded);
|
|
if (asn1Object == 0)
|
|
{
|
|
}
|
|
}
|
|
while (asn1Object == 0);
|
|
}
|
|
|
|
// Token: 0x06009FF2 RID: 40946 RVA: 0x00211364 File Offset: 0x0020F564
|
|
[Token(Token = "0x6009FF2")]
|
|
[Address(RVA = "0x642D20", Offset = "0x641D20", VA = "0x180642D20")]
|
|
public Pkcs10CertificationRequest(Asn1Sequence seq)
|
|
: base(seq)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06009FF3 RID: 40947 RVA: 0x00211378 File Offset: 0x0020F578
|
|
[Token(Token = "0x6009FF3")]
|
|
[Address(RVA = "0x642FE0", Offset = "0x641FE0", VA = "0x180642FE0")]
|
|
public Pkcs10CertificationRequest(Stream input)
|
|
{
|
|
Asn1Object asn1Object;
|
|
do
|
|
{
|
|
asn1Object = Asn1Object.FromStream(input);
|
|
if (asn1Object == 0)
|
|
{
|
|
}
|
|
}
|
|
while (asn1Object == 0);
|
|
}
|
|
|
|
// Token: 0x06009FF4 RID: 40948 RVA: 0x00211398 File Offset: 0x0020F598
|
|
[Token(Token = "0x6009FF4")]
|
|
[Address(RVA = "0x642D40", Offset = "0x641D40", VA = "0x180642D40")]
|
|
public Pkcs10CertificationRequest(string signatureAlgorithm, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06009FF5 RID: 40949 RVA: 0x002113A8 File Offset: 0x0020F5A8
|
|
[Token(Token = "0x6009FF5")]
|
|
[Address(RVA = "0x643080", Offset = "0x642080", VA = "0x180643080")]
|
|
[Obsolete]
|
|
public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06009FF6 RID: 40950 RVA: 0x002113B8 File Offset: 0x0020F5B8
|
|
[Token(Token = "0x6009FF6")]
|
|
[Address(RVA = "0x642DE0", Offset = "0x641DE0", VA = "0x180642DE0")]
|
|
public Pkcs10CertificationRequest(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009FF6)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISignatureFactory,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_27:
|
|
stloc:ArgumentException(var_2_36, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("expected public key"), ldstr:string("publicKey")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009FF7 RID: 40951 RVA: 0x002113FC File Offset: 0x0020F5FC
|
|
[Token(Token = "0x6009FF7")]
|
|
[Address(RVA = "0x640A70", Offset = "0x63FA70", VA = "0x180640A70")]
|
|
private void Init(ISignatureFactory signatureFactory, X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes)
|
|
{
|
|
int num;
|
|
for (;;)
|
|
{
|
|
num = 0;
|
|
if (signatureFactory != 0)
|
|
{
|
|
this.sigAlgId = signatureFactory;
|
|
SubjectPublicKeyInfo subjectPublicKeyInfo = SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(publicKey);
|
|
CertificationRequestInfo certificationRequestInfo;
|
|
this.reqInfo = certificationRequestInfo;
|
|
byte[] derEncoded = this.reqInfo.GetDerEncoded();
|
|
if (derEncoded != 0 && derEncoded != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (num < typeof(IBlockResult).TypeHandle)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
DerBitString derBitString;
|
|
this.sigBits = derBitString;
|
|
}
|
|
|
|
// Token: 0x06009FF8 RID: 40952 RVA: 0x00211468 File Offset: 0x0020F668
|
|
[Token(Token = "0x6009FF8")]
|
|
[Address(RVA = "0x640870", Offset = "0x63F870", VA = "0x180640870")]
|
|
public AsymmetricKeyParameter GetPublicKey()
|
|
{
|
|
return PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo);
|
|
}
|
|
|
|
// Token: 0x06009FF9 RID: 40953 RVA: 0x0021148C File Offset: 0x0020F68C
|
|
[Token(Token = "0x6009FF9")]
|
|
[Address(RVA = "0x641130", Offset = "0x640130", VA = "0x180641130")]
|
|
public bool Verify()
|
|
{
|
|
Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(PublicKeyFactory.CreateKey(this.reqInfo.subjectPKInfo));
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009FFA RID: 40954 RVA: 0x002114B8 File Offset: 0x0020F6B8
|
|
[Token(Token = "0x6009FFA")]
|
|
[Address(RVA = "0x6411F0", Offset = "0x6401F0", VA = "0x1806411F0")]
|
|
public bool Verify(AsymmetricKeyParameter publicKey)
|
|
{
|
|
Asn1VerifierFactoryProvider asn1VerifierFactoryProvider = new Asn1VerifierFactoryProvider(publicKey);
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009FFB RID: 40955 RVA: 0x002114D4 File Offset: 0x0020F6D4
|
|
[Token(Token = "0x6009FFB")]
|
|
[Address(RVA = "0x6412A0", Offset = "0x6402A0", VA = "0x1806412A0")]
|
|
public bool Verify(IVerifierFactoryProvider verifierProvider)
|
|
{
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06009FFC RID: 40956 RVA: 0x002114E8 File Offset: 0x0020F6E8
|
|
[Token(Token = "0x6009FFC")]
|
|
[Address(RVA = "0x640EB0", Offset = "0x63FEB0", VA = "0x180640EB0")]
|
|
public bool Verify(IVerifierFactory verifier)
|
|
{
|
|
byte[] derEncoded = this.reqInfo.GetDerEncoded();
|
|
string text = this.sigBits.GetString();
|
|
if (text != 0 && text != 0)
|
|
{
|
|
int num = 0;
|
|
if (num < derEncoded)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
int num2 = 0;
|
|
text += text;
|
|
SignatureException ex = new SignatureException("exception encoding TBS cert request", num2);
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009FFD RID: 40957 RVA: 0x00211560 File Offset: 0x0020F760
|
|
[Token(Token = "0x6009FFD")]
|
|
[Address(RVA = "0x640D40", Offset = "0x63FD40", VA = "0x180640D40")]
|
|
private void SetSignatureParameters(ISigner signature, Asn1Encodable asn1Params)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009FFD)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest::SetSignatureParameters(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISigner,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_1D:
|
|
stloc:Exception(var_3_27, call:Exception(Platform::CreateNotImplementedException, ldstr:string("signature algorithm with MGF1")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009FFE RID: 40958 RVA: 0x00211594 File Offset: 0x0020F794
|
|
[Token(Token = "0x6009FFE")]
|
|
[Address(RVA = "0x6408A0", Offset = "0x63F8A0", VA = "0x1806408A0")]
|
|
internal static string GetSignatureName(AlgorithmIdentifier sigAlgId)
|
|
{
|
|
DerObjectIdentifier objectID = sigAlgId.ObjectID;
|
|
if (objectID != 0 && objectID == 0)
|
|
{
|
|
Asn1Object asn1Object = sigAlgId.ToAsn1Object();
|
|
Asn1Object asn1Object2 = RsassaPssParameters.GetInstance(objectID).hashAlgorithm.ToAsn1Object();
|
|
string text;
|
|
return text + "withRSAandMGF1";
|
|
}
|
|
Asn1Object asn1Object3 = sigAlgId.ToAsn1Object();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009FFF RID: 40959 RVA: 0x002115E4 File Offset: 0x0020F7E4
|
|
[Token(Token = "0x6009FFF")]
|
|
[Address(RVA = "0x640450", Offset = "0x63F450", VA = "0x180640450")]
|
|
private static string GetDigestAlgName(DerObjectIdentifier digestAlgOID)
|
|
{
|
|
DerObjectIdentifier md = PkcsObjectIdentifiers.MD5;
|
|
DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1;
|
|
DerObjectIdentifier idSha2 = NistObjectIdentifiers.IdSha224;
|
|
DerObjectIdentifier idSha3 = NistObjectIdentifiers.IdSha256;
|
|
DerObjectIdentifier idSha4 = NistObjectIdentifiers.IdSha384;
|
|
DerObjectIdentifier idSha5 = NistObjectIdentifiers.IdSha512;
|
|
DerObjectIdentifier ripeMD = TeleTrusTObjectIdentifiers.RipeMD128;
|
|
DerObjectIdentifier ripeMD2 = TeleTrusTObjectIdentifiers.RipeMD160;
|
|
DerObjectIdentifier ripeMD3 = TeleTrusTObjectIdentifiers.RipeMD256;
|
|
DerObjectIdentifier gostR = CryptoProObjectIdentifiers.GostR3411;
|
|
return digestAlgOID.identifier;
|
|
}
|
|
|
|
// Token: 0x04006ADB RID: 27355
|
|
[Token(Token = "0x4006ADB")]
|
|
protected static readonly IDictionary algorithms;
|
|
|
|
// Token: 0x04006ADC RID: 27356
|
|
[Token(Token = "0x4006ADC")]
|
|
protected static readonly IDictionary exParams;
|
|
|
|
// Token: 0x04006ADD RID: 27357
|
|
[Token(Token = "0x4006ADD")]
|
|
protected static readonly IDictionary keyAlgorithms;
|
|
|
|
// Token: 0x04006ADE RID: 27358
|
|
[Token(Token = "0x4006ADE")]
|
|
protected static readonly IDictionary oids;
|
|
|
|
// Token: 0x04006ADF RID: 27359
|
|
[Token(Token = "0x4006ADF")]
|
|
protected static readonly ISet noParams;
|
|
}
|
|
}
|