Hi all :x
I encountered an error when using function RSA_private_encrypt with
RSA_NO_PADDING option.
I had an unsigned char array a with length = 20, RSA* r, 
unsigned char* sig = (unsigned char*) malloc(RSA_size(r)) and then I invoked
function int i = RSA_private_encrypt(20,a ,sign,r,RSA_NO_PADDING ); The
returned value  i = -1 means that this function failed. However, when I
invoked int i = RSA_private_encrypt(20,a,sig,r,RSA_PKCS1_PADDING ), it did
run smoothly. I'm confused whether it is an error of the library or not but
I don't know how to solve this problem.
Please help me :-<
-- 
View this message in context: 
http://old.nabble.com/RSA_private_encrypt-does-not-work-with-RSA_NO_PADDING-option-tp29204310p29204310.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to