Patrick Coleman <[EMAIL PROTECTED]> writes:
> if (RSA_public_decrypt(sizeof(ciphertext), (const unsigned char *)ciphertext,
> (unsigned char *)decrypted, key, RSA_PKCS1_PADDING) == -1) {
RSA_public_decrypt returns the size of the recovered plaintext. You have to
save it in a variable and adjust your output to print the correct length.
--
Jostein Tveit ([EMAIL PROTECTED])
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]