internal CmiManifestSigner(AsymmetricAlgorithm strongNameKey, X509Certificate2 certificate) { if (strongNameKey == null) throw new ArgumentNullException("strongNameKey"); RSA rsa = strongNameKey as RSA; if (rsa == null) throw new ArgumentNullException("strongNameKey"); _strongNameKey = strongNameKey; _certificate = certificate; _certificates = new X509Certificate2Collection(); _includeOption = X509IncludeOption.ExcludeRoot; _signerFlag = CmiManifestSignerFlag.None; }
internal CmiManifestSigner2(AsymmetricAlgorithm strongNameKey, X509Certificate2 certificate, bool useSha256) { if (strongNameKey == null) throw new ArgumentNullException("strongNameKey"); #if (true) // RSA rsa = strongNameKey as RSA; if (rsa == null) throw new ArgumentNullException("strongNameKey"); #endif m_strongNameKey = strongNameKey; m_certificate = certificate; m_certificates = new X509Certificate2Collection(); m_includeOption = X509IncludeOption.ExcludeRoot; m_signerFlag = CmiManifestSignerFlag.None; m_useSha256 = useSha256; }