Dear SSLites,

Please observe the following operations.

I do the following:-
key1 = RSA_generate_key(n, e1, NULL, NULL);
num = RSA_private_encrypt(plen, ptext_ex, ctext, key1, RSA_PKCS1_PADDING);
RSA_public_decrypt(num, ctext, ptext, key1, RSA_PKCS1_PADDING);

Average encryption time is = 5463361  CPU cycles
Average decryption time is = 87361      CPU cycles

And strangely, values (number of CPU cycles) for some en/de operations
are exactly the same! What could be the reason?

Then I did en/de with RSA_NO_PADDING and derived following values:-
Average encryption time is = 5467457  CPU cycles
Average decryption time is = 91457      CPU cycles

Probelm: In RSA, should decryption operation take more time than
encryption operation?

Then I tried to look for RSA benchmark results. I found on
http://www.eskimo.com/~weidai/benchmarks.html
that RSA-2048 encryption takes more time than respective decryption
operation...but the difference is number of ITERATIONs. What is this
ITERATION?

Best Regards,
Vishwas.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to