We recently dived into using OpenSSL to help encrypt / decrypt some of the data that we have. Each “client” will have a “Public / Private Key” pair and an X509 certificate provided by their local certification authority. Now I am viewing the encryption / decryption data using this key pair.
Everything that I looked through using methods RSA_public_encryptand RSA_private_decryptfor RSA encryption. But the amount of data that I can encrypt right away is limited RSA_size(rsa) - 41for the fill type RSA_PKCS1_OAEP_PADDING. So my question is how to encrypt large amounts of data, adhering to our RSA scheme (without static key phrases, etc.). I thought about breaking the data into pieces and then encrypting it, but it looks like it is defeating the fill point.
Any help would be appreciated.
source
share