Big data gap for RSA encryption

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.

+5
source share
2 answers

Even if you break the data, you will find out that speed is forbidden. Correct method

  • Generate a random key for a symmetric algorithm
  • , ( ) .
+6

, CMS ( S/MIME ) PGP. .

, , . .

, , , , , , , .. . , S/MIME, . , , - .

, - .

+1

All Articles