Hello! I'am using RSA_public_encrypt() and RSA_private_decrypt(). I can't encrypt data with zero byte (for example hash data). My code like this:
unsigned char *buf = "null\x0null"; ..... RSA_public_encrypt ( 9, buf, outbuf, rsa, RSA_PKCS1_PADDING); ...... RSA_private_decrypt ( RSA_size(rsa), outbuf, mess, rsa, RSA_PKCS1_PADDING); After that mess will be "null". Is it passible to encrypt data with zero bytes? If so, then how? Thanks so much! ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]