private static void CheckHashes(SignerInfoCollection signers) { if (signers == null || signers.Count < 1) { throw new CryptographicException(-2146885618); } foreach (SignerInfo signerInfo in signers) { if (signerInfo.SignerIdentifier.Type == SubjectIdentifierType.NoSignature) { signerInfo.CheckHash(); } } }
private static void CheckSignatures(SignerInfoCollection signers, X509Certificate2Collection extraStore, bool verifySignatureOnly) { if (signers == null || signers.Count < 1) { throw new CryptographicException(-2146885618); } foreach (SignerInfo signerInfo in signers) { signerInfo.CheckSignature(extraStore, verifySignatureOnly); if (signerInfo.CounterSignerInfos.Count > 0) { SignedCms.CheckSignatures(signerInfo.CounterSignerInfos, extraStore, verifySignatureOnly); } } }
internal SignerInfoEnumerator(SignerInfoCollection signerInfos) { this.m_signerInfos = signerInfos; this.m_current = -1; }