示例#1
0
 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();
         }
     }
 }
示例#2
0
 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);
         }
     }
 }
示例#3
0
 internal SignerInfoEnumerator(SignerInfoCollection signerInfos)
 {
     this.m_signerInfos = signerInfos;
     this.m_current     = -1;
 }