コード例 #1
0
 private static void CheckHashes(SignerInfoCollection signers)
 {
     if ((signers == null) || (signers.Count < 1))
     {
         throw new CryptographicException(-2146885618);
     }
     SignerInfoEnumerator enumerator = signers.GetEnumerator();
     while (enumerator.MoveNext())
     {
         SignerInfo current = enumerator.Current;
         if (current.SignerIdentifier.Type == SubjectIdentifierType.NoSignature)
         {
             current.CheckHash();
         }
     }
 }
コード例 #2
0
        private static void CheckHashes(SignerInfoCollection signers)
        {
            if ((signers == null) || (signers.Count < 1))
            {
                throw new CryptographicException(-2146885618);
            }
            SignerInfoEnumerator enumerator = signers.GetEnumerator();

            while (enumerator.MoveNext())
            {
                SignerInfo current = enumerator.Current;
                if (current.SignerIdentifier.Type == SubjectIdentifierType.NoSignature)
                {
                    current.CheckHash();
                }
            }
        }
コード例 #3
0
        private static void CheckSignatures(SignerInfoCollection signers, X509Certificate2Collection extraStore, bool verifySignatureOnly)
        {
            if ((signers == null) || (signers.Count < 1))
            {
                throw new CryptographicException(-2146885618);
            }
            SignerInfoEnumerator enumerator = signers.GetEnumerator();

            while (enumerator.MoveNext())
            {
                SignerInfo current = enumerator.Current;
                current.CheckSignature(extraStore, verifySignatureOnly);
                if (current.CounterSignerInfos.Count > 0)
                {
                    CheckSignatures(current.CounterSignerInfos, extraStore, verifySignatureOnly);
                }
            }
        }
コード例 #4
0
 private static void CheckSignatures(SignerInfoCollection signers, X509Certificate2Collection extraStore, bool verifySignatureOnly)
 {
     if ((signers == null) || (signers.Count < 1))
     {
         throw new CryptographicException(-2146885618);
     }
     SignerInfoEnumerator enumerator = signers.GetEnumerator();
     while (enumerator.MoveNext())
     {
         SignerInfo current = enumerator.Current;
         current.CheckSignature(extraStore, verifySignatureOnly);
         if (current.CounterSignerInfos.Count > 0)
         {
             CheckSignatures(current.CounterSignerInfos, extraStore, verifySignatureOnly);
         }
     }
 }