internal bool VerifySignature(RSA rsa)
        {
            RSAPKCS1SignatureDeformatter v = new RSAPKCS1SignatureDeformatter(rsa);

            v.SetHashAlgorithm(PKCS1.HashNameFromOid(signatureOID));
            return(v.VerifySignature(Hash, signature));
        }
Exemple #2
0
        internal bool VerifySignature(RSA rsa)
        {
            // SHA1-1 with DSA
            if (m_signaturealgo == "1.2.840.10040.4.3")
            {
                return(false);
            }
            RSAPKCS1SignatureDeformatter v = new RSAPKCS1SignatureDeformatter(rsa);

            v.SetHashAlgorithm(PKCS1.HashNameFromOid(m_signaturealgo));
            return(v.VerifySignature(this.Hash, this.Signature));
        }