RE: RSA_public_decrypt(), and RSA_private_encrypt()

2014-01-24 Thread Dave Thompson
From: Matt Caswell [mailto:fr...@baggins.org] Sent: Wednesday, January 22, 2014 18:01 Second pass with some minor improvements: On 22 January 2014 22:40, Dave Thompson dthomp...@prinpay.com wrote: The general public-key sign and verify processes are: S1. compute hash of data (or for

RE: RSA_public_decrypt(), and RSA_private_encrypt()

2014-01-22 Thread Dave Thompson
-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of HelenH Zhang Sent: Tuesday, January 21, 2014 18:51 To: openssl-users@openssl.org; fr...@baggins.org Subject: Re: RSA_public_decrypt(), and RSA_private_encrypt() Thank you, Matt for your quick reply. I have

Re: RSA_public_decrypt(), and RSA_private_encrypt()

2014-01-22 Thread Matt Caswell
On 21 January 2014 23:51, HelenH Zhang helen...@yahoo.com wrote: Thank you, Matt for your quick reply. I have additional questions: I looked both links below: https://www.openssl.org/docs/crypto/EVP_PKEY_encrypt.html https://www.openssl.org/docs/crypto/EVP_PKEY_decrypt.html One for

Re: RSA_public_decrypt(), and RSA_private_encrypt()

2014-01-22 Thread Matt Caswell
On 22 January 2014 22:40, Dave Thompson dthomp...@prinpay.com wrote: The general public-key sign and verify processes are: S1. compute hash of data (or for CMS, hash of data-hash plus some other bits) S2. generate signature for hash S1 using private key (RSA, DSA, or ECDSA) S3. send

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

Re: RSA_public_decrypt(), and RSA_private_encrypt()

2014-01-21 Thread Matt Caswell
On 21 January 2014 15:44, HelenH Zhang helen...@yahoo.com 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(). Which API should I use? I am currently using

Re: RSA_public_decrypt(), and RSA_private_encrypt()

2014-01-21 Thread HelenH Zhang
: RSA_public_decrypt(), and RSA_private_encrypt() On 21 January 2014 15:44, HelenH Zhang helen...@yahoo.com 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(). Which API

how to use RSA_public_decrypt and RSA_private_encrypt pair?

2000-10-05 Thread Zhang Tao
Hi,everyone: I want to use RSA_public_decrypt and RSA_private_encrypt to sign and verify .But I cannot get it work . For RSA_public_encrypt and RSA_private_decrypt there is a good example in RSA/rsatest.c ,can anyone send me an example like rsatest.c but using RSA_public_decrypt