Re: recommended rsa api

2010-01-22 Thread Alexey Luchko
Hi! Thankx for your advices. Finally, I got it working with RSA_public_encrypt() and RSA_private_decrypt(). -- Alexey sms stands for save my soul __ OpenSSL Project http://www.openssl.org User

Re: recommended rsa api

2010-01-21 Thread Ben Jones
note, also see http://stackoverflow.com/questions/2012645/can-you-help-me-get-my-head-around-openssl-public-key-encryption-with-rsa-h-in-c Cheers, Ben. On 20 January 2010 16:22, Anand Patel anand.apa...@gmail.com wrote: For RSA API take a look at http://openssl.org/docs/crypto/rsa.html#

recommended rsa api

2010-01-20 Thread Alexey Luchko
Hi! I'm new to openssl. I need to encrypt and decrypt approx 1k block of data with rsa. What is recommended api for the case? I've found RSA_public_encrypt() and RSA_private_decrypt(). It looks like a kind of low level api. But here I've got a problem with OAEP padding. Another one is

Re: recommended rsa api

2010-01-20 Thread Ben Jones
Hi there Alexey Many people will tell you to use the EVP stuff and quite frankly, they're most likely right. However, I've not managed to figure out the EVP stuff so I use the public_encrypt and private_decrypt functions instead. I have written the following functions to encapsulate the

Re: recommended rsa api

2010-01-20 Thread Anand Patel
EVP is oneway of implementing your solution. Look at Example section of http://openssl.org/docs/crypto/EVP_EncryptInit.html# -Anand On Wed, Jan 20, 2010 at 10:14 AM, Alexey Luchko l...@ank-sia.com wrote: Hi! I'm new to openssl. I need to encrypt and decrypt approx 1k block of data with

Re: recommended rsa api

2010-01-20 Thread Anand Patel
For RSA API take a look at http://openssl.org/docs/crypto/rsa.html# -Anand On Wed, Jan 20, 2010 at 11:18 AM, Anand Patel anand.apa...@gmail.comwrote: EVP is oneway of implementing your solution. Look at Example section of http://openssl.org/docs/crypto/EVP_EncryptInit.html# -Anand On