Re: How to Verify Message Digest and its Signature with X.509 certificate

2007-02-27 Thread Dr. Stephen Henson
On Tue, Feb 27, 2007, Zhuang Yuyao wrote: > Victor Duchovni wrote: > >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

Re: How to Verify Message Digest and its Signature with X.509 certificate

2007-02-26 Thread Zhuang Yuyao
Victor Duchovni wrote: 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_decryp

Re: How to Verify Message Digest and its Signature with X.509 certificate

2007-02-26 Thread Victor Duchovni
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,

How to Verify Message Digest and its Signature with X.509 certificate

2007-02-26 Thread Zhuang Yuyao
Hi, 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, me