예제 #1
0
        private static int FindIndexForSigner(SignerInfo[] signerInfos, SignerInfo signer)
        {
            Debug.Assert(signer != null);
            SubjectIdentifier id = signer.SignerIdentifier;

            for (int i = 0; i < signerInfos.Length; i++)
            {
                SignerInfo        current   = signerInfos[i];
                SubjectIdentifier currentId = current.SignerIdentifier;

                if (id.IsEquivalentTo(currentId))
                {
                    return(i);
                }
            }

            return(-1);
        }
예제 #2
0
 internal int FindIndexForSigner(SignerInfo signer)
 {
     return(FindIndexForSigner(_signerInfos, signer));
 }
 private static bool CheckCertificate(
     X509Certificate2 tsaCertificate,
     SignerInfo signer,
     in EssCertId?certId,