Re: RSA_public_decrypt(), and RSA_private_encrypt()

2014-01-21 Thread HelenH Zhang
(), and RSA_private_encrypt() On 21 January 2014 15:44, HelenH Zhang wrote: > Dear experts: > > We want to be able to specify padding. > RSA_PKCS1_PADDING or RSA_NO_PADDING. > > I would like to use EVP API instead of RSA_Public_decrypt(), and > RSA_Private_encrypt(). > W

RSA_public_decrypt(), and RSA_private_encrypt()

2014-01-21 Thread HelenH Zhang
Dear experts: We want to be able to specify padding. RSA_PKCS1_PADDING or RSA_NO_PADDING. I would like to use EVP API instead of RSA_Public_decrypt(), and RSA_Private_encrypt(). Which API should I use? I am currently using EVP_SignInit()/Update/Final() to do rsa sign, and EVP_VerifyInit/Updat

Re: Got: error:0408D068:rsa routines:FIPS_RSA_VERIFY:bad signature

2014-01-04 Thread HelenH Zhang
routines:FIPS_RSA_VERIFY:bad signature On Fri, Jan 03, 2014, HelenH Zhang wrote: > Hi, > > I am looking for the reason: > > error:0408D068:rsa routines:FIPS_RSA_VERIFY:bad signature > > I am using: > > EVP_MD_CTX_init(&mdctx); > EVP_PKEY_assign_R

Got: error:0408D068:rsa routines:FIPS_RSA_VERIFY:bad signature

2014-01-03 Thread HelenH Zhang
Hi, I am looking for the reason: error:0408D068:rsa routines:FIPS_RSA_VERIFY:bad signature I am using: EVP_MD_CTX_init(&mdctx); EVP_PKEY_assign_RSA(pkey, rsaKey); EVP_VerifyInit() EVP_VerifyUpdate() EVP_VerifyFinal() I checked the returned value at each step. However, I got the above error in