On Tue, Feb 27, 2007 at 09:52:38AM +0800, Zhuang Yuyao wrote:
> I need to verify a message digest and its signature with a X.509
> certificate. As far as I known, the procedure may looks like this:
> pubkey = X509_get_pubkey(x);
> rsa = EVP_PKEY_get1_RSA(pkey);
> RSA_public_decrypt(signature_len, signature, rsa_out, rsa, pad);
> memcmp(rsa_out, message_digest, message_digest_len);
man EVP_VerifyInit
--
Viktor.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]