I attempt to decrypt a 256 bytes of data with an RSA public key. The openssl error I'm getting is error:0406706C:lib(4):func(103):reason(108), which from what I read on the internet means "data greater than mod len". The openssl API I'm using to decrypt the data is RSA_public_decrypt(). From what a read on the internet this API is really for decrypting signatures. So is there another API for decrypting data that is larger than 128 bytes using a RSA public key? Any help would be greatly appreciated.
Bill
“CONFIDENTIALITY NOTICE: The contents of this email are confidential and for the exclusive use of the intended recipient. If you receive this email in error, please delete it from your system immediately and notify us either by email, telephone or fax. You should not copy, forward, or otherwise disclose the content of the email.”