On Fri, Jul 28, 2006, k b wrote: > thanks for your reponse Gerry ! > the two method you suggested were helpful > RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey) (see evp.h) > and d2i_X509_fp(fp,x509) to read DER directly from the file into an X509 > struct. > > but i still need to know how would i verify the signature which is > SHA1 hash of data encrypted with RSA with PKCS1 padding. > > I know there is this method > int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash, > const EVP_MD *Hash, const unsigned char *EM, int > sLen) > but don't know what should sLen be set to. >
Firstly this should be in openssl-users. That function is too low level for your purposes. You probably want the EVP interface, check out the EVP_Sign*() and EVP_Verify*() manual pages. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]