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]

Reply via email to