Hi,
I was looking at this sort of stuff recently and I'm a still a relative
beginner at OpenSSL, so if I'm way out of order, I'm sure someone from
the core group will straighten me out ;-)

anyway, if my understanding is correct... demos/maurice/example2.c shows
how to use the EVP stuff ... which I think works by creating a, say
des3, password on the fly which is passed down with the message where
the des3 password is encrypted with the public key and the rest of the
message is encrypted with the des3 password... 

cheers,
Sean O Riordain
[EMAIL PROTECTED]

"ÃÖ¿ë»ï" wrote:
> 
> With reference to rsa.h,
> I found that there are four kinds of padding.
> Of them, My concern is about RSA_NO_PADDING and RSA_PKCS1_PADDING.
> 
> Basic assumption here is,
> 1. RSA Key size : 256
> 2. size of message to be encrypted : 33
> 
> 1) in case of  RSA_NO_PADDING,
> 
> len = RSA_public_encrypt(what_number_here_?, from, to, rsa, RSA_NO_PADDING);
> 
> in this case, Shoud I provide this function with 32 for argument #1?
> and use for(while) loop to encrypt whole message?
> (SO, in this case, I should myself add padding to non-32-multiple length "from"?)
> 
> 2) in case of RSA_PKCS1_PADDING.
> len = RSA_public_encrypt(what_number_here_?, from, to, rsa, RSA_PKCS1_PADDING);
> 
> in this case, Should I provide this function with 32-11 for argument #1?
> and what is the return value of next ?
> 
> len = RSA_private_decrypt(32, to, from, rsa, RSA_PKCS1_PADDING);
> 
> Wish your help,
> fO.Ombar
> 
> ==================================================
> Æò»ý ¾²´Â ¹«·á E-mail ÁÖ¼Ò ÇѸÞÀϳÝ
> http://www.hanmail.net
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to