private bool IsCertHashMatch(X509Certificate2 certificate, Cert certInfo)
        {
            var certDigest = certInfo.CertDigest;
            var pkHash     = _cryptoProvider.GetHashAlgorithm(certDigest.DigestMethod.Algorithm);

            if (pkHash == null)
            {
                throw new XadesBesValidationException(string.Format("Алгоритм {0} не поддерживается", certDigest.DigestMethod.Algorithm));
            }
            var hashValue = pkHash.ComputeHash(certificate.RawData);

            return(ArrayHelper.AreEquals(hashValue, certDigest.DigestValue));
        }