Ejemplo n.º 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();
         }
     }
 }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 3
0
 internal SignerInfoEnumerator(SignerInfoCollection signerInfos)
 {
     this.m_signerInfos = signerInfos;
     this.m_current     = -1;
 }