At 16.02.01 01:52, you wrote:
>I'm guessing that RSA_eay_private_encrypt uses padding
>type 1 since this function isn't intended for encrypting data, just signing
>it, because data that can be decrypted with a "public" key isn't really
>secure.
You´re right about that. The main goal is indeed providing authenticity
(without the need for a real digital signature, but MACs won´t do), the
encryption being a nice add-on effect.
Im reimplemented it with my own padding (random data), which I should´ve
done from the beginning indeed. That still would´ve sent me into the modulo
trap, though. :)
Ciao
Jan
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]